← Latest papers
🤖 machine learning

Beyond Language: Format-Agnostic Reasoning Subspaces in Large Language Models

This paper introduces the TriForm Benchmark and provides converging evidence for a Format-Agnostic Reasoning Subspace (FARS) within large language models, demonstrating that a compact 10-dimensional internal representation captures abstract reasoning concepts across diverse surface forms (prose, code, and math) while revealing a fundamental asymmetry where declarative formats are more compatible with each other than with procedural code.

Original authors: Aojie Yuan, Zhiyuan Su

Published 2026-05-12
📖 4 min read☕ Coffee break read

Original authors: Aojie Yuan, Zhiyuan Su

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a giant, super-smart library (a Large Language Model) that can read and write in many different "languages." But in this case, "languages" doesn't just mean English, Spanish, or French. It also means Python code, math equations, and structured lists.

The big question the researchers asked was: When this library thinks about a logical idea (like "if A then B"), does it use the same internal "brain wiring" whether it's reading that idea in a story, a math problem, or a computer program? Or does it have to completely rewire its brain every time the format changes?

Here is what they found, explained simply:

1. The "Hidden Core" of Reasoning

The researchers discovered that deep inside these AI models, there is a tiny, special "core" area where the actual logic lives, completely separate from the format.

  • The Analogy: Imagine you are listening to the same song played on a piano, a guitar, and a synthesizer. To your ears, they sound totally different (different "surface forms"). But the researchers found that inside the AI, there is a specific, tiny room where the melody of the song is stored in a way that doesn't care about the instrument.
  • The Finding: They found this "room" in the middle layers of the AI. It's called the Format-Agnostic Reasoning Subspace (FARS). It's incredibly small—only about 10 dimensions out of the thousands the AI uses. Yet, this tiny slice holds the pure logic, stripped of whether it's written in code or prose.

2. The "Magic Swap" Experiment

To prove this core was real and actually did the work, they performed a "brain transplant" experiment.

  • The Analogy: Imagine you have two people: one speaking English and one speaking French. You take the "logic brain" from the English speaker and try to plug it into the French speaker's head.
  • The Result: When they swapped just those 10 special dimensions of the "logic brain" from an English sentence into a math equation, the AI kept working almost perfectly (90–96% of the time).
  • The Contrast: If they swapped the entire brain (all dimensions), the AI got confused and failed. If they swapped random parts, it also failed. This proved that those specific 10 dimensions are the "secret sauce" that carries the reasoning across different formats.

3. The "Declarative vs. Procedural" Wall

Here is the most surprising twist. The AI is great at translating logic between stories (English) and math, but it struggles to translate logic between stories and computer code.

  • The Analogy: Think of "Declarative" formats (Stories and Math) as blueprints. They describe what a building should look like. Think of "Procedural" formats (Code) as instruction manuals for a robot. They describe how to build it step-by-step.
  • The Finding: The AI's "logic brain" works beautifully when swapping blueprints for other blueprints (Story \leftrightarrow Math). But when it tries to swap a blueprint for a robot instruction manual (Story \leftrightarrow Code), the connection breaks. The AI treats them as fundamentally different types of thinking.
  • The Takeaway: The barrier isn't "Language vs. Math"; the barrier is "Describing a result" vs. "Giving step-by-step instructions."

4. It's the Same for Everyone

The researchers tested five different AI models from different companies (like GPT, Llama, and Mistral). Even though these models were built differently and trained on different data, they all developed this same 10-dimensional "logic room" in the middle of their brains.

  • The Analogy: It's like how humans, regardless of which country they are from, all have a heart in the same place that pumps blood the same way. The AI models, despite being different "species," all evolved the same internal structure to handle pure logic.

Summary

The paper shows that AI models do have a universal "logic center" that ignores whether you are writing in English, math, or code. However, this center only works well between formats that describe things the same way (declarative). It hits a wall when trying to mix descriptions with step-by-step instructions (procedural).

This discovery gives us a way to see exactly where the AI is thinking about the "idea" versus where it is just thinking about the "words" or "syntax."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →