自动搜索提示策略,让大模型评估更接近人工判断
HPSS: Heuristic Prompting Strategy Search for LLM Evaluators
- 基于启发式算法迭代搜索8个提示因子的组合策略
- 在4个任务中均优于人工设计和现有自动方法
- 适合需要高精度文本评估的研究者使用
随着大语言模型在自然语言处理领域文本评估中的广泛应用,已有研究尝试优化评估提示以提升其与人类判断的一致性。然而,这些工作仅针对单一因素(如评估标准或输出格式)进行优化,忽略了多个因素组合带来的协同效应,导致评估流程优化不足。识别最优提示策略需大量枚举。为此,我们系统整合了8个关键提示因素,提出一种新型自动提示策略优化方法——启发式提示策略搜索(HPSS)。受遗传算法启发,HPSS通过迭代搜索寻找表现良好的提示策略,并采用启发函数引导搜索过程,提升算法性能。在4项评估任务上的大量实验表明,HPSS持续优于人工设计的提示和现有自动优化方法。代码已开源:https://github.com/thu-coai/HPSS。
原文摘要 · Abstract (English)
Since the adoption of large language models (LLMs) for text evaluation has become increasingly prevalent in the field of natural language processing (NLP), a series of existing works attempt to optimize the prompts for LLM evaluators to improve their alignment with human judgment. However, their efforts are limited to optimizing individual factors of evaluation prompts, such as evaluation criteria or output formats, neglecting the combinatorial impact of multiple factors, which leads to insufficient optimization of the evaluation pipeline. Nevertheless, identifying well-behaved prompting strategies for adjusting multiple factors requires extensive enumeration. To this end, we comprehensively integrate 8 key factors for evaluation prompts and propose a novel automatic prompting strategy optimization method called Heuristic Prompting Strategy Search (HPSS). Inspired by the genetic algorithm, HPSS conducts an iterative search to find well-behaved prompting strategies for LLM evaluators. A heuristic function is employed to guide the search process, enhancing the performance of our algorithm. Extensive experiments across four evaluation tasks demonstrate the effectiveness of HPSS, consistently outperforming both human-designed evaluation prompts and existing automatic prompt optimization methods. Our code is available at https://github.com/thu-coai/HPSS.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。