NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Learning through Internalization

Nirmit Joshi, Marko Medvedev, Nikolaos Tsilivis, Julia Kempe, Nati Srebro

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Interpretability & Model Adaptation › Chain-of-Thought Reasoning in Transformers · Type: theory · Keywords: internalization, chain-of-thought, transformer, parity learning, machine learning theory, positive distribution shift

Summary

The paper studies internalization, where neural networks absorb explicit computational procedures into their weights, and provides the first provable analysis of this process on parity learning, showing how transformers can internalize chain-of-thought reasoning and the associated trade-offs.

Explained to a 5-year-old

Computers can learn to do math tricks by first being shown how to do them step by step. Then they hide those steps inside their brain and can do the tricks on their own. This helps them learn faster, but sometimes they get worse at new problems. The researchers proved this works for a simple math problem. They also found it is hard to learn the tricks without showing them first.

Explained to a 5-year-old, longer

Imagine a computer program that wants to solve a puzzle. First, we tell it exactly how to solve the puzzle, step by step. The program watches us and learns from this careful instruction. After learning, the program can solve the puzzle by itself without us reminding it each time. This process of hiding the steps inside the program is called internalization. Researchers looked at a special kind of program called a transformer and saw how it could internalize solving simple math problems. They showed that the program first needs us to give it the steps, then it can do the math on its own. They also found that if we try to make the program learn the math without any help, it becomes very difficult. The study also revealed that while the program gets better at the problem it was taught, it can become worse at solving new, unseen problems. This trade-off is an important thing to know when we design learning systems. The work connects this idea to a broader concept called Positive Distribution Shift, which describes how learning can change a model’s behavior in useful ways. Overall, the research gives us a clearer picture of how neural networks can store and use knowledge internally.

For a technical reader

The paper investigates how transformers can internalize explicit algorithms by absorbing chain-of-thought tokens into their weights, enabling direct computation after an initial supervised phase. It provides a provable analysis on parity learning, showing that internalization improves efficiency but can degrade out-of-distribution performance. The work also highlights a computational hardness result for learning the internalized representation without supervision and relates the findings to the Positive Distribution Shift phenomenon.

Problem

How can neural networks learn to perform explicit algorithms by encoding them into their parameters, and what are the challenges and trade-offs of such internalized knowledge?

Method

The approach studies how neural networks can absorb explicit computational procedures into their weights, focusing on transformers internalizing semiautomata simulations through chain-of-thought tokens and providing a provable analysis on parity learning.

Results

The approach demonstrates that a transformer can first learn with explicit chain-of-thought supervision and then internalize the computation to directly compute parity as supervision is removed, and that learning the internalized representation without supervision is computationally hard. Additionally, internalization leads to a gradual decline in out-of-distribution performance.

Contributions

The paper provides the first provable analysis of internalization, identifying which classes of semiautomata are harder to internalize and showing a trade-off between in-distribution performance and out-of-distribution degradation. It also connects internalization to the Positive Distribution Shift phenomenon.

Limitations and assumptions

The analysis is limited to a simplified one-layer transformer, which may not capture all behaviors of deeper models.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction