# Transformers Converge to Invariant Algorithmic Cores

*Joshua Schiffman*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151845) · [OpenReview](https://openreview.net/forum?id=XSpP1DqsdD) · [alphaXiv](https://www.alphaxiv.org/abs/2602.22600) · [Open on the map](../papers.html#p151845)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Transformer Algorithmic Decomposition](../pgroup/692.md) · Type: new method · Keywords: transformer mechanistic analysis, algorithmic core extraction, functional redundancy, inverse scaling law, subject-verb agreement

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Transformer Circuits; [Interpretability](../areas/interpretability.md) › Mechanistic Interpretability › Mechanistic Interpretability

## Summary
The paper introduces Algorithmic Core Extraction (ACE) to isolate invariant algorithmic cores in transformers, revealing functional redundancy and a shared computational structure across models.

## Explained to a 5-year-old
Computers called transformers learn to do tasks like grammar. Many different ways to set up the computer can do the same thing. This paper finds a special hidden part that all computers use, like a secret recipe. It shows that when computers practice a lot, they share this secret part and learn faster. This helps us understand why computers get better at hard jobs.

## Explained to a 5-year-old, longer
Computers called transformers can read and write sentences. They learn by adjusting many numbers inside them. Different computers can have different numbers but still do the same job. This paper looks for a hidden part that stays the same no matter how the numbers change. It finds that many computers share a tiny, important space that controls things like grammar. When computers practice a lot, this hidden space becomes stronger and helps them learn quicker. The paper also shows that when computers keep practicing, the hidden space spreads out, making the system more robust. It discovers that a single direction in this space decides whether a word is singular or plural. By flipping that direction, the computer can change the meaning of whole sentences. This tells us that the real magic of computers is not in the numbers but in the shared hidden rules. Understanding these rules can make it easier to build smarter and safer AI systems.

## For a technical reader
The work proposes a systematic way to find the core computational subspaces that are essential for a transformer’s task, regardless of how the model is trained. By analyzing multiple independently trained models, it shows that these cores are highly reproducible and often low-dimensional, enabling causal validation of the underlying algorithms. The findings highlight that functional redundancy across many equivalent modes speeds up the transition from memorization to generalization, leading to an inverse scaling law for grokking time. In language models, a single steerable axis governs subject-verb agreement, and flipping this axis inverts grammatical number during generation, suggesting a shared invariant structure across architectures.

## Problem
Understanding what transformers actually compute is difficult because many weight configurations can implement the same function, making findings dependent on specific training runs. This work seeks a general method to identify the essential computational subspaces that are necessary and sufficient for a task, independent of parameterization.

## Method
The approach identifies compact subspaces that are necessary and sufficient for a given task by analyzing independently trained models, validates them causally, and recovers the underlying algorithms they implement. It examines functional redundancy across models and studies how these cores evolve during training, using statistical analysis of transition spectra and axis steering.

## Results
The approach reveals that transformers share invariant algorithmic cores, with functional redundancy accelerating generalization and an inverse scaling law for grokking time, and that subject-verb agreement is controlled by a single steerable axis common across architectures.

## Contributions
It introduces a general framework for extracting invariant algorithmic cores from neural networks, demonstrates their recurrence across independently trained transformers, and shows how functional redundancy influences learning dynamics and yields an inverse scaling law.

## Practical relevance
This work could enable more reliable control and interpretation of large language models by focusing on invariant computational structures.

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](../feedback/?on=p/151845)
