﻿# TabICL architecture: column embeddings, row interactions and dataset context are separate stages

Trace TabICL through distribution-aware column embeddings, within-row feature interaction and dataset-level in-context prediction instead of treating a table as one flat chat prompt.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-tabicl-column-row-dataset-attention-stages/
Language: en

## Identify the table relationships

Tabular data contains relationships within a feature distribution, among features in a row and between labeled examples and a new row. The [TabICL model implementation](https://raw.githubusercontent.com/soda-inria/tabicl/main/src/tabicl/_model/tabicl.py) explicitly separates those stages. A useful architecture explanation should name each relationship rather than call the whole computation attention over a table. This also makes performance diagnosis more precise: increasing feature count and increasing context-row count can stress different components.

## Follow distribution-aware column embedding

The first stage builds column-oriented representations rather than simply assigning a text token to a printed cell. The [TabICLv2 paper](https://arxiv.org/abs/2602.11139) explains the model's tabular design and improvements. Preserve numerical preprocessing and schema when interpreting this stage. Flattening a table into prose for a general chat model is a different representation and inference procedure, even if the same cells and labels are available in human-readable form.

## Separate within-row feature interaction

The model then combines feature information within each row to form representations suitable for dataset-level prediction. That boundary is distinct from inferring patterns across training examples. The [project guide](https://raw.githubusercontent.com/soda-inria/tabicl/main/README.md) identifies the classification and regression wrappers that supply preparation and output handling. A port should retain stage-specific shapes and state rather than concatenate feature and example axes because their total element count happens to match.

## Trace labeled context into the final stage

Dataset-wise in-context learning uses labeled examples to produce predictions for other rows. This is neither a learned category embedding alone nor a conventional standalone prediction from one isolated feature row. The [TabPFN fit guide](/journal/fg2-tabpfn-standard-fit-context-state-versus-weight-training/) provides a related family comparison. Describe which examples and labels form the context, keeping that information population distinct from the model's reusable pretrained parameters.

## Diagnose resources at the correct stage

Measure prepared feature width, row count and labeled-context size independently when investigating memory or latency. The [iTransformer axis guide](/journal/fg2-itransformer-variate-token-attention-axis-fixed-history/) offers another example of architecture-specific token meaning. Verify intermediate layouts against the selected release before changing execution. A faithful explanation and port preserve all three relationships, rather than interpreting one successful transformer call or one pooled representation as proof that every column, row and context interaction retained its original meaning.
