원시데이터 수집 시스템
선정목록으로

UltraEval: A Lightweight Platform for Flexible and Comprehensive Evaluation for LLMs

관련 엔지니어링 플라스틱 · (23) 컴파운드

기본 정보

저자
  1. Chaoqun He
  2. Renjie Luo
  3. Shengding Hu
  4. Ranchi Zhao
  5. Jie Zhou
  6. Hanghao Wu
  7. Jiajie Zhang
  8. Xu Han
  9. Zhiyuan Liu
  10. Maosong Sun
DOI
10.18653/v1/2024.acl-demos.23
저널
–
발행년도
2024
발행기관
–
피인용수
4
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.18653/v1/2024.acl-demos.23
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W4402667036

평가 내용

관련도
관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Chaoqun He, Renjie Luo, Shengding Hu, Ranchi Zhao, Jie Zhou, Hanghao Wu, Jiajie Zhang, Xu Han, Zhiyuan Liu, Maosong Sun. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations). 2024.

본문 40,582자

본문 펼치기
# UltraEval: A Lightweight Platform for Flexible and Comprehensive Evaluation for LLMs Chaoqun He <sup>1</sup> , Renjie Luo <sup>2†</sup> , Shengding Hu <sup>1</sup> , Yuanqian Zhao <sup>3†</sup> , Jie Zhou <sup>4</sup> Hanghao Wu <sup>4</sup> , Jiajie Zhang <sup>5†</sup> , Xu Han <sup>1</sup> <sup>_∗_</sup> ,Zhiyuan Liu <sup>1*</sup> , Maosong Sun <sup>1</sup> 1 Dept. of Comp. Sci. & Tech., Institute for AI, Tsinghua University, Beijing, China 2 Institute of Artificial Intelligence, Beihang University, China 3 Renmin University of China 4 ModelBest Inc. 5 Northeastern University, China {hcq21, hsd23}@mails.tsinghua.edu.cn, renjie.luo@outlook.com Abstract Evaluation is pivotal for refining Large Language Models (LLMs), pinpointing their capabilities, and guiding enhancements. The rapid development of LLMs calls for a lightweight and easy-to-use framework for swift evaluation deployment. However, considering various implementation details, developing a comprehensive evaluation platform is never easy. Existing platforms are often complex and poorly modularized, hindering seamless incorporation into research workflows. This paper introduces UltraEval, a user-friendly evaluation framework characterized by its lightweight nature, comprehensiveness, modularity, and efficiency. We identify and reimplement three core components of model evaluation (models, data, and metrics). The resulting composability allows for the free combination of different models, tasks, prompts, benchmarks, and metrics within a unified evaluation workflow. Additionally, UltraEval supports diverse models owing to a unified HTTP service and provides sufficient inference acceleration. UltraEval is now available for researchers publicly <sup>1</sup> . 1 Introduction LLMs have been deployed in diverse domains, such as finance(Zhang and Yang, 2023), education(Kasneci et al., 2023), and law(Blair-Stanek et al., 2023), demonstrating their versatility and efficacy(Zhao et al., 2023). This advancement is significantly bridging the gap between the realization of the current state and Artificial General Intelligence (AGI)(Bubeck et al., 2023). Nevertheless, the expansion of model parameters and training datasets engenders increasing uncertainties and emergent capabilities, posing potential risks to humanity and *Corresponding author:Xu Han (thu.hanxu13@gmail.com) and Zhiyuan Liu (liuzy@tsinghua.edu.cn) †Work done during internship at ModelBest Inc. 1The website of UltraEval is at [https://github.com/](https://github.com/OpenBMB/UltraEval) [OpenBMB/UltraEval and a demo video is at https://youtu.](https://github.com/OpenBMB/UltraEval) [be/C0O6BVzNAS8.](https://youtu.be/C0O6BVzNAS8) Model Data Metric Figure 1: The three core modules of model evaluation. challenges to stable training models (Chang et al., 2023; Bommasani et al., 2021; Wei et al., 2022a). Consequently, it is imperative to continuously and meticulously evaluate the evolving capabilities of LLMs throughout their development to ensure their responsible and beneficial applications. Traditional benchmarks (Zellers et al., 2019; Suzgun et al., 2022; Austin et al., 2021; Clark et al., 2018) typically focus on evaluating model performance in a specific capability, making it challenging to assess the comprehensive abilities of a model. Additionally, these benchmarks generally do not include model deployment. Building pipelines from scratch for each combination of tasks and models for evaluation is highly inefficient and repetitive. Therefore, an integrated evaluation framework is crucial. Currently, some evaluation frameworks covering the entire pipeline from model deployment to model evaluation are proposed, and predominantly divided into two types: conversational websites, exemplified by platforms like Chatbot Arena <sup>2</sup>, and open-source evaluation tools, such as lm-evaluation-harness <sup>3</sup> . The former effectively assesses the conversational abilities of a model [2https://chat.lmsys.org/](https://chat.lmsys.org/) [3https://github.com/EleutherAI/](https://github.com/EleutherAI/lm-evaluation-harness) [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) 247 _Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 3:_ _System Demonstrations)_ pages 247 257 Figure 2: The overall pipeline of UltraEval, designed according to the three core modules of model evaluation. but lacks comprehensive task coverage and transparency in the evaluation process. The latter opensource frameworks face challenges such as incomplete task coverage, complex code structure, heavy implementations, high difficulty to use, and tightly coupled functionalities. These issues hinder both convenient and comprehensive assessments. In this paper, we identify three core components that form the evaluation process: models (or systems), task data, and metrics (i.e., evaluation methods), as illustrated in Figure 1. Rethinking the implementations in these three aspects would benefit the construction of a lightweight and easy-to-use evaluation framework, which covers mainstream tasks and complete evaluation pipeline, and can be easily expanded according to user customization. To this end, we introduce UltraEval, a lightweight and user-friendly open-source framework for LLMs evaluation. It stands out for its modular and scalable design, enabling thorough assessment of model capabilities. As illustrated in Figure 2, we segment the evaluation pipeline into three main modules: Data, Model, and Metrics, each operating independently and interacting through data exchange. Specifically, UltraEval is characterized by the following features: 1. Lightweight Usage Modes. UltraEval is designed with minimal dependency requirements and features straightforward design and installation, complemented by detailed documentation. Users can initiate automated evaluations with just a few simple commands. 2. Comprehensive Evaluation Tools. UltraEval offers an extensive benchmarks suite, com prising over 50 commonly used benchmarks, and provides a customized prompt for each task. During the evaluation process, we replicated commonly used metrics and incorporated post-processing methods for more accurate metric calculation. We replicate some benchmarks from the LLaMA2(Touvron et al., 2023), achieving consistent results, which demonstrates UltraEval’s reliability. 3. Modular Architecture and Interfaces. The three main modules are independent and have clear functions, enhancing the system stability of UltraEval. Moreover, its excellent scalability allows users to flexibly customize the evaluation workflow, such as by adding new models, tasks, metrics, and more. 4. Efficient Inference Engines. UltraEval deploys models as HTTP services, supporting the evaluation of LLMs from different sources, including the models deployed locally and the web-based API. When deployed locally, we also provide the interface to utilize vLLM <sup>4</sup> (Kwon et al., 2023) and Gunicorn to enable multi-GPU acceleration. Evaluation is currently in a phase of rapid and exploratory growth. UltraEval will be continuously updated and provide detailed tutorials to help researchers to efficiently deploy evaluation pipeline. 2 Related Work The advancement of LLMs has led to the emergence of various evaluation frameworks, each with [4https://github.com/vllm-project/vllm](https://github.com/vllm-project/vllm) 248 <u>Framework</u> <u>Bytes</u> <u>Datasets</u> <u>Acceleration</u> <u>Model Types</u> <u>Evaluation Method</u> Chatbot Arena - - - Chat Human AlpacaEval 3000k - - Chat GPT-4 FastChat 950k 1 - Chat GPT-4 HELM 3200k 10 - All Auto FlagEval 760k 21 - All Auto LLM harness 815k 50+ vLLM & HF Accelerate All Auto OpenCompass 4000k 50+ Distributed Computing All Auto InstructEval 480k 5 - Chat Auto OpenAI-Evals 780k - Concurrent API Request GPT Auto <u>GPT-Fathom</u> <u>445k</u> <u>21</u> <u>Concurrent API Request</u> <u>GPT & LLaMA</u> <u>Auto</u> UltraEval <u>315k</u> 50+ vLLM & Gunicorn All Auto & GPT-4 Table 1: Comparison of Evaluation Frameworks. Bytes: the total bytes of Python and Jupyter Notebook code in each framework’s GitHub repository, Acceleration: tools or methods employed to expedite model inference, Model Types: Supported Models for Evaluation, GPT: GPT series models, LLaMA: LLaMA series models its unique features. This section will provide a detailed overview of the current state of evaluation frameworks (also see Table 1). Chatbot Arena (Zheng et al., 2024) offers a LLM evaluation platform where users vote on model responses, using a crowdsourced, anonymous Elo-rating system. Although innovative, its reliance on human judgment limits its suitability for fast, routine assessments. AlpacaEval <sup>5</sup> (Li et al., 2023) and FastChat <sup>6</sup> (Zheng et al., 2023a) conduct evaluation by employing GPT-4(Achiam et al., 2023) for automated judging. Yet, in evaluating complex reasoning tasks, they tend to favor verbose responses and face issues with robustness. Additionally, the scope of their evaluation capabilities is limited. HELM <sup>7</sup> (Liang et al., 2022) streamlines language model evaluation but is constrained by its support solely for AutoModelForCausalLM <sup>8</sup>, excluding models without namespaces or stored locally. It lacks support for user models, demonstrates potential module coupling issues and absence of acceleration options. FlagEval ’s <sup>9</sup> “capability-task-indicator” framework is original but criticized for its closed-source approach and overly simplistic benchmark choices, raising data security and assessment depth concerns. Despite their innovations, both platforms fall short of the adaptability and comprehensiveness seen in more versatile frameworks like UltraEval. [5https://github.com/tatsu-lab/alpaca_eval](https://github.com/tatsu-lab/alpaca_eval) [6https://github.com/lm-sys/FastChat](https://github.com/lm-sys/FastChat) [7https://github.com/stanford-crfm/helm](https://github.com/stanford-crfm/helm) [8https://huggingface.co/docs/transformers/main](https://huggingface.co/docs/transformers/main) [9https://flageval.baai.ac.cn](https://flageval.baai.ac.cn) LLM harness (Gao et al., 2023), used by HuggingFace’s Open LLM Leaderboard, and Open- Compass <sup>10</sup> (Contributors, 2023) have emerged as comprehensive solutions, offering extensive dataset support and rapid updates. These feature-rich environments, however, entail a trade-off: their complexity and dependency on specific software can complicate usage and customization. This underscores the importance of detailed documentation for those looking to adapt or extend these frameworks. Similarly, InstructEval <sup>11</sup> (Chia et al., 2023), leveraging the LLM harness infrastructure, caters specifically to models fine-tuned with instructions such as Alpaca and Flan-T5. Despite its targeted approach, InstructEval’s limitations in model and task coverage hint at its niche application rather than widespread utility. The adoption of such frameworks reflects the evolving landscape of model evaluation, where finding a balance between comprehensiveness and usability poses an ongoing challenge. OpenAI Evals <sup>12</sup> and GPT-Fathom <sup>13</sup> (Zheng et al., 2023b). OpenAI Evals offers a straightforward, open-source framework for appraising OpenAI models, while GPT-Fathom expands upon this by analyzing the progression from GPT-3 to GPT-4 using a wider dataset array. Although it provides valuable insights into LLM development, GPT-Fathom shares OpenAI Evals’ limitations in supporting a diverse range of models. [10https://github.com/open-compass/opencompass](https://github.com/open-compass/opencompass) [11https://github.com/declare-lab/instruct-eval](https://github.com/declare-lab/instruct-eval) [12https://github.com/openai/evals](https://github.com/openai/evals) [13https://github.com/GPT-Fathom/GPT-Fathom](https://github.com/GPT-Fathom/GPT-Fathom) 249 <u>First Level</u> <u>Second Level</u> <u>Dataset List</u> Disciplinary knowledge Knowledge <u>MMLU, CMMLU, C-Eval, AGI-Eval</u> JEC-QA, MEDMCQA, MEDQA-MCMLE MEDQA-USMLE, GAOKAO-Bench <u>World knowledge</u> <u>NQ-open, TriviaQA, TruthfulQA</u> <u>Math</u> <u>Math</u> <u>GSM8K, MATH</u> <u>Code</u> <u>Code</u> <u>HumanEval, MBPP</u> Reason Language <u>Logical reasoning</u> <u>BBH</u> Implicative relation AX-B, AX-G, CB, CMNLI, OCNLI, RTE <u>BoolQ, C3, ChiD, DRCD, LAMBADA, MultiRC, QuAC</u> Reading comprehension RACE, RECORD, SQuAD, TyDiQA, SummEdits Translation FLORES, WMT20-en-zh, WMT20-en-zh Semantic similarity AFQMC, BUSTM Word sense disambiguation CLUEWSC, WIC, Winogender, WSC Sentiment analysis EPRSTMT News classification TNEWS Commonsense reasoning HellaSwag, OpenBookQA, ARC-c, ARC-e CommonsenseQA, COPA, PIQA, SIQA <u>WinoGrande, Story Cloze, StrategyQA, TheoremQA</u> Table 2: We compile a collection of 59 widely-used benchmarks and categorized them according to scenarios. 1 <mark>def</mark> <mark>transform_entry(row):</mark> 2 <mark>question,</mark> <mark>*choices,</mark> <mark>answer</mark> <mark>=</mark> <mark>row</mark> 3 <mark>target_scores</mark> <mark>=</mark> <mark>{</mark> 4 <mark>choice:</mark> <mark>int</mark> <mark>((</mark> <mark>ord</mark> <mark>(answer)</mark> <mark>-</mark> <mark>ord</mark> <mark>("A"))</mark> <mark>==</mark> <mark>idx)</mark> 5 <mark>for</mark> <mark>idx,</mark> <mark>choice</mark> <mark>in</mark> <mark>enumerate</mark> <mark>(choices)</mark> 6 <mark>}</mark> 7 8 <mark>return</mark> <mark>{</mark> 9 <mark>"passage":</mark> <mark>""</mark> <mark>,</mark> 10 <mark>"question":</mark> <mark>question,</mark> 11 <mark>"target_scores":</mark> <mark>target_scores,</mark> 12 <mark>"answer":</mark> <mark>""</mark> <mark>,</mark> 13 <mark>}</mark> Figure 3: The data formatting template for MMLU. 3 UltraEval As illustrated in Figure 1, evaluation is a comprehensive process that integrates models, data, and metrics. With this in mind, the design philosophy considers both the independence and interconnectivity of each module. As shown in Figure 2, UltraEval encompasses the entire evaluation lifecycle(Chang et al., 2023) and segments the evaluation workflow into three main modules. In this section, we delve into the design and implementation of each component within UltraEval in detail. 3.1 Data Preparation Data preparation involves transforming raw data into the final input format for the model, encompassing data preprocessing and prompt templates. Data Preprocessing. We collect commonly used benchmarks for evaluating LLMs, such as MMLU(Hendrycks et al., 2020), GSM8K(Cobbe et al., 2021), and Hellaswag(Zellers et al., 2019), covering multiple dimensions of capabilities. Currently, we have 59 benchmarks, listed in Table 2, and we plan to continually expand our collection of benchmarks. To ensure the accuracy of the data, we source it from reputable platforms like Hugging Face <sup>14</sup> and GitHub, rather than relying on data modified by third parties. Given the varying data formats across benchmarks, we design a set of templates to standardize these diverse formats into JSON, serving as the starting point for evaluations. As shown in Figure 3, different data items are categorized under unified attributes. Prompt Templates. Prompts are used to guide models to generate specific outputs, and UltraEval supports prompt engineering (White et al., 2023), including few-shot and Chain of Thought (CoT) (Wei et al., 2022b), to enhance the model’s accuracy. The sensitivity of LLMs to prompts (Zhu et al., 2023) and the variability of prompts across different tasks often make it challenging for researchers to replicate results from papers, hindering research progress. UltraEval addresses this issue by providing customized, stable prompt templates for each task to facilitate result alignment. Figure 4 showcases an example of a prompt template for MMLU, demonstrating the rigorous process for forming the final prompt input. [14https://huggingface.co/datasets](https://huggingface.co/datasets) 250 1 <mark>question</mark> <mark>=</mark> <mark>f"Question :\n{question ]}\n"</mark> 2 <mark>instruction</mark> <mark>=</mark> <mark>f"Requirement :\ nChoose</mark> <mark>and</mark> <mark>respond</mark> <mark>with</mark> <mark>the</mark> <mark>letter</mark> <mark>of</mark> <mark>the</mark> <mark>correct</mark> <mark>answer,</mark> <mark>including</mark> <mark>the</mark> <mark>parentheses .\n"</mark> 3 <mark>options</mark> <mark>=</mark> <mark>"Options :\n"</mark> 4 <mark>for</mark> <mark>idx,</mark> <mark>item</mark> <mark>in</mark> <mark>enumerate</mark> <mark>(question_options):</mark> 5 <mark>options</mark> <mark>+=</mark> <mark>f"({chr(65</mark> <mark>+</mark> <mark>idx)})</mark> <mark>{item}\n"</mark> 6 <mark>answer_prompt</mark> <mark>=</mark> <mark>f"Answer :\n"</mark> 7 <mark>final_input</mark> <mark>=</mark> <mark>question</mark> <mark>+</mark> <mark>instruction</mark> <mark>+</mark> <mark>options</mark> <mark>+</mark> <mark>answer_prompt</mark> Figure 4: An example of a prompt template for an MMLU task. 3.2 Model Delpoyment UltraEval employs a unique design approach, deploying models as HTTP online services and leveraging vLLM and gunicorn technologies to enable multi-GPU acceleration. Http Service. In traditional evaluations, model deployment is closely integrated with task assessment, requiring models to be redeployed for each new task, which can lead to unnecessary consumption of time and hardware resources. To address this, we deploy models as HTTP services with Flask, facilitating modularization and efficient resource use. This approach has several advantages: 1. Independence. We provide a unified interface through which models receive task data and hyperparameters, returning results upon completing inference. This setup, which allows for adjustments via hyperparameters, ensures model independence. 2. Comprehensiveness. In UltraEval, we enable direct model loading from the Huggingface Transformers library. Given the independent deployment, UltraEval theoretically supports all models, including those from personal experimentation under different frameworks, greatly enhancing research and development flexibility. We utilize vLLM <sup>15</sup> as the foundational acceleration framework, granting loading priority to models it supports. 3. Scalability. Thanks to its excellent scalability, users can easily extend models from languagebased applications to multimodal models. Multi-GPU Acceleration. We use the Gunicorn web server with Flask to deploy models via web endpoints, achieving a flexible and decoupled architecture for model deployment and evaluation. This setup allows for dynamic GPU acceleration, where [15https://github.com/vllm-project/vllm](https://github.com/vllm-project/vllm) the Gunicorn server, configured with environmentspecific parameters, manages multiple worker processes. Each process, handling a slice of the available GPUs, executes inference tasks in parallel, significantly improving computational efficiency and throughput. A highlight of UltraEval’s performance is its ability to utilize 4 A800 GPUs to evaluate a test set of 41k data points in under 1.5 hours, showcasing remarkable efficiency <sup>16</sup> . 3.3 Evaluation Methods Refined data and models are instantiated through the _Task_ and _Model_ classes, respectively, initiating the model inference process. The model performs inference based on the input data and its hyperparameters, generating prediction outcomes. Typically, between the model’s output and the final score calculation, there are intermediate steps including post-processing and metric calculation. Post-Processing. Model outputs, influenced by task characteristics, prompt templates, and the model’s performance, often contain extraneous information beyond the answers needed(Park et al., 2024). As shown in Figure 7, when ChatGPT responds to HumanEval questions, the response may include both code and additional textual descriptions, complicating automatic evaluation. To more accurately assess the model, it is necessary to postprocess the model’s outputs to extract the most crucial answers. Post-processing is bifurcated into two dimensions: model and task. Variations in model training approaches result in different versions, such as chat and base, necessitating distinct processing methods. Additionally, certain tasks employ specific evaluation methodologies. Taking Figure 7 as an example, the initial step involves extracting the code segment from ChatGPT’s response. Subsequently, due to HumanEval(Chen et al., 2021)’s unique evaluation 16The model used in this experiment is Llama2-7B, and the benchmarks includes BBH, MMLU, C-Eval, CMMLU, HumanEval, MBPP, GSM8K and MATH. In total, they consist of 40,938 data points. 251 HumanEval MATH BBH Template Assembling deploy Model 127.0.0.1localhost 0-shot Code Math score Multichoice Pass@k Exact match Prefix match GPT-4 eval CoT Few-shot Data Prompt Post process Metric Figure 5: The combination of different modules within UltraEval. criteria, it is necessary to extract the function body from the code while omitting the function name, yielding a cleaner and more precise answer. UltraEval develops several post-processing methods tailored to the tasks and models currently available. Metric Calculation. Evaluation methods are categorized based on their ability to be computed automatically into automatic evaluation and human evaluation(Chang et al., 2023). For automatic evaluation, we implement common metrics such as exact match for text generation tasks, F1 score for binary classification tasks, ROUGE(Lin, 2004) for translation tasks, and pass@k(Chen et al., 2021) for coding tasks. Specifically, for exact match, we develop extensions like in match and prefix match to more effectively capture a wide range of scenarios. Given that UltraEval is an automated evaluation framework, for human evaluation, we integrate GPT-4(Achiam et al., 2023) as a discriminator to substitute for human evaluation. Moreover, all data results can be saved according to user preferences, allowing users to decide on human evaluation if desired, thus offering significant flexibility for a more objective assessment. <u>Llama2-7B</u> <u>Llama2-13B</u> <u>Mistral-7B</u> Benchmark <u>Official</u> <u>UltraEval</u> <u>Official</u> <u>UltraEval</u> <u>Official</u> <u>UltraEval</u> <u>ARC-C</u> <u>45.9</u> <u>43.2</u> <u>45.9</u> <u>47.4</u> <u>55.5</u> <u>50.8</u> HellaSwag 77.2 75.6 80.7 79.1 81.3 80.4 BBH 32.6 32.8 39.4 39.2 38 _._ 0 <sup>_∗_</sup> 40.4 MATH 2.5 2.8 3.9 4.8 13.1 10.2 GSM8K 14.6 14.8 28.7 22.6 52 _._ 1 <sup>_∗_</sup> 31.9 HumanEval 12.8 12.8 18.3 17.1 30.5 26.8 MBPP 20.8 20.8 30.6 29.0 47.5 47.3 MMLU 45.3 45.1 54.8 55.2 60.1 63.1 Table 3: Evaluation results on mainstream benchmarks (%). _∗_ The BBH score is not explicitly stated in the paper(Jiang et al., 2023), however, it is inferred to be 38.0 from the figures in the paper. The replicated result for GSM8K is 35.4 in Gemma paper(Team et al., 2024), which is close to our result. 4 Evaluation UltraEval aims to provide a lightweight, comprehensive, and user-friendly evaluation framework to support research. As illustrated in Figure 5, UltraEval’s modular design effectively combines various models, tasks and metrics for evaluation. Using UltraEval, we evaluate models from the LLaMA2 series(Touvron et al., 2023) and Mistral(Jiang et al., 2023) on these widely-used benchmarks. As indicated in the Table 3, some reproduced results are higher, while others are lower, but within a certain margin of error, our reproduced results are consistent with the results reported in the papers, underscoring our framework’s reliability. The sources of error include hyperparameters (e.g., temperature, top-p) and hardware configurations. Since the evaluation details are not provided in the papers, verification is not possible. This highlights the importance of having an open and reproducible evaluation framework. Furthermore, UltraEval supports innovative research efforts, research on predictable scaling(Hu et al., 2023), OlympiadBench(He et al., 2024) and model training, such as with MiniCPM(Hu et al., 2024). 5 Discussion and Future Work In this section, we discuss future work following this study. Specifically, we focus on addressing data contamination and supporting a broader range of evaluation scenarios. Data contamination refers to the phenomenon that examples from the evaluation set are also found in the training data (Li et al., 2024), causing inaccuracies in model evaluation. Common methods for contamination detection include n-gram over 252 lap and embedding similarity search. However, none of these methods are perfect, making research on contamination detection still crucial. We will integrate these methods. Supporting more evaluation scenarios, such as multimodal, long-text, and Retrieval-Augmented Generation (RAG), is crucial for meeting a broader range of evaluation needs. This will be an important direction for our future work. 6 Conclusion We introduce UltraEval, a lightweight, user friendly, and comprehensive framework for model evaluation. UltraEval establishes a unified structure with well-defined modules and flexible interactions, aiding researchers and developers in efficiently deploying evaluation workflows. Moving forward, we plan to continuously integrate new technologies and features into UltraEval, extending beyond large language models to support the evaluation of multimodal models, Retrieval-Augmented Generation (RAG), agents, and more, to advance the research on AGI. Additionally, we aim to expand our collection of representative benchmarks and also develop our own, exploring the capabilities and limits of large models. Acknowledgements This work is supported by the National Key R&D Program of China (No. 2022ZD0116312), Quan Cheng Laboratory (Grant No. QCLZD202301), the Postdoctoral Fellowship Program of CPSE (Grant No. GZB20230343), China Postdoctoral Science Foundation (Grant No. 2023M741945), and Institute Guo Qiang at Tsinghua University. Limitations Currently, our approach primarily utilizes text domain evaluation. However, we are looking to expand the scope of UltraEval by integrating multimodal and long-context evaluation datasets. This enhancement aims to facilitate more thorough and diverse assessments. Additionally, there is room for improvement in the visualization of our results. Future improvement will focus on enabling multidimensional visualization, thereby enriching the interpretability and depth of our evaluation results. Ethical Considerations In this paper, we present UltraEval, a lightweight, user-friendly, flexible, and comprehensive frame work for model evaluation. Adhering to the principles of modularity, UltraEval segments the evaluation process into three distinct modules: Data, Model, and Metrics. This approach enhances the framework’s extensibility and flexibility, allowing for the easy integration of new models and tasks. We offer an extensive benchmark suite and repli cate commonly used models and benchmarks. Our results align with those reported in the corresponding papers, underscoring the stability and reliability of our framework. Committed to sustainable development, we publicly release all our code to minimize unnecessary carbon footprint. Throughout our experiments, we adhere to all licenses related to models and data. References Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. _arXiv preprint arXiv:2303.08774_ . Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. 2021. Program synthesis with large language models. _arXiv_ _preprint arXiv:2108.07732_ . Andrew Blair-Stanek, Nils Holzenberger, and Benjamin Van Durme. 2023. Can gpt-3 perform statutory reasoning? In _Proceedings of the Nineteenth Interna-_ _tional Conference on Artificial Intelligence and Law_, pages 22–31. Rishi Bommasani, Drew A Hudson, Ehsan Adeli, Russ Altman, Simran Arora, Sydney von Arx, Michael S Bernstein, Jeannette Bohg, Antoine Bosselut, Emma Brunskill, et al. 2021. On the opportunities and risks of foundation models. _arXiv preprint_ _arXiv:2108.07258_ . Sébastien Bubeck, Varun Chandrasekaran, Ronen El dan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4. _arXiv preprint_ _arXiv:2303.12712_ . Yupeng Chang, Xu Wang, Jindong Wang, Yuan Wu, Linyi Yang, Kaijie Zhu, Hao Chen, Xiaoyuan Yi, Cunxiang Wang, Yidong Wang, et al. 2023. A survey on evaluation of large language models. _ACM_ _Transactions on Intelligent Systems and Technology_ . Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Ka plan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021. Evaluating large 253 language models trained on code. _arXiv_ _preprint_ _arXiv:2107.03374_ . Yew Ken Chia, Pengfei Hong, Lidong Bing, and Sou janya Poria. 2023. Instructeval: Towards holistic evaluation of instruction-tuned large language models. _arXiv preprint arXiv:2306.04757_ . Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge. _arXiv_ _preprint arXiv:1803.05457_ . Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. _arXiv preprint arXiv:2110.14168_ . OpenCompass Contributors. 2023. Opencompass: A universal evaluation platform for foundation models. [https://github.com/open-compass/](https://github.com/open-compass/opencompass) [opencompass.](https://github.com/open-compass/opencompass) Leo Gao, Jonathan Tow, Baber Abbasi, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Alain Le Noac’h, Haonan Li, Kyle McDonell, Niklas Muennighoff, Chris Ociepa, Jason Phang, Laria Reynolds, Hailey Schoelkopf, Aviya Skowron, Lintang Sutawika, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. 2023. A framework for [few-shot](https://doi.org/10.5281/zenodo.10256836) language model [evaluation.](https://doi.org/10.5281/zenodo.10256836) Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Leng Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, et al. 2024. Olympiad bench: A challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems. _arXiv preprint arXiv:2402.14008_ . Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. _arXiv preprint arXiv:2009.03300_ . Shengding Hu, Xin Liu, Xu Han, Xinrong Zhang, Chao qun He, Weilin Zhao, Yankai Lin, Ning Ding, Zebin Ou, Guoyang Zeng, et al. 2023. Unlock predictable scaling from emergent abilities. _arXiv_ _preprint_ _arXiv:2310.03262_ . Shengding Hu, Yuge Tu, Xu Han, Chaoqun He, Ganqu Cui, Xiang Long, Zhi Zheng, Yewei Fang, Yuxiang Huang, Weilin Zhao, Xinrong Zhang, Zheng Leng Thai, Kaihuo Zhang, Chongyi Wang, Yuan Yao, Chenyang Zhao, Jie Zhou, Jie Cai, Zhongwu Zhai, Ning Ding, Chao Jia, Guoyang Zeng, Dahai Li, Zhiyuan Liu, and Maosong Sun. 2024. [Minicpm:](http://arxiv.org/abs/2404.06395) Unveiling the potential [of](http://arxiv.org/abs/2404.06395) small language models [with scalable training strategies.](http://arxiv.org/abs/2404.06395) Albert Q Jiang, Alexandre Sablayrolles, Arthur Men sch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. _arXiv preprint arXiv:2310.06825_ . Enkelejda Kasneci, Kathrin Seßler, Stefan Küchemann, Maria Bannert, Daryna Dementieva, Frank Fischer, Urs Gasser, Georg Groh, Stephan Günnemann, Eyke Hüllermeier, et al. 2023. Chatgpt for good? on opportunities and challenges of large language models for education. _Learning and individual differences_, 103:102274. Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In _Proceedings of the 29th_ _Symposium on Operating Systems Principles_, pages 611–626. Xuechen Li, Tianyi Zhang, Yann Dubois, Rohan Taori, Ishaan Gulrajani, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Alpacaeval: An automatic evaluator of instruction-following models. [https://github.com/tatsu-lab/alpaca_eval.](https://github.com/tatsu-lab/alpaca_eval) Yucheng Li, Frank Guerin, and Chenghua Lin. 2024. Latesteval: Addressing [data](http://arxiv.org/abs/2312.12343) contamination in lan[guage model evaluation through dynamic and time-](http://arxiv.org/abs/2312.12343) [sensitive test construction.](http://arxiv.org/abs/2312.12343) Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. _arXiv preprint arXiv:2211.09110_ . Chin-Yew Lin. 2004. ROUGE: A [package](https://aclanthology.org/W04-1013) for auto [matic evaluation of summaries.](https://aclanthology.org/W04-1013) In _Text Summariza-_ _tion Branches Out_, pages 74–81, Barcelona, Spain. Association for Computational Linguistics. Peter S Park, Philipp Schoenegger, and Chongyang Zhu. 2024. Diminished diversity-of-thought in a standard large language model. _Behavior Research Methods_, pages 1–17. Mirac Suzgun, Nathan Scales, Nathanael Schärli, Se bastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V Le, Ed H Chi, Denny Zhou, et al. 2022. Challenging big-bench tasks and whether chain-of-thought can solve them. _arXiv_ _preprint arXiv:2210.09261_ . Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, et al. 2024. Gemma: Open models based on gemini research and technology. _arXiv_ _preprint arXiv:2403.08295_ . Hugo Touvron, Louis Martin, Kevin Stone, Peter Al bert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. _arXiv_ _preprint_ _arXiv:2307.09288_ . 254 Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. 2022a. Emergent abilities of large language models. _arXiv preprint arXiv:2206.07682_ . Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022b. Chain-of-thought prompting elicits reasoning in large language models. _Advances in neural_ _information processing systems_, 35:24824–24837. Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gilbert, Ashraf Elnashar, Jesse Spencer-Smith, and Douglas C Schmidt. 2023. A prompt pattern catalog to enhance prompt engineering with chatgpt. _arXiv preprint arXiv:2302.11382_ . Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. 2019. Hellaswag: Can a machine really finish your sentence? _arXiv preprint_ _arXiv:1905.07830_ . Xuanyu Zhang and Qing Yang. 2023. Xuanyuan 2.0: A large chinese financial chat model with hundreds of billions parameters. In _Proceedings of the 32nd_ _ACM International Conference on Information and_ _Knowledge Management_, pages 4435–4439. Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. 2023. A survey of large language models. _arXiv_ _preprint_ _arXiv:2303.18223_ . Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. 2024. Judging llm-as-a-judge with mt-bench and chatbot arena. _Advances in Neural Information Processing_ _Systems_, 36. Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric. P Xing, Hao Zhang, Joseph E. Gonzalez, and Ion Stoica. 2023a. [Judging](http://arxiv.org/abs/2306.05685) [llm-as-a-judge with mt-bench and chatbot arena.](http://arxiv.org/abs/2306.05685) Shen Zheng, Yuyu Zhang, Yijie Zhu, Chenguang Xi, Pengyang Gao, Xun Zhou, and Kevin Chen-Chuan Chang. 2023b. GPT-Fathom: [Benchmarking large](http://arxiv.org/abs/2309.16583) [language models to decipher the evolutionary path](http://arxiv.org/abs/2309.16583) [towards GPT-4 and beyond.](http://arxiv.org/abs/2309.16583) Kaijie Zhu, Jindong Wang, Jiaheng Zhou, Zichen Wang, Hao Chen, Yidong Wang, Linyi Yang, Wei Ye, Neil Zhenqiang Gong, Yue Zhang, et al. 2023. Promptbench: Towards evaluating the robustness of large language models on adversarial prompts. _arXiv_ _preprint arXiv:2306.04528_ . A More details A.1 Post-process We present the post-processing code in Fig ure 6 and explain the reasons necessitating postprocessing in Figure 7. A.2 UltraEval Usage In the tutorial <sup>17</sup>, we provide a detailed guide on UltraEval, including an introduction to its modules and instructions on how users can customize evaluations, such as adding their own new tasks and new models. This ensures that diverse evaluation needs are met. A.3 Model as Judge Currently, UltraEval supports ChatGPT as a substitute for human evaluation. However, since ChatGPT is a commercial model, users need to provide the relevant API key. Due to the modularity and flexibility of our framework, users can also use other closed-source models or highly performant open-source models as evaluators. A.4 Multi-GPU Acceleration Multi-GPU acceleration requires sufficient GPU resources. For larger models, such as Llama270B, deploying a single instance requires two A100 GPUs. Therefore, when using Multi-GPU acceleration, it is essential to consider both the model and the available GPU resources to ensure optimal configuration. [17https://github.com/OpenBMB/UltraEval/blob/](https://github.com/OpenBMB/UltraEval/blob/main/docs/tutorials/en/ultraeval.md) [main/docs/tutorials/en/ultraeval.md](https://github.com/OpenBMB/UltraEval/blob/main/docs/tutorials/en/ultraeval.md) 255 1 2 <mark>def</mark> <mark>process_text(text):</mark> 3 <mark>triple_quotes_indices</mark> <mark>=</mark> <mark>[i</mark> <mark>for</mark> <mark>i,</mark> <mark>_</mark> <mark>in</mark> <mark>enumerate</mark> <mark>(text)</mark> <mark>if</mark> <mark>text.</mark> <mark>startswith(</mark> <mark>’\"\"\" ’,</mark> <mark>i)]</mark> 4 5 <mark>if</mark> <mark>len</mark> <mark>(triple_quotes_indices)</mark> <mark>%</mark> <mark>2</mark> <mark>==</mark> <mark>0</mark> <mark>and</mark> <mark>len</mark> <mark>(triple_quotes_indices)</mark> <mark>></mark> <mark>0:</mark> 6 <mark>for</mark> <mark>i</mark> <mark>in</mark> <mark>range</mark> <mark>(0,</mark> <mark>len</mark> <mark>(triple_quotes_indices),</mark> <mark>2):</mark> 7 <mark>start_index</mark> <mark>=</mark> <mark>triple_quotes_indices[i]</mark> 8 <mark>end_index</mark> <mark>=</mark> <mark>triple_quotes_indices[i</mark> <mark>+</mark> <mark>1]</mark> 9 <mark>if</mark> <mark>’def’</mark> <mark>in</mark> <mark>text[end_index :]:</mark> 10 <mark>return</mark> <mark>text[: start_index ]. strip ()</mark> 11 <mark>return</mark> <mark>text.strip()</mark> 12 <mark>elif</mark> <mark>len</mark> <mark>(triple_quotes_indices)</mark> <mark>></mark> <mark>0:</mark> 13 <mark>return</mark> <mark>text[: triple_quotes_indices [0]]. strip ()</mark> 14 <mark>else</mark> <mark>:</mark> 15 <mark>return</mark> <mark>text.strip()</mark> Figure 6: An example of a post-processing method for the MBPP task. 256 Figure 7: An example of ChatGPT to accomplish HumanEval. The figure illustrates that the responses from ChatGPT cannot be directly used for computation and require post-processing to extract the substantive content. 257

