arXiv:2610.24721cs.LGOct 2026

Manuscript Offprint

arXiv:2610.24721

Tensor Network Datamodels for Training Data Attribution

Farzaneh Heidari, Md Rifat Arefin, Louis Jaburi, Guillaume Rabusseau

ABSTRACT

Datamodels predict how a model's behavior changes when different parts of its training data are included or removed. However, linear datamodels assign fixed contributions to training units and cannot represent non-additive joint effects. We introduce Tensor Network Datamodels (TNDMs), which use low-rank tensor networks to model dependencies among training units while keeping the representation compact. TNDMs learn a map from subsets of the training data to the outcome of training on those subsets, allowing them to represent interactions among several training units. We prove that complementary and redundant training groups can induce high-degree subset functions with compact low-rank representations. A single fitted TNDM can then be used for several training data questions, including predicting the effect of removing data, measuring the importance of individual training units, identifying interactions between training units, and selecting useful subsets of the training data. We evaluate TNDMs on controlled tasks designed to contain strong interactions, as well as standard fine-tuning settings for classification and reasoning. On a controlled reasoning task, TNDMs outperform every baseline while observing only half as many training subsets, and TNDM-TT reduces prediction NMSE by 89% relative to the linear datamodel after observing approximately 0.0061% of all possible training subsets. In factual-association fine-tuning, a single TNDM-CP raises held-out R2R^{2} from 0.579 to 0.668 over the linear datamodel. These results demonstrate that compact low-rank models improve prediction when training data effects depend on combinations of training groups.

1 INTRODUCTION

At its simplest, training data attribution asks how individual training units contribute to a model's behavior. However, training data rarely affects a model one example at a time. The usefulness of one training example, document, or data source can depend on what other data was used during training. Two sources may provide similar information, making one less useful when the other is present. In other cases, several sources may only become useful when they appear together, amplify or harm each other (Ghorbani & Zou, 2019; Wang et al., 2025; Heo et al., 2026).

Understanding these dependencies matters for questions such as which training data contributed to a behavior, what would happen if some data were removed, and which subset of data should be kept. Existing methods approach these questions in different ways. Influence functions approximate how a model prediction changes when the weight of a training example is perturbed (Koh & Liang, 2017). TracIn uses gradients recorded along the training trajectory (Pruthi et al., 2020), while TRAK provides a scalable gradient-based approach for attributing model predictions to training examples (Park et al., 2023). MAGIC differentiates through training to obtain estimates of the effect of changing training data weights (Ilyas & Engstrom, 2025). All the methods above, when used to predict subset effects by summing fixed per-example scores, induce additive predictors and fail to capture dependencies. A training unit's contribution can depend on which other units are present, particularly when sources provide complementary or redundant information. We discuss the limitations of predicting joint effects from fixed per-example scores in Sec. 3 and Appendix G.

(a) Fitting a tensor-network datamodel

Figure

m≪2dm \ll 2^{d} observed subsets and retraining outcomes

CP, rank R: O(dR)\mathcal{O}(dR)

or

TT, ranks ri≤rr_i \leq r: O(dr2)\mathcal{O}(dr^2)

fitted v^\hat{v} instead of all 2d2^{d} entries

(b) Interaction degree vs. tensor rank

Figure

Figure 1: Tensor-network datamodels. (a) Each observed subset SnS_n of training groups (a row; shaded groups are included) gives a retraining outcome v(Sn)v(S_n), one entry of the value tensor Tv\mathcal{T}_v. From m≪2dm \ll 2^d such entries, a TNDM fits a low-rank approximation v^\widehat{v} of Tv\mathcal{T}_v: a rank-R CP decomposition (factors joined by a copy tensor, black dot) or a tensor train with ranks rjr_j. (b) Interaction degree (purple) and CP rank (green) define two nested families of set functions; linear datamodels have degree at most one. The diagrams illustrate two distinct inductive biases: low interaction degree and low tensor rank, with the latter able to represent high-order interactions compactly.

Instead of directly assigning one score to each training example, datamodels learn to predict how model behavior changes across different subsets of the training data (Ilyas et al., 2022). Linear datamodels (Ilyas et al., 2022) assign each training unit a fixed contribution, independent of which other units are present. This formulation supports scalable estimation but cannot capture redundancy or complementarity among training units. Polynomial and kernel datamodels (Zhang et al., 2026) capture nonlinear training data interactions, but explicit polynomial expansions grow combinatorially with interaction degree, while standard kernel formulations do not explicitly exploit low-rank structure among interactions.

To capture high-order dependencies efficiently, we introduce tensor network datamodels (TNDMs), which leverage low-rank tensor factorizations to compactly parameterize training data interactions. For dd training units, the outcomes over all 2d2^{d} training subsets form an order-dd value tensor, with one binary mode per training unit. This tensor view naturally suggests a low-rank parameterization. TNDMs approximate the value tensor through a low-rank factorization learned from observed coalition–outcome pairs. Rather than restricting interaction degree, the factorization constrains the rank of dependence across partitions of the training units, allowing high-order interactions when this dependence admits a compact representation. We consider two parameterizations: TNDM-CP, based on CP decomposition, and TNDM-TT, based on the tensor train (TT) decomposition.

To make this distinction precise, we characterize datamodels as set functions through two distinct notions of complexity: interaction degree and tensor rank (Sec. 2). We then prove that this regime arises naturally in training data attribution: complementary and redundant training groups can induce high interaction degree while retaining low tensor rank (Sec. 3).

A single fitted TNDM supports a range of training data attribution tasks through direct computations on the low-rank representation. Besides predicting outcomes for unseen training subsets, tensor contractions yield estimates of individual importance, including Shapley and Banzhaf values, higher-order interactions, and joint-removal effects. The attribution computations reuse the learned factors without additional retraining of the underlying model, while predicted subset outcomes support data selection. Figure 1 summarizes TNDM; Appendix F details the attribution computations.

Our experiments demonstrate the practical benefits of capturing training data interactions through low-rank structure. On controlled reasoning tasks, TNDMs predict unseen subset outcomes more accurately than linear, polynomial, and kernel baselines, even with substantially fewer observed training subsets. TNDM-TT also improves recovery of complementary training groups and achieves the lowest error in predicting joint-removal effects. The benefits extend beyond the controlled reasoning setting: in factual-association fine-tuning, TNDM-CP outperforms tuned linear, matched-pair, and quadratic datamodels. Further experiments evaluate prediction and attribution in LoRA fine-tuning, classifier retraining, and in-context learning with frozen language models (Sec. 4).

References (100)

Couldn't load all references. Reload the page to try again.