# FlexTab: A Flexible Encoder-Decoder Architecture for In-Context Learning Across Diverse Tabular Tasks

*Marek Polewczyk, Maximilian Schambach, Marco Spinaci, Sam Thelin, Johannes Höhne*

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

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Latent Space Bayesian Optimization](../pgroup/520.md) · Type: new method · Keywords: flexible encoder-decoder, in-context learning, tabular data, target-agnostic embeddings, task-specific decoders, general-purpose backbone

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Causal Models

## Summary
FlexTab introduces a flexible encoder-decoder architecture that produces target-agnostic row embeddings for in-context learning across diverse tabular tasks.

## Explained to a 5-year-old
We built a big helper that looks at tables and learns how rows are related without caring about what we want to predict. Then we attach small special parts to answer different questions like sorting, spotting odd items, or matching things. This way, one big helper can do many tasks without forgetting what it already knows. It helps people work with data more easily. The helper is called FlexTab.

## Explained to a 5-year-old, longer
Imagine a big robot that reads lots of tables and learns how the rows are connected. It does this learning without thinking about what we want to find out, so it can be used for many different jobs. After it learns, we can attach tiny special tools to it, each made for a particular task like deciding if something belongs to a group, guessing a number, spotting something odd, grouping similar items, matching two pieces of information, or labeling an entity. These tools are called decoders because they turn the robot’s understanding into answers for their specific job. Because the robot’s memory is shared, it doesn’t need to be re-trained for each new task, saving time and computer power. The robot is trained on a huge collection of real tables that have no labels, so it learns general patterns. When we give it a new table, the robot first makes a representation of each row that works for any kind of question. Then the appropriate decoder reads that representation and produces the final answer, like a prediction or a classification. This design lets the same system work on six different kinds of problems: deciding groups, guessing numbers, spotting odd items, grouping similar things, matching information, and labeling entities. The robot’s performance is as good as the best models on four of those problems and as good as specialized models on the sixth. Because the code and models are released, other people can try it out and build on it. The whole system is called FlexTab.

## For a technical reader
FlexTab uses a single encoder to create task-agnostic row embeddings from unlabeled tables, which are then paired with task-specific decoders for in-context learning. This design decouples representation learning from downstream tasks, allowing the same backbone to be reused across classification, regression, anomaly detection, clustering, entity matching, and entity classification. The encoder is trained on a large corpus of real-world tables, and each decoder is applied at inference time without further training. As a result, the system achieves state-of-the-art performance on several tasks while remaining competitive with specialized models on relational entity classification. The released code and checkpoints enable easy adoption and further research.

## Problem
Existing tabular in-context learners entangle feature representations with specific prediction targets, limiting their flexibility across different tasks.

## Method
A shared, task-agnostic encoder learns row embeddings from unlabeled tables, and separate decoders are attached for each downstream task, enabling in-context learning without re-training the encoder.

## Results
The approach attains state-of-the-art results on classification, regression, anomaly detection and entity matching, and matches specialized models on entity classification.

## Contributions
It proposes a target-agnostic encoder reusable across many tabular tasks and introduces a suite of task-specific decoders for in-context learning, demonstrating broad flexibility on six diverse problems.

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