arXiv(opens in a new tab)cs.CLNov 2023Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2311.18743

AlignBench: Benchmarking Chinese Alignment of Large Language Models

Xiao Liu, Xuanyu Lei, Shengyuan Wang, Yue Huang, Zhuoer Feng, Bosi Wen, Jiale Cheng, Pei Ke, Yifan Xu, Weng Lam Tam, Xiaohan Zhang, Lichao Sun, Xiaotao Gu, Hongning Wang, Jing Zhang, Minlie Huang, Yuxiao Dong, Jie Tang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xiao Liu 1,2,∗^{1,2,*}, Xuanyu Lei 1,2,∗,†^{1,2,*,\dagger}, Shengyuan Wang 1,2,†^{1,2,\dagger}, Yue Huang 5,2,†^{5,2,\dagger}, Zhuoer Feng 4,2,†^{4,2,\dagger}, Bosi Wen 4,2,†^{4,2,\dagger}, Jiale Cheng 4,2,†^{4,2,\dagger}, Pei Ke 4^{4}, Yifan Xu 1,2^{1,2}, Weng Lam Tam 2^{2}, Xiaohan Zhang 2^{2}, Lichao Sun 6^{6}, Xiaotao Gu 2^{2}, Hongning Wang 4^{4}, Jing Zhang 3^{3}, Minlie Huang 4^{4}, Yuxiao Dong 1,‡^{1,\ddagger}, Jie Tang 1,‡^{1,\ddagger}

1^{1}The Knowledge Engineering Group (KEG), Tsinghua University; 2^{2}Zhipu AI; 3^{3}Renmin University of China; 4^{4}The CoAI Group, Tsinghua University; 5^{5}University of Notre Dame; 6^{6}Lehigh University

Abstract

Alignment has become a critical step for instruction-tuned Large Language Models (LLMs) to become helpful assistants. However, the effective evaluation of alignment for emerging Chinese LLMs is still largely unexplored. To fill in this gap, we introduce ALIGNBENCH, a comprehensive multi-dimensional benchmark for evaluating LLMs' alignment in Chinese. We design a human-in-the-loop data curation pipeline, containing eight main categories, 683 real-scenario rooted queries and corresponding human verified references. To ensure the correctness of references, each knowledge-intensive query is accompanied with evidences collected from reliable web sources (including URLs and quotations) by our annotators. For automatic evaluation, our benchmark employs a rule-calibrated multi-dimensional LLM-as-Judge (Zheng et al., 2023) approach with Chain-of-Thought to generate explanations and final ratings, ensuring high reliability and interpretability. All evaluation code, data, and LLM generations are available at https://github.com/THUDM/AlignBench. Since its release, AlignBench has been adopted by top (Chinese) LLMs for evaluating their alignment capabilities in Chinese, including ChatGLM, Qwen, DeepSeek, Yi, Baichuan, and Abab.

1 Introduction

Large Language Models (LLMs) (Brown et al., 2020; Chowdhery et al., 2022; Zhang et al., 2022; Zeng et al., 2022; Touvron et al., 2023) have experienced a surge in development thanks to popular products such as ChatGPT (OpenAI, 2022). During the period, alignment (Ouyang et al., 2022; Bai et al., 2022), including supervised fine-tuning (SFT), reinforcement learning from human feedback (RLHF), and related techniques, has been justified as a key strategy to endow pre-trained LLMs (which can hardly follow instructions) with strong grasping of human intentions and preferences. After training, aligned LLMs have not only mastered a wide array of established NLP tasks (Wang et al., 2019; Liang et al., 2022) but also versatile language-grounded missions (Cobbe et al., 2021; Chen et al., 2021; Liu et al., 2023a). As a result, LLMs have paced a firm step towards practical applications in the wild.

Meanwhile, reliably benchmarking the broad and strong competence of LLMs has also become a significant challenge. In English, there have been MMLU (Hendrycks et al., 2021), Big-Bench (Srivastava et al., 2023), and HELM (Wang et al., 2019; Liang et al., 2022); in Chinese, there are C-Eval (Huang et al., 2023b) and CMMLU (Zeng, 2023). However, prior arts hardly examine aligned LLMs' fulfillment of user intention and human preference in real-world conditions, and even fall short to tell the difference between aligned and base LLMs. Consequently, dedicated benchmarks are crucial for development and meaningful comparisons of aligned LLMs.

