GRaSp:用于低数据任务中上下文学习的自动示例优化
GRaSp: Automatic Example Optimization for In-Context Learning in Low-Data Tasks
AI总结:
GRaSp提出一个三阶段框架,通过生成合成候选集、聚类降维和遗传算法优化,提升上下文学习任务的性能,尤其在金融命名实体识别任务中表现优异。
摘要:
上下文学习使大语言模型能够适应新任务,但其性能对所选示例高度敏感。在领域特定且数据有限的设置中,找到有效的演示示例尤其困难。我们提出GRaSp,一个三阶段框架用于自动上下文示例优化。首先生成大量合成候选集,然后通过聚类和降维进行结构化处理,最后使用遗传算法寻找最优的上下文示例,该框架在命名实体识别任务中表现出持续改进。我们还引入了一种自定义的多样性自适应突变机制,使其能够从初始的广域集群探索过渡到聚焦的集群内精炼。我们在金融命名实体识别(FiNER-139)上评估GRaSp,比较了500和5000大小的合成和人工标注候选集。使用非合成数据,GRaSp实现了45.84%的微F1分数,持续优于零样本和随机少样本基线。合成数据与随机基线相当,但未超过,表明候选集中的分布多样性对泛化至关重要。
英文摘要:
In-context learning enables large language models to adapt to new tasks, but their performance is highly sensitive to the selected examples. Finding effective demonstrations is particularly difficult in domain-specific, low-data settings where high-quality examples are scarce. We propose GRaSp, a three-stage framework for automatic in-context example optimization. By first generating a large synthetic candidate pool, then structuring it with clustering and dimensionality reduction, and finally using genetic algorithms to find the optimal in-context examples, the framework shows consistent improvements on the NER task. We also introduce a custom diversity-adaptive mutation mechanism, allowing it to transition from the initial broad inter-cluster exploration to focused intra-cluster refinement as the population converges. We evaluate GRaSp on financial named entity recognition (FiNER-139), comparing synthetic and human-annotated candidate pools across pool sizes of 500 and 5000. With non-synthetic data, GRaSp achieves 45.84% micro-F1, consistently outperforming both zero-shot and random few-shot baselines. Synthetic data matches the random baseline but does not exceed it, suggesting that distributional variety in the candidate pool is critical for generalization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。