# Where Reusable Computation Becomes Detectable: Solution-Frame Path Triage for Modular-Arithmetic Grokking

*Ruian Lei, Ruoxi Jiang, Marley M Vellasco, M. Tanveer, Zenglin Xu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149239) · [OpenReview](https://openreview.net/forum?id=rtabRRmgxe) · [Open on the map](../papers.html#p149239)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Mechanistic Interpretability](../pgroup/66.md) · Type: new method · Keywords: grokking, mechanistic interpretability, transformer analysis, path triage, geometric coherence, modular arithmetic

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › Transformer Circuits; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Reasoning Trace Analysis

## Summary
Solution-frame path triage is a retrospective method that scores earlier checkpoints to prioritize which transformer sub-paths to inspect first, revealing repeatable grokking dynamics.

## Explained to a 5-year-old
When a computer program learns something, it goes through many steps. We keep a record of all those steps, and also a final version that works. The problem is figuring out which step to look at first to see how it learned. The new idea looks at the final version and checks if earlier steps changed things in a smooth way. It then picks the steps that changed the most, helping us understand the learning process.

## Explained to a 5-year-old, longer
A computer program learns by trying many things and getting better over time. We save every step of its learning, and we also keep the final version that works perfectly. When we want to understand how it learned, we need to know which step to look at first. The new idea uses the final version as a guide and checks whether earlier steps changed things in a similar way. It measures how smooth the changes are across different parts of the program. Steps that change smoothly and show big differences are selected as the most interesting. This helps us focus on the moments that matter most in the learning journey. By looking at these selected steps, we can see patterns that were hidden before. The method also shows that some parts of the program, like attention, become more consistent at certain times, while other parts, like MLP, become more varied and then come back together. This gives us a clearer picture of the whole learning process.

## For a technical reader
The paper addresses the problem of selecting which parts of a saved training trajectory to analyze first. It uses the final checkpoint to define a reference frame and scores earlier checkpoints based on how consistently neighboring inputs transform through attention, MLP, and full-block operations. Complementary scores from centered kernel alignment and L2 distance to the final state help identify the most informative windows. The experiments show that this triage uncovers repeatable dynamics of attention and MLP coherence that simple metrics miss, providing a practical tool for mechanistic interpretability studies.

## Problem
When studying how models learn, researchers often have a final trained checkpoint and a long saved training trajectory, but need to decide which segments of the trajectory to investigate first. Determining the most informative windows in such a trajectory is challenging because simple summaries may miss the key changes.

## Method
The approach defines a solution frame from the final checkpoint and evaluates earlier checkpoints by measuring how neighboring inputs transform consistently across attention, MLP, and full-block maps, using geometric coherence, centered kernel alignment, and L2 distance to the final state.

## Results
The approach revealed a repeatable schedule where attention coherence increases near grokking and later flips, while MLP maps diversify before reconverging, and the chosen windows are enriched for accuracy and algebraic changes consistent with Fourier progress on modular addition.

## Contributions
The work provides a general framework for prioritizing earlier checkpoints in a saved training trajectory, and shows that this prioritization uncovers repeatable patterns of attention and MLP coherence that simple summaries miss.

## Limitations and assumptions
The method relies on having a final solved checkpoint and a saved trajectory, and is inherently retrospective, so it cannot be applied to ongoing training without a final solution.

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/149239)
