Imagine you’re using a state-of-the-art AI to decide on loan applications. Unlike traditional models that need weeks of training, this "Tabular Foundation Model" (TFM) is fast: it just looks at a few recent successful and unsuccessful applications in your database (the "context") and makes a call on the new one instantly. Now, imagine an applicant knows exactly what’s in their own application and has just enough database access to insert a few fake rows that look exactly like their own, but with a "label" saying they were approved.
This paper shows that with just one to three of these "poison rows," the AI can be tricked into flipping its decision almost every single time.
TL;DR
Researchers found that Tabular Foundation Models are highly susceptible to "in-context poisoning," where an attacker inserts a few mislabeled copies of a target row into the model's reference data. Just three poison rows are enough to flip nearly 100% of correct predictions to the wrong label, all without degrading the model's overall performance or leaving a permanent trace in the model's weights.
What Problem Does This Paper Address?
Traditional machine learning models are like students who study for weeks before an exam; to trick them, you have to "poison" their textbooks (training data) long before the test. Tabular Foundation Models (TFMs), like TabICL and TabPFN, are more like students with open-book exams. They don't "learn" in the traditional sense; they use In-Context Learning (ICL), meaning they look at a small set of labeled examples provided at the exact moment of prediction to figure out what to do.
While this makes them incredibly flexible, it creates a new, high-speed attack surface. If the "book" they are looking at (the context) comes from a live database that an attacker can write to, the attacker can manipulate a specific prediction in real-time. This paper explores the simplest version of this: targeted label flipping. If I want the model to misclassify my specific data row, how many fake copies of myself do I need to inject into the context to get the result I want?
Methods
The author conducted an empirical study comparing two major TFM architectures:
- TabICL: Uses a Multi-Layer Perceptron (MLP) to make decisions based on row embeddings.
- TabPFN: Uses an attention-based mechanism, essentially performing a "soft" nearest-neighbor search over the context.
The attack is simple: the attacker identifies a "target row" they want to flip. They then replace $b$ rows in the model's context (where $b$ is the "budget," ranging from 1 to 5) with exact copies of that target row, but with the opposite (wrong) label.
To ensure the effect was due to the label and not just the presence of duplicate rows, the study used a Control Arm, where the injected copies carried the correct label. They also compared these TFMs against traditional "trained" models like Random Forests, CatBoost, and Logistic Regression.
Datasets
The study utilized 30 public datasets from OpenML for binary classification. These were chosen because they contain exclusively numerical features and both TFMs performed well on them (AUC > 0.8) under normal conditions. The datasets varied in size from roughly 500 to over 500,000 rows, covering a wide range of real-world scenarios.
Key Insights and Ideas
- Forged Evidence, Not Faulty Logic: The TFMs aren't "breaking." They are performing sound Bayesian inference, but they are doing it based on "forged evidence." Because the poison row is an exact match for the query row, the model treats it as the strongest possible evidence for what the label should be.
- Different Paths to the Same Error:
- In TabICL, the poison rows cause the internal representation (embedding) of the target row to "rotate" toward the center of the wrong class.
- In TabPFN, the model's attention mechanism latches onto the poison rows. Interestingly, a single poison row acts as a "catalyst," pulling other genuine rows of the wrong class along with it to flip the vote.
- The "Delete After Use" Vulnerability: Unlike traditional data poisoning, which leaves a permanent mark on a trained model, in-context poisoning is ephemeral. An attacker can inject the poison, get the desired prediction, and then delete the poison rows from the database. The model itself remains "clean," making the attack incredibly hard to audit after the fact.
Key Results
The success of the attack was measured by the Attack Success Rate (ASR)—the percentage of previously correct predictions that were flipped by the poison.
- One row is often enough: A single poison row flipped 53% of correct predictions in TabICL and 65% in TabPFN on average.
- Three rows are a knockout: With a budget of just three poison rows, the ASR jumped to nearly 100% for both models across almost all datasets.
- Targeted precision: The attack was surgical. While the target row's prediction flipped, the model's accuracy on all other rows in the test set remained virtually unchanged.
- Comparison to traditional models: Random Forests were the most vulnerable (99% ASR with one row), while Logistic Regression was surprisingly resistant (only 1.8% ASR), likely due to its rigid linear nature.
Limitations and Future Work
The author notes several boundaries to this study:
- Conspicuousness: The attack used exact copies, which are the "noisiest" form of poisoning. A simple duplicate check in the context could catch this. Future work should look at "near-duplicates" that are harder to detect but still influential.
- Scope: The study was limited to binary classification and numerical features. How these attacks scale to multi-class problems or categorical data remains an open question.
- Defense Mechanisms: While the paper suggests access control and traceability, developing automated "validation at prediction time" (like the duplicate check shown in the appendix) will be crucial for the safe deployment of TFMs in production.
The takeaway? If you're building systems with Tabular Foundation Models, you need to treat your input context with the same security rigor you'd apply to your training data. In the world of ICL, the line between "data" and "model input" has officially blurred.
Summary updated