arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.16714cs.CLcs.AIcs.LG
收藏

AutoDetect:迈向用于大型语言模型自动化弱点检测的统一框架

AutoDetect: Towards a Unified Framework for Automated Weakness Detection in Large Language Models

Tsinghua University(清华大学);Zhipu AI(智谱AI)

Jiale Cheng, Yida Lu, Xiaotao Gu, Pei Ke, Xiao Liu, Yuxiao Dong, Hongning Wang, Jie Tang, Minlie Huang

AI总结:

提出 AutoDetect 统一框架,通过 Examiner、Questioner、Assessor 三类智能体自动检测 LLM 弱点,并据此指导模型改进,显著提升多个模型的基准性能。

摘要:

尽管大型语言模型(LLM)正变得越来越强大,但它们仍表现出显著且隐蔽的弱点,例如在指令遵循或编程任务中的错误。由于这些意外错误可能在实际部署中导致严重后果,因此系统地研究 LLM 内部的局限性至关重要。传统基准测试方法无法彻底查明具体的模型缺陷,而人工检查成本高昂且不可扩展。本文提出统一框架 AutoDetect,用于自动揭示 LLM 在各类任务中的弱点。受衡量学生学习成果的教育评估过程启发,AutoDetect 包含三个由 LLM 驱动的智能体:Examiner、Questioner 和 Assessor。这三个智能体之间的协作旨在实现全面、深入的弱点识别。该框架在揭示缺陷方面表现出显著成功,在 ChatGPT 和 Claude 等知名模型中的识别成功率超过 30%。更重要的是,这些识别出的弱点能够指导针对性的模型改进,并被证明比 Self-Instruct 等无目标数据增强方法更有效。该方法已为 Llama 系列和 Mistral-7b 等流行 LLM 带来实质性提升,在多个基准测试中将其性能提高超过 10%。代码和数据公开发布于 https://github.com/thu-coai/AutoDetect。

英文摘要:

Although Large Language Models (LLMs) are becoming increasingly powerful, they still exhibit significant but subtle weaknesses, such as mistakes in instruction-following or coding tasks. As these unexpected errors could lead to severe consequences in practical deployments, it is crucial to investigate the limitations within LLMs systematically. Traditional benchmarking approaches cannot thoroughly pinpoint specific model deficiencies, while manual inspections are costly and not scalable. In this paper, we introduce a unified framework, AutoDetect, to automatically expose weaknesses in LLMs across various tasks. Inspired by the educational assessment process that measures students' learning outcomes, AutoDetect consists of three LLM-powered agents: Examiner, Questioner, and Assessor. The collaboration among these three agents is designed to realize comprehensive and in-depth weakness identification. Our framework demonstrates significant success in uncovering flaws, with an identification success rate exceeding 30% in prominent models such as ChatGPT and Claude. More importantly, these identified weaknesses can guide specific model improvements, proving more effective than untargeted data augmentation methods like Self-Instruct. Our approach has led to substantial enhancements in popular LLMs, including the Llama series and Mistral-7b, boosting their performance by over 10% across several benchmarks. Code and data are publicly available at https://github.com/thu-coai/AutoDetect.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