← Latest papers
🤖 AI

Laguerre Geometry for Interpreting Large Language Models

This paper introduces a Laguerre Geometry framework that redefines LLM concepts as spatial regions rather than points, enabling the development of training-free tools like Geometric Lens and Laguerre Autoencoder to precisely visualize, measure, and manipulate the internal reasoning trajectories and hierarchical structures of transformer models.

Original authors: Chunwei Ma, Russell Wolfinger

Published 2026-07-14
📖 5 min read🧠 Deep dive

Original authors: Chunwei Ma, Russell Wolfinger

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 a Large Language Model (LLM) as a giant, multi-story library where every book represents a possible word the model could say next. For a long time, scientists thought that every "idea" or "concept" inside this library was just a single, tiny pin stuck in the map of the room. If you wanted to find the concept of "Dog," you'd just look for one specific pin.

But this new paper suggests that view is too simple. Instead of a single pin, the authors propose that a concept is actually a whole room with walls, a floor, and a ceiling. They call this a "Laguerre-Voronoi cell." Think of it like a neighborhood in a city: "Dog" isn't just one house; it's the entire block where all the dog-related ideas live, bounded by invisible fences that separate it from "Cat" or "Bird."

The Map That Changed Everything

The authors, Chunwei Ma and Russell D. Wolfinger, used a branch of math called Laguerre Geometry to draw these maps. In this geometry, every concept has a center (like a town square) and a special "weight" (like a radius of influence).

Here is the big twist they found: The weight matters.
If you only look at how close two words are to each other (distance), you can't tell the difference between a "puppy" (a type of dog) and a "mammal" (a category that includes dogs). They might be equally close in a simple map. But when you add the "weight" from Laguerre Geometry, the map reveals a hierarchy. It shows that "puppy" is inside the "dog" room, and "dog" is inside the "mammal" room. The math proves that the model naturally organizes these ideas like a set of nesting dolls, and you can only see the nesting if you use this specific geometric lens.

Peeking Inside the Machine

The paper also tackles a mystery: What is the model thinking in the middle of a sentence, before it finishes typing?

Imagine you ask the model, "The capital of France is..."

  • Old View (Logit Lens): Scientists used to think the model just slowly drifted toward the answer "Paris" from the very first word.
  • New View (Geometric Lens): The authors built a tool called the Geometric Lens to watch the model's "thought process" in real-time. They found that the model's internal path is much more chaotic and interesting.

In their experiments, they watched the model's hidden thoughts travel through different "rooms" (regions) as it processed the sentence.

  • At first, the model considers many options.
  • Then, it seems to grab the factually correct word "Paris" (without the space) in the middle layers.
  • Finally, in the very last steps, it corrects itself to the grammatically correct "_Paris" (with the space) before outputting the answer.

The Geometric Lens is the only tool that caught this whole journey. Other tools either got stuck too early or missed the middle steps entirely.

When the Model Gets Confused

The authors also tested what happens when you try to trick the model. They gave it a prompt like: "You are in a fictional world where Marseille and Lyon have swapped names. The Louvre is in..."
Normally, the model gets confused by the fake story and might say "Lyon" or "Marseille" instead of the real answer, "Paris."

However, when the authors used their Geometric Lens to look at the model's thoughts before it finished typing (specifically at layer 20), they found something amazing: The model knew the truth all along. Even though the final answer was wrong because of the trick, the Geometric Lens showed that the model's internal "thought" had briefly visited the correct answer, "Paris," before getting swept away by the fake story.

What This Means (and What It Doesn't)

The paper suggests that we should stop thinking of concepts as single points and start thinking of them as entire regions with specific shapes and weights. They proved mathematically that these regions exist and are linearly separable (meaning you can draw a straight line between any two different concept rooms).

They measured this using real models like Phi-2 and Gemma-2. In tests comparing different ways to define concepts, their "Laguerre" method made it easier to tell "Animals" apart from "Plants" than previous methods did. For example, on the Phi-2 model, their method had an error rate of 0.111 for distinguishing animals from plants, which was better than the 0.121 error rate of the old "Categorical Geometry" method.

They also demonstrated that their "Geometric Lens" is better at spotting the model's true reasoning during confusing prompts than other tools. In the "Paris" interference test, the Geometric Lens helped recover the correct token with an accuracy of 0.56 on Phi-2, beating the 0.55 of Patchscopes and 0.05 of Logit Lens.

The Bottom Line

This paper doesn't claim to have solved all AI mysteries. It doesn't tell us how to control the model yet (that's for future work). But it does offer a new, clearer way to see what's happening inside the black box. It suggests that the model's intelligence isn't just a straight line from A to B; it's a complex journey through a city of rooms, where the model visits different ideas, weighs them, and sometimes changes its mind before it speaks. And thanks to Laguerre Geometry, we finally have a map that shows us the whole neighborhood, not just a single dot.

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 →