arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.12123cs.LGcs.AIcs.CL
收藏

Meta-Sel: 通过监督元学习实现高效的上下文学习演示选择

Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learning

BNU-BNBU Institute of Artificial Intelligence(BNU-BNBU人工智能研究院);Future Networks, Beijing Normal-Hong Kong Baptist University(未来网络,北京师范大学-香港 Baptist大学);Beijing Normal University at Zhuhai(珠海北京师范大学)

Xubin Wang, Weijia Jia

AI总结:

Meta-Sel通过监督元学习实现高效的上下文学习演示选择,提升小模型表现并保持低开销。

摘要:

在上下文学习(ICL)中,演示选择是一个实际瓶颈:在紧缩的提示预算下,准确性会显著变化,取决于包含哪些少量示例,但选择必须足够便宜,以便在大型候选池中为每个查询运行。我们提出了Meta-Sel,一种轻量级的监督元学习方法,用于意图分类,该方法从标记训练数据中学习一个快速且可解释的评分函数,用于(候选,查询)对。Meta-Sel通过从训练分割中采样对并使用类别一致性作为监督来构建元数据集,然后在两个低成本的元特征上训练一个校准的逻辑回归器:TF-IDF余弦相似度和长度兼容性比率。在推理时,选择器对完整的候选池执行一次向量化评分操作,并返回前k个演示,不需要模型微调、在线探索和额外的LLM调用。这会产生确定性的排名,并使选择机制通过可解释的特征权重变得易于审计。除了提出Meta-Sel外,我们还提供了广泛的经验研究,评估了演示选择,基准测试了12种方法——涵盖提示工程基线、启发式选择、强化学习和影响基方法——在四个意图数据集和五个开源LLM上。在此次基准测试中,Meta-Sel始终在表现最佳的方法中排名,尤其在较小的模型中,其中选择质量可以部分弥补有限的模型容量,且保持了竞争性的选择时间开销。

英文摘要:

Demonstration selection is a practical bottleneck in in-context learning (ICL): under a tight prompt budget, accuracy can change substantially depending on which few-shot examples are included, yet selection must remain cheap enough to run per query over large candidate pools. We propose Meta-Sel, a lightweight supervised meta-learning approach for intent classification that learns a fast, interpretable scoring function for (candidate, query) pairs from labeled training data. Meta-Sel constructs a meta-dataset by sampling pairs from the training split and using class agreement as supervision, then trains a calibrated logistic regressor on two inexpensive meta-features: TF--IDF cosine similarity and a length-compatibility ratio. At inference time, the selector performs a single vectorized scoring pass over the full candidate pool and returns the top-k demonstrations, requiring no model fine-tuning, no online exploration, and no additional LLM calls. This yields deterministic rankings and makes the selection mechanism straightforward to audit via interpretable feature weights. Beyond proposing Meta-Sel, we provide a broad empirical study of demonstration selection, benchmarking 12 methods -- spanning prompt engineering baselines, heuristic selection, reinforcement learning, and influence-based approaches -- across four intent datasets and five open-source LLMs. Across this benchmark, Meta-Sel consistently ranks among the top-performing methods, is particularly effective for smaller models where selection quality can partially compensate for limited model capacity, and maintains competitive selection-time overhead.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