当思考化为记忆:统一上下文学习与微调 When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-21
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
这项研究提出了一个理论法则,用来判断新数据应该放进预训练模型的上下文(临时提示)还是权重(微调)中。该法则认为,数据的信息价值等于在留出查询上节省的编码长度,可分解为存储的比特、先验修正和解码损失。基于此,作者设计了可认证的上限和随时有效的检验方法,在Transformer、TabPFN等模型上验证全部正确,并在GPT-2缓存与微调的对比中,64,000条查询流里正确选择61,948次,错误率不超过3.3%。
领域机器学习/深度学习理论与模型自适应
适合谁读需要一定专业背景(机器学习、信息论基础)
核心贡献首次给出可认证的规则,判断未见数据应放入上下文还是权重,并建立在精确的信息价值法则之上;提出基于留出查询的随时有效检验,能在控制错误率的前提下自动做出选择。
关键数据在GPT-2缓存与微调的32组对比、64,000条查询流中正确选择61,948次;零假设流错误率≤3.3%;一个看到形状特征的补丁使占用网络编码长度降低百倍,八个未看到的补丁使其近乎翻倍;证据裁决AUROC达0.91。
推荐理由如果你纠结新数据该用提示还是微调,这篇论文给出了可认证的答案,还附带了硬核实验数据,值得一读。
关键词["上下文学习", "微调", "信息价值", "模型选择", "编码长度", "无标签评估"]

原文摘要

查看英文原文摘要

We are the first to give a certified rule for whether unseen data belong in a pretrained model's context or its weights, built on an exact law for their information value. That value, the code length saved on held-out queries, equals in expectation the bits stored about the query, plus a prior repair, minus a decoding loss, for any model, architecture, dataset and task. The law's ceilings certify the choice from one measurement, and an anytime-valid test makes it from held-out queries, with error controlled whenever it stops. Every certificate the ceilings issue on a trained transformer, TabPFN, an occupancy network and a stereo network is correct. The test picks TabPFN over XGBoost and a trained surrogate over an in-context learner on airfoil pressure, calls the better of GPT-2's cache and fine-tune in 61,948 of 64,000 query streams over 32 comparisons, and errs in at most 3.3% of null streams. The law also diagnoses when learning in context helps and when it does not. Deleting part of a context is held-out validation of that part in any model, and adding parts one at a time traces the learning curve in context: one patch that sees a shape feature cuts an occupancy network's code length there a hundredfold, while eight that miss it nearly double it, and one camera that sees the surface beats four in a stereo network. Ranked by this label-free valuation, a kriging learner's three best support cars beat four drawn at random, and on a yes-or-no claim the valuation recovers a published evidence adjudicator, with AUROC 0.91.