섹션 본문 48문단 · 20,632자

(제목 없음)

1Evaluation is pivotal for refining Large Language Models (LLMs), pinpointing their capabilities, and guiding enhancements.The rapid development of LLMs calls for a lightweight and easy-to-use framework for swift evaluation deployment.However, considering various implementation details, developing a comprehensive evaluation platform is never easy.Existing platforms are often complex and poorly modularized, hindering seamless incorporation into research workflows.This paper introduces Ul-traEval, a user-friendly evaluation framework characterized by its lightweight nature, comprehensiveness, modularity, and efficiency.We identify and reimplement three core components of model evaluation (models, data, and metrics).The resulting composability allows for the free combination of different models, tasks, prompts, benchmarks, and metrics within a unified evaluation workflow.Additionally, UltraEval supports diverse models owing to a unified HTTP service and provides sufficient inference acceleration.UltraEval is now available for researchers publicly 1 .

Introduction

2LLMs have been deployed in diverse domains, such as finance (Zhang and Yang, 2023), education (Kasneci et al., 2023), and law (Blair-Stanek et al., 2023), demonstrating their versatility and efficacy (Zhao et al., 2023).This advancement is significantly bridging the gap between the realization of the current state and Artificial General Intelligence (AGI) (Bubeck et al., 2023).Nevertheless, the expansion of model parameters and training datasets engenders increasing uncertainties and emergent capabilities, posing potential risks to humanity and challenges to stable training models (Chang et al., 2023;Bommasani et al., 2021;Wei et al., 2022a).Consequently, it is imperative to continuously and meticulously evaluate the evolving capabilities of LLMs throughout their development to ensure their responsible and beneficial applications.

