TATRA: 无需训练的实例自适应提示法通过重述与聚合
TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregation
AI总结:
TATRA通过重述与聚合生成实例特定的少量示例提示,无需训练数据和优化循环,在文本分类和数学推理任务中表现优异。
摘要:
大型语言模型(LLMs)在对齐方面有了显著提升,但其行为仍然高度敏感于提示语的措辞。这种脆弱性促使了自动提示工程的发展,但现有大多数方法(i)需要特定任务的训练集,(ii)依赖于昂贵的迭代优化来生成单一数据集级别的提示,(iii)必须为每个新任务重新从头开始运行。我们介绍了TATRA,一种无需数据集的提示方法,通过在飞动生成示例来构建实例特定的少量示例提示,以配合用户提供的指令。TATRA不需要标记的训练数据,避免了任务特定的优化循环,同时保留了基于演示的提示的优点。在标准文本分类基准上,TATRA与依赖训练数据和广泛搜索的强提示优化基线匹配或改进。在数学推理基准上,TATRA在GSM8K和DeepMath上实现了最先进的性能,优于在这些任务上显式优化提示的方法。我们的结果表明,为每个实例构建有效的上下文示例比运行长时间、昂贵的优化循环来生成每个任务的单一提示更重要。我们将在论文接受后公开所有代码。代码可在https://github.com/BMD223/TATRA上获得。
英文摘要:
Large Language Models (LLMs) have improved substantially alignment, yet their behavior remains highly sensitive to prompt phrasing. This brittleness has motivated automated prompt engineering, but most existing methods (i) require a task-specific training set, (ii) rely on expensive iterative optimization to produce a single dataset-level prompt, and (iii) must be rerun from scratch for each new task. We introduce TATRA, a dataset-free prompting method that constructs instance-specific few-shot prompts by synthesizing on-the-fly examples to accompany a user-provided instruction. TATRA requires no labeled training data and avoids task-specific optimization loops, while retaining the benefits of demonstration-based prompting. Across standard text classification benchmarks, TATRA matches or improves over strong prompt-optimization baselines that depend on training data and extensive search. On mathematical reasoning benchmarks, TATRA achieves state-of-the-art performance on GSM8K and DeepMath, outperforming methods that explicitly optimize prompts on those tasks. Our results suggest that per-instance construction of effective in-context examples is more important than running long, expensive optimization loops to produce a single prompt per task. We will make all code publicly available upon acceptance of the paper. Code is available at https://github.com/BMD223/TATRA
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。