用随机剪枝生成的乱码提示反而能大幅提升大模型表现
Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective

- 通过自演化框架自动搜索最优剪枝策略
- 在多个任务上超越现有优化方法,性能不依赖模型对齐
- 适合研究提示工程机制与开放搜索算法的学者
我们提出一种颠覆传统的大语言模型提示设计范式。传统方法强调精心设计的指令和示例,而我们发现将随机示例剪枝为看似无意义的‘乱码’,可在多种任务中显著提升性能。这种‘乱码’提示始终达到或超越当前最先进的自动提示优化技术,且在不同模型对齐条件下均取得显著提升。然而,找到有效的剪枝策略极具挑战,现有归因方法和压缩算法均难以奏效。为此,我们提出自发现式提示优化框架 PromptQuine,通过低数据环境下自我演化搜索剪枝策略。如同自然界的共生与自组织现象,在资源受限下,该框架仅利用上下文内存在的标记,逐步演化出非传统却高效的提示。我们在分类、多选问答、生成与数学推理等任务上验证了其有效性,同时保持良好运行效率。我们的研究旨在推动对上下文学习的机理探究,并呼吁开发更开放的搜索算法以实现更有效的提示工程。
原文摘要 · Abstract (English)
We propose a novel prompt design paradigm that challenges conventional wisdom in large language model (LLM) prompting. While conventional wisdom prioritizes well-crafted instructions and demonstrations for in-context learning (ICL), we show that pruning random demonstrations into seemingly incoherent "gibberish" can remarkably improve performance across diverse tasks. Notably, the "gibberish" always matches or surpasses state-of-the-art automatic prompt optimization techniques, achieving substantial gains regardless of LLM alignment. Nevertheless, discovering an effective pruning strategy is non-trivial, as existing attribution methods and prompt compression algorithms fail to deliver robust results, let alone human intuition. In terms of this, we propose a self-discover prompt optimization framework, PromptQuine, an evolutionary search framework that automatically searches for the pruning strategy by itself using only low-data regimes. Much like the emergent complexity in nature--such as symbiosis and self-organization--arising in response to resource constraints, our framework evolves and refines unconventional yet highly effective prompts by leveraging only the tokens present within the context. We demonstrate its effectiveness across classification, multi-choice question answering, generation and math reasoning tasks across LLMs, while achieving decent runtime efficiency. We hope our findings can guide mechanistic studies on in-context learning, and provide a call to action, to pave the way for more open-ended search algorithms for more effective LLM prompting.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。