Targeted In-Context Poisoning of Tabular Foundation Models: An Empirical Study
This paper demonstrates that tabular foundation models are highly vulnerable to targeted in-context poisoning, where a few maliciously labeled rows in the input context can drastically flip predictions by providing forged evidence, necessitating new security measures like access control, traceability, and real-time validation to mitigate attacks that occur at inference time rather than during training.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of artificial intelligence, a new kind of tool has emerged that learns differently than the machines of the past. Instead of being fed a massive, fixed set of training data and then locked away to make predictions, these systems, known as tabular foundation models, learn in the moment. They are designed to look at a small group of labeled examples—like a handful of customer records with known outcomes—and use that immediate context to guess the outcome for a new, unlabeled row of data. This process, called in-context learning, allows the model to adapt instantly without a long training phase. It is a powerful shift, turning the data itself into a temporary teacher that exists only for the duration of a single prediction. However, this very flexibility creates a unique vulnerability. Because the model relies entirely on the data it sees right before it makes a decision, that data becomes a potential attack surface. If someone can sneak a false record into that immediate group, they might be able to trick the model into making a specific, wrong guess, all without the model ever realizing the evidence has been tampered with.
A recent study by researcher Adem Alparslan investigates exactly how easily this can happen. The research focuses on a specific type of deception called targeted in-context poisoning. The scenario is straightforward: imagine an attacker who wants a particular customer application to be rejected, even though the customer is actually qualified. The attacker does not need to hack the model's code or retrain the system. Instead, they simply need access to the database where the model pulls its examples. The attacker inserts a few exact copies of that specific customer's application into the database, but they change the label on the copy to say "rejected." When the model later looks at the database to make its decision, it sees these copies alongside the real data. The study tested this on thirty different real-world datasets involving binary choices, such as whether a loan should be approved or denied, using two leading models in this field.
The results were striking. The researchers found that inserting just one single copy of the target row with the wrong label was enough to flip the prediction for the majority of cases. On average, a single poisoned row caused the model to change its correct prediction to a wrong one about 53 percent of the time for one model and 65 percent for the other. When the researchers increased the number of these false copies to three, the models almost always flipped their predictions, getting the answer wrong nearly every time. Crucially, the attack was highly targeted. The models did not get confused about other customers or lose their general accuracy; they only got the specific target wrong. The rest of the predictions remained perfectly accurate, meaning an observer looking at the system's overall performance would never notice that an attack had taken place.
The study also explored why this happens inside the machine. For one of the models, the fake copy acted like a magnet, pulling the mathematical representation of the target row toward the group of "wrong" answers. For the other model, the fake copy acted as a heavy vote in a decision-making process, dragging the weight of the decision over to the wrong side. In both cases, the model was not making a mistake in its logic; it was actually reasoning perfectly soundly based on the evidence presented to it. The problem was that the evidence itself was forged. The model treated the fake copy exactly as it would treat a genuine record, because to the machine, an exact copy of the features is the strongest possible evidence.
To prove that this was a specific weakness of this new type of learning and not just a general flaw in all machine learning, the researchers compared these results to three traditional models that are trained on data beforehand. The traditional models behaved differently. One, a random forest, was just as easily tricked as the new models. Another, a logistic regression, was almost immune to the attack. This showed that while the vulnerability exists in some older systems, the new foundation models are uniquely susceptible because they do not have a training phase to "learn" that such copies might be suspicious. They simply react to what is in front of them at the moment of prediction.
Perhaps the most unsettling finding concerns the timing of the attack. In traditional systems, an attacker must poison the data before the model is trained, a process that is often slow and leaves a permanent record. With these new foundation models, the attack happens at the very moment the prediction is made. An attacker could insert a fake record, wait for the model to make its decision, and then immediately delete or overwrite that record. The attack leaves no trace in the final output, and if the database is not carefully monitored, the evidence of the tampering vanishes instantly. The study concludes that protecting these systems requires a new approach. It is not enough to secure the model itself; the source of the data must be strictly controlled, every prediction must be traceable back to the exact data used at that moment, and the data must be validated for duplicates before every single guess is made. The model is doing its job correctly; it is the world around it that has become dangerous.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.