mlsanityData to 26 Nov 2026

When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning

arXiv 2610.29419 ↗Submitted 21 Oct 2026stat.ML cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 41 of its 64 references that are in the map. Submitted 21 Oct 2026.

Builds on

41 of 64 references.

References · 41

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
  2. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,384
  3. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
  4. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 4,046
  5. 2015ShapeNet: An Information-Rich 3D Model Repositorycited by 2,988
  6. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,699
  7. 2017Understanding Black-box Predictions via Influence Functionscited by 1,815
  8. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,487
  9. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,123
  10. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 989
  11. 2021Towards a Unified View of Parameter-Efficient Transfer Learningcited by 907
  12. 2018MVSNet: Depth Inference for Unstructured Multi-view Stereocited by 814
29 more
  1. 2020Convolutional Occupancy Networkscited by 771
  2. 2022Transformers learn in-context by gradient descentcited by 763
  3. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 754
  4. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 729
  5. 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 664
  6. 2014OpenML: networked science in machine learningcited by 550
  7. 2021Understanding Dataset Difficulty with V-Usable Informationcited by 303
  8. 2023Language Modeling Is Compressioncited by 244
  9. 2021Get Your Vitamin C! Robust Fact Verification with Contrastive Evidencecited by 228
  10. 2020Estimating means of bounded random variables by bettingcited by 202
  11. 2022Game-theoretic statistics and safe anytime-valid inferencecited by 185
  12. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 185
  13. 2020A Theory of Usable Information Under Computational Constraintscited by 183
  14. 2022Learning by Distilling Contextcited by 180
  15. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 167
  16. 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 143
  17. 2022A Kernel-Based View of Language Model Fine-Tuningcited by 134
  18. 2024ContextCite: Attributing Model Generation to Contextcited by 117
  19. 2022AirfRANS: High Fidelity Computational Fluid Dynamics Dataset for Approximating Reynolds-Averaged Navier-Stokes Solutionscited by 97
  20. 2018Generalization Error Bounds for Noisy, Iterative Algorithmscited by 83
  21. 2018The Description Length of Deep Learning Modelscited by 78
  22. 2021Measuring and Increasing Context Usage in Context-Aware Machine Translationcited by 51
  23. 2022The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attentioncited by 49
  24. 2024An Information-Theoretic Analysis of In-Context Learningcited by 48
  25. 2025On the generalization of language models from in-context learning and finetuning: a controlled studycited by 47
  26. 2024In-context learning and Occam's razorcited by 14
  27. 2021Valid sequential inference on probability forecast performancecited by 9
  28. 2021Comparing Sequential Forecasterscited by 9
  29. 2026Exact Finite Attention Responses From RoPE Derivativescited by 2

Built on by

Not cited yet.