arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.19929cs.CLcs.AIcs.SE
收藏

吝啬上下文:18:1的分层代码压缩用于LLM自动编码

Stingy Context: 18:1 Hierarchical Code Compression for LLM Auto-Coding

ViperPrompt

David Linus Ostby

AI总结:

Stingy Context通过分层树状压缩技术实现18:1的上下文压缩,有效提升LLM自动编码任务的效率和准确性。

摘要:

我们介绍了Stingy Context,一种基于树状的分层压缩方案,实现了在自动编码任务中LLM上下文的18:1压缩。通过我们的TREEFRAG利用分解,我们将一个包含239,000个标记的真实源代码库压缩到11,000个标记,同时保持任务的准确性。在12个Frontier模型上的实验证明,能够在低成本下对40个真实问题实现94至97%的成功率,优于传统方法,并缓解了中间丢失效应。

英文摘要:

We introduce Stingy Context, a hierarchical tree-based compression scheme achieving 18:1 reduction in LLM context for auto-coding tasks. Using our TREEFRAG exploit decomposition, we reduce a real source code base of 239k tokens to 11k tokens while preserving task fidelity. Empirical results across 12 Frontier models show 94 to 97% success on 40 real-world issues at low cost, outperforming flat methods and mitigating lost-in-the-middle effects.

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

↑