Nevertheless, designing a comprehensive and reliable benchmark for LLM alignment is non-trivial. An alignment benchmark should meet several important requirements, which correspond to the unique strengths of LLMs and their applications for users:

• Real-World Scenarios: Query forms and topics should be diverse and derived from real scenarios to reflect the authentic usages of LLMs.

• Open-Ended: As aligned LLMs usually produce long open-ended replies, the benchmark should judge the correctness of detailed responses without specified forms.

• Challenging: LLMs are improving so rapidly on various aspects beyond estimation. The benchmark thus has to ensure its difficulty to identify subtle capability gaps between LLMs.

∗^{*} Xiao and Xuanyu made equal contributions.

†^{\dagger} Work done while these authors interned at Zhipu AI.

1^{1} Corresponding Authors: Yuxiao and Jie.

  1. Data Curation

  2. Task Taxonomy

  3. LLM Evaluation

Figure

Figure 1: Overall framework of ALIGNBENCH. 1) Data Curation: a human-in-the-loop pipeline to allow continual high-quality test query harvesting from real scenarios. 2) Task Taxonomy: 8 main categories that cover the common usages of LLMs in Chinese. 3) LLM Evaluation: automatic multi-dimensional rule-calibrated LLM-as-Judge.

• Automatic Judging: Benchmark construction and evaluation should be as automatic as possible to provide scalable, reproducible, and in-time feedback to facilitate LLM development.

There have been recent attempts to introduce LLM-as-Judge (Li et al., 2023; Zheng et al., 2023) for evaluating the general alignment of LLMs. AlpacaEval (Li et al., 2023) compares target LLM's replies against text-davinci-003's, but has been shown unstable and uninterpretable due to its direct and pairwise scoring. MT-Bench (Zheng et al., 2023) harnesses point-wise scoring with Chain-of-Thought (CoT) (Wei et al., 2022) explanations for better accuracy and transparency. However, it employs only 80 test samples and a scoring prompt that judges queries of different tasks and domains uniformly. Lastly, both benchmarks are designed only in English and cannot well reflect the level of alignment of many emerging Chinese LLMs.

In light of all mentioned issues, in this work we present ALIGNBENCH, a comprehensive multidimensional benchmark for evaluating LLMs' alignment in Chinese. Based on observations from an online LLM service (anonymous due to review policy), we set up a semi-automatic data curation pipeline with human in the loop to create high-quality queries to construct ALIGNBENCH. ALIGNBENCH summarizes a taxonomy comprising 8 major categories of queries (Cf. Figure 1) to comprehensively cover and align with real-scenario usages. In order to make the judge model generate objective and fair evaluations, each sample is accompanied with a human-corrected LLM-generated reference. To ensure reference correctness for knowledge intensive queries (which accounts for 66.5%), we ask annotators to search on the web, provide evidences including urls and quotations, and finally synthesize references.

To enhance the automation of the evaluation, similar to MT-Bench (Zheng et al., 2023), ALIGNBENCH distinctly leverages GPT-4 (OpenAI, 2023) as the major model evaluator in its development, which serves to discern the data samples and evaluate by referenced point-wise scoring with CoT. Differently, ALIGNBENCH further highlights strategies of rules-calibration and task-specific multidimensional judgement in the scoring. Our experiments demonstrate that these strategies contribute to ALIGNBENCH's better consistency with human judgement and better explanation quality. Based on ALIGNBENCH, we evaluate 17 popular API-based or open-sourced LLMs that support Chinese, providing detailed comparisons of these LLMs across fine-grained capabilities on Chinese alignment.

In summary, the contributions of our work are:

• We construct ALIGNBENCH, a systematic benchmark rooted in real-scenario usages to evaluate Chinese alignment of LLMs. We also tailor a human-in-the-loop pipeline to allow accurate and sustainable benchmark maintenance.

• Targeting accurate and automatic evaluation of LLMs, we design a rule-calibrated multidimensional point-wise LLM-as-judge method for grading. Human evaluations justified its applicability compared to existing LLM-as-Judge methods (Zheng et al., 2023).

• We systematically benchmark 17 LLMs’ Chinese alignment on ALIGNBENCH. On top of their performance, we provide deep insights into status quo of Chinese LLMs’ development and highlight future directions.

References (65)