3Traditional benchmarks (Zellers et al., 2019;Suzgun et al., 2022;Austin et al., 2021;Clark et al., 2018) typically focus on evaluating model performance in a specific capability, making it challenging to assess the comprehensive abilities of a model.Additionally, these benchmarks generally do not include model deployment.Building pipelines from scratch for each combination of tasks and models for evaluation is highly inefficient and repetitive.Therefore, an integrated evaluation framework is crucial.Currently, some evaluation frameworks covering the entire pipeline from model deployment to model evaluation are proposed, and predominantly divided into two types: conversational websites, exemplified by platforms like Chatbot Arena2 , and open-source evaluation tools, such as lm-evaluation-harness3 .The former effectively assesses the conversational abilities of a model but lacks comprehensive task coverage and transparency in the evaluation process.The latter opensource frameworks face challenges such as incomplete task coverage, complex code structure, heavy implementations, high difficulty to use, and tightly coupled functionalities.These issues hinder both convenient and comprehensive assessments.

4In this paper, we identify three core components that form the evaluation process: models (or systems), task data, and metrics (i.e., evaluation methods), as illustrated in Figure 1.Rethinking the implementations in these three aspects would benefit the construction of a lightweight and easy-to-use evaluation framework, which covers mainstream tasks and complete evaluation pipeline, and can be easily expanded according to user customization.To this end, we introduce UltraEval, a lightweight and user-friendly open-source framework for LLMs evaluation.It stands out for its modular and scalable design, enabling thorough assessment of model capabilities.As illustrated in Figure 2, we segment the evaluation pipeline into three main modules: Data, Model, and Metrics, each operating independently and interacting through data exchange.

5Specifically, UltraEval is characterized by the following features:

61. Lightweight Usage Modes.UltraEval is designed with minimal dependency requirements and features straightforward design and installation, complemented by detailed documentation.Users can initiate automated evaluations with just a few simple commands.

72. Comprehensive Evaluation Tools.UltraEval offers an extensive benchmarks suite, com-prising over 50 commonly used benchmarks, and provides a customized prompt for each task.During the evaluation process, we replicated commonly used metrics and incorporated post-processing methods for more accurate metric calculation.We replicate some benchmarks from the LLaMA2 (Touvron et al., 2023), achieving consistent results, which demonstrates UltraEval's reliability.

83. Modular Architecture and Interfaces.The three main modules are independent and have clear functions, enhancing the system stability of UltraEval.Moreover, its excellent scalability allows users to flexibly customize the evaluation workflow, such as by adding new models, tasks, metrics, and more.

94. Efficient Inference Engines.UltraEval deploys models as HTTP services, supporting the evaluation of LLMs from different sources, including the models deployed locally and the web-based API.When deployed locally, we also provide the interface to utilize vLLM 4 (Kwon et al., 2023) and Gunicorn to enable multi-GPU acceleration.

10Evaluation is currently in a phase of rapid and exploratory growth.UltraEval will be continuously updated and provide detailed tutorials to help researchers to efficiently deploy evaluation pipeline.

