arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.05130cs.CL
收藏

子模上下文分区与压缩用于上下文学习

Submodular Context Partitioning and Compression for In-Context Learning

New York University(纽约大学);University of Washington Seattle(华盛顿大学西雅图分校);University of Maryland College Park(马里兰大学学院市分校)

Shaoyi Zheng, Canyu Zhang, Tianyi Zhou, Shengjie Wang

AI总结:

针对上下文学习中的信息冗余与代表性不足问题,提出基于子模目标的块感知上下文选择框架Sub-CP,通过控制块多样性提升性能,实验验证其跨模型规模的持续改进。

摘要:

上下文学习(ICL)使大型语言模型(LLMs)无需训练即可实现高效的小样本学习,但受限于Transformer的二次方输入复杂度,限制了最大示例数量。尽管各种高效的ICL方法将上下文分区为多个块进行处理(例如,集成、压缩、交叉注意力),它们往往忽略了由不同分区策略引起的信息冗余或代表性不足,导致性能次优。为解决这一问题,我们提出了Sub-CP,一个块感知的上下文选择框架,利用子模目标来控制块多样性。Sub-CP支持灵活的选择策略谱系,允许每个块从全局多样到局部连贯。这使得能够对语义结构进行细粒度控制,同时支持预计算。在多个数据集上的多样化任务中进行的广泛实验表明,Sub-CP在多种模型规模下持续提升了性能。

英文摘要:

In-context learning (ICL) enables efficient few-shot learning in large language models (LLMs) without training, but suffers from the quadratic input complexity of transformers, limiting the maximum number of exemplars. While various efficient ICL approaches partition the context into blocks to process (e.g., ensembling, compression, cross-attention), they often ignore the information redundancy or under-representation caused by different partition strategies, leading to suboptimal performance. To tackle this problem, we propose Sub-CP, a block-aware context selection framework that leverages submodular objectives to control block diversity. Sub-CP supports a flexible spectrum of selection strategies, allowing each block to range from globally diverse to locally coherent. This allows fine-grained control over semantic structure while enabling precomputation. Extensive experiments across diverse tasks on multiple datasets show that Sub-CP consistently improves performance across model scales.

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

↑