Text Generation
Transformers
GGUF
English
lm-judge
evaluation
nlp
Inference Endpoints
conversational
aashish1904 commited on
Commit
4afa962
·
verified ·
1 Parent(s): 872a34d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +743 -0
README.md ADDED
@@ -0,0 +1,743 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ language:
5
+ - en
6
+ license: apache-2.0
7
+ license_link: https://huggingface.co/flowaicom/Flow-Judge-v0.1/resolve/main/LICENSE
8
+ tags:
9
+ - lm-judge
10
+ - evaluation
11
+ - nlp
12
+ datasets:
13
+ - flowaicom/Flow-Judge-v0.1-binary-heldout
14
+ - flowaicom/Flow-Judge-v0.1-3-likert-heldout
15
+ - flowaicom/Flow-Judge-v0.1-5-likert-heldout
16
+ pipeline_tag: text-generation
17
+ library_name: transformers
18
+ metrics:
19
+ - accuracy
20
+ - f1
21
+ - precision
22
+ - recall
23
+ - pearsonr
24
+ - spearmanr
25
+ - kendall-tau
26
+ base_model:
27
+ - microsoft/Phi-3.5-mini-instruct
28
+
29
+ ---
30
+
31
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
32
+
33
+
34
+ # QuantFactory/Flow-Judge-v0.1-GGUF
35
+ This is quantized version of [flowaicom/Flow-Judge-v0.1](https://huggingface.co/flowaicom/Flow-Judge-v0.1) created using llama.cpp
36
+
37
+ # Original Model Card
38
+
39
+
40
+ <p align="center">
41
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/63368577d184e6b53c50e6d0/6kSJKgPh2pDh4tA-Ky0xW.png" alt="Centered image">
42
+ </p>
43
+ <p align="center">🚀 <a href="https://www.flow-ai.com/judge">Flow Judge</a> | 📄 <a href="https://www.flow-ai.com/blog/flow-judge">Technical report</a> | 💻 <a href="https://github.com/flowaicom/flow-judge">flow-judge</a></p>
44
+
45
+ ## Model Summary
46
+
47
+ Flow-Judge-v0.1 is a compact yet powerful 3.8B model that offers customizable LLM system evaluations across various fields. The model inherits it's architecture from Phi-3.5-mini instruct model which enables Flow-Judge to deliver high-quality results while maintaining a small footprint. Despite its smaller size, it achieves performance comparable to larger models in both held-out and out-of-domain benchmarks. Flow-Judge-v0.1 supports multiple scoring scales, provides qualitative feedback, and generates structured evaluation outputs. Trained on a smaller synthetic dataset, it represents an efficient approach to AI development. Released under the Apache 2.0 license, Flow Judge is an open and accessible model suitable for developers and companies seeking cost-effective and rapid evaluations using custom rubrics.
48
+
49
+ __Quantized weights__
50
+ - [flowaicom/Flow-Judge-v0.1-AWQ](https://huggingface.co/flowaicom/Flow-Judge-v0.1-AWQ)
51
+ - [flowaicom/Flow-Judge-v0.1-GGUF](https://huggingface.co/flowaicom/Flow-Judge-v0.1-GGUF)
52
+
53
+ __Quickstart__
54
+ - [Quickstart](https://github.com/flowaicom/flow-judge/examples/1_quickstart.ipynb)
55
+
56
+ ## Intended Use Case
57
+ Flow Judge is intended to be used on custom LLM system evaluation tasks.
58
+
59
+ - Customizable evaluations: Users can define their own evaluation criteria and rubrics, tailoring Flow Judge to their specific needs and requirements. This flexibility allows for the creation of highly targeted assessments that accurately measure performance of their LLM system
60
+
61
+ - Flow Judge supports three different scoring scales:
62
+ - Pass/fail: Suitable for binary assessments, such as determining whether a piece of text meets a specific standard or contains errors.
63
+ - 3-Likert: Allows for more granular evaluations, with scores ranging from negative to neutral to positive. Useful for assessing the overall quality or sentiment of a piece of text.
64
+ - 5-Likert: Provides an even more nuanced assessment, with scores ranging from strongly negative to strongly positive, enabling users to capture subtle differences in quality or sentiment.
65
+
66
+ - Easy to interpret results:
67
+ - Flow Judge produces structured evaluations with `<feedback>` and `<score>` tags.
68
+ - Qualitative feedback: Flow Judge detects errors and grades outputs and provides qualitative feedback that explains its reasoning for assigning a particular score from the rubric while highlighting problematic parts of the responses.
69
+ - Score: Based on a grading rubric Flow Judge will return a numerical score on binary, likert-3 or likert-5 scale.
70
+
71
+ ## Training
72
+
73
+ ### Model
74
+
75
+ Flow Judge is based on the Phi-3.5-mini architecture, and the base model checkpoint used is specifically its instruct version. The model uses the same tokenizer, supports MQA and Flash Attention 2, and has weights in bfloat16 precision. However, post-finetuning, the model's support for languages and long context lengths has not been fully tested. Due to specialized Supervised Fine-Tuning (SFT), Flow Judge might show different benchmark results and support a maximum context length of 8192, shorter than the base model's.
76
+
77
+
78
+ ### Training Datasets
79
+
80
+ Flow-Judge-v0.1 has been trained on synthetically generated datasets. The construction of training datasets for Flow Judge involves a multi-step process:
81
+
82
+ 1. Manually curating seed rubrics to serve as a foundation
83
+ 2. Synthetically generating domain-adapted metrics and rubrics for various domains
84
+ 3. Synthetically generating training instances with multiple inputs, such as user queries and contextual information
85
+ 4. Employing a dual-evaluation strategy with consensus to ensure quality and consistency
86
+
87
+ This process creates a comprehensive and diverse set of training instances that enable accurate, domain-specific evaluations of LLM systems in generative AI products while minimizing human intervention.
88
+
89
+ Read more about the dataset construction from [here](https://www.flow-ai.com/blog/flow-judge#dataset-construction)
90
+
91
+
92
+ ### Fine-tuning
93
+
94
+ For fine-tuning we used Axolotl's preprocessing to ensure input training data is consistent. We then conducted supervised fine-tuning based on microsoft/Phi-3.5-mini-instruct using RSLoRa. More detailed information about the fine-tuning process is provided in our [technical report](https://www.flow-ai.com/blog/flow-judge#fine-tuning).
95
+
96
+ ## Usage
97
+
98
+ ### Prompt format
99
+
100
+ #### Prompt template with inputs
101
+ ```text
102
+ # GOAL
103
+ Your job is to evaluate a task carried out by an AI system powered by a large language model.
104
+ You will be provided with the inputs and output of the task, as well as the evaluation criteria and scoring rubric. Your task is to evaluate the output of the AI system based on the evaluation criteria and scoring rubric provided.
105
+
106
+ # INPUT
107
+ Below are the inputs required for performing the task:
108
+ <inputs>
109
+ {INPUTS}
110
+ </inputs>
111
+
112
+ # OUTPUT
113
+ Below is the output of the task:
114
+ <output>
115
+ {OUTPUT}
116
+ </output>
117
+
118
+ # EVALUATION CRITERIA AND SCORING RUBRIC
119
+ Here are the evaluation criteria and the rubric that you need to use for evaluating the task:
120
+ <evaluation_criteria>
121
+ {EVALUATION_CRITERIA}
122
+ </evaluation_criteria>
123
+
124
+ <scoring_rubric>
125
+ {RUBRIC}
126
+ </scoring_rubric>
127
+
128
+ # INSTRUCTIONS FOR THE EVALUATION
129
+ 1. Understand the task and criteria: Familiarize yourself with the task to be evaluated. Review the evaluation criteria and scoring rubric to understand the different levels of performance and the descriptions for each score.
130
+ 2. Review the inputs and output: Look at the inputs provided for the task. Examine the output generated from completing the task.
131
+ 3. Compare output to score descriptions: Compare the output against the criteria and score descriptions in the scoring rubric. For each criterion,decide which description best matches the output.
132
+ 4. After comparing the output to the score descriptions, pay attention to the small details that might impact the final score that you assign. Sometimes a small difference can dictate the final score.
133
+ 5. Write verbal feedback justifying your evaluation that includes a detailed rationale, referring to specific aspects of the output and comparing them to the rubric.
134
+ 6. Assign a final score based on the scoring rubric.
135
+
136
+ ## FORMAT FOR THE EVALUATION
137
+ - Write the verbal feedback inside <feedback> tags without any additional surrounding text.
138
+ - Write the numeric score inside <score> tags, without any additional surrounding text and always after the feedback.
139
+
140
+ Please accurately evaluate the task. Strictly adhere to the evaluation criteria and rubric.
141
+ ```
142
+
143
+ #### Prompt template without inputs
144
+ ```text
145
+ # GOAL
146
+ Your job is to evaluate a task carried out by an AI system powered by a large language model.
147
+
148
+ You will be provided the output of the task, as well as the evaluation criteria and scoring rubric. Your task is to evaluate the output of the AI system based on the evaluation criteria and scoring rubric provided.
149
+
150
+ # OUTPUT
151
+ Below is the output of the task:
152
+ <output>
153
+ {OUTPUT}
154
+ </output>
155
+
156
+ # EVALUATION CRITERIA AND SCORING RUBRIC
157
+ Here are the evaluation criteria and the rubric that you need to use for evaluating the task:
158
+ <evaluation_criteria>
159
+ {EVALUATION_CRITERIA}
160
+ </evaluation_criteria>
161
+
162
+ <scoring_rubric>
163
+ {RUBRIC}
164
+ </scoring_rubric>
165
+
166
+ # INSTRUCTIONS FOR THE EVALUATION
167
+ 1. Understand the task and criteria: Familiarize yourself with the task to be evaluated. Review the evaluation criteria and scoring rubric to understand the different levels of performance and the descriptions for each score.
168
+ 2. Review the output: Examine the output generated from completing the task.
169
+ 3. Compare output to score descriptions: Compare the output against the criteria and score descriptions in the scoring rubric. For each criterion,decide which description best matches the output.
170
+ 4. After comparing the output to the score descriptions, pay attention to the small details that might impact the final score that you assign. Sometimes a small difference can dictate the final score.
171
+ 5. Write verbal feedback justifying your evaluation that includes a detailed rationale, referring to specific aspects of the output and comparing them to the rubric.
172
+ 6. Assign a final score based on the scoring rubric.
173
+
174
+ ## FORMAT FOR THE EVALUATION
175
+ - Write the verbal feedback inside <feedback> tags without any additional surrounding text.
176
+ - Write the numeric score inside <score> tags, without any additional surrounding text and always after the feedback.
177
+
178
+ Please accurately evaluate the task. Strictly adhere to the evaluation criteria and rubric.
179
+ ```
180
+
181
+ #### Formatted prompt example with inputs
182
+ ```text
183
+ # GOAL
184
+ Your job is to evaluate a task carried out by an AI system powered by a large language model.
185
+ You will be provided with the inputs and output of the task, as well as the evaluation criteria and scoring rubric. Your task is to evaluate the output of the AI system based on the evaluation criteria and scoring rubric provided.
186
+ # INPUT/s
187
+ Below are the inputs required for performing the task:
188
+ <inputs>
189
+ <customer_query>
190
+ Subject: Issues with recent order #12345
191
+ Hello,
192
+ I recently received my order #12345, but I'm having a few problems:
193
+ 1. The blue t-shirt I ordered is actually green. Can I exchange it?
194
+ 2. The phone case doesn't fit my iPhone 13 Pro Max. The website said it was compatible.
195
+ 3. I was charged for express shipping, but it took over a week to arrive. Can I get a refund on the shipping cost?
196
+ Please let me know how we can resolve these issues. I've been a loyal customer for years and this is the first time I've had problems like this.
197
+ Thank you,
198
+ Jane Smith
199
+ </customer_query>
200
+ </inputs>
201
+
202
+ # OUTPUT
203
+ Below is the output of the task:
204
+ <output>
205
+ Dear Jane Smith,
206
+ Thank you for reaching out about the issues with your recent order #12345. We sincerely apologize for the inconvenience you've experienced. Let me address each of your concerns:
207
+ 1. T-shirt color discrepancy: We're sorry about the mix-up with the t-shirt color. We'd be happy to exchange it for the correct blue t-shirt. I'll send you a prepaid return label for the green shirt, and we'll ship out the blue one as soon as we receive the return.
208
+ 2. Phone case compatibility: We apologize for the confusion regarding the phone case compatibility. Our website information should have been more accurate. We'll gladly accept a return of the incompatible case and issue a full refund for it. Additionally, I can recommend a case that will fit your iPhone 13 Pro Max if you're interested.
209
+ 3. Shipping charge: You're absolutely right about the shipping charge. Since the delivery didn't meet our express shipping standards, we will refund the entire shipping cost to your original payment method. This refund should process within 3-5 business days.
210
+ To initiate these resolutions, please reply to this email confirming that you'd like to proceed with the t-shirt exchange and phone case return. Once confirmed, I'll send you the necessary return labels and process the shipping refund immediately.
211
+ We truly value your loyalty as a long-time customer and sincerely regret that you've encountered these issues. Rest assured, we're taking steps to prevent similar problems in the future. As a gesture of goodwill, we'd like to offer you a 20% discount on your next order.
212
+ If you have any further questions or concerns, please don't hesitate to reach out. We're here to ensure your complete satisfaction.
213
+ Best regards,
214
+ Alex Johnson
215
+ Customer Service Representative
216
+ </output>
217
+
218
+ # EVALUATION CRITERIA AND SCORING RUBRIC
219
+ Here are the evaluation criteria and the rubric that you need to use for evaluating the task:
220
+ <evaluation_criteria>
221
+ How well the response addresses the specific issues raised in the customer's query?
222
+ </evaluation_criteria>
223
+ <scoring_rubric>
224
+ - Score 1: The response completely fails to address the customer's needs and ignores the specific issues raised.
225
+ - Score 2: The response barely addresses the customer's query and misses most of the specific issues raised.
226
+ - Score 3: The response partially addresses the customer's query, touching on some of the specific issues but leaving others unaddressed.
227
+ - Score 4: The response adequately addresses most aspects of the customer's query and the specific issues raised.
228
+ - Score 5: The response fully and comprehensively addresses all aspects of the customer's query and all specific issues raised in a highly satisfactory manner.
229
+ </scoring_rubric>
230
+
231
+ # INSTRUCTIONS FOR THE EVALUATION
232
+ 1. Understand the task and criteria: Familiarize yourself with the task to be evaluated. Review the evaluation criteria and scoring rubric to understand the different levels of performance and the descriptions for each score.
233
+ 2. Review the inputs and output: Look at the inputs provided for the task. Examine the output generated from completing the task.
234
+ 3. Compare output to score descriptions: Compare the output against the criteria and score descriptions in the scoring rubric. For each criterion,decide which description best matches the output.
235
+ 4. After comparing the output to the score descriptions, pay attention to the small details that might impact the final score that you assign. Sometimes a small difference can dictate the final score.
236
+ 5. Write verbal feedback justifying your evaluation that includes a detailed rationale, referring to specific aspects of the output and comparing them to the rubric.
237
+ 6. Assign a final score based on the scoring rubric.
238
+
239
+ ## FORMAT FOR THE EVALUATION
240
+ - Write the verbal feedback inside <feedback> tags without any additional surrounding text.
241
+ - Write the numeric score inside <score> tags, without any additional surrounding text and always after the feedback.
242
+ Please accurately evaluate the task. Strictly adhere to the evaluation criteria and rubric.
243
+ ```
244
+ >Note that inputs and output are formatted with XML tags. See [flow-judge](https://github.com/flowaicom/flow-judge) repository formatting functions for more details.
245
+
246
+ ### Inference
247
+
248
+ Evaluations can easily be run using our [flow-judge](https://github.com/flowaicom/flow-judge) library. It currently supports both Transformers and vllm engine.
249
+
250
+ To run Flow Judge efficiently, ensure your hardware meets the following requirements:
251
+
252
+ - Modern GPU with at least 4 GB VRAM (e.g., NVIDIA RTX series)
253
+ - Minimum of 8 GB of system memory
254
+ - At least 10GB of free storage for model files and dependencies.
255
+
256
+ ## Evaluation
257
+ ### Held-out test sets
258
+
259
+ <table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: auto;">
260
+ <thead>
261
+ <tr>
262
+ <th rowspan="2" style="text-align: left;">Evaluator</th>
263
+ <th colspan="3" style="text-align: center;">Pass / Fail Held-out Test set</th>
264
+ </tr>
265
+ <tr>
266
+ <th style="text-align: center;">Precision</th>
267
+ <th style="text-align: center;">Recall</th>
268
+ <th style="text-align: center;">F1</th>
269
+ </tr>
270
+ </thead>
271
+ <tbody>
272
+ <tr>
273
+ <td style="text-align: left;">microsoft/Phi-3.5-mini-instruct</td>
274
+ <td style="text-align: center;">0.685</td>
275
+ <td style="text-align: center;"><strong>1.000</strong></td>
276
+ <td style="text-align: center;">0.813</td>
277
+ </tr>
278
+ <tr>
279
+ <td style="text-align: left;">meta-llama/Meta-Llama-3.1-8B-Instruct</td>
280
+ <td style="text-align: center;"><u>0.870</u></td>
281
+ <td style="text-align: center;">0.982</td>
282
+ <td style="text-align: center;"><u>0.923</u></td>
283
+ </tr>
284
+ <tr>
285
+ <td style="text-align: left;">mistralai/Mistral-Nemo-Instruct-2407</td>
286
+ <td style="text-align: center;">0.709</td>
287
+ <td style="text-align: center;"><u>0.994</u></td>
288
+ <td style="text-align: center;">0.827</td>
289
+ </tr>
290
+ <tr>
291
+ <td style="text-align: left;">gpt-4o-mini</td>
292
+ <td style="text-align: center;">0.834</td>
293
+ <td style="text-align: center;">1.000</td>
294
+ <td style="text-align: center;">0.910</td>
295
+ </tr>
296
+ <tr>
297
+ <td style="text-align: left;">flowaicom/Flow-Judge-v0.1</td>
298
+ <td style="text-align: center;"><strong>0.940</strong></td>
299
+ <td style="text-align: center;">0.972</td>
300
+ <td style="text-align: center;"><strong>0.955</strong></td>
301
+ </tr>
302
+ </tbody>
303
+ </table>
304
+
305
+ <table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: auto;">
306
+ <thead>
307
+ <tr>
308
+ <th rowspan="2" style="text-align: left;">Evaluator</th>
309
+ <th colspan="3" style="text-align: center;">3-Likert Held-out Test set</th>
310
+ <th colspan="3" style="text-align: center;">5-Likert Held-out Test set</th>
311
+ </tr>
312
+ <tr>
313
+ <th style="text-align: center;">pearsonr</th>
314
+ <th style="text-align: center;">spearmanr</th>
315
+ <th style="text-align: center;">kendall-tau</th>
316
+ <th style="text-align: center;">pearsonr</th>
317
+ <th style="text-align: center;">spearmanr</th>
318
+ <th style="text-align: center;">kendall-tau</th>
319
+ </tr>
320
+ </thead>
321
+ <tbody>
322
+ <tr>
323
+ <td style="text-align: left;">microsoft/Phi-3.5-mini-instruct</td>
324
+ <td style="text-align: center;">0.756</td>
325
+ <td style="text-align: center;">0.749</td>
326
+ <td style="text-align: center;">0.695</td>
327
+ <td style="text-align: center;">0.808</td>
328
+ <td style="text-align: center;">0.819</td>
329
+ <td style="text-align: center;">0.739</td>
330
+ </tr>
331
+ <tr>
332
+ <td style="text-align: left;">prometheus-eval/prometheus-7b-v2.0*</td>
333
+ <td style="text-align: center;">-</td>
334
+ <td style="text-align: center;">-</td>
335
+ <td style="text-align: center;">-</td>
336
+ <td style="text-align: center;"><u>0.910</u></td>
337
+ <td style="text-align: center;"><u>0.908</u></td>
338
+ <td style="text-align: center;"><u>0.838</u></td>
339
+ </tr>
340
+ <tr>
341
+ <td style="text-align: left;">meta-llama/Meta-Llama-3.1-8B-Instruct</td>
342
+ <td style="text-align: center;"><u>0.836</u></td>
343
+ <td style="text-align: center;"><u>0.833</u></td>
344
+ <td style="text-align: center;"><u>0.789</u></td>
345
+ <td style="text-align: center;">0.854</td>
346
+ <td style="text-align: center;">0.868</td>
347
+ <td style="text-align: center;">0.791</td>
348
+ </tr>
349
+ <tr>
350
+ <td style="text-align: left;">mistralai/Mistral-Nemo-Instruct-2407</td>
351
+ <td style="text-align: center;">0.813</td>
352
+ <td style="text-align: center;">0.807</td>
353
+ <td style="text-align: center;">0.758</td>
354
+ <td style="text-align: center;">0.870</td>
355
+ <td style="text-align: center;">0.867</td>
356
+ <td style="text-align: center;">0.789</td>
357
+ </tr>
358
+ <tr>
359
+ <td style="text-align: left;">gpt-4o-mini</td>
360
+ <td style="text-align: center;">0.890</td>
361
+ <td style="text-align: center;">0.888</td>
362
+ <td style="text-align: center;">0.851</td>
363
+ <td style="text-align: center;">0.923</td>
364
+ <td style="text-align: center;">0.923</td>
365
+ <td style="text-align: center;">0.864</td>
366
+ </tr>
367
+ <tr>
368
+ <td style="text-align: left;">flowaicom/Flow-Judge-v0.1</td>
369
+ <td style="text-align: center;"><strong>0.888</strong></td>
370
+ <td style="text-align: center;"><strong>0.888</strong></td>
371
+ <td style="text-align: center;"><strong>0.852</strong></td>
372
+ <td style="text-align: center;"><strong>0.919</strong></td>
373
+ <td style="text-align: center;"><strong>0.919</strong></td>
374
+ <td style="text-align: center;"><strong>0.856</strong></td>
375
+ </tr>
376
+ </tbody>
377
+ </table>
378
+
379
+ \* _Reported in model paper_
380
+
381
+
382
+ ### RAGTruth
383
+ <table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: auto;">
384
+ <tr>
385
+ <th rowspan="2" style="text-align: left;">Evaluator</th>
386
+ <th colspan="3" style="text-align:center;">RAGTruth QA</th>
387
+ <th colspan="3" style="text-align:center;">RAGTruth Data-to-Text</th>
388
+ <th colspan="3" style="text-align:center;">RAGTruth Summarization</th>
389
+ </tr>
390
+ <tr>
391
+ <th style="text-align:center;">Precision</th>
392
+ <th style="text-align:center;">Recall</th>
393
+ <th style="text-align:center;">F1</th>
394
+ <th style="text-align:center;">Precision</th>
395
+ <th style="text-align:center;">Recall</th>
396
+ <th style="text-align:center;">F1</th>
397
+ <th style="text-align:center;">Precision</th>
398
+ <th style="text-align:center;">Recall</th>
399
+ <th style="text-align:center;">F1</th>
400
+ </tr>
401
+ <tr>
402
+ <td>microsoft/Phi-3.5-mini-instruct</td>
403
+ <td style="text-align:center;">0.817</td>
404
+ <td style="text-align:center;">0.963</td>
405
+ <td style="text-align:center;">0.884</td>
406
+ <td style="text-align:center;">0.356</td>
407
+ <td style="text-align:center;"><strong>1.000</strong></td>
408
+ <td style="text-align:center;">0.525</td>
409
+ <td style="text-align:center;">0.776</td>
410
+ <td style="text-align:center;"><strong>1.000</strong></td>
411
+ <td style="text-align:center;"><strong>0.874</strong></td>
412
+ </tr>
413
+ <tr>
414
+ <td>meta-llama/Meta-Llama-3.1-8B-Instruct</td>
415
+ <td style="text-align:center;"><strong>0.844</strong></td>
416
+ <td style="text-align:center;"><u>0.986</u></td>
417
+ <td style="text-align:center;"><strong>0.910</strong></td>
418
+ <td style="text-align:center;">0.382</td>
419
+ <td style="text-align:center;">0.537</td>
420
+ <td style="text-align:center;">0.447</td>
421
+ <td style="text-align:center;"><u>0.797</u></td>
422
+ <td style="text-align:center;"><u>0.940</u></td>
423
+ <td style="text-align:center;">0.863</td>
424
+ </tr>
425
+ <tr>
426
+ <td>mistralai/Mistral-Nemo-Instruct-2407</td>
427
+ <td style="text-align:center;">0.821</td>
428
+ <td style="text-align:center;"><strong>0.995</strong></td>
429
+ <td style="text-align:center;"><u>0.900</u></td>
430
+ <td style="text-align:center;">0.357</td>
431
+ <td style="text-align:center;"><strong>1.000</strong></td>
432
+ <td style="text-align:center;">0.526</td>
433
+ <td style="text-align:center;">0.775</td>
434
+ <td style="text-align:center;"><strong>1.000</strong></td>
435
+ <td style="text-align:center;"><u>0.873</u></td>
436
+ </tr>
437
+ <tr>
438
+ <td>gpt-4o-mini</td>
439
+ <td style="text-align:center;">0.830</td>
440
+ <td style="text-align:center;">0.966</td>
441
+ <td style="text-align:center;">0.893</td>
442
+ <td style="text-align:center;">0.398</td>
443
+ <td style="text-align:center;">0.994</td>
444
+ <td style="text-align:center;">0.569</td>
445
+ <td style="text-align:center;">0.786</td>
446
+ <td style="text-align:center;">0.997</td>
447
+ <td style="text-align:center;">0.879</td>
448
+ </tr>
449
+ <tr>
450
+ <td>Luna*</td>
451
+ <td style="text-align:center;">0.378</td>
452
+ <td style="text-align:center;">0.800</td>
453
+ <td style="text-align:center;">0.513</td>
454
+ <td style="text-align:center;">0.649</td>
455
+ <td style="text-align:center;">0.912</td>
456
+ <td style="text-align:center;"><u>0.759</u></td>
457
+ <td style="text-align:center;">0.400</td>
458
+ <td style="text-align:center;">0.765</td>
459
+ <td style="text-align:center;">0.525</td>
460
+ </tr>
461
+ <tr>
462
+ <td>RAGAS Faithfuless*</td>
463
+ <td style="text-align:center;">0.312</td>
464
+ <td style="text-align:center;">0.419</td>
465
+ <td style="text-align:center;">0.357</td>
466
+ <td style="text-align:center;"><strong>0.792</strong></td>
467
+ <td style="text-align:center;">0.508</td>
468
+ <td style="text-align:center;">0.619</td>
469
+ <td style="text-align:center;">0.642</td>
470
+ <td style="text-align:center;">0.299</td>
471
+ <td style="text-align:center;">0.408</td>
472
+ </tr>
473
+ <tr>
474
+ <td>Trulens Groundedness*</td>
475
+ <td style="text-align:center;">0.228</td>
476
+ <td style="text-align:center;">0.925</td>
477
+ <td style="text-align:center;">0.366</td>
478
+ <td style="text-align:center;"><u>0.669</u></td>
479
+ <td style="text-align:center;"><u>0.965</u></td>
480
+ <td style="text-align:center;"><strong>0.790</strong></td>
481
+ <td style="text-align:center;">0.402</td>
482
+ <td style="text-align:center;">0.500</td>
483
+ <td style="text-align:center;">0.445</td>
484
+ </tr>
485
+ <tr>
486
+ <td>flowaicom/Flow-Judge-v0.1</td>
487
+ <td style="text-align:center;"><u>0.835</u></td>
488
+ <td style="text-align:center;">0.961</td>
489
+ <td style="text-align:center;">0.894</td>
490
+ <td style="text-align:center;">0.541</td>
491
+ <td style="text-align:center;">0.249</td>
492
+ <td style="text-align:center;">0.341</td>
493
+ <td style="text-align:center;"><strong>0.834</strong></td>
494
+ <td style="text-align:center;">0.836</td>
495
+ <td style="text-align:center;">0.835</td>
496
+ </tr>
497
+ </table>
498
+
499
+ \* _reported in model paper_
500
+
501
+
502
+ ### HaluEval, Covid-QA, PubMedQA
503
+ <table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: auto;">
504
+ <thead>
505
+ <tr>
506
+ <th rowspan="2" style="text-align: left;">Evaluator</th>
507
+ <th colspan="4" style="text-align: center;">HaluEval</th>
508
+ <th colspan="4" style="text-align: center;">Covid-QA</th>
509
+ <th colspan="4" style="text-align: center;">PubMedQA</th>
510
+ </tr>
511
+ <tr>
512
+ <th style="text-align: center;">Precision</th>
513
+ <th style="text-align: center;">Recall</th>
514
+ <th style="text-align: center;">F1</th>
515
+ <th style="text-align: center;">Accuracy</th>
516
+ <th style="text-align: center;">Precision</th>
517
+ <th style="text-align: center;">Recall</th>
518
+ <th style="text-align: center;">F1</th>
519
+ <th style="text-align: center;">Accuracy</th>
520
+ <th style="text-align: center;">Precision</th>
521
+ <th style="text-align: center;">Recall</th>
522
+ <th style="text-align: center;">F1</th>
523
+ <th style="text-align: center;">Accuracy</th>
524
+ </tr>
525
+ </thead>
526
+ <tbody>
527
+ <tr>
528
+ <td style="text-align: left;">microsoft/Phi-3.5-mini-instruct</td>
529
+ <td style="text-align: center;">0.730</td>
530
+ <td style="text-align: center;"><u>0.914</u></td>
531
+ <td style="text-align: center;">0.812</td>
532
+ <td style="text-align: center;">0.788</td>
533
+ <td style="text-align: center;">0.617</td>
534
+ <td style="text-align: center;">0.964</td>
535
+ <td style="text-align: center;">0.752</td>
536
+ <td style="text-align: center;">0.681</td>
537
+ <td style="text-align: center;">0.623</td>
538
+ <td style="text-align: center;"><u>0.986</u></td>
539
+ <td style="text-align: center;">0.764</td>
540
+ <td style="text-align: center;">0.696</td>
541
+ </tr>
542
+ <tr>
543
+ <td style="text-align: left;">meta-llama/Meta-Llama-3.1-8B-Instruct</td>
544
+ <td style="text-align: center;"><strong>0.864</strong></td>
545
+ <td style="text-align: center;">0.891</td>
546
+ <td style="text-align: center;"><strong>0.878</strong></td>
547
+ <td style="text-align: center;"><u>0.874</u></td>
548
+ <td style="text-align: center;"><u>0.663</u></td>
549
+ <td style="text-align: center;"><u>0.976</u></td>
550
+ <td style="text-align: center;"><u>0.790</u></td>
551
+ <td style="text-align: center;">0.734</td>
552
+ <td style="text-align: center;"><u>0.681</u></td>
553
+ <td style="text-align: center;">0.962</td>
554
+ <td style="text-align: center;"><strong>0.797</strong></td>
555
+ <td style="text-align: center;">0.750</td>
556
+ </tr>
557
+ <tr>
558
+ <td style="text-align: left;">mistralai/Mistral-Nemo-Instruct-2407</td>
559
+ <td style="text-align: center;">0.655</td>
560
+ <td style="text-align: center;"><strong>0.993</strong></td>
561
+ <td style="text-align: center;">0.789</td>
562
+ <td style="text-align: center;">0.735</td>
563
+ <td style="text-align: center;">0.651</td>
564
+ <td style="text-align: center;"><strong>0.982</strong></td>
565
+ <td style="text-align: center;">0.783</td>
566
+ <td style="text-align: center;">0.728</td>
567
+ <td style="text-align: center;">0.602</td>
568
+ <td style="text-align: center;"><strong>0.994</strong></td>
569
+ <td style="text-align: center;"><u>0.750</u></td>
570
+ <td style="text-align: center;">0.669</td>
571
+ </tr>
572
+ <tr>
573
+ <td style="text-align: left;">gpt-4o-mini</td>
574
+ <td style="text-align: center;">0.846</td>
575
+ <td style="text-align: center;">0.940</td>
576
+ <td style="text-align: center;">0.891</td>
577
+ <td style="text-align: center;">0.885</td>
578
+ <td style="text-align: center;">0.795</td>
579
+ <td style="text-align: center;">0.964</td>
580
+ <td style="text-align: center;">0.872</td>
581
+ <td style="text-align: center;">0.858</td>
582
+ <td style="text-align: center;">0.791</td>
583
+ <td style="text-align: center;">0.904</td>
584
+ <td style="text-align: center;">0.843</td>
585
+ <td style="text-align: center;">0.832</td>
586
+ </tr>
587
+ <tr>
588
+ <td style="text-align: left;">flowaicom/Flow-Judge-v0.1</td>
589
+ <td style="text-align: center;"><u>0.826</u></td>
590
+ <td style="text-align: center;">0.895</td>
591
+ <td style="text-align: center;"><u>0.859</u></td>
592
+ <td style="text-align: center;">0.854</td>
593
+ <td style="text-align: center;"><strong>0.767</strong></td>
594
+ <td style="text-align: center;">0.877</td>
595
+ <td style="text-align: center;"><strong>0.818</strong></td>
596
+ <td style="text-align: center;">0.807</td>
597
+ <td style="text-align: center;"><strong>0.874</strong></td>
598
+ <td style="text-align: center;">0.624</td>
599
+ <td style="text-align: center;">0.728</td>
600
+ <td style="text-align: center;">0.767</td>
601
+ </tr>
602
+ <tr>
603
+ <td style="text-align: left;">gpt-4o*</td>
604
+ <td style="text-align: center;">-</td>
605
+ <td style="text-align: center;">-</td>
606
+ <td style="text-align: center;">-</td>
607
+ <td style="text-align: center;">0.879</td>
608
+ <td style="text-align: center;">-</td>
609
+ <td style="text-align: center;">-</td>
610
+ <td style="text-align: center;">-</td>
611
+ <td style="text-align: center;">0.821</td>
612
+ <td style="text-align: center;">-</td>
613
+ <td style="text-align: center;">-</td>
614
+ <td style="text-align: center;">-</td>
615
+ <td style="text-align: center;">0.821</td>
616
+ </tr>
617
+ <tr>
618
+ <td style="text-align: left;">Claude 3 Sonnet*</td>
619
+ <td style="text-align: center;">-</td>
620
+ <td style="text-align: center;">-</td>
621
+ <td style="text-align: center;">-</td>
622
+ <td style="text-align: center;">0.845</td>
623
+ <td style="text-align: center;">-</td>
624
+ <td style="text-align: center;">-</td>
625
+ <td style="text-align: center;">-</td>
626
+ <td style="text-align: center;">0.829</td>
627
+ <td style="text-align: center;">-</td>
628
+ <td style="text-align: center;">-</td>
629
+ <td style="text-align: center;">-</td>
630
+ <td style="text-align: center;">0.829</td>
631
+ </tr>
632
+ <tr>
633
+ <td style="text-align: left;">RAGAS Faithfulness*</td>
634
+ <td style="text-align: center;">-</td>
635
+ <td style="text-align: center;">-</td>
636
+ <td style="text-align: center;">-</td>
637
+ <td style="text-align: center;">0.706</td>
638
+ <td style="text-align: center;">-</td>
639
+ <td style="text-align: center;">-</td>
640
+ <td style="text-align: center;">-</td>
641
+ <td style="text-align: center;">0.750</td>
642
+ <td style="text-align: center;">-</td>
643
+ <td style="text-align: center;">-</td>
644
+ <td style="text-align: center;">-</td>
645
+ <td style="text-align: center;">0.669</td>
646
+ </tr>
647
+ <tr>
648
+ <td style="text-align: left;">Lynx 8B*</td>
649
+ <td style="text-align: center;">-</td>
650
+ <td style="text-align: center;">-</td>
651
+ <td style="text-align: center;">-</td>
652
+ <td style="text-align: center;">0.857</td>
653
+ <td style="text-align: center;">-</td>
654
+ <td style="text-align: center;">-</td>
655
+ <td style="text-align: center;">-</td>
656
+ <td style="text-align: center;"><u>0.963</u></td>
657
+ <td style="text-align: center;">-</td>
658
+ <td style="text-align: center;">-</td>
659
+ <td style="text-align: center;">-</td>
660
+ <td style="text-align: center;"><u>0.852</u></td>
661
+ </tr>
662
+ <tr>
663
+ <td style="text-align: left;">Lynx 70B*</td>
664
+ <td style="text-align: center;">-</td>
665
+ <td style="text-align: center;">-</td>
666
+ <td style="text-align: center;">-</td>
667
+ <td style="text-align: center;"><strong>0.884</strong></td>
668
+ <td style="text-align: center;">-</td>
669
+ <td style="text-align: center;">-</td>
670
+ <td style="text-align: center;">-</td>
671
+ <td style="text-align: center;"><strong>0.975</strong></td>
672
+ <td style="text-align: center;">-</td>
673
+ <td style="text-align: center;">-</td>
674
+ <td style="text-align: center;">-</td>
675
+ <td style="text-align: center;"><strong>0.904</strong></td>
676
+ </tr>
677
+ </tbody>
678
+ </table>
679
+
680
+ \* _reported in model paper_
681
+ ### Feedback Bench
682
+
683
+ <table border="1" cellpadding="10" cellspacing="0" style="border-collapse: collapse; width: auto;">
684
+ <tr>
685
+ <th rowspan="2">Evaluator</th>
686
+ <th colspan="3" style="text-align:center;">Feedback bench</th>
687
+ </tr>
688
+ <tr>
689
+ <th style="text-align:center;">pearsonr</th>
690
+ <th style="text-align:center;">spearmanr</th>
691
+ <th style="text-align:center;">kendall-tau</th>
692
+ </tr>
693
+ <tr>
694
+ <td>microsoft/Phi-3.5-mini-instruct</td>
695
+ <td style="text-align:center;">0.710</td>
696
+ <td style="text-align:center;">0.721</td>
697
+ <td style="text-align:center;">0.622</td>
698
+ </tr>
699
+ <tr>
700
+ <td>prometheus-eval/prometheus-7b-v2.0*</td>
701
+ <td style="text-align:center;"><strong>0.878</strong></td>
702
+ <td style="text-align:center;"><strong>0.909</strong></td>
703
+ <td style="text-align:center;"><strong>0.773</strong></td>
704
+ </tr>
705
+ <tr>
706
+ <td>meta-llama/Meta-Llama-3.1-8B-Instruct</td>
707
+ <td style="text-align:center;">0.742</td>
708
+ <td style="text-align:center;">0.749</td>
709
+ <td style="text-align:center;">0.654</td>
710
+ </tr>
711
+ <tr>
712
+ <td>mistralai/Mistral-Nemo-Instruct-2407</td>
713
+ <td style="text-align:center;">0.720</td>
714
+ <td style="text-align:center;">0.724</td>
715
+ <td style="text-align:center;">0.632</td>
716
+ </tr>
717
+ <tr>
718
+ <td>gpt-4o-mini</td>
719
+ <td style="text-align:center;">0.797</td>
720
+ <td style="text-align:center;">0.795</td>
721
+ <td style="text-align:center;">0.701</td>
722
+ </tr>
723
+ <tr>
724
+ <td>flowaicom/Flow-Judge-v0.1</td>
725
+ <td style="text-align:center;"><u>0.787</u></td>
726
+ <td style="text-align:center;"><u>0.789</u></td>
727
+ <td style="text-align:center;"><u>0.688</u></td>
728
+ </tr>
729
+ </table>
730
+
731
+ \* _reported in model paper using reference answers_
732
+
733
+ ## License
734
+ We opted for the Apache 2.0 license for Flow Judge to provide the community with an open, small yet powerful LM evaluator. Our goal is to support the wider adoption of rigorous evaluation techniques in LLM system development, making them more accessible to practitioners and researchers.
735
+
736
+ ## Limitations and future work
737
+ Multilingual evaluation: Flow Judge has been fine-tuned exclusively on English data. While the foundation model (Phi-3.5-mini-instruct [17]) may possess multilingual capabilities, we have not systematically evaluated Flow Judge performance in non-English contexts. We plan to explore multi-lingual LM evaluators in the future.
738
+
739
+ Long context and structured Inputs: Our training dataset encompasses a wide range of custom metrics relevant to evaluating LLM systems. However, it does not include examples with long context inputs or structured data formats such as JSON, since these are harder to synthetically generate. This limitation may impact Flow Judge's performance when evaluating responses that require processing extensive context or parsing structured input. Extending our model’s capabilities to handle these input types represents an important area for future research.
740
+
741
+ Math and coding: The current version has not been trained on specific task domains such as arithmetic problems or code evaluation. As a result, its performance in these specialized areas may be limited. Future iterations of the model should address these gaps.
742
+
743
+ Domain-specific knowledge and complex multi-step evaluations: Flow Judge may struggle with highly specialized domain knowledge or proprietary data outside the training scope of its foundation model. Additionally, evaluation tasks requiring multi-step reasoning or complex logical processes may challenge the model's capabilities. We strongly recommend conducting meta-evaluations of the model performance before deploying it in specialized or highly complex evaluation scenarios.