Infusion: Shaping Model Behavior by Editing Training Data via Influence Functions

J Rosser, Robert Kirk, Edward Grefenstette, Jakob Foerster, Laura Ruis
2/10/2026
cs.LGcs.AIcs.CY

Official code: jrosseruk/infusion (1 star, last commit 2026-04-11).

Abstract

Influence functions are commonly used to attribute model behavior to training documents. We explore the reverse: crafting training data that induces model behavior. Our framework, Infusion, uses scalable influence-function approximations to compute small perturbations to training documents that induce targeted changes in model behavior through parameter shifts. We evaluate Infusion on data poisoning tasks across vision and language domains. On CIFAR-10, we show that making subtle edits via Infusion to just 0.2% (100/45,000) of the training documents can be competitive with the baseline of inserting a small number of explicit behavior examples. We also find that Infusion transfers across architectures (ResNet $\leftrightarrow$ CNN), suggesting a single poisoned corpus can affect multiple independently trained models. In preliminary language experiments, we characterize when our approach increases the probability of target behaviors and when it fails, finding it most effective at amplifying behaviors the model has already learned. Taken together, these results show that small, subtle edits to training data can systematically shape model behavior, underscoring the importance of training data interpretability for adversaries and defenders alike. We provide the code here: https://github.com/jrosseruk/infusion.

View on arXivView PDF

Code Implementations(1)

jrosseruk/infusionOfficial100%

Infusion: Shaping Model Behavior by Editing Training Data via Influence Functions

10TeX, HTMLAug 26, 20256 months ago
ai-safety-researchinfluence-functionstraining-data-attribution

Similar Papers

Cite this paper

@article{rosser2026infusion,
  title  = {Infusion: Shaping Model Behavior by Editing Training Data via Influence Functions},
  author = {J Rosser and Robert Kirk and Edward Grefenstette and Jakob Foerster and Laura Ruis},
  year   = {2026},
  eprint = {2602.09987},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.09987v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.09987.svg)](https://codeofpaper.com/paper/2602.09987)

Discussion