Related Work

11The advancement of LLMs has led to the emergence of various evaluation frameworks, each with Types: Supported Models for Evaluation, GPT: GPT series models, LLaMA: LLaMA series models its unique features.This section will provide a detailed overview of the current state of evaluation frameworks (also see Table 1).

12Chatbot Arena (Zheng et al., 2024) offers a LLM evaluation platform where users vote on model responses, using a crowdsourced, anonymous Elo-rating system.Although innovative, its reliance on human judgment limits its suitability for fast, routine assessments.AlpacaEval5 (Li et al., 2023) and FastChat6 (Zheng et al., 2023a) conduct evaluation by employing GPT-4 (Achiam et al., 2023) for automated judging.Yet, in evaluating complex reasoning tasks, they tend to favor verbose responses and face issues with robustness.Additionally, the scope of their evaluation capabilities is limited.

13HELM7 (Liang et al., 2022) streamlines language model evaluation but is constrained by its support solely for AutoModelForCausalLM8 , excluding models without namespaces or stored locally.It lacks support for user models, demonstrates potential module coupling issues and absence of acceleration options.FlagEval's9 "capability-task-indicator" framework is original but criticized for its closed-source approach and overly simplistic benchmark choices, raising data security and assessment depth concerns.Despite their innovations, both platforms fall short of the adaptability and comprehensiveness seen in more versatile frameworks like UltraEval.

