数据源与状态仍在导航菜单中
arxiv.org·2026/10/22
作者以码长增益统一上下文学习与微调,给出数据进上下文或权重的认证规则:期望增益等于 I(Q;Zc)+KL0−decc,即存储信息、先验修复与解码损失。容量上限证书、anytime-valid检验、预序曲线与存储预算只依赖log概率和重跑。作者报告,训练好的transformer上25项、TabPFN/占用/立体网络上36项证书全对;anytime-valid检验选TabPFN胜XGBoost、选代理模型胜上下文学习器,错率至多3.3%;GPT-2上32项比较近乎全对;无标签估值以AUROC 0.91恢复Trace Budget裁决器。该定律给上下文学习以压缩解释;证书需精确信息项,其余工具不依赖真实分布。
为什么重要 为“新数据进 context 还是进 weights”提供可计算决策与误差控制测试,直接服务推理缓存、微调与证据核查。适合 做推理缓存与微调决策、模型评估、数据闭环和证据核查的工程师与研究员。
我们首次给出一个认证规则,用于判断未见数据属于预训练模型的上下文还是权重,该规则建立在其信息价值的精确定律之上。该价值,即在 held-out queries 上节省的代码长度,在期望上等于存储的关于 query 的 bits,加上 prior repair,减去 decoding loss,对任何模型、架构、数据集和任务均成立。
该定律的 ceilings 通过一次测量认证选择,并且一个 anytime-valid test 通过 held-out queries 做出认证,其误差在停止时始终受控。由 ceilings 在一个 trained transformer、TabPFN、一个 occupancy network 和一个 stereo network 上签发的每个证书都是正确的。
该测试在 airfoil pressure 任务上选择 TabPFN 而非 XGBoost,并选择 trained surrogate 而非 in-context learner;在 32 个比较中,它对 64,000 个 query streams 中的 61,948 个正确判定 GPT-2 的 cache 和 fine-tune 中更优者,并在 null streams 中错误率不超过 3.3%。该定律还诊断了上下文中的学习何时有帮助、何时没有帮助。
删除部分上下文在任何模型中都是对该部分的 held-out 验证,逐一添加部分则追踪上下文中的学习曲线:一个看见形状特征的 patch 将 occupancy network 在该处的代码长度削减了一百倍,而八个错过它的 patch 几乎将其翻倍;在 stereo network 中,一个看见表面的摄像头胜过四个。
通过这种无标签评估排序,一个 kriging learner 的三个最佳 support cars 胜过随机抽取的四辆;在一个 yes-or-no 命题上,该评估恢复了已发表的证据裁决器,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.
证书正确
全部与实测胜者一致
跨域证书
86 项核对全部一致
GPT-2 调用
32 项对比调用正确
0.5bit 优势
中位数内全部正确
注释 · 测试可停止时控制误差,证书无需训练另一通道。出自 §6.1, §6.2
特征点价值
每次查询代价
匹配几何点
形状未见仅形式
特征补丁
先到补丁码长骤降
遗漏补丁
8 个不相关补丁抬高
Kriging top3
优于随机四辆
注释 · 删减重建内存即无标签验证,逐项刻画上下文学习曲线。出自 §4, Fig.2, Fig.6
EVIDENCE / METHODS
判断
码长定律首次给出 context 与 weights 的可认证选择规则。
同一码长定律的增益拆分,可把新数据放进上下文或写入权重做逐项比较。证书从单次测量即可裁定胜者,anytime-valid 测试从 held-out queries 做选择且随时停止误差可控。对工程最有用的点是:无需训练另一通道即可判定;GPT-2 上微调相对缓存的 0.35–0.55 bit/token 优势,正是其解码损失下界。
注释 · 结论对应 Table 1 四个工具:精确定律、证书、解码损失下界、anytime-valid 测试。出自 §1 Introduction
原版排版与图表 · 手机无法内嵌时可在浏览器打开。PDF 插件内选文不能传给网页助手。