arXiv:2506.14702cs.CLcs.LG2025-06NeurIPS被引 3

用训练期标记提升模型对罕见任务的响应能力,让冷门需求也能精准命中。

Treasure Hunt: Real-time Targeting of the Long Tail using Training-Time Markers

  • 在训练时注入可识别的语义标记,让模型学会自动感知并响应冷门任务
  • 在稀有任务上实现超9.1%性能提升,长尾生成质量平均提高5.7%
  • 无需额外提示即可自动适应,适合需要稳定应对小众场景的部署应用

现代机器学习在处理罕见、低频特征时面临巨大挑战。通用大模型虽覆盖多任务,但对高频任务表现更优,难以在训练数据中代表性不足的特定场景下保持良好性能。依赖提示工程或少样本示例来优化单个测试用例的结果往往效果不稳定,模型对微小变化敏感,行为不可预测,且依赖固定系统提示。本文提出:能否通过优化训练流程,同时提升模型在推理阶段对低频用例的可控性与表现?我们重新审视训练与推理之间的分工,构建数据特征与任务来源的详细分类体系,显式控制生成属性,隐式引导推理过程。通过微调基础模型自动推断这些标记,使它们在推理时可选。该方法在长尾分布样本上带来显著性能提升,开放生成任务平均提升5.7%胜率,罕见领域提升超9.1%,代码修复类任务相对提升达14.1%,长度指令遵循任务绝对提升35.3%。

原文摘要 · Abstract (English)

One of the most profound challenges of modern machine learning is performing well on the long-tail of rare and underrepresented features. Large general-purpose models are trained for many tasks, but work best on high-frequency use cases. After training, it is hard to adapt a model to perform well on specific use cases underrepresented in the training corpus. Relying on prompt engineering or few-shot examples to maximize the output quality on a particular test case can be frustrating, as models can be highly sensitive to small changes, react in unpredicted ways or rely on a fixed system prompt for maintaining performance. In this work, we ask: "Can we optimize our training protocols to both improve controllability and performance on underrepresented use cases at inference time?" We revisit the divide between training and inference techniques to improve long-tail performance while providing users with a set of control levers the model is trained to be responsive to. We create a detailed taxonomy of data characteristics and task provenance to explicitly control generation attributes and implicitly condition generations at inference time. We fine-tune a base model to infer these markers automatically, which makes them optional at inference time. This principled and flexible approach yields pronounced improvements in performance, especially on examples from the long tail of the training distribution. While we observe an average lift of 5.7% win rates in open-ended generation quality with our markers, we see over 9.1% gains in underrepresented domains. We also observe relative lifts of up to 14.1% on underrepresented tasks like CodeRepair and absolute improvements of 35.3% on length instruction following evaluations.

长尾问题可控生成训练优化提示工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。