用自动优化让小模型变强,推理能力逼近大模型。
Direct Behavior Optimization: Unlocking the Potential of Lightweight LLMs
- 直接优化模型行为序列,不用人工写提示词。
- 在7个任务上超越现有方法,性能接近GPT-3.5。
- 适合资源有限但需高效推理的场景使用。
轻量级大语言模型(LwLLMs)是参数量更少、可在消费级硬件上高效运行的优化模型,具备资源效率高、成本低和数据隐私性强等优势。然而,这类模型在复杂任务上的推理能力较弱,实际应用受限。现有提示词优化方法多依赖人工或顶尖大模型的元认知能力,对小模型效果不佳。为此,本文提出DeBoP——一种源自思维链(CoT)提示技术的直接行为优化范式。与CoT不同,DeBoP为全自动优化方法,聚焦于直接优化LwLLMs的行为表现。具体地,它将复杂提示优化转化为离散可量化执行序列的优化,采用无梯度蒙特卡洛树搜索实现。我们在7个顶尖大模型表现优异但小模型普遍落后的任务上评估DeBoP。实验表明,DeBoP显著优于近期提示优化方法,在多数任务上超越了现有自动优化方法,并使小模型性能接近甚至超过GPT-3.5,同时计算时间减少约60%。
原文摘要 · Abstract (English)
Lightweight Large Language Models (LwLLMs) are reduced-parameter, optimized models designed to run efficiently on consumer-grade hardware, offering significant advantages in resource efficiency, cost-effectiveness, and data privacy. However, these models often struggle with limited inference and reasoning capabilities, which restrict their performance on complex tasks and limit their practical applicability. Moreover, existing prompt optimization methods typically rely on extensive manual effort or the meta-cognitive abilities of state-of-the-art LLMs, making them less effective for LwLLMs. To address these challenges, we introduce DeBoP, a new Direct Behavior Optimization Paradigm, original from the Chain-of-Thought (CoT) prompting technique. Unlike CoT Prompting, DeBoP is an automatic optimization method, which focuses on the optimization directly on the behavior of LwLLMs. In particular, DeBoP transforms the optimization of complex prompts into the optimization of discrete, quantifiable execution sequences using a gradient-free Monte Carlo Tree Search. We evaluate DeBoP on seven challenging tasks where state-of-the-art LLMs excel but LwLLMs generally underperform. Experimental results demonstrate that DeBoP significantly outperforms recent prompt optimization methods on most tasks. In particular, DeBoP-optimized LwLLMs surpass GPT-3.5 on most tasks while reducing computational time by approximately 60% compared to other automatic prompt optimization methods.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。