# How Do Language Models Understand Tables? A Mechanistic Analysis of Cell Location

*Xuanliang Zhang, Dingzirui Wang, Keyan Xu, Qingfu Zhu, Wanxiang Che*

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

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Masked Diffusion Generation](../pgroup/652.md) · Type: empirical study · Keywords: language model interpretation, table understanding, cell location, activation patching, tabular data

Areas: [Interpretability](../areas/interpretability.md) › Mechanistic Interpretability › Geometric Mechanistic Interpretability

## Summary
We perform a mechanistic analysis of how language models locate cells in linearized tables, uncovering a three-stage pipeline of Semantic Binding, Coordinate Localization, and Information Propagation.

## Explained to a 5-year-old
Big computers that talk can read tables like a spreadsheet. They turn the table into a long line of words. They look at each word and try to find the right spot. They count the separators to know where a cell is. They also use a special math trick to point to a column.

## Explained to a 5-year-old, longer
Big computers that talk can read tables like a spreadsheet. They turn the table into a long line of words. They look at each word and try to find the right spot. They count the separators to know where a cell is. They also use a special math trick to point to a column. We used a method that watches what the computer does inside. We saw three steps: they bind meaning, they find the coordinates, they spread the information. This works for simple tables and also for real tables from the internet. It helps us understand how they think about tables. We can even steer the computer to focus on a column using math. This knowledge can help us make better tools that use tables.

## For a technical reader
We investigated how large language models locate individual cells in tabular data by examining their internal activations. Using activation patching, we isolated the stages where the model binds semantic meaning, determines row and column coordinates, and propagates the relevant information. We discovered that models count delimiters to resolve coordinates and encode column indices in a linear subspace that can be steered with vector arithmetic. The same three-stage pipeline was validated on the HiTab dataset for hierarchical and more complex tables.

## Problem
Understanding how language models process structured tables, particularly the mechanism they use to identify the location of specific cells, remains unclear.

## Method
The approach employs activation patching and complementary interpretability techniques to isolate and examine model activations during cell location, revealing a sequential three-stage pipeline that binds semantics, locates coordinates, and propagates information.

## Results
The approach reveals that models use an ordinal counting mechanism to locate cells and encode column indices in a linear subspace, enabling steering of focus, and this three-stage pipeline holds on the HiTab dataset for hierarchical and complex tables.

## Contributions
The paper provides a mechanistic dissection of cell location in language models, identifying a three-stage pipeline and showing that coordinate information is linearly representable and steerable, and it validates these findings on the HiTab dataset.

## Research questions this paper is counted under

- [How do internal representations in language models encode and express capabilities during training and inference?](../q/28.md)

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