14LLM harness (Gao et al., 2023), used by Hug-gingFace's Open LLM Leaderboard, and Open-Compass10 (Contributors, 2023) have emerged as comprehensive solutions, offering extensive dataset support and rapid updates.These feature-rich environments, however, entail a trade-off: their complexity and dependency on specific software can complicate usage and customization.This underscores the importance of detailed documentation for those looking to adapt or extend these frameworks.Similarly, InstructEval11 (Chia et al., 2023), leveraging the LLM harness infrastructure, caters specifically to models fine-tuned with instructions such as Alpaca and Flan-T5.Despite its targeted approach, InstructEval's limitations in model and task coverage hint at its niche application rather than widespread utility.The adoption of such frameworks reflects the evolving landscape of model evaluation, where finding a balance between comprehensiveness and usability poses an ongoing challenge.

15OpenAI Evals12 and GPT-Fathom13 (Zheng et al., 2023b).OpenAI Evals offers a straightforward, open-source framework for appraising OpenAI models, while GPT-Fathom expands upon this by analyzing the progression from GPT-3 to GPT-4 using a wider dataset array.Although it provides valuable insights into LLM development, GPT-Fathom shares OpenAI Evals' limitations in supporting a diverse range of models.

UltraEval

16As illustrated in Figure 1, evaluation is a comprehensive process that integrates models, data, and metrics.With this in mind, the design philosophy considers both the independence and interconnectivity of each module.As shown in Figure 2, UltraEval encompasses the entire evaluation lifecycle (Chang et al., 2023) and segments the evaluation workflow into three main modules.In this section, we delve into the design and implementation of each component within UltraEval in detail.

