forked from henrythe9th/AI-Crash-Course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoriginal_content.txt
More file actions
983 lines (983 loc) · 85.3 KB
/
original_content.txt
File metadata and controls
983 lines (983 loc) · 85.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
Judging LLM-as-a-Judge
with MT-Bench and Chatbot Arena
Lianmin Zheng1∗Wei-Lin Chiang1∗Ying Sheng4∗Siyuan Zhuang1
Zhanghao Wu1Yonghao Zhuang3Zi Lin2Zhuohan Li1Dacheng Li13
Eric P. Xing35Hao Zhang12Joseph E. Gonzalez1Ion Stoica1
1UC Berkeley2UC San Diego3Carnegie Mellon University4Stanford5MBZUAI
Abstract
Evaluating large language model (LLM) based chat assistants is challenging due to
their broad capabilities and the inadequacy of existing benchmarks in measuring
human preferences. To address this, we explore using strong LLMs as judges to
evaluate these models on more open-ended questions. We examine the usage and
limitations of LLM-as-a-judge, including position, verbosity, and self-enhancement
biases, as well as limited reasoning ability, and propose solutions to mitigate some
of them. We then verify the agreement between LLM judges and human preferences
by introducing two benchmarks: MT-bench, a multi-turn question set; and Chatbot
Arena, a crowdsourced battle platform. Our results reveal that strong LLM judges
like GPT-4 can match both controlled and crowdsourced human preferences well,
achieving over 80% agreement, the same level of agreement between humans.
Hence, LLM-as-a-judge is a scalable and explainable way to approximate human
preferences, which are otherwise very expensive to obtain. Additionally, we show
our benchmark and traditional benchmarks complement each other by evaluating
several variants of LLaMA and Vicuna. The MT-bench questions, 3K expert votes,
and 30K conversations with human preferences are publicly available at https:
//github.com/lm-sys/FastChat/tree/main/fastchat/llm_judge .
1 Introduction
There has been a proliferation of LLM-based chat assistants (chatbots) that leverage supervised
instruction fine-tuning and reinforcement learning with human feedback (RLHF) to unlock new
instruction following and conversational abilities [ 31,2,30,8,52,48,14]. Once aligned with
humans, these chat models are strongly preferred by human users over the original, unaligned models
on which they are built. However, the heightened user preference does not always correspond to
improved scores on traditional LLM benchmarks – benchmarks like MMLU [ 19] and HELM [ 24]
cannot effectively tell the difference between these aligned models and the base models. This
phenomenon suggests that there is a fundamental discrepancy between user perceptions of the
usefulness of chatbots and the criteria adopted by conventional benchmarks.
We argue that this discrepancy primarily arises due to existing evaluation that only measures LLMs’
core capability on a confined set of tasks (e.g., multi-choice knowledge or retrieval questions),
without adequately assessing its alignment with human preference in open-ended tasks, such as the
ability to accurately adhere to instructions in multi-turn dialogues. As a demonstration, we show
∗Joint first authors. This paper is an extended version of our earlier blog post [8].
37th Conference on Neural Information Processing Systems (NeurIPS 2023) Track on Datasets and Benchmarks.arXiv:2306.05685v4 [cs.CL] 24 Dec 2023
Question:If the FED buys bonds in the secondary market(A) the money supply will increase. (B) the money supply will decrease. (C) the money supply will not be affected. (D) the discount rate would be affected. Output the answer only.Assistant B:(A) the money supply will increase.Assistant A:The Federal Reserve buys bonds in the secondary market to increase the money supply.Follow-up Question: How does it affect my daily life? Give 3 examples.Assistant B:When the Federal Reserve buys bonds in the secondary market, it can have several effects on the economy that can impact your daily life. Here are three examples:1. Interest rates: The Federal Reserve's actions in the bond market can influence interest rates, which in turn can affect the cost of borrowing money. For example, if the Federal Reserve buys bonds and drives up demand for them, interest rates on things like mortgages, car loans, and credit cards may go up, making it more expensive to borrow money.2. Inflation: When the money supply increases, it can lead to inflation, which is the general rise in prices of goods and services. This can impact your daily life by making it more expensive to buy things like groceries, gas, and other necessities.3. Employment: The Federal Reserve's actions in the bond market can also have an impact on employment. For example, if the Federal Reserve's actions lead to economic growth and increased demand for goods and services, it can create more job opportunities and boost employment.Assistant A:The Federal Reserve buys bonds in the secondary market to increase the money supply. This affects your daily life by:1. Increasing the money supply.2. Increasing the money supply and lowering the discount rate.3. Increasing the money supply and lowering the discount rate and increasing the money supply.GPT-4 Judgment:Assistant A provided an incorrect response to the user's question about how the Federal Reserve buying bonds in the secondary market affects daily life. The answer given is repetitive and lacks clear examples of how the action impacts daily life.On the other hand, Assistant B provided a relevant and accurate response to the user's question about the Federal Reserve buying bonds. The answer includes three clear examples of how the action impacts daily life, such as interest rates, inflation, and employment.Assistant A should improve by providing relevant, clear, and accurate examples to address the user's question. Assistant B's response is more helpful, relevant, and detailed.Figure 1: Multi-turn dialogues between a user and two AI assistants—LLaMA-13B (Assistant A)
and Vicuna-13B (Assistant B)—initiated by a question from the MMLU benchmark and a follow-up
instruction. GPT-4 is then presented with the context to determine which assistant answers better.
conversation histories with two models on an MMLU question in Figure 1. The two models are
LLaMA-13B [ 39], a pre-trained base model without fine-tuning, and Vicuna-13B, our fine-tuned
model from LLaMA-13B on high-quality conversations (the training details are in Appendix E).
Despite the base LLaMA models showing competitive performance on conventional benchmarks
(Table 8), its answers to open-ended questions are often not preferred by humans. This misalignment
of conventional benchmarks underscores the core problem driving this paper: the need for a robust
and scalable automated method to evaluate LLM alignment with human preferences.
To study this, we introduce two benchmarks with human ratings as the primary evaluation metric:
MT-bench and Chatbot Arena. MT-bench is a series of open-ended questions that evaluate a chatbot’s
multi-turn conversational and instruction-following ability – two critical elements for human prefer-
ence. MT-bench is also carefully constructed to differentiate chatbots based on their core capabilities,
such as reasoning and math. In addition, we develop Chatbot Arena, a crowdsourced platform fea-
turing anonymous battles between chatbots in real-world scenarios – Users engage in conversations
with two chatbots at the same time and rate their responses based on personal preferences.
While human evaluation is the gold standard for assessing human preferences, it is exceptionally slow
and costly. To automate the evaluation, we explore the use of state-of-the-art LLMs, such as GPT-4,
as a surrogate for humans. Because these models are often trained with RLHF, they already exhibit
strong human alignment. We call this approach “LLM-as-a-judge” . This approach has been tried in
our earlier blog post [ 8] and other concurrent or follow-up work [ 5,29,14,12,52,18,33,40,7,43].
However, there has not been a systematic study of this approach.
In this paper, we study the LLM-as-a-judge approach by comparing it to the gold standard of
human evaluation. We examine several potential limitations of the LLM-as-a-judge approach
including position bias, verbosity bias, self-enhancement bias, and limited reasoning ability. We
show that some of the biases are minor or can be mitigated. Once addressed, our results from 3K
controlled expert votes and 3K crowdsourced human votes in the wild verify that GPT-4 judge match
2
human evaluations at an agreement rate exceeding 80%, achieving the same level of human-human
agreement (§4.2, Table 4). Consequently, this suggests LLM-as-a-judge is a scalable method to
swiftly evaluate human preference, serving as a promising alternative to traditional human evaluations.
This paper makes two contributions: (1) a systematic study of LLM-as-a-judge; and (2) human
preference datasets with high-quality questions and diverse user interactions from MT-bench and
Chatbot Arena. In addition, we argue for the adoption of a hybrid evaluation framework for future
LLM benchmarks: by combining the existing capability-based benchmarks and the new preference-
based benchmarks with LLM-as-a-judge, one can swiftly and automatically evaluate both the core
capabilities and human alignment of models. We publicly release 80 MT-bench questions, 3K expert
votes, and 30K conversations with human preferences for future study.
Table 1: Sample multi-turn questions in MT-bench.
Category Sample Questions
Writing1st Turn Compose an engaging travel blog post about a recent trip to Hawaii, highlighting
cultural experiences and must-see attractions.
2nd Turn Rewrite your previous response. Start every sentence with the letter A.
Math1st Turn Given that f(x) = 4 x3−9x−14, find the value of f(2).
2nd Turn Find xsuch that f(x) = 0 .
Knowledge1st Turn Provide insights into the correlation between economic indicators such as GDP,
inflation, and unemployment rates. Explain how fiscal and monetary policies ...
2nd Turn Now, explain them again like I’m five.
2 MT-Bench and Chatbot Arena
2.1 Motivation
With the recent advances of LLMs, LLM-based assistants start to exhibit artificial general intelligence
across diverse tasks, from writing and chatting to coding [ 5,30,1,37]. However, evaluating their
broad capabilities also becomes more challenging. Despite the availability of numerous benchmarks
for language models, they primarily focus on evaluating models on closed-ended questions with short
responses. Given that these chat assistants can now precisely follow user instructions in multi-turn
dialogues and answer open-ended questions in a zero-shot manner, current benchmarks are inadequate
for assessing such capabilities. Existing benchmarks mostly fall into the following three categories.
•Core-knowledge benchmarks , including MMLU [ 19], HellaSwag [ 50], ARC [ 9], Wino-
Grande [ 36], HumanEval [ 6], GSM-8K [ 10], and AGIEval [ 51], evaluate the core capabilities of
pre-trained LLMs using zero-shot and few-shot benchmark sets. They typically require LLMs to
generate a short, specific answer to benchmark questions that can be automatically validated.
•Instruction-following benchmarks , such as Flan [ 27,46], Self-instruct [ 44], NaturalInstruc-
tions [ 28], Super-NaturalInstructions [ 45], expand to slightly more open-ended questions and
more diverse tasks and are used to evaluate LLMs after instruction fine-tuning.
•Conversational benchmarks , like CoQA [ 35], MMDialog [ 15] and OpenAssistant [ 23], are
closest to our intended use cases. However, the diversity and complexity of their questions often
fall short in challenging the capabilities of the latest chatbots.
While largely overlooked by existing LLM benchmarks, human preferences serve as a direct measure
of a chatbot’s utility in open-ended, multi-turn human-AI interactions. To bridge this gap, we
introduce two novel benchmarks expressly tailored to assess human preferences. Simultaneously,
these benchmarks are designed to distinguish the core capabilities of state-of-the-art models.
2.2 MT-Bench
We create MT-bench, a benchmark consisting of 80 high-quality multi-turn questions. MT-bench is
designed to test multi-turn conversation and instruction-following ability, covering common use cases
and focusing on challenging questions to differentiate models. We identify 8 common categories
of user prompts to guide its construction: writing, roleplay, extraction, reasoning, math, coding,
3
knowledge I (STEM), and knowledge II (humanities/social science). For each category, we then
manually designed 10 multi-turn questions. Table 1 lists several sample questions.
2.3 Chatbot Arena
Our second approach is Chatbot Arena, a crowdsourcing benchmark platform featuring anonymous
battles. On this platform, users can interact with two anonymous models simultaneously, posing
the same question to both. They vote for which model provides the preferred response, with the
identities of the models disclosed post-voting. After running Chatbot Arena for one month, we have
collected around 30K votes. Since the platform does not use pre-defined questions, it allows gathering
a wide range of unrestricted use cases and votes in the wild, based on the diverse interests of users. A
screenshot of the platform can be found at Appendix C.2.
3 LLM as a Judge
While our initial evaluations using MT-bench and Chatbot Arena rely on human ratings, collecting
human preferences can be costly and laborious [ 44,38,31,2,13]. To overcome this, we aim to
develop a more scalable and automated approach. Given that most questions in MT-bench and Chatbot
Arena are open-ended without reference answers, devising a rule-based program to assess the outputs
is extremely challenging. Traditional evaluation metrics based on the similarity between outputs and
reference answers (e.g., ROUGE [25], BLEU [32]) are also ineffective for these questions.
As LLMs continue to improve, they show potential in replacing human annotators in many tasks [ 17,
20]. Specifically, we are interested in whether LLMs can effectively evaluate the responses of chat
assistants and match human preferences. Next, we discuss the use and limitations of LLM-as-a-judge.
3.1 Types of LLM-as-a-Judge
We propose 3 LLM-as-a-judge variations. They can be implemented independently or in combination:
•Pairwise comparison . An LLM judge is presented with a question and two answers, and tasked
to determine which one is better or declare a tie. The prompt used is given in Figure 5 (Appendix).
•Single answer grading . Alternatively, an LLM judge is asked to directly assign a score to a
single answer. The prompt used for this scenario is in Figure 6 (Appendix).
•Reference-guided grading . In certain cases, it may be beneficial to provide a reference solution
if applicable. An example prompt we use for grading math problems is in Figure 8 (Appendix).
These methods have different pros and cons. For example, the pairwise comparison may lack
scalability when the number of players increases, given that the number of possible pairs grows
quadratically; single answer grading may be unable to discern subtle differences between specific
pairs, and its results may become unstable, as absolute scores are likely to fluctuate more than relative
pairwise results if the judge model changes.
3.2 Advantages of LLM-as-a-Judge
LLM-as-a-judge offers two key benefits: scalability andexplainability . It reduces the need for human
involvement, enabling scalable benchmarks and fast iterations. Additionally, LLM judges provide
not only scores but also explanations, making their outputs interpretable, as shown in Figure 1.
3.3 Limitations of LLM-as-a-Judge
We identify certain biases and limitations of LLM judges. However, we will also present solutions
later and show the agreement between LLM judges and humans is high despite these limitations.
Position bias is when an LLM exhibits a propensity to favor certain positions over others. This
bias is not unique to our context and has been seen in human decision-making [ 3,34] and other ML
domains [22, 41].
Figure 11 (Appendix) shows an example of position bias. GPT-4 is tasked to evaluate two responses
from GPT-3.5 and Vicuna-13B to an open-ended question. When GPT-3.5’s answer is positioned
4
Table 2: Position bias of different LLM judges. Consistency is the percentage of cases where a
judge gives consistent results when swapping the order of two assistants. “Biased toward first” is the
percentage of cases when a judge favors the first answer. “Error” indicates wrong output formats.
The two largest numbers in each column are in bold.
Judge Prompt Consistency Biased toward first Biased toward second Error
Claude-v1default 23.8% 75.0% 0.0% 1.2%
rename 56.2% 11.2% 28.7% 3.8%
GPT-3.5default 46.2% 50.0% 1.2% 2.5%
rename 51.2% 38.8% 6.2% 3.8%
GPT-4default 65.0% 30.0% 5.0% 0.0%
rename 66.2% 28.7% 5.0% 0.0%
Table 3: Failure rate under “repetitive list” at-
tack for different LLM judges on 23 answers.
Judge Claude-v1 GPT-3.5 GPT-4
Failure rate 91.3% 91.3% 8.7%Table 4: Judge failure rate on 10 math questions
with different prompts. We test LLaMA-13B vs.
Vicuna-13B and swap positions. A failure means
when GPT-4 says an incorrect answer is correct.
Default CoT Reference
Failure rate 14/20 6/20 3/20
first, GPT-4 considers GPT-3.5’s answer more detailed and superior. However, upon switching the
positions of the two responses, GPT-4’s judgement flips, favoring Vicuna’s answer.
To analyze the position bias, we construct two similar answers to each first-turn question in MT-bench
by calling GPT-3.5 twice with a temperature of 0.7. We then try three LLMs with two different
prompts: “default” is our default prompt in Figure 5 (Appendix). “rename” renames the assistants in
our default prompt to see whether the bias is on positions or names. As in Table 2, we found all of
them exhibit strong position bias. Most LLM judges favor the first position. Claude-v1 also shows a
name bias which makes it favors "Assistant A", as illustrated by the "rename" prompt. The position
bias can be very significant. Only GPT-4 outputs consistent results in more than 60% of cases.
Note that this test is challenging because the answers are very similar and occasionally indistinguish-
able even to humans. We will show that position bias is less prominent in some cases in Appendix D.1.
As for the origin of this bias, we suspect that it could be rooted in the training data or inherent to the
left-to-right architecture of causal transformers, but leave a deeper study as future work.
Verbosity bias is when an LLM judge favors longer, verbose responses, even if they are not as clear,
high-quality, or accurate as shorter alternatives.
To examine this bias, we design a “repetitive list” attack with model answers from MT-bench. We
first select 23 model answers from MT-bench that contain a numbered list. We then make them
unnecessarily verbose by asking GPT-4 to rephrase the list without adding any new information and
insert the rephrased new list to the beginning of the original list. For example, if the original response
contains 5 items, then the new response will contain 10 items but the first 5 items are rephrased from
the original 5 items. An example is shown in Figure 12 (Appendix). We define the attack is successful
if an LLM judge thinks the new response is better than the old response. Table 3 shows the failure
rate of LLM judges under this attack, demonstrating that all LLMs may be prone to verbosity bias
though GPT-4 defends significantly better than others. As a calibration, we find LLM judges are
able to correctly judge identical answers (i.e., they always return a tie for two identical answers) but
cannot pass the more advanced “repetitive list” attack.
Self-enhancement bias. We adopt the term “self-enhancement bias” from social cognition litera-
ture [4] to describe the effect that LLM judges may favor the answers generated by themselves.
We examine this effect statistically. Figure 3(b) shows the win rate (w/o tie) of six models under
different LLM judges and humans. Compared to humans, we do observe that some judges favor
certain models. For example, GPT-4 favors itself with a 10% higher win rate; Claude-v1 favors itself
with a 25% higher win rate. However, they also favor other models and GPT-3.5 does not favor itself.
Due to limited data and small differences, our study cannot determine whether the models exhibit
a self-enhancement bias. Conducting a controlled study is challenging because we cannot easily
rephrase a response to fit the style of another model without changing the quality.
5
Limited capability in grading math and reasoning questions. LLMs are known to have limited
math and reasoning capability [ 10], which results in its failure of grading such questions because they
do not know the correct answers. However, what is more intriguing is that it also shows limitations in
grading basic math problems which it is capable of solving. For instance, in Figure 13 (Appendix),
we present an example of an elementary math question in which GPT-4 makes an incorrect judgment.
It’s worth noting that although GPT-4 can solve the problem (when asked separately), it was misled
by the provided answers, ultimately resulting in incorrect judgment. This pattern can also be seen in
a reasoning question example in Figure 14 (Appendix). Both GPT-3.5 and Claude-v1 show a similar
weakness. In Section 3.4, we will introduce a reference-guided method to mitigate such issues.
3.4 Addressing limitations
We present a few methods to address position bias and the limited grading ability for math questions.
Swapping positions. The position bias can be addressed by simple solutions. A conservative
approach is to call a judge twice by swapping the order of two answers and only declare a win when
an answer is preferred in both orders. If the results are inconsistent after swapping, we can call it a
tie. Another more aggressive approach is to assign positions randomly, which can be effective at a
large scale with the correct expectations. In the following experiments, we use the conservative one.
Few-shot judge. We assess whether few-shot examples can improve consistency in the position bias
benchmark. We select three good judgment examples using MT-bench-like questions, GPT-3.5 and
Vicuna for generating answers, and GPT-4 for generating judgments. The examples cover three cases:
A is better, B is better, and tie. As shown in Table 12 (Appendix), the few-shot judge can significantly
increase the consistency of GPT-4 from 65.0% to 77.5%. However, high consistency may not imply
high accuracy and we are not sure whether the few-shot examples will introduce new biases. Besides,
the longer prompts make API calls 4×more expensive. We use the zero-shot prompt by default in
our following experiments but leave an additional study in Appendix D.2.
Chain-of-thought and reference-guided judge. In Section 3.3, we have shown LLM’s limited
capability in grading math and reasoning questions. We propose two simple methods to mitigate
this issue: chain-of-thought judge and reference-guided judge. Chain-of-thought is a widely used
technique to improve LLM’s reasoning capability [ 47]. We propose a similar technique to prompt
an LLM judge to begin with answering the question independently and then start grading. Detailed
prompt in Figure 7 (Appendix). However, even with the CoT prompt, we find that in many cases
LLM makes exactly the same mistake as the given answers in its problem-solving process (See
example in Figure 15 (Appendix), suggesting that LLM judge may still be misled by the context.
Hence, we propose a reference-guided method, in which we first generate LLM judge’s answer
independently, and then display it as a reference answer in the judge prompt. In Table 4, we see a
significant improvement in failure rate (from 70% to 15%) over the default prompt.
Fine-tuning a judge model. We try fine-tuning a Vicuna-13B on arena data to act as a judge and
show some promising preliminary results in Appendix F.
3.5 Multi-turn judge
In MT-bench, every question involves two turns to evaluate conversational abilities. Therefore, when
comparing two assistants, it becomes necessary to present a total of two questions and four responses,
complicating the prompt design. We explore two possible designs, (1) breaking the two turns into two
prompts or (2) displaying complete conversations in a single prompt. Our finding is the former one
can cause the LLM judge struggling to locate the assistant’s previous response precisely. We illustrate
a case in Figure 16 (Appendix) where GPT-4 makes an inaccurate judgment due to a faulty reference.
This suggests the necessity of displaying a complete conversation to enable the LLM judge to better
grasp the context. We then consider the alternative design that presents two full conversations in a
single prompt in which we ask the LLM judge to focus on the second question (Figure 9 (Appendix)).
This approach has been found to significantly alleviate the aforementioned referencing issue.
6
4 Agreement Evaluation
We study the agreement between different LLM judges and humans on MT-bench and Chatbot
Arena datasets. On MT-bench, we also study the agreement among humans. MT-bench represents a
small-scale study with controlled human evaluation, while Chatbot Arena represents a larger-scale
study with crowdsourced human evaluation in the wild.
4.1 Setup
MT-bench. We generate answers for all 80 questions with 6 models: GPT-4, GPT-3.5, Claude-V1,
Vicuna-13B, Alpaca-13B [ 38], and LLaMA-13B [ 39]. We then use 2 kinds of judges: LLM judges
and 58 expert-level human labelers. The labelers are mostly graduate students so they are considered
experts and more skilled than average crowd workers. We let LLM judges evaluate all pairs and let
each human evaluate at least 20 random multi-turn questions. This resulted in around 3K votes for all
questions. The detailed data collection process is in Appendix C.
Chatbot Arena. We randomly sample 3K single-turn votes from 30K arena data, which covers
models including GPT-4, GPT-3.5, Claude, Vicuna-7B/13B, Koala-13B [ 16], Alpaca-13B, LLaMA-
13B, and Dolly-12B. We use two kinds of judges: LLM judges and collected crowd judges (2114
unique IPs).
Metrics. We define the agreement between two types of judges as the probability of randomly
selected individuals (but not identical) of each type agreeing on a randomly selected question. See
more explanation in Appendix D.3. Average win rate is the average of win rates against all other
players. These metrics can be computed with or without including tie votes.
4.2 High agreement between GPT-4 and humans
We compute agreement on MT-bench data. In Table 5, GPT-4 with both pairwise comparison and
single answer grading show very high agreements with human experts. The agreement under setup S2
(w/o tie) between GPT-4 and humans reaches 85%, which is even higher than the agreement among
humans (81%). This means GPT-4’s judgments closely align with the majority of humans. We also
show that GPT-4’s judgments may help humans make better judgments. During our data collection,
when a human’s choice deviated from GPT-4, we presented GPT-4’s judgments to humans and ask
if they are reasonable (details in Appendix C.1). Despite different views, humans deemed GPT-4’s
judgments reasonable in 75% of cases and are even willing to change their choices in 34% of cases.
The data from Arena shows a similar trend, as illustrated by Table 6. Comparing GPT-4 and other
LLM judges, we find they reach a similar non-tie agreement ratio between humans but the number
of non-tied votes from GPT-4 is much larger. This means that GPT-4 is more affirmative and less
suffered from position bias but other models also perform well when they give an affirmative answer.
In both tables, GPT-4 with single-answer grading matches both pairwise GPT-4 and human prefer-
ences very well. This means GPT-4 has a relatively stable internal rubric. Although it may sometimes
perform slightly worse than pairwise comparison and give more tie votes, it is a more scalable method.
We then perform a breakdown analysis by computing agreement on different model pairs and
categories. We only include non-tied votes. In Figure 2, we observe the agreement between GPT-4
and human progressively increases in line with the performance disparity of the model pairs (i.e.,
larger win rate difference), from 70% to nearly 100%. This suggests that GPT-4 aligns with humans
better when significant performance differences exist between the models.
GPT-4Claude GPT-3.5
Vicuna-13B Alpaca-13B LLaMA-13B
(a) All votes, first turn0.00.20.40.60.81.0
GPT-4GPT-3.5 Claude
Vicuna-13B Alpaca-13B LLaMA-13B
(b) Non-tied votes, first turn0.00.20.40.60.81.0
GPT-4Claude GPT-3.5
Vicuna-13B Alpaca-13B LLaMA-13B
(c) All votes, second turn0.00.20.40.60.81.0
GPT-4Claude GPT-3.5
Vicuna-13B Alpaca-13B LLaMA-13B
(d) Non-tied votes, second turn0.00.20.40.60.81.0
Win rateGPT-4 Judge GPT-3.5 Judge Claude Judge Human Human (first turn)
Figure 3: Average win rate of six models under different judges on MT-bench.
7
Table 5: Agreement between two types of judges on MT-bench. “G4-Pair” and “G4-Single” denote
GPT-4 with pairwise comparison and single-answer grading respectively. The single-answer grading
can be converted into pairwise comparison results for calculating the agreement. We report two
setups: “S1” includes non-tie, tie, and inconsistent (due to position bias) votes and counts inconsistent
as tie; “S2” only includes non-tie votes. The agreement between two random judges under each setup
is denoted as “R=”. The top value in each cell is the agreement, and the bottom gray value is #votes.
Setup S1 (R = 33%) S2 (R = 50%)
Judge G4-Single Human G4-Single Human
G4-Pair70%
113866%
134397%
66285%
859
G4-Single -60%
1280 -85%
739
Human -63%
721 -81%
479
(a) First TurnSetup S1 (R = 33%) S2 (R = 50%)
Judge G4-Single Human G4-Single Human
G4-Pair70%
116166%
132595%
72785%
864
G4-Single -59%
1285 -84%
776
Human -67%
707 -82%
474
(b) Second Turn
Table 6: Agreement between two types of judges on Chatbot
Arena. “G4-S” denotes GPT-4 with single-answer grading.
“G4”, “G3.5” and “C” denote GPT-4, GPT-3.5, and Claude
with pairwise comparison, respectively. “H” denotes human.
The remaining of table follows the same format as Table 5.
Setup S1 (Random = 33%) S2 (Random = 50%)
Judge G4-S G3.5 C H G4-S G3.5 C H
G472%
296866%
306166%
306264%
306695%
196794%
178895%
171287%
1944
G4-S -60%
296462%
296460%
2968 -89%
159391%
153885%
1761
G3.5 - -68%
305754%
3061 - -96%
149783%
1567
C - - -53%
3062 - - -84%
1475
0.0 0.5 1.0
Win rate difference0.70.80.91.0AgreementFigure 2: Agreement and win rate dif-
ference. Each point corresponds to a
model pair and counts only the non-tie
votes between the two models. The x-
axis value is the win rate difference be-
tween the two models. The y-axis value
is the GPT-4 and human agreement.
GPT-4 Claude GPT-3.5
Vicuna-13BVicuna-7B Koala-13BAlpaca-13BDolly-12BLLaMA-13B
(a) All votes0.00.20.40.60.81.0
GPT-4 Claude GPT-3.5
Vicuna-13BVicuna-7B Koala-13BAlpaca-13BDolly-12BLLaMA-13B
(b) Non-tied votes0.00.20.40.60.81.0
Win rateGPT-4 Judge GPT-3.5 Judge Human GPT-4-Single Judge
Figure 4: Average win rate of nine models under different judges on Chatbot Arena.
Table 7: Category-wise win rate of models.
Model Writing Roleplay Reasoning Math Coding Extraction STEM Humanities
GPT-4 61.2% 67.9% 49.3% 66.1% 56.3% 66.2% 76.6% 72.2%
GPT-3.5 50.9% 60.6% 32.6% 63.8% 55.0% 48.8% 52.8% 53.8%
Vicuna-13B 39.7% 39.2% 20.1% 18.0% 36.9% 29.2% 47.0% 47.5%
LLaMA-13B 15.1% 15.1% 7.8% 7.5% 2.1% 9.3% 6.8% 10.1%
4.3 Win rates under different judges
We plot the average win rate of models under different judges on MT-bench and Chatbot Arena
in Figure 3 and Figure 4, respectively. The win rate curves from LLM judges closely match the
curves from humans. On MT-bench second turn, proprietary models like Claude and GPT-3.5 are
more preferred by the humans compared to the first turn, meaning that a multi-turn benchmark can
better differentiate some advanced abilities of models. We also list the per-category win rate of
8
Table 8: Evaluation results of several model variants.
Model #Training Token MMLU (5-shot) TruthfulQA (0-shot) MT-Bench Score (GPT-4)
LLaMA-7B 1T 35.2 0.22 2.74
LLaMA-13B 1T 47.0 0.26 2.61
Alpaca-7B 4.4M 40.1 0.26 4.54
Alpaca-13B 4.4M 48.1 0.30 4.53
Vicuna-7B (selected) 4.8M 37.3 0.32 5.95
Vicuna-7B (single) 184M 44.1 0.30 6.04
Vicuna-7B (all) 370M 47.1 0.32 6.00
Vicuna-13B (all) 370M 52.1 0.35 6.39
GPT-3.5 - 70.0 - 7.94
GPT-4 - 86.4 - 8.99
representative models in Table 7 to show how MT-bench differentiates models, in which we see GPT-4
is significantly better than others. Vicuna-13B is noticeably worse than GPT-3.5/4 in reasoning, math,
and coding categories. Note that in math/coding category, GPT-3.5 and GPT-4 have similar overall
win-rate because they both failed to answer some hard questions, but GPT-4 is still significantly better
than GPT-3 in the direct pairwise comparison or single-answer grading. Please see a performance
breakdown of MT-bench score for each category in Appendix D.4.
5 Human Preference Benchmark and Standardized Benchmark
Human preference benchmarks such as MT-bench and Chatbot Arena serve as valuable additions
to the current standardized LLM benchmarks. They focus on different aspects of a model and the
recommended way is to comprehensively evaluate models with both kinds of benchmarks.
We evaluate several model variants derived from LLaMA on MMLU [ 19], Truthful QA [ 26] (MC1),
and MT-bench (GPT-4 judge). The training details are in Appendix E. Since we have shown that
GPT-4 single-answer grading also performs well in Section 4.2, we use GPT-4 single-answer grading
for MT-bench in favor of its scalability and simplicity. We ask GPT-4 to give a score for each turn
on a scale of 10 by using our prompt templates (Figure 6, Figure 10) and report an average score of
160 = 80 ×2turns. Table 8 shows the results. We find that fine-tuning on high-quality dialog datasets
(i.e., ShareGPT) can consistently improve the model performance on MMLU and the improvement
scales with fine-tuning data size. On the other hand, a small high-quality conversation dataset can
quickly teach the model a style preferred by GPT-4 (or approximately human) but cannot improve
MMLU significantly, as shown by the Vicuna-7B (selected) which is trained with only 4.8M tokens
or 3K conversations. In Table 8, no single benchmark can determine model quality, meaning that a
comprehensive evaluation is needed. Our results indicate that using LLM-as-a-judge to approximate
human preferences is highly feasible and could become a new standard in future benchmarks. We
are also hosting a regularly updated leaderboard with more models2. Notably, DynaBench [ 21], a
research platform dedicated to dynamic data collection and benchmarking, aligns with our spirit.
DynaBench addresses the challenges posed by static standardized benchmarks, such as saturation and
overfitting, by emphasizing dynamic data with human-in-the-loop. Our LLM-as-a-judge approach
can automate and scale platforms of this nature.
6 Discussion
Limitations. This paper emphasizes helpfulness but largely neglects safety. Honesty and harm-
lessness are crucial for a chat assistant as well [ 2]. We anticipate similar methods can be used to
evaluate these metrics by modifying the default prompt. Additionally, within helpfulness, there
are multiple dimensions like accuracy, relevance, and creativity, but they are all combined into a
single metric in this study. A more comprehensive evaluation can be developed by analyzing and
separating these dimensions. We propose preliminary solutions to address the limitations and biases
of LLM-as-a-judge in Section 3.4, but we anticipate more advanced methods can be developed.
Data collection and release. Appendix C describes the detailed data collection and release processes,
which include the instructions we give to users, the screenshots of the data collection interface, the
information about participated users, and the content of the released data.
2https://huggingface.co/spaces/lmsys/chatbot-arena-leaderboard
9
Societal impacts. The societal impact of this study is multi-faceted. Our evaluation methods can
help enhance chatbot quality and user experiences. However, addressing biases in these methods is
crucial. Our dataset enables better studies of human preferences and model behavior. Advanced chat
assistants may replace certain human tasks, resulting in job displacements and new opportunities.
Future directions. 1) Benchmarking chatbots at scale with a broader set of categories 2) Open-source
LLM judge aligned with human preference 3) Enhancing open models’ math/reasoning capability.
7 Conclusion
In this paper, we propose LLM-as-a-judge for chatbot evaluation and systematically examine its
efficacy using human preference data from 58 experts on MT-bench, as well as thousands of crowd-
users on Chatbot Arena. Our results reveal that strong LLMs can achieve an agreement rate of over
80%, on par with the level of agreement among human experts, establishing a foundation for an
LLM-based evaluation framework.
Acknowledgement
This project is partly supported by gifts from Anyscale, Astronomer, Google, IBM, Intel, Lacework,
Microsoft, MBZUAI, Samsung SDS, Uber, and VMware. Lianmin Zheng is supported by a Meta
Ph.D. Fellowship. We extend our thanks to Xinyang Geng, Hao Liu, Eric Wallace, Xuecheng Li,
Tianyi Zhang, Qirong Ho, and Kevin Lin for their insightful discussions.
References
[1]Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos,
Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. Palm 2 technical report.
arXiv preprint arXiv:2305.10403 , 2023.
[2]Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn
Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. Training a helpful and harmless
assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862 ,
2022.
[3]Niels J Blunch. Position bias in multiple-choice questions. Journal of Marketing Research ,
21(2):216–220, 1984.
[4]Jonathon D Brown. Evaluations of self and others: Self-enhancement biases in social judgments.
Social cognition , 4(4):353–376, 1986.
[5]Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece
Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. Sparks of artificial general
intelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712 , 2023.
[6]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared
Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large
language models trained on code. arXiv preprint arXiv:2107.03374 , 2021.
[7]Cheng-Han Chiang and Hung-yi Lee. Can large language models be an alternative to human
evaluations? arXiv preprint arXiv:2305.01937 , 2023.
[8]Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng,
Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, Ion Stoica, and Eric P. Xing. Vicuna:
An open-source chatbot impressing gpt-4 with 90%* chatgpt quality, March 2023.
[9]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick,
and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning
challenge. arXiv preprint arXiv:1803.05457 , 2018.
[10] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser,
Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to
solve math word problems. arXiv preprint arXiv:2110.14168 , 2021.
10
[11] Tri Dao, Dan Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. Flashattention: Fast and
memory-efficient exact attention with io-awareness. Advances in Neural Information Processing
Systems , 35:16344–16359, 2022.
[12] Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient
finetuning of quantized llms. arXiv preprint arXiv:2305.14314 , 2023.
[13] Shizhe Diao, Rui Pan, Hanze Dong, Ka Shun Shum, Jipeng Zhang, Wei Xiong, and Tong Zhang.
Lmflow: An extensible toolkit for finetuning and inference of large foundation models. arXiv
preprint arXiv:2306.12420 , 2023.
[14] Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos
Guestrin, Percy Liang, and Tatsunori B Hashimoto. Alpacafarm: A simulation framework for
methods that learn from human feedback. arXiv preprint arXiv:2305.14387 , 2023.
[15] Jiazhan Feng, Qingfeng Sun, Can Xu, Pu Zhao, Yaming Yang, Chongyang Tao, Dongyan Zhao,
and Qingwei Lin. Mmdialog: A large-scale multi-turn dialogue dataset towards multi-modal
open-domain conversation. arXiv preprint arXiv:2211.05719 , 2022.
[16] Xinyang Geng, Arnav Gudibande, Hao Liu, Eric Wallace, Pieter Abbeel, Sergey Levine, and
Dawn Song. Koala: A dialogue model for academic research. Blog post, April 2023.
[17] Fabrizio Gilardi, Meysam Alizadeh, and Maël Kubli. Chatgpt outperforms crowd-workers for
text-annotation tasks. arXiv preprint arXiv:2303.15056 , 2023.
[18] Arnav Gudibande, Eric Wallace, Charlie Snell, Xinyang Geng, Hao Liu, Pieter Abbeel, Sergey
Levine, and Dawn Song. The false promise of imitating proprietary llms. arXiv preprint
arXiv:2305.15717 , 2023.
[19] Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and
Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint
arXiv:2009.03300 , 2020.
[20] Fan Huang, Haewoon Kwak, and Jisun An. Is chatgpt better than human annotators? potential
and limitations of chatgpt in explaining implicit hate speech. arXiv preprint arXiv:2302.07736 ,
2023.
[21] Douwe Kiela, Max Bartolo, Yixin Nie, Divyansh Kaushik, Atticus Geiger, Zhengxuan Wu,
Bertie Vidgen, Grusha Prasad, Amanpreet Singh, Pratik Ringshia, et al. Dynabench: Rethinking
benchmarking in nlp. In Proceedings of the 2021 Conference of the North American Chapter
of the Association for Computational Linguistics: Human Language Technologies , pages
4110–4124, 2021.
[22] Miyoung Ko, Jinhyuk Lee, Hyunjae Kim, Gangwoo Kim, and Jaewoo Kang. Look at the first
sentence: Position bias in question answering. arXiv preprint arXiv:2004.14602 , 2020.
[23] Andreas Köpf, Yannic Kilcher, Dimitri von Rütte, Sotiris Anagnostidis, Zhi-Rui Tam, Keith
Stevens, Abdullah Barhoum, Nguyen Minh Duc, Oliver Stanley, Richárd Nagyfi, et al. Ope-
nassistant conversations–democratizing large language model alignment. arXiv preprint
arXiv:2304.07327 , 2023.
[24] Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga,
Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. Holistic evaluation of
language models. arXiv preprint arXiv:2211.09110 , 2022.
[25] Chin-Yew Lin. Rouge: A package for automatic evaluation of summaries. In Text summarization
branches out , pages 74–81, 2004.
[26] Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic
human falsehoods. arXiv preprint arXiv:2109.07958 , 2021.
[27] Shayne Longpre, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou,
Quoc V Le, Barret Zoph, Jason Wei, et al. The flan collection: Designing data and methods for
effective instruction tuning. arXiv preprint arXiv:2301.13688 , 2023.
[28] Swaroop Mishra, Daniel Khashabi, Chitta Baral, and Hannaneh Hajishirzi. Cross-task general-
ization via natural language crowdsourcing instructions. In ACL, 2022.
[29] OpenAI. Evals is a framework for evaluating llms and llm systems, and an open-source registry
of benchmarks. https://github.com/openai/evals .
[30] OpenAI. Gpt-4 technical report, 2023.
11
[31] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin,
Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to
follow instructions with human feedback. Advances in Neural Information Processing Systems ,
35:27730–27744, 2022.
[32] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic
evaluation of machine translation. In Proceedings of the 40th annual meeting of the Association
for Computational Linguistics , pages 311–318, 2002.
[33] Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. Instruction tuning
with gpt-4. arXiv preprint arXiv:2304.03277 , 2023.
[34] Priya Raghubir and Ana Valenzuela. Center-of-inattention: Position biases in decision-making.
Organizational Behavior and Human Decision Processes , 99(1):66–80, 2006.
[35] Siva Reddy, Danqi Chen, and Christopher D Manning. Coqa: A conversational question
answering challenge. Transactions of the Association for Computational Linguistics , 7:249–266,
2019.
[36] Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An
adversarial winograd schema challenge at scale. Communications of the ACM , 64(9):99–106,
2021.
[37] Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid,
Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al.
Beyond the imitation game: Quantifying and extrapolating the capabilities of language models.
arXiv preprint arXiv:2206.04615 , 2022.
[38] Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy
Liang, and Tatsunori B. Hashimoto. Stanford alpaca: An instruction-following llama model.
https://github.com/tatsu-lab/stanford_alpaca , 2023.
[39] Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timo-
thée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open
and efficient foundation language models. arXiv preprint arXiv:2302.13971 , 2023.
[40] Peiyi Wang, Lei Li, Liang Chen, Dawei Zhu, Binghuai Lin, Yunbo Cao, Qi Liu, Tianyu Liu, and
Zhifang Sui. Large language models are not fair evaluators. arXiv preprint arXiv:2305.17926 ,
2023.
[41] Xuanhui Wang, Nadav Golbandi, Michael Bendersky, Donald Metzler, and Marc Najork.
Position bias estimation for unbiased learning to rank in personal search. In Proceedings of
the Eleventh ACM International Conference on Web Search and Data Mining , pages 610–618,
2018.
[42] Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya
Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, and Yue Zhang. Pandalm: An
automatic evaluation benchmark for llm instruction tuning optimization, 2023.
[43] Yizhong Wang, Hamish Ivison, Pradeep Dasigi, Jack Hessel, Tushar Khot, Khyathi Raghavi
Chandu, David Wadden, Kelsey MacMillan, Noah A Smith, Iz Beltagy, et al. How far can camels
go? exploring the state of instruction tuning on open resources. arXiv preprint arXiv:2306.04751 ,
2023.
[44] Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi,
and Hannaneh Hajishirzi. Self-instruct: Aligning language model with self generated instruc-
tions, 2022.
[45] Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei,
Anjana Arunkumar, Arjun Ashok, Arut Selvan Dhanasekaran, Atharva Naik, David Stap, et al.
Super-naturalinstructions:generalization via declarative instructions on 1600+ tasks. In EMNLP ,
2022.
[46] Jason Wei, Maarten Bosma, Vincent Y Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan
Du, Andrew M Dai, and Quoc V Le. Finetuned language models are zero-shot learners. arXiv
preprint arXiv:2109.01652 , 2021.
[47] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny
Zhou. Chain of thought prompting elicits reasoning in large language models. arXiv preprint
arXiv:2201.11903 , 2022.
12
[48] Can Xu, Qingfeng Sun, Kai Zheng, Xiubo Geng, Pu Zhao, Jiazhan Feng, Chongyang Tao, and
Daxin Jiang. Wizardlm: Empowering large language models to follow complex instructions.
arXiv preprint arXiv:2304.12244 , 2023.
[49] Zongheng Yang, Zhanghao Wu, Michael Luo, Wei-Lin Chiang, Romil Bhardwaj, Woosuk Kwon,
Siyuan Zhuang, Frank Sifei Luan, Gautam Mittal, Scott Shenker, and Ion Stoica. SkyPilot:
An intercloud broker for sky computing. In 20th USENIX Symposium on Networked Systems
Design and Implementation (NSDI 23) , pages 437–455, Boston, MA, April 2023. USENIX
Association.
[50] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a
machine really finish your sentence? arXiv preprint arXiv:1905.07830 , 2019.
[51] Wanjun Zhong, Ruixiang Cui, Yiduo Guo, Yaobo Liang, Shuai Lu, Yanlin Wang, Amin Saied,
Weizhu Chen, and Nan Duan. Agieval: A human-centric benchmark for evaluating foundation
models. arXiv preprint arXiv:2304.06364 , 2023.
[52] Chunting Zhou, Pengfei Liu, Puxin Xu, Srini Iyer, Jiao Sun, Yuning Mao, Xuezhe Ma, Avia
Efrat, Ping Yu, Lili Yu, et al. Lima: Less is more for alignment. arXiv preprint arXiv:2305.11206 ,
2023.
13
A Prompt templates
We list the prompt templates for LLM judges. Please refer to our github repository3for full details.
[System]Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. You should choose the assistant that follows the user’s instructions and answers the user’s question better. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of their responses. Begin your evaluation by comparing the two responses and provide a short explanation. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do not favor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: "[[A]]" if assistant A is better, "[[B]]" if assistant B is better, and "[[C]]" for a tie.[User Question]{question}[The Start of Assistant A’s Answer]{answer_a}[The End of Assistant A’s Answer][The Start of Assistant B’s Answer]{answer_b}[The End of Assistant B’s Answer]
Figure 5: The default prompt for pairwise comparison.
[System]Please act as an impartial judge and evaluate the quality of the response provided by an AIassistant to the user question displayed below. Your evaluation should consider factors such asthe helpfulness, relevance, accuracy, depth, creativity, and level of detail of the response. Beginyour evaluation by providing a short explanation. Be as objective as possible. After providing yourexplanation, please rate the response on a scale of 1 to 10 by strictly following this format: "[[rating]]", for example: "Rating: [[5]]".[Question]{question}[The Start of Assistant’s Answer]{answer}[The End of Assistant’s Answer]
Figure 6: The default prompt for single answer grading.
3https://github.com/lm-sys/FastChat/tree/main/fastchat/llm_judge
14
[System]Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. Your evaluation should consider correctness and helpfulness. You will be given assistant A’s answer, and assistant B’s answer. Your job is to evaluate which assistant’s answer is better. You should independently solve the user question step-by-step first. Then compare both assistants’ answers with your answer. Identify and correct any mistakes. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do notfavor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: "[[A]]" if assistant A is better, "[[B]]" if assistant B is better, and "[[C]]" for a tie.[User Question]{question}[The Start of Assistant A’s Answer]{answer_a}[The End of Assistant A’s Answer][The Start of Assistant B’s Answer]{answer_b}[The End of Assistant B’s Answer]Figure 7: The chain-of-thought prompt for math and reasoning questions.
[System]Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. Your evaluation should consider correctness and helpfulness. You will be given a reference answer, assistant A’s answer, and assistant B’s answer. Your job is to evaluate which assistant’s answer is better. Begin your evaluation by comparing both assistants’ answers with the reference answer. Identify and correct any mistakes. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do not favor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: "[[A]]" if assistant A is better, "[[B]]" if assistant B is better, and "[[C]]" for a tie.[User Question]{question}[The Start of Reference Answer]{answer_ref}[The End of Reference Answer][The Start of Assistant A’s Answer]{answer_a}[The End of Assistant A’s Answer][The Start of Assistant B’s Answer]{answer_b}[The End of Assistant B’s Answer]
Figure 8: The prompt for reference-guided pairwise comparison.
15
[System]Please act as an impartial judge and evaluate the quality of the responses provided by two AI assistants to the user question displayed below. You should choose the assistant that follows the user’s instructions and answers the user’s question better. Your evaluation should consider factors such as the helpfulness, relevance, accuracy, depth, creativity, and level of detail of their responses. Begin your evaluation by comparing the two responses and provide a short explanation. Avoid any position biases and ensure that the order in which the responses were presented does not influence your decision. Do not allow the length of the responses to influence your evaluation. Do not favor certain names of the assistants. Be as objective as possible. After providing your explanation, output your final verdict by strictly following this format: "[[A]]" if assistant A is better, "[[B]]" if assistant B is better, and "[[C]]" for a tie.<|The Start of Assistant A’s Conversation with User|>### User:{question 1}### Assistant A:{answer 1}### User:{question 2}### Assistant A:{answer 2}<|The End of Assistant A’s Conversation with User|><|The Start of Assistant B’s Conversation with User|>### User:{question 1}### Assistant B:{answer 1}### User:{question 2}### Assistant B:{answer 2}<|The End of Assistant B’s Conversation with User|>Figure 9: The prompt for multi-turn pairwise comparison.
16
[System]Please act as an impartial judge and evaluate the quality of the response provided by an AI assistant to the user question. Your evaluation should consider correctness and helpfulness. You will be given a reference answer and the assistant's answer. You evaluation should focus on the assistant's answer to the second question. Begin your evaluation by comparing the assistant's answer with the reference answer. Identify and correct any mistakes. Be as objective as possible. After providing your explanation, you must rate the response on a scale of 1 to 10 by strictly following this format: "[[rating]]", for example: "Rating: [[5]]".<|The Start of Reference Answer|>### User:{question_1}### Reference answer:{ref_answer_1}### User:{question_2}### Reference answer:{ref_answer_2}<|The End of Reference Answer|><|The Start of Assistant A's Conversation with User|>### User:{question_1} ### Assistant A:{answer_1}### User:{question_2}### Assistant A:{answer_2}<|The End of Assistant A's Conversation with User|>Figure 10: The prompt for reference-guided multi-turn single-answer grading.
17
B Case Study
We list several case studies. The examples are generated by gpt-4-0314 . They may not be fully
reproducible with future GPT-4 versions.
Question:What are some business etiquette norms when doing business in Japan?Assistant B:When doing business in Japan, it is important to be aware of and respect the country’s business etiquette norms. Some of these norms include:1.Greetings: A handshake and bow is the standard greeting in Japan. It is important to bow deeply and to offer a firm handshake.2.Business cards: In Japan, business cards are exchanged after the initial greeting. It is important to handle the card with respect and to read it carefully before placing it on the table.3.Meetings: Meetings in Japan are typically formal and conducted in a hierarchical manner. It is important to address people by their titles and to avoid direct eye contact.4.Punctuality: Punctuality is highly valued in Japan. It is important to arrive on time for meetings and to be prepared in advance.5.Gift giving: Gift giving is a common practice in Japan, but it is important to be mindful of the occasion and the relationship. Avoid giving gifts that are considered too personal or extravagant.6.Dining: Dining is an important part of doing business in Japan. It is important to be aware of the proper table manners and to avoid slurping or making loud noises while eating.7.Communication: Communication in Japan is typically indirect and reserved. It is important to listen carefully and to avoid confrontational language.Overall, it is important to be respectful, punctual, and mindful of hierarchy when doing business in Japan.Assistant A:Here are some business etiquette norms to keep in mind when doing business in Japan:1.Bowing: Bowing is a common greeting in Japan. It is a sign of respect and should be reciprocated.2.Business cards: Business cards are exchanged at the beginning of a meeting. It is important to receive and give business cards with both hands and to take a moment to read the card before putting it away.3.Punctuality: Being on time is important in Japan. Arrive a few minutes early to show respect for your colleagues.4.Dress code: Dress conservatively and professionally. Men should wear dark suits and ties, while women should wear conservative business attire.5.Language: Learn a few basic Japanese phrases to show respect for the culture. It is also important to speak clearly and avoid using slang or idioms.6.Gift giving: Gift giving is a common practice in Japan. Bring a small gift, such as a box of chocolates or a small souvenir from your home country.7.Dining etiquette: When dining with colleagues, wait for the host to begin eating before you start. Use chopsticks correctly and avoid leaving food on your plate.Remember, showing respect for Japanese culture and customs is key to building strong business relationships in Japan.GPT-4 Judgment (when A is placed in the first position):Both Assistant A and Assistant B provide helpful and relevant information about business etiquette norms in Japan. However, Assistant A’s answer is more detailed and organized, covering a wider range of topics such as dress code and language, which are not mentioned in Assistant B’s response. Assistant A also provides more specific advice on how to handle certain situations, such as exchanging business cards and dining etiquette. Therefore, Assistant A’s answer is more comprehensive and useful for someone looking to understand Japanese business etiquette.GPT-4 Judgment (when B is placed in the first position):Both Assistant A and Assistant B provide helpful and relevant information about business etiquette norms in Japan. However, Assistant B’s answer is more detailed and covers a wider range of topics, such as addressing people by their titles, avoiding direct eye contact, and being mindful of communication styles. Assistant A’s answer is more concise but lacks some of the depth found in Assistant B’s response. Therefore, Assistant B’s answer is better in this case.
Figure 11: An example of position bias. When Assistant A is placed in the first position, GPT-4
thinks A is better, but its verdict changes when we swap the position of A and B. We observe similar
pattern from other LLM judges such as Claude/GPT-3.5.
18
Question:What is the central dogma of molecular biology? What processes are involved? Who named this?Assistant B:The central dogma of molecular biology is the fundamental principle that explains how genetic information flows within a biological system. It states that DNA is transcribed into RNA, which is then translated into proteins. This means that the genetic information stored in DNA is first copied into RNA, which then serves as a template for the synthesis of proteins.The processes involved in the central dogma are:1. Transcription: The process by which the genetic information in DNA is copied into RNA.2. Translation: The process by which the genetic information in RNA is used to synthesize proteins.The term "central dogma" was coined by Francis Crick, one of the co-discoverers of the structure of DNA, in 1958.Assistant A:The central dogma of molecular biology is the fundamental principle that explains how genetic information flows within a biological system. It states that DNA is transcribed into RNA, which is then translated into proteins. This means that the genetic information stored in DNA is first copied into RNA, which then serves as a template for the synthesis of proteins.The processes involved in the central dogma are:1. Transcription rephrased: The act of copying genetic information from DNA to RNA.2. Translation rephrased: The act of using genetic information in RNA to create proteins.3. Transcription: The process by which the genetic information in DNA is copied into RNA.4. Translation: The process by which the genetic information in RNA is used to synthesize proteins.The term "central dogma" was coined by Francis Crick, one of the co-discoverers of the structure of DNA, in 1958.GPT-3.5 Judgment:Assistant A provides a more detailed and accurate response to the user's question. While both assistants correctly state the central dogma of molecular biology and who coined the term, Assistant A provides a more comprehensive explanation of the processes involved in the central dogma, including the rephrased definitions of transcription and translation. Therefore, I choose A as the better assistant.Claude-v1 Judgment:Both assistants answer the question by defining the central dogma and detailing the two processes involved, transcription and translation. However, assistant A provides a more in-depth and detailed explanation by briefly rephrasing and elaborating on these processes. Assistant A also mentions who coined the term "central dogma", which provides useful context and shows a more comprehensive understanding of the topic. Overall, assistant A gives a fuller and more insightful response, so I have chosen it as the better assistant for this question.GPT-4 Judgment:Both Assistant A and Assistant B provide accurate and relevant information about the central dogma of molecular biology, the processes involved, and who named it. However, Assistant A's answer contains a minor redundancy by rephrasing transcription and translation twice. Assistant B's answer is more concise and avoids this redundancy. Therefore, Assistant B's answer is better.Figure 12: An example of “repetitive list” attack to examine verbosity bias. Except for the two
rephrased items (highlighted in red), Assistant A’s answer is exactly the same as Assistant B. Both
GPT-3.5 and Claude-v1 show a verbosity bias towards the longer and repetitive answer. Only GPT-4
successfully detected this attack.
19
Question:Benjamin went to a bookstore and purchased a variety of books. He bought 5 copies of a sci-fi novel, each priced at $20, 3 copies of a history book priced at $30 each, and 2 copies of a philosophy book for $45 each. What was the total cost of his purchases?Assistant B:The total cost of his purchases is $295.Assistant A:The total cost of Benjamin’s purchases was $115.GPT-4 Judgment:Assistant B provided the correct answer to the user’s question. Assistant A’s response was incorrect.To calculate the total cost of Benjamin’s purchases, we need to multiply the number of books by theirrespective prices and then add the results:5 sci-fi novels * $20 = $1003 history books * $30 = $902 philosophy books * $45 = $90Total cost = $100 + $90 + $90 = $295Assistant B’s response is accurate and directly answers the user’s question. Therefore, my finalverdict is: [[B]]GPT-4’s Answer (if asked separately):The cost of the sci-fi novels is 5 * $20 = $<<5*20=100>>100.The cost of the history books is 3 * $30 = $<<3*30=90>>90.The cost of the philosophy books is 2 * $45 = $<<2*45=90>>90.The total cost of his purchases is $100 + $90 + $90 = $<<100+90+90=280>>280. Answer: \boxed{280}.Figure 13: With a default prompt, GPT-4 shows limited capability in grading math questions. Despite
being able to answer the question itself, its judgment was influenced by the given answers, leading to
arithmetic mistakes highlighted in yellow.
Question:Each problem consists of three statements. Based on the first two statements, the third statement may be true, false,or uncertain.1. Oranges cost more than apples.2. Oranges cost less than bananas.3. Bananas cost more than apples and bananas cost more than orange.If the first two statements are true, then the third statement isAssistant B:False.If the first two statements are true, then the thirdstatement is false. The first statement says that orangescost more than apples, and the second statement says thatoranges cost less than bananas. This means that orangescost less than bananas, which contradicts the thirdstatement that bananas cost more than apples and morethan oranges. Therefore, the third statement must be false.Assistant A:false.If oranges cost more than apples (statement 1) andoranges cost less than bananas (statement 2), then itis not possible for bananas to cost less than orangesand alsocost more than both apples and oranges(statement 3). Therefore, statement 3 is false.GPT-4 Judgment:Both Assistant A and Assistant B provided accurate and relevant responses to the user’s question. They bothconcluded that the third statement is false based on the first two statements. However, Assistant B’s response isslightly clearer and more concise in explaining the contradiction between the statements. Therefore, I chooseAssistant B as the better response.[[B]]GPT-4’s Answer (if asked separately):True.If oranges cost more than apples (statement 1) and oranges cost less than bananas (statement 2), it logically follows that bananas cost more than apples and bananas cost more than oranges, which is the third statement. So, if the first two statements are true, the third one is also true.
Figure 14: An example of GPT-4’s limited capability in grading reasoning question. Despite GPT-4
knows how to solve the question (if asked separately), it made a wrong judgement saying both
assistants’ wrong answers are correct.
20
Question:How many integers are in the solution of the inequality |x + 5| < 10?Assistant B:To solve the inequality |x + 5| < 10, we need to consider two cases:Case 1: x + 5 is positive or zeroIn this case, the inequality becomes x + 5 < 10, which simplifies to x < 5.Case 2: x + 5 is negativeIn this case, the inequality becomes -(x + 5) < 10, which simplifies to -x -5 < 10. Adding 5 to both sides gives -x < 15, andmultiplying by -1 (and flipping the inequality) gives x > -15.Sothe solution to the inequality is -15 < x < 5. The integers in this range are -14, -13, -12, ..., 4, for a total of 20 integers. Therefore, there are 20 integers in the solution of the inequality.Assistant A:There are 19 integers in the solution of the inequality |x + 5| < 10.
GPT-4 Judgment:To solve the inequality |x + 5| < 10, we need to consider two cases:Case 1: x + 5 is positive or zeroIn this case, the inequality becomes x + 5 < 10, which simplifies to x < 5.Case 2: x + 5 is negativeIn this case, the inequality becomes -(x + 5) < 10, which simplifies to -x -5 < 10. Adding 5 to both sides gives -x < 15, andmultiplying by -1 (and flipping the inequality) gives x > -15.Sothe solution to the inequality is -15 < x < 5. The integers in this range are -14, -13, -12, ..., 4, for a total of 20 integers. Therefore, there are 20 integers in the solution of the inequality.Comparing the answers provided by the two AI assistants:Assistant A: 19 integersAssistant B: 20 integersThe correct answer is 20 integers, so Assistant B provided the correct and more helpful response.Final verdict: [[B]]GPT-4’s Answer (if asked separatedly):We can split the inequality into two cases:1) If $x+5\ge0$, then $|x+5|=x+5$. So, we have $x+5<10$, which means $x<5$. Since $x+5\ge0$, we have $x\ge-5$. Soin this case, $x$ can be any integer from $-5$ to $4$, inclusive, which gives us $5-(-5)+1=10$ integers.2) If $x+5<0$, then $|x+5|=-(x+5)$. So, we have $-(x+5)<10$, which means $x+5>-10$, which means $x>-15$. Since $x+5<0$, we have $x<-5$. Soin this case, $x$ can be any integer from $-14$ to $-6$, inclusive, which gives us $-6-(-14)+1=9$ integers.In total, there are $10+9=\boxed{19}$ integers in the solution.Figure 15: An example of GPT-4’s wrong judgment with chain-of-thought prompt. We can see GPT-4
exactly copied Assistant B’s answer (which contains arithmetic errors) and determined Assistant A’s
answer is incorrect. This suggest GPT-4’s chain-of-thought process can be significantly influenced by
the given answers despite we ask it to think independently.
21
Question:Share ideas for adapting art masterpieces into interactive experiences for children. List 5 specific artworks and associated ideas.Assistant B:(omitted)Assistant A:Sure, here are five ideas for adapting art masterpieces into interactive experiences for children:1. “The Starry Night” by Vincent van Gogh -Create a virtual reality experience where children can explore the night sky and see the stars and constellations as van Gogh saw them. They can also create their own starry night scenes using different colors and brush strokes.2. “The Persistence of Memory” by Salvador Dali -Create a sensory experience where children can touch, feel, and smell different objects to explore the surrealist themes of Dali’s painting. They can also create their own surreal landscapes using different materials and textures.3. ...(omitted)Follow-up Question: Write a concrete plan for your second example.Include budget estimates.Assistant B:(omitted)Assistant A:Sure, here is a concrete plan for adapting “The Persistence of Memory” by Salvador Dali into an interactive experience for children:1. Budget: $5,0002. Objectives:-To create a sensory experience that allows children to explore the surrealist themes of Dali’s painting.-To encourage children to create their own surreal landscapes using different materials and textures....GPT-4 Judgment:Assistant A provided a concrete plan for adapting “The Persistence of Memory” by Salvador Dali into an interactive experience for children, while Assistant B provided a plan for the “Mona Lisa Interactive Experience for Children.” The user’s follow-up question specifically asked for a concrete plan for the second example, which was the “Mona Lisa” experience provided by Assistant B.Therefore, Assistant B’s answer is more relevant and directly addresses the user’s request.My final verdict is: [[B]]Figure 16: In this example, despite Assistant A correctly followed user’s instruction to generate
a concrete plan for the second example of its previous response, GPT-4 wrongly referred to the
second example in Assistant B’s response, resulting in a wrong judgment. This suggests the prompt
design that breaks the questions into two prompts may cause LLM judge struggle to locate assistants’
previous responses.
22
C Data Collection
We describe our data collection process for both MT-bench and Chatbot Arena.
C.1 MT-bench human evaluation
Figure 17 shows the normal voting interface. Figure 18 shows that we additionally show GPT-4’s
judgment to users and ask if it is reasonable when a human differs from GPT-4.
Figure 17: The screenshot of MT-bench data collection. We show an instruction similar to the prompt
we give to GPT-4. We present questions from MT-bench and answers from two random anonymous
assistants and ask which one is better. We present the first-turn conversation and ask humans to vote,
then repeat the same procedure for the second-turn. A user can skip up to 5 questions if they are not
confident. For some questions (e.g., math, reasoning), they can also see a reference solution.
Figure 18: The screenshot of MT-bench data collection. When human’s vote differs from GPT-4, we
additionally show GPT-4’s judgment (red region in the screenshot) and ask the user to click one of
the three buttons to decide whether GPT-4’s judgment is reasonable.
23
To invite participants, we obtained their consent by letting them sign an application form. We
pay them $20 for judging 20 questions, which corresponds to an hourly rate of around $35. The
participants are mostly graduate students from more than ten universities.
C.2 Chatbot Arena
Figure 19 shows a screenshot of Chatbot Arena. Users are required to accept the terms of use,
which obtain their consent and give us the right to release the conversation data. The instructions
are shown at the top of the interface. This is a free website. We do not pay users and any user
can use this platform without registration. More introductions and analyses can be found at https:
//lmsys.org/blog/2023-05-03-arena/ .
Figure 19: The screenshot of Chatbot Arena.
C.3 Data Release
We will clean the Personal Identifiable Information (PII) and tag toxic conversations with OpenAI
moderation APIs for our dataset release.
24
D Additional Experimental Results
We present some additional experimental results.
D.1 Position bias
We test two more prompts and present the full results in Table 9 “score” changes the default prompt
to let the model output two absolute scores instead of which one is better. “short” is a simplified
version of our default prompt by removing instructions like “Avoid any position bias..”, “Begin your
evaluation ... and provide a short explanation”. We can find different prompts have different effects
on different models. For example, the "score" prompt can increase the consistency of GPT-3.5 but
decreases it for Claude-v1 and GPT-4.
Table 9: Position bias on different models and prompts. Consistency is the percentage of cases where
a judge gives consistent results when swapping the order of two assistants. “Biased toward first” is
the percentage of cases when a judge favors the first answer. “Error” indicates wrong output formats.
The two largest numbers in each column are in bold.
Judge Prompt Consistency Biased toward first Biased toward second Error
claude-v1default 23.8% 75.0% 0.0% 1.2%
rename 56.2% 11.2% 28.7% 3.8%
score 20.0% 80.0% 0.0% 0.0%
short 22.5% 75.0% 2.5% 0.0%
gpt-3.5-turbodefault 46.2% 50.0% 1.2% 2.5%
rename 51.2% 38.8% 6.2% 3.8%
score 55.0% 33.8% 11.2% 0.0%
short 38.8% 57.5% 3.8% 0.0%
gpt-4default 65.0% 30.0% 5.0% 0.0%
rename 66.2% 28.7% 5.0% 0.0%
score 51.2% 46.2% 2.5% 0.0%
short 62.5% 35.0% 2.5% 0.0%
As shown in Table 10, position bias is more noticeable on open questions like writing and stem/hu-
manity knowledge questions. On math and coding questions, LLM judges are more confident even
though their judgments can often be wrong, as we show in Section 3.3. Finally, we study how the
model pairs influence position bias by using GPT-4 and the default prompt to judge three different
model pairs. As shown in Table 11, the position bias is more noticeable for models with close
performance and can almost disappear when the performance of the two models differs a lot.
Table 10: Position bias on different categories. The two largest numbers in each column are in bold.
Category Consistent Biased toward first Biased toward second
writing 42.0% 46.0% 12.0%
roleplay 68.0% 30.0% 2.0%
reasoning 76.0% 20.0% 4.0%
math 86.0% 4.0% 10.0%
coding 86.0% 14.0% 0.0%
extraction 78.0% 12.0% 10.0%
stem 44.0% 54.0% 2.0%
humanities 36.0% 60.0% 4.0%
Table 11: Position bias on different model pairs.
Pair Consistent Biased toward first Biased toward second
GPT-3.5 vs Claude-V1 67.5% 23.8% 8.8%
GPT-3.5 vs Vicuna-13B 73.8% 23.8% 2.5%
GPT-3.5 vs LLaMA-13B 98.8% 1.2% 0.0%
25
D.2 Few-shot judge
We examine how few-shot examples improve LLM judges. As shown in Table 12, they improve the
consistency of all three LLM judges significantly. It almost alleviates the position bias of GPT-4, but
moves the position bias of GPT-3.5 from the first position to the second position. We then measure
the agreement between few-shot GPT-4 pairwise comparison and humans on MT-bench, but found it
performs similarly to zero-shot GPT-4 pairwise comparison.
Table 12: Improvements of the few-shot judge on consistency for position bias.
Model Prompt Consistency Biased toward first Biased toward second Error
Claude-v1zero-shot 23.8% 75.0% 0.0% 1.2%
few-shot 63.7% 21.2% 11.2% 3.8%
GPT-3.5zero-shot 46.2% 50.0% 1.2% 2.5%
few-shot 55.0% 16.2% 28.7% 0.0%
GPT-4zero-shot 65.0% 30.0% 5.0% 0.0%
few-shot 77.5% 10.0% 12.5% 0.0%
D.3 Agreement Evaluation
Agreement calculation. We define the agreement between two types of judges as the probability
of randomly selected individuals (but not identical) of each type agreeing on a randomly selected
question. For example, if we are comparing GPT-4 and Claude, the agreement is the probability of
GPT-4 and Claude agreeing on the vote for a randomly selected question. If we are comparing GPT-4
and humans, the agreement is the probability of GPT-4 and a randomly selected human agreeing
on the vote for a randomly selected question. The agreement among humans themselves is the
probability of two randomly selected but not identical humans agreeing on the vote for a randomly
selected question.
Note that the agreement among humans could be a lower estimation compared to the agreement of
GPT4 and humans. Consider three humans who voted “A”, “A”, and “B” for a question, respectively.
The agreement among them is only1
3, as there are three pairs “(A, A)”, “(A, B)”, and “(A, B)”. But
the agreement between GPT4 and those three is2
3if GPT4 voted “first” and1
3otherwise.
Therefore, to have a more comprehensive understanding of what happened, we introduce a new judge
type called human-majority, which considers the majority of human votes for each question. The
agreement between GPT4 and human-majority is then calculated as the probability of GPT4 agreeing
with the majority of human votes on a randomly selected question. The upper bound of the agreement
between GPT-4 and humans is the agreement between human-majority and human. When there is no
majority vote for a question, the agreement is counted by an even split. For example, if there are an
equal number of “A” and “B” human votes for a question, and GPT4 votes “A”, the agreement is
counted as1
2on this question.
More results. Table 13 shows more agreement results on MT-bench. In addition to expert labelers
(denoted as “Human”), we also include author votes (denoted as “Author”).
D.4 Category-wise scores with single-answer grading
We use single-answer grading to evaluate 6 models on MT-bench and plot the category-wise scores in
Figure 20.
26
Table 13: Agreement between two types of judges on MT-bench. “G4-P” and “G4-S” denote GPT-4
with pairwise comparison and single-answer grading, respectively. “C” denotes Claude. “Human”
denotes expert labelers (excluding authors). ‘Human-M” denotes the majority vote of humans.
The single-answer grading can be converted into pairwise comparison results for calculating the
agreement. We report two setups: “S1” includes non-tie, tie, and inconsistent (due to position bias)
votes and counts inconsistent as a tie; “S2” only includes non-tie votes. The agreement between two
random judges under each setup is denoted as “R=”. The top value in each cell is the agreement, and
the bottom gray value is #votes.
Setup S1 (R = 33%) S2 (R = 50%)
Judge G4-S C Author Human Human-M G4-S C Author Human Human-M
G4-P70%
113863%
119869%
34566%
134367%
82197%
66294%
58292%
20185%
85985%
546
G4-S -66%
113667%
32460%
128060%
781 -90%
56394%
17585%
73985%
473
C - -58%
34354%
134155%
820 - -89%
14185%
64886%
414
Author - -69%
4965%
42855%
93 - -87%
3183%
26276%
46
Human - - -63%
72181%
892 - - -81%
47990%
631
(a) First Turn
Setup S1 (R = 33%) S2 (R = 50%)
Judge G4-S Author Human Human-M G4-S Author Human Human-M
G4-P70%
116166%
34166%
132568%
81295%
72788%
20585%
86485%
557
G4-S -65%
33159%
128561%
783 -89%
19384%
77685%
506
Author -67%
4968%
41363%
87 -87%
3186%
27384%
54
Human - -67%
70783%
877 - -82%
47491%
629
(b) Second Turn
W riting
Roleplay
Reasoning
Math
CodingExtractionSTEMHumanities
0 2 4 6 8 10model
GPT -4
Claude-v1
GPT -3.5-turbo
V icuna-13B
Alpaca-13B
LLaMA-13B
Figure 20: Category-wise scores of 6 models on MT-bench.
27
E Training Details of Vicuna Models
Vicuna is created by fine-tuning a LLaMA base model using user-shared conversations gathered from
ShareGPT.com with its public APIs. ShareGPT is a website where users can share their ChatGPT
conversations. To ensure data quality, we convert the HTML back to markdown and filter out some
inappropriate or low-quality samples, which results in 125K conversations after data cleaning.4We
then divide lengthy conversations into smaller segments that fit the model’s maximum context length.
We construct three training datasets with different scales from this cleaned ShareGPT dataset. Their
statistics are in Table 8, where we also compare it with Alpaca [ 38] dataset. “All” is the full dataset.
“Single” only includes the first turn of each conversation. “Selected” is a small high-quality dataset of
3K sequences. To construct the “Selected” dataset, we pick sequences that include at least 3 turns of
conversations generated by GPT-4 and run a clustering algorithm to divide them into 3K clusters and
pick the centroid of each cluster.
All models (Vicuna-7B/13B) are trained with the same hyperparameters: global batch size=128,
learning=2e-5, epochs=3, seq length=2048. Except for “Selected”, which we train for 5 epochs. The
training code is built on top of the Alpaca code but additionally handles multi-turn conversations. The
training is done with 8x A100 GPUs. The longest single training run takes around 2 days. We utilize
SkyPilot [ 49] managed spot instances for saving training costs and FlashAttention [ 11] for memory
optimizations. The training code is available at https://github.com/lm-sys/FastChat .
Table 14: Dataset statistics
Dataset Name Alpaca Selected Single All
#Token 4.4M 4.8M 184M 370M
#Sequence 52K 3K 257K 257K
Avg. turns of conversation 1.0 4.0 1.0 2.9
Avg. response length (token) 65 343 473 373
4In this study, we use more data (125K) than the version in our earlier blog post (70K).
28
F Exploring Vicuna as a judge
In this paper, we mostly evaluate the ability of close-sourced models such as GPT-4 as a proxy for
human evaluations. However, model services such as GPT-4 can also become expensive with a
growing number of evaluations. On the other hand, popular open-sourced LLMs, e.g. Vicuna-13B
shows strong language understanding capability, and are much cheaper than close-sourced LLMs. In
this section, we further explore the potential of using Vicuna-13B as a more cost-friendly proxy.
F.1 Zero-Shot Vicuna
When using as-it-is (zero-shot), Vicuna-13B noticeably suffers from limitations we discuss, e.g.
position bias. As shown in Table 15, Vicuna-13B has a consistency rate from 11.2% to 16.2%
across different prompt templates, much lower than all the closed-sourced models. In addition, it
has a high error rate (from 22.5% to 78.8%) because of its weaker instruction-following capability.
In many scenarios, Vicuna-13B provides responses such as "Answer A is better than answer B",
without following the pre-defined template. These responses are rendered as natural languages and
are difficult to be parsed automatically, making the model less useful in a scalable and automatic
evaluation pipeline.
F.2 Arena Fine-tuned Vicuna
Training Due to the incapability of the zero-shot Vicuna-13B model, we further finetune the model
with human votes from Chatbot Arena. Specifically, we randomly sample 22K single-turn votes
from the arena, covering all models supported by the time of this paper submission (GPT-4, GPT-3.5,
Claude-v1, Vicuna-13b, Vicuna-7b, Koala-13B, Alpaca-13B,LLaMA-13B, Dolly-12B, FastChat-T5,
RWKV-4-Raven, MPT-Chat, OpenAssistant, ChatGLM, and StableLM), to expose the model with
a wider range of chatbot outputs and human preferences. We use 20K votes for training, and 2K
for validation. To address the aforementioned weak instruction following problem, we formulate
the problem as a 3-way sequence classification problem. Thus, the model simply needs to predict
which one of the chat-bot outputs is better (or tie), without needing to exactly following the provided
answer template. In particular, we construct an input by using the default prompt and the two model
answers. The labels are A, B, and tie (including both-bad-vote and tie-vote). We train for 3 epochs
with a cosine learning rate scheduler and a 2e-5 maximum learning rate. We use the 2K validation
dataset to choose hyper-parameters, and test on the same 3K dataset in the main body of the paper.
Position bias results The results for position bias are provided in Table 15. The consistency
improves significantly from 16.2% to 65.0%. Due to the classification formulation, every output is
recognizable (error rate 0%). In addition, we measure the classification accuracy over the test dataset.
Agreement results It achieves 56.8% when including all three labels, and 85.5% when excluding
tie predictions and labels, significantly outperforming random guesses of 33% and 50% respectively,
and show positive signals to match GPT-4 (66% and 87% respectively). In conclusion, a further
fine-tuned Vicuna-13B model shows strong potential to be used as a cheap open-sourced replacement
for expensive closed-sourced LLMs. A similar conclusion is also found by a concurrent paper[42].
Table 15: Position bias of the Vicuna-13B model without and with further fine-tuning. We denote them
as Vicuna-13B-Zero-Shot and Vicuna-13B-Fine-Tune respectively. Consistency is the percentage
of cases where a judge gives consistent results when swapping the order of two assistants. “Biased
toward first” is the percentage of cases when a judge favors the first answer. “Error” indicates wrong
output formats. The largest number in each column is in bold.
Judge Prompt Consistency Biased toward first Biased toward second Error
Vicuna-13B-Zero-Shotdefault 15.0% 53.8% 8.8% 22.5%
rename 16.2% 12.5% 40.0% 31.2%
score 11.2% 10.0% 0.0% 78.8%
Vicuna-13B-Fine-Tune default 65.0% 27.5% 7.5% 0.0%
29