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

KACE: 知识自适应上下文工程用于数学推理

KACE: Knowledge-Adaptive Context Engineering for Mathematical Reasoning

School of Computing, University of Georgia(计算学院,佐治亚大学)

Jayant Parashar, Suchendra M. Bhandarkar

AI总结:

提出KACE方法,通过难度和领域分层的知识库与分层自一致性,解决数学推理中上下文膨胀问题,在AIME 2025上达到62.2%准确率。

摘要:

上下文工程可以在不更新权重的情况下改进大型语言模型,但数学推理暴露了一个关键限制:在一个不断增长的提示中累积的反馈会导致上下文膨胀,并限制了可使用的学习指导量。现有方法常常混淆存储(跨运行学习的内容)与使用(针对特定问题包含的内容),因此继承了这种提示大小上限。我们引入了知识自适应上下文工程(KACE),通过基于难度和领域的组织将存储与使用分离。离线时,一个自我反思的学习循环将训练轨迹提炼成认知树:一个按问题难度和认知领域分层的类型化卡片知识库。每张卡片被分配到与其起源失败对应的难度-领域节点。在评估时,具有每层一致性门控的分层自一致性将每个问题动态分类为简单、中等或困难。简单问题无需检索卡片即可退出,而较难的问题仅检索树的匹配分支。这种分层方案在计算量相当的情况下匹配或超过Best-of-N,并以78%的成对一致性对问题难度进行分类。主要的实证贡献是通过分层自一致性构建和使用了一个难度和领域分层的知识库。在AIME 2025上,KACE达到了62.2%的准确率,在可比的求解器调用预算下,比固定的Best-of-5自一致性绝对提高了10.4个百分点,比最强的学习上下文基线Tiered + GEPA提高了5.6个百分点。我们还在MATH-HARD和OlymMATH的可验证子集上观察到一致的提升。

英文摘要:

Context-engineering methods improve a frozen language model by learning text from execution feedback and placing it in the prompt. When one learned prompt carries everything that was learned, irrelevant lessons compete with relevant ones, and the system can keep only what fits in that prompt. We present Knowledge-Adaptive Context Engineering (KACE), which decides per problem both how much inference to spend and which learned knowledge to show. A fixed tiered self-consistency schedule (2, 3, then 5 samples behind agreement gates) lets easy problems exit after two agreeing samples, and the tier at which a problem exits serves as its difficulty label. Offline, a teacher-guided learner distills failed training traces into short typed cards kept in a store partitioned by difficulty tier and domain, and each escalated tier reads only the cards of its (tier, domain) cell. On MATH-HARD, KACE reaches 77.3% against 72.7% for Best-of-5 self-consistency with fewer solver calls, and it scores above tiered ACE (70.0%) and tiered GEPA (72.0%). It also achieves the highest accuracy on AIME 2025 (61.1% against 53.3% for Best-of-5 and 57.8% for tiered GEPA) and on OlymMATH-EN (48.1%). A component analysis shows that the store adds 4.0 points on MATH-HARD and 3.7 on OlymMATH-EN over the tiered schedule alone, and that the (tier, domain) reading rule outperforms every alternative rule for choosing cards from the same store.

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

↑