Data Preparation

17Data preparation involves transforming raw data into the final input format for the model, encompassing data preprocessing and prompt templates.

18Data Preprocessing.We collect commonly used benchmarks for evaluating LLMs, such as MMLU (Hendrycks et al., 2020), GSM8K (Cobbe et al., 2021), and Hellaswag (Zellers et al., 2019), covering multiple dimensions of capabilities.Currently, we have 59 benchmarks, listed in Table 2, and we plan to continually expand our collection of benchmarks.

19To ensure the accuracy of the data, we source it from reputable platforms like Hugging Face 14 and GitHub, rather than relying on data modified by third parties.Given the varying data formats across benchmarks, we design a set of templates to standardize these diverse formats into JSON, serving as the starting point for evaluations.As shown in Figure 3, different data items are categorized under unified attributes.

20Prompt Templates.Prompts are used to guide models to generate specific outputs, and Ultra-Eval supports prompt engineering (White et al., 2023), including few-shot and Chain of Thought (CoT) (Wei et al., 2022b), to enhance the model's accuracy.The sensitivity of LLMs to prompts (Zhu et al., 2023) and the variability of prompts across different tasks often make it challenging for researchers to replicate results from papers, hindering research progress.UltraEval addresses this issue by providing customized, stable prompt templates for each task to facilitate result alignment.Figure 4 showcases an example of a prompt template for MMLU, demonstrating the rigorous process for forming the final prompt input.

2114 https://huggingface.co/datasets 1 question = f" Question :\ n{ question ]}\ n" 2 instruction = f" Requirement :\ nChoose and respond with the letter of the correct answer , including the parentheses .\n" 3 options = " Options :\ n" 4 for idx , item in enumerate ( question_options ): 5 options += f" ({ chr (65 + idx ) }) { item }\ n" 6 answer_prompt = f" Answer :\ n" 7 final_input = question + instruction + options + answer_prompt

Model Deployment

22UltraEval employs a unique design approach, deploying models as HTTP online services and leveraging vLLM and gunicorn technologies to enable multi-GPU acceleration.

23Http Service.In traditional evaluations, model deployment is closely integrated with task assessment, requiring models to be redeployed for each new task, which can lead to unnecessary consumption of time and hardware resources.To address this, we deploy models as HTTP services with Flask, facilitating modularization and efficient resource use.This approach has several advantages: 1. Independence.We provide a unified interface through which models receive task data and hyperparameters, returning results upon completing inference.This setup, which allows for adjustments via hyperparameters, ensures model independence.

Comprehensiveness.

24In UltraEval, we enable direct model loading from the Huggingface Transformers library.Given the independent deployment, UltraEval theoretically supports all models, including those from personal experimentation under different frameworks, greatly enhancing research and development flexibility.We utilize vLLM 15 as the foundational acceleration framework, granting loading priority to models it supports.

253. Scalability.Thanks to its excellent scalability, users can easily extend models from languagebased applications to multimodal models.

26Multi-GPU Acceleration.We use the Gunicorn web server with Flask to deploy models via web endpoints, achieving a flexible and decoupled architecture for model deployment and evaluation.This setup allows for dynamic GPU acceleration, where 15 https://github.com/vllm-project/vllmthe Gunicorn server, configured with environmentspecific parameters, manages multiple worker processes.Each process, handling a slice of the available GPUs, executes inference tasks in parallel, significantly improving computational efficiency and throughput.A highlight of UltraEval's performance is its ability to utilize 4 A800 GPUs to evaluate a test set of 41k data points in under 1.5 hours, showcasing remarkable efficiency 16 .

Evaluation Methods

27Refined data and models are instantiated through the Task and Model classes, respectively, initiating the model inference process.The model performs inference based on the input data and its hyperparameters, generating prediction outcomes.Typically, between the model's output and the final score calculation, there are intermediate steps including post-processing and metric calculation.

28Post-Processing.Model outputs, influenced by task characteristics, prompt templates, and the model's performance, often contain extraneous information beyond the answers needed (Park et al., 2024).As shown in Figure 7, when ChatGPT responds to HumanEval questions, the response may include both code and additional textual descriptions, complicating automatic evaluation.To more accurately assess the model, it is necessary to postprocess the model's outputs to extract the most crucial answers.

29Post-processing is bifurcated into two dimensions: model and task.Variations in model training approaches result in different versions, such as chat and base, necessitating distinct processing methods.Additionally, certain tasks employ specific evaluation methodologies.Taking Figure 7 as an example, the initial step involves extracting the code segment from ChatGPT's response.Subsequently, due to HumanEval (Chen et al., 2021)'s unique evaluation 16 The model used in this experiment is Llama2-7B, and the benchmarks includes BBH, MMLU, C-Eval, CMMLU, HumanEval, MBPP, GSM8K and MATH.In total, they consist of 40,938 data points.criteria, it is necessary to extract the function body from the code while omitting the function name, yielding a cleaner and more precise answer.Ul-traEval develops several post-processing methods tailored to the tasks and models currently available.

30Metric Calculation.Evaluation methods are categorized based on their ability to be computed automatically into automatic evaluation and human evaluation (Chang et al., 2023).For automatic evaluation, we implement common metrics such as exact match for text generation tasks, F1 score for binary classification tasks, ROUGE (Lin, 2004) for translation tasks, and pass@k (Chen et al., 2021) for coding tasks.Specifically, for exact match, we develop extensions like in match and prefix match to more effectively capture a wide range of scenarios.

31Given that UltraEval is an automated evaluation framework, for human evaluation, we integrate GPT-4 (Achiam et al., 2023) as a discriminator to substitute for human evaluation.Moreover, all data results can be saved according to user preferences, allowing users to decide on human evaluation if desired, thus offering significant flexibility for a more objective assessment.et al., 2023), however, it is inferred to be 38.0 from the figures in the paper.The replicated result for GSM8K is 35.4 in Gemma paper (Team et al., 2024), which is close to our result.

Evaluation

32UltraEval aims to provide a lightweight, comprehensive, and user-friendly evaluation framework to support research.As illustrated in Figure 5, UltraEval's modular design effectively combines various models, tasks and metrics for evaluation.Using UltraEval, we evaluate models from the LLaMA2 series (Touvron et al., 2023) and Mistral(Jiang et al., 2023) on these widely-used benchmarks.As indicated in the Table 3, some reproduced results are higher, while others are lower, but within a certain margin of error, our reproduced results are consistent with the results reported in the papers, underscoring our framework's reliability.The sources of error include hyperparameters (e.g., temperature, top-p) and hardware configurations.Since the evaluation details are not provided in the papers, verification is not possible.This highlights the importance of having an open and reproducible evaluation framework.Furthermore, UltraEval supports innovative research efforts, research on predictable scaling (Hu et al., 2023), OlympiadBench (He et al., 2024) and model training, such as with MiniCPM (Hu et al., 2024).

Discussion and Future Work

33In this section, we discuss future work following this study.Specifically, we focus on addressing data contamination and supporting a broader range of evaluation scenarios.

34Data contamination refers to the phenomenon that examples from the evaluation set are also found in the training data (Li et al., 2024), causing inaccuracies in model evaluation.Common methods for contamination detection include n-gram over-lap and embedding similarity search.However, none of these methods are perfect, making research on contamination detection still crucial.We will integrate these methods.

35Supporting more evaluation scenarios, such as multimodal, long-text, and Retrieval-Augmented Generation (RAG), is crucial for meeting a broader range of evaluation needs.This will be an important direction for our future work.

Conclusion

36We introduce UltraEval, a lightweight, userfriendly, and comprehensive framework for model evaluation.UltraEval establishes a unified structure with well-defined modules and flexible interactions, aiding researchers and developers in efficiently deploying evaluation workflows.Moving forward, we plan to continuously integrate new technologies and features into UltraEval, extending beyond large language models to support the evaluation of multimodal models, Retrieval-Augmented Generation (RAG), agents, and more, to advance the research on AGI.Additionally, we aim to expand our collection of representative benchmarks and also develop our own, exploring the capabilities and limits of large models.

Limitations

37Currently, our approach primarily utilizes text domain evaluation.However, we are looking to expand the scope of UltraEval by integrating multimodal and long-context evaluation datasets.This enhancement aims to facilitate more thorough and diverse assessments.Additionally, there is room for improvement in the visualization of our results.Future improvement will focus on enabling multidimensional visualization, thereby enriching the interpretability and depth of our evaluation results.

Ethical Considerations

38In this paper, we present UltraEval, a lightweight, user-friendly, flexible, and comprehensive frame-work for model evaluation.Adhering to the principles of modularity, UltraEval segments the evaluation process into three distinct modules: Data, Model, and Metrics.This approach enhances the framework's extensibility and flexibility, allowing for the easy integration of new models and tasks.We offer an extensive benchmark suite and replicate commonly used models and benchmarks.Our results align with those reported in the corresponding papers, underscoring the stability and reliability of our framework.Committed to sustainable development, we publicly release all our code to minimize unnecessary carbon footprint.Throughout our experiments, we adhere to all licenses related to models and data.

Figure 1 :

39Figure 1: The three core modules of model evaluation.

Figure 2 :

40Figure 2: The overall pipeline of UltraEval, designed according to the three core modules of model evaluation.

Figure 3 :

41Figure 3: The data formatting template for MMLU.

Figure 4 :

42Figure 4: An example of a prompt template for an MMLU task.

Figure 5 :

43Figure 5: The combination of different modules within UltraEval.

Table 1 :

44Comparison of Evaluation Frameworks.Bytes: the total bytes of Python and Jupyter Notebook code in each framework's GitHub repository, Acceleration: tools or methods employed to expedite model inference, Model

Table 2 :

45We compile a collection of 59 widely-used benchmarks and categorized them according to scenarios.

461 def transform_entry ( row ):

Table 3 :

47Evaluation results on mainstream benchmarks (%).

48*The BBH score is not explicitly stated in the paper(Jiang

참고문헌

참고문헌 정보가 없습니다.