Manuscript Offprint
arXiv:2610.24721Tensor Network Datamodels for Training Data Attribution
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 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

observed subsets and retraining outcomes
CP, rank R:
or
TT, ranks :
fitted instead of all entries
(b) Interaction degree vs. tensor rank

Figure 1: Tensor-network datamodels. (a) Each observed subset of training groups (a row; shaded groups are included) gives a retraining outcome , one entry of the value tensor . From such entries, a TNDM fits a low-rank approximation of : a rank-R CP decomposition (factors joined by a copy tensor, black dot) or a tensor train with ranks . (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 training units, the outcomes over all training subsets form an order- 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).
-
High interaction degree with low tensor rank. For reasoning tasks with complementary or redundant training groups, we prove that interaction degree can grow while tensor rank remains bounded. The results establish a theoretical motivation for capturing high-order training data interactions through low-rank representations (Secs. 2 and 3).
-
Accurate prediction and attribution from limited observations. On a controlled reasoning task, TNDM-CP and TNDM-TT outperform all evaluated non-tensor baselines while using half as many observed subsets. A single fitted TNDM-CP achieves the lowest mean error among the compared methods for Shapley values and pairwise and third-order Shapley interactions at a shared observation budget.
2 DATAMODELS AND MULTILINEAR REPRESENTATIONS
In this section, we introduce datamodels and show that every datamodel on subsets of a fixed training collection has a unique affine multilinear representation. This representation has possible terms, but its coefficients may have structure that allows a more compact description. We consider two forms of structure: low interaction degree and low tensor rank.
2.1 DATAMODELS AS SET FUNCTIONS
Let index training datasets , each containing one or more examples. For a subset , let denote the model trained on the selected datasets. A scalar outcome of , such as its accuracy or prediction on an evaluation query, defines a set function . We denote the set of all such set functions by . A datamodel learns from observed subset–outcome pairs to predict for unobserved subsets (Ilyas et al., 2022). We identify each subset with its inclusion vector , where , and use and interchangeably.
An (affine) linear datamodel takes the form , where is a baseline and is the contribution assigned to training group . Adding group therefore changes the prediction by the same amount , regardless of which other groups are present.
To capture dependencies between training groups, we extend the linear model with interaction terms. Every set function has a unique multilinear representation
where the expansion includes terms up to order . Pairwise terms allow a group’s contribution to depend on whether another group is present, while higher-order terms describe interactions involving larger combinations of groups. The existence and uniqueness of the multilinear representation are established in Appendix A.
Equivalently, Eq. (1) can be written as , where indexes the training groups appearing in each monomial. For , we adopt the convention , so the corresponding term is the constant . Since every variable appears with exponent at most one, the representation is affine in each variable when the others are fixed. We collect the coefficients in the coefficient tensor , defined by , where selects the constant component in mode j. The multilinear representation can then be written compactly as
We also define the value tensor by . Its entries are therefore the values of on all subsets of , as illustrated in Fig. 1(a). The tensors and are related by an invertible change of basis applied independently to each mode and thus have the same CP and TT ranks; see Appendix A.
2.2 INTERACTION DEGREE AND TENSOR RANK
Interaction degree and tensor rank describe two different forms of structure in the coefficient tensor . Interaction degree limits the number of training groups appearing together in a nonzero term. Tensor rank measures the complexity of a tensor factorization. We introduce both notions below; Appendix A provides the full mathematical development and proofs.
Definition 1 (Interaction degree). Let have the unique expansion . For nonzero , the interaction degree of is . We set and denote the class of set functions of interaction degree at most by .
A datamodel of interaction degree at most k includes interactions among at most k training groups. Linear datamodels are exactly the functions of interaction degree at most one, while quadratic datamodels only allow interactions involving at most two training groups.
Alternatively, low tensor rank provides another way to represent compactly. A CP representation expresses the datamodel as a sum of products of simple affine functions.
Definition 2 (CP rank). The CP rank of a nonzero set function is the smallest integer for which
We set and write .
Each rank-one product uses 2d raw parameters. A representation with R products therefore uses 2dR raw parameters and can include interactions of any degree up to d. The product representation in Definition 2 is equivalent to a rank-R CP decomposition of , and, through the change of basis above, of . Thus, low interaction degree and low CP rank provide two distinct ways of imposing structure on a datamodel; replacing CP rank with Tucker (multilinear), TT, or hierarchical Tucker rank would yield alternative forms of structured low-rank bias.
Interaction degree and CP rank measure different properties. For example, has interaction degree but CP rank one. Figure 1(b) illustrates the degree-bounded and rank-bounded families.
2.3 TENSOR NETWORK DATAMODELS
We now define the proposed model. Let denote the family of tensors represented by a tensor network with topology and internal dimensions ; that is, by contracting a collection of smaller parameter tensors arranged according to .
Definition 3 (Tensor network datamodel). A tensor network datamodel (TNDM) with topology G and internal dimensions r is a set function of the form
where denotes the collection of tensor network factors.
We use the tensor notation and mode-product conventions of Kolda & Bader (2009), except that contraction with a vector is written without transposing the vector.
Given observed coalition–outcome pairs , where , we learn the factors by solving
where is a regularizer. Ranks and regularization parameters are selected using held-out coalition observations.
We consider two tensor network parameterizations. In TNDM-CP, has CP rank at most , so Definition 3 reduces to the sum of products of affine functions in Definition 2. In TNDM-TT, is represented by a chain of tensor cores with TT ranks . For uniform rank , these parameterizations use respectively and parameters, rather than the entries of an unstructured tensor. Their explicit tensor network constructions are given in Appendix B.
Each observed outcome is one entry of the value tensor . Fitting a TNDM from such observations can therefore be viewed as a structured tensor-completion problem. When the underlying datamodel is approximately low rank, the shared tensor network factors provide an inductive bias for predicting unobserved coalitions, in addition to making the representation tractable.
Crucially, low tensor rank does not restrict the datamodel to low-order interactions. A TNDM can represent functions with high interaction degree whenever their interaction coefficients possess a compact tensor network structure. Section 3 shows that such high-degree, low-rank datamodels arise naturally in data attribution for k-hop reasoning tasks.
3 LOW-RANK STRUCTURE IN REASONING-BASED DATA ATTRIBUTION
We now show that high-interaction-degree, low-rank set functions arise naturally in reasoning-based data attribution.
Let be evaluation queries. For each query , let index the training groups required to answer . We consider the stylized setting in which answers correctly if and only if . The resulting average-accuracy datamodel is .
The following theorem allows arbitrary positive query weights and possibly overlapping support sets.
Theorem 1. Let be nonempty subsets of , and let . Consider the set function , . Then and . If the support sets are pairwise disjoint, then the CP-rank bound is tight: . These conclusions remain valid when some elements of do not belong to any support set.
The proof is given in Appendix A.
Corollary 1. The average-accuracy datamodel satisfies and . If the query support sets are pairwise disjoint, then .
In particular, if query requires reasoning facts stored in distinct datasets, then . If every query is a k-hop reasoning task of this form, then , regardless of whether the query support sets overlap.
Datasets with indices outside affect neither the interaction degree nor the CP rank of v.
The corollary separates the two complexity measures: interaction degree is controlled by the largest query-support size, whereas the CP-rank upper bound is controlled by the number of queries—or, after identical supports are combined, by the number of distinct support patterns. Thus, with the number of queries fixed, increasing the number of reasoning steps can increase interaction degree without increasing the CP-rank bound.
Similarly, redundant training groups can also produce high-order interactions with low tensor rank. Figure 2(b) illustrates a query requiring one group from each set of alternatives. Proposition 4 in Appendix A formalizes this case: let be nonempty, pairwise-disjoint sets of interchangeable training groups, and suppose that the query is answered correctly exactly when contains at least one group from every . Then . The interaction degree is
(a) Required support sets (Theorem 1)

interaction degree
support-set size
CP rank
number of support sets
(b) Redundant support (Proposition 4)

one group
from each
9 nonzero monomials; highest:
interaction degree
total support size
TT ranks
each contiguous
High interaction degree does not imply high tensor rank.
Figure 2: Interaction degree and tensor rank measure different properties. High-order interactions can have low tensor rank. (a) Each query requires four training groups together, giving interaction degree four but CP rank two. (b) A query requires one group from each pair of alternatives, giving interaction degree four but TT ranks at most two when each pair is consecutive in the ordering.
, while the TT ranks are at most two when the groups in each are consecutive in the tensor ordering.
Theorem 1 and the redundant-support example expose the principal modeling advantage of TNDMs. With the number of query-support patterns fixed, enlarging the supports can increase interaction degree without increasing the CP-rank bound. Similarly, reasoning over interchangeable data sources can produce high-degree functions with small TT ranks. A degree-bounded datamodel may exclude such functions, whereas a TNDM can retain the relevant high-order interactions while controlling complexity through tensor rank. Additional results on datamodel structure and fixed attribution scores are provided in Appendices E and G.
4 EXPERIMENTS
We experimentally investigate four questions: (1) Can TNDMs predict the outcome of training on unseen data subsets? (Sec. 4.1; Table 1) (2) Can TNDMs recover interactions between training groups? (Sec. 4.2; Fig. 3) (3) Do TNDMs remain useful outside our controlled reasoning task? (Sec. 4.3; Tables 2 and 3) (4) Can one fitted TNDM support several attribution queries? (Sec. 4.4; Fig. 4)
All methods receive the same observed subset–outcome pairs, and hyperparameters are selected using validation subsets only. Appendices H and I give the full models, training, and evaluation details.
4.1 PREDICTION AND JOINT-REMOVAL EFFECTS
We first use a controlled reasoning task, inspired by the compositional setting of Wang et al. (2024), where a query specifies a sequence of three relations to compose, e.g., . Different training groups provide the same relation, so some groups are redundant, while groups providing different relations are complementary. Each training subset is used to train a separate transformer from scratch. The full task construction is described in Appendix I.
We fit datamodels on observed coalition–outcome pairs and test how well they predict unseen subsets. On the 24-group task, TNDM-CP and TNDM-TT achieve lower prediction error, outperforming linear, polynomial, sparse polynomial, and RBF baselines. Notably, with 512 observed subsets, both TNDMs outperform the baselines even when they use 1,024 observations (Table 1).
| Datamodel | NMSE, m = 512 | NMSE, m = 1,024 | Joint-removal RMSE |
|---|---|---|---|
| Linear | 0.687 ± 0.001 | 0.669 ± 0.001 | 2.741 ± 0.016 |
| Degree-2 ridge | 0.467 ± 0.001 | 0.348 ± 0.001 | 2.125 ± 0.007 |
| Degree-3 ridge | 0.510 ± 0.002 | 0.342 ± 0.002 | 3.869 ± 0.019 |
| Degree-3 OMP | 0.635 ± 0.016 | 0.271 ± 0.021 | 6.292 ± 0.057 |
| RBF | 0.386 ± 0.001 | 0.257 ± 0.001 | 2.100 ± 0.035 |
| TNDM-CP | 0.148 ± 0.026 | 0.087 ± 0.002 | 1.939 ± 0.258 |
| TNDM-TT | 0.188 ± 0.004 | 0.071 ± 0.006 | 1.395 ± 0.043 |
Table 1: Prediction and joint-removal effects on the 24-group reasoning task. Entries show means ± sample SD over three learner seeds; lower is better. The last column uses m = 1,024 and measures error in the utility change when all sources for one required relation are removed. Bold marks the lowest mean in each column. At 512 observations, both TNDMs outperform every non-tensor baseline evaluated at 1,024 observations; TNDM-TT also achieves the lowest joint-removal error.
We also test a joint-removal intervention, removing all groups that teach one required relation and asking each datamodel to predict the resulting change in performance. TNDM-TT gives the lowest error among the compared methods (Table 1).
In this setting, with three interchangeable providers for each of two required relations, the ideal coverage function has degree six and CP rank four, while admitting TT ranks at most two under a provider-contiguous ordering (Prop. 4; Thm. 5). The prediction and joint-removal gains are consistent with the practical value of this high-degree, low-rank structure.
4.2 RECOVERING INTERACTIONS AND SELECTING DATA
We next ask whether the fitted datamodel can identify groups that are useful together. In the 12-group task, a useful triple contains one group for each required relation. We rank all triples using the interaction predicted by each datamodel. As more subset outcomes are observed, TNDM-TT becomes substantially better at recovering these complementary triples than the degree-bounded and RBF baselines (Fig. 3(a)).
We also test whether individual Shapley values from the fitted datamodel can select useful groups. At the largest budget, Linear + TNDM-TT, a hybrid model that augments a fitted linear predictor with a TT residual correction (Appendix I.5), gives the highest mean completeness among the compared methods (Fig. 3(b)). However, the best method changes across budgets and attribution rules. Improved recovery of complementary triples supports the practical value of representing higher-order interactions through low tensor rank rather than a fixed degree cutoff. Strong selection performance from Degree-2 does not imply that the underlying utility function is low degree: a model can select useful subsets without accurately reconstructing the full subset function.
Finally, we rank candidate subsets directly using their predicted utility. Here several nonlinear methods perform similarly: TNDM-TT, degree-3 ridge, and RBF all identify complete top-ranked subsets in the primary comparison. Thus, better interaction recovery does not always imply better subset selection. The full comparison is given in Appendices J.3 and J.5.
4.3 PRETRAINED-MODEL FINE-TUNING
The previous experiments were designed to contain strong interactions. We therefore test whether TNDMs also help in more standard fine-tuning settings.
Sport–Music. We adapt the Sport–Music task of Huang et al. (2025). Each subset chooses which sport and music examples are used to fine-tune Qwen2-7B. TNDM-CP predicts held-out subset outcomes better than the linear, matched-pair, and degree-2 baselines, and an ensemble of TNDMs improves further (Table 2). The improvement from a single rank-five CP model supports the usefulness of the low-rank modeling assumption beyond the controlled support constructions.
AG News. We fine-tune RoBERTa with LoRA on subsets of AG News (Zhang et al., 2015). Generic text-classification fine-tuning need not exhibit the low-rank, high-degree interaction structure
(a) Interaction recovery across budgets

(b) Selection by individual Shapley

Linear
Degree-2 ridge
Degree-3 ridge
RBF
TNDM-CP
TNDM-TT
Linear + TNDM-TT
Figure 3: Interaction recovery and Shapley-based selection on the 12-group reasoning task. (a) Average precision for ranking complete triples by predicted third-order differences, across observation budgets. (b) Completeness of subsets formed by selecting the three groups with the largest individual Shapley values at 160 new observations. Curves and bars show means across two learner seeds, each averaged over ten relation sequences; bands and whiskers show sample SD, and dots in (b) show both seed means. TNDM-TT improves interaction recovery at larger budgets, while Linear + TNDM-TT achieves the highest mean selection completeness at 160 new observations.
| Datamodel | Held-out |
|---|---|
| Linear | 0.579 ± 0.048 |
| Matched-pair | 0.556 ± 0.054 |
| Degree-2 | 0.565 ± 0.109 |
| TNDM-CP, single | 0.668 ± 0.084 |
| TNDM-CP, ensemble | 0.734 ± 0.061 |
| Datamodel | Banzhaf ↓ | Shapley ↓ |
|---|---|---|
| Linear | 0.1701 | 0.3555 |
| Degree-2 | 0.2013 | 0.3721 |
| RBF | 0.1724 | 0.3368 |
| TNDM-CP | 0.1736 | 0.3358 |
| TNDM-TT | 0.1634 | 0.3285 |
Table 2: Sport–Music prediction: mean sample SD over 15 shared coalition splits. Baselines are tuned. Single-fit TNDM-CP uses rank five; the ranks 3–6 ensemble uses additional fitting compute. Bold marks the highest mean. TNDM-CP improves prediction over the linear, matched-pair, and degree-2 baselines on the Sport–Music fine-tuning task.
Table 3: AG News RoBERTa–LoRA attribution at 128 observations: median relative error over six adapter ranks, three learner seeds, and 20 observation-sampling repeats per combination. Bold marks the lowest median among these datamodels. TNDM-TT has the lowest median Banzhaf and Shapley error among the fitted data-models.
motivating the theoretical results. Nevertheless, TNDMs provide competitive attribution overall, with TNDM-TT achieving the lowest median Shapley and Banzhaf errors among the compared fitted datamodels at 128 observations (Table 3). Across-budget results favor degree-truncated and RBF baselines; comparisons with dedicated attribution estimators appear in Appendix J.6.
4.4 SEVERAL ATTRIBUTION QUANTITIES FROM ONE FIT
A fitted TNDM models the subset-to-outcome function, allowing the same fit to answer several attribution questions. We evaluate this on a controlled modular retraining task with eight training groups. For each coalition, we retrain a conditional-logit learner; all 256 coalition outcomes provide exact attribution references. From each fitted surrogate, we compute Shapley values and pairwise and third-order Shapley interaction indices (Fig. 4). TNDM-CP is competitive with the regression baselines at 32 observations. At 64 observations, it achieves the lowest mean error among the plotted methods for all three quantities. One fitted CP surrogate thus recovers both individual contributions and higher-order interactions from the same limited set of retraining outcomes. Appendix I.7 provides the task and evaluation details.
Linear Degree-2 Degree-3 RBF TNDM-CP TNDM-TT
(a) Shapley values

(b) Pairwise Shapley interactions
(c) Third-order Shapley interactions
Figure 4: Training data attribution on a modular retraining task. Relative error for Shapley values and pairwise and third-order Shapley interaction indices over eight training groups. Exact references use all 256 retrained coalition outcomes. All queries reuse the same fitted surrogate, and budgets include validation observations. Errors are averaged over 20 coalition-sampling repetitions within each of three learner seeds. Curves show the mean of the three seed averages; bands and bars show sample SD across those averages. Both axes are logarithmic; TNDM-TT uses additive-informed initialization. At 64 observations, TNDM-CP achieves the lowest mean error among the plotted methods for all three quantities.
Additional experiments. Appendices J.7 and J.8 report further prediction comparisons, with gains that vary across settings. Appendix J.1 reports the enumerated eight-group prediction experiment, and Appendix J.15 explores attribution and tensor compressibility during learning.
5 RELATED WORK
Datamodels and training data attribution. Datamodels predict outcomes from training-subset membership (Ilyas et al., 2022), supporting model comparison (Shah et al., 2023) and data selection (Engstrom et al., 2024). Data Shapley and Data Banzhaf summarize marginal contributions (Ghorbani & Zou, 2019; Wang & Jia, 2023), while influence functions, TracIn, TRAK, and SOURCE estimate training data effects from fitted models or training trajectories (Koh & Liang, 2017; Pruthi et al., 2020; Park et al., 2023; Bae et al., 2024). TNDMs use low-rank tensors to capture joint effects among complementary and redundant training groups. These dependencies can remain compact even at high interaction degree, supporting prediction, attribution, and selection from one fitted subset function.
Nonlinear datamodels and tensor regression. Kernel surrogates model nonlinear training data dependencies (Zhang et al., 2026); TNDMs represent these dependencies through low-rank interaction tensors. CP, TT, and hierarchical trees compactly represent high-order tensors (Kolda & Bader, 2009; Oseledets, 2011; Grasedyck, 2010). Exponential Machines already use TT coefficients to represent interactions of all orders (Novikov et al., 2017). TNDMs build on this representation, connecting tensor rank and interaction degree to training data support structure and enabling reusable attribution queries from a surrogate fitted to retraining outcomes.
Tensor networks for attribution. TN-SHAP and TN-SHAP-G use tensor network surrogates for masked-input attribution (Heidari et al., 2026; Heidari & Rabusseau, 2026). In TNDMs, tensor modes index training groups and entries record outcomes after training on their subsets. The resulting attributions describe training data interventions rather than input-feature masking.
6 LIMITATIONS
TNDMs offer compact models of training data interactions. However, empirical gains depend on task structure, rank selection, and optimization, and retraining remains costly. Topology also matters: TT requires a suitable group ordering, while tensor trees require a suitable hierarchy. Structural knowledge, especially in scientific applications, can guide these choices.
7 CONCLUSION
Tensor network datamodels capture higher-order training data interactions through compact low-rank representations. The theory separates tensor rank from interaction degree for complementary and redundant training groups. Experiments demonstrate gains in subset prediction and interaction recovery, while one fitted surrogate supports Shapley, Banzhaf, and higher-order attribution. Low tensor rank offers a practical structural prior for learning training data effects from limited retraining outcomes.
REPRODUCIBILITY STATEMENT
Proofs and experimental details are provided in the appendix. Code is available at https://github.com/farzana0/Tensor_datamodels.
ACKNOWLEDGMENT
Farzaneh Heidari thanks Fazl Barez and Gonçalo Paulo for their helpful discussions, thoughtful feedback, and suggestions throughout this work.
AI USE STATEMENT
Generative AI tools assisted with manuscript editing, verification of the theoretical and experimental results, figure preparation and coding. The authors take responsibility for the final manuscript, including its claims, results, and supporting artifacts.
REFERENCES
Juhan Bae, Wu Lin, Jonathan Lorraine, and Roger Grosse. Training data attribution via approximate unrolling, 2024. URL https://arxiv.org/abs/2405.12186.
Lin Chen, Eric Chitambar, Runyao Duan, Zhengfeng Ji, and Andreas Winter. Tensor rank and stochastic entanglement catalysis for multipartite pure states. Physical Review Letters, 105(20):200501, 2010. doi: 10.1103/PhysRevLett.105.200501.
Ian Convy and K. Birgitta Whaley. Interaction decompositions for tensor network regression. Machine Learning: Science and Technology, 3(4):045027, 2022. doi: 10.1088/2632-2153/aca271.
Logan Engstrom, Axel Feldmann, and Aleksander Madry. DsDm: Model-aware dataset selection with datamodels. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 12491–12526. PMLR, 2024. URL https://proceedings.mlr.press/v235/engstrom24a.html.
Amirata Ghorbani and James Zou. Data shapley: Equitable valuation of data for machine learning. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 2242–2251, 2019.
Lars Grasedyck. Hierarchical singular value decomposition of tensors. SIAM Journal on Matrix Analysis and Applications, 31(4):2029–2054, 2010. doi: 10.1137/090764189. URL https://epubs.siam.org/doi/10.1137/090764189.
Farzaneh Heidari and Guillaume Rabusseau. TN-SHAP-G: Graph-structured tensor network surrogates for Shapley values and interactions. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research. PMLR, 2026. arXiv:2606.01540.
Farzaneh Heidari, Chao Li, and Guillaume Rabusseau. Tractable Shapley values and interactions via tensor networks. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics (AISTATS), volume 300 of Proceedings of Machine Learning Research. PMLR, 2026. arXiv:2510.22138.
Jaeseung Heo, Kyeongheung Yun, Youngbin Choi, Sehyun Hwang, Jungseul Ok, and Dongwoo Kim. Interaction-aware influence functions for group attribution, 2026. URL https://arxiv.org/abs/2605.15675.
Yixiao Huang, Hanlin Zhu, Tianyu Guo, Jiantao Jiao, Somayeh Sojoudi, Michael Jordan, Stuart J Russell, and Song Mei. Generalization or hallucination? understanding out-of-context reasoning in transformers. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 139807–139855. Curran Associates, Inc., 2025. doi: 10.52202/085713-4670. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/cc7c9c8e4a84b0ca00d874e1a8938644-Paper-Conference.pdf.
Andrew Ilyas and Logan Engstrom. Magic: Near-optimal data attribution for deep learning. arXiv preprint arXiv:2504.16430, 2025.
Andrew Ilyas, Sung Min Park, Logan Engstrom, Guillaume Leclerc, and Aleksander Madry. Data-models: Understanding predictions with data and data with predictions. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 9525–9587, 2022.
Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1885–1894, 2017.
Tamara G. Kolda and Brett W. Bader. Tensor decompositions and applications. SIAM Review, 51(3):455–500, 2009. doi: 10.1137/07070111X.
Alexander Novikov, Mikhail Trofimov, and Ivan Oseledets. Exponential machines. In International Conference on Learning Representations (ICLR), Workshop Track, 2017. arXiv:1605.03795.
Ivan V. Oseledets. Tensor-train decomposition. SIAM Journal on Scientific Computing, 33(5):2295–2317, 2011. doi: 10.1137/090752286.
Sung Min Park, Kristian Georgiev, Andrew Ilyas, Guillaume Leclerc, and Aleksander Madry. TRAK: Attributing model behavior at scale. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pp. 27074–27113, 2023.
Garima Pruthi, Frederick Liu, Satyen Kale, and Mukund Sundararajan. Estimating training data influence by tracing gradient descent. In Advances in Neural Information Processing Systems, volume 33, pp. 19920–19930, 2020.
Beheshteh T. Rakhshan and Guillaume Rabusseau. Tensor cookbook: Mastering tensors through diagrams. arXiv preprint arXiv:2605.16610, 2026.
Harshay Shah, Sung Min Park, Andrew Ilyas, and Aleksander Madry. ModelDiff: A framework for comparing learning algorithms. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 30646–30688. PMLR, 2023. URL https://proceedings.mlr.press/v202/shah23a.html.
Oscar Skean, Md Rifat Arefin, Dan Zhao, Niket Nikul Patel, Jalal Naghiyev, Yann LeCun, and Ravid Shwartz-Ziv. Layer by layer: Uncovering hidden representations in language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 55854–55875, 2025. URL https://proceedings.mlr.press/v267/skean25a.html.
Boshi Wang, Xiang Yue, Yu Su, and Huan Sun. Grokking of implicit reasoning in transformers: A mechanistic journey to the edge of generalization. In Advances in Neural Information Processing Systems (NeurIPS), 2024. URL https://arxiv.org/abs/2405.15071.
Jiachen Wang, Prateek Mittal, Dawn Song, and Ruoxi Jia. Data shapley in one training run. In International Conference on Learning Representations (ICLR), 2025. URL https://openreview.net/forum?id=HD6bWcj87Y.
Jiachen T. Wang and Ruoxi Jia. Data banzhaf: A robust data valuation framework for machine learning. In Proceedings of the 26th International Conference on Artificial Intelligence and Statistics, volume 206 of Proceedings of Machine Learning Research, pp. 6388–6421. PMLR, 2023. URL https://proceedings.mlr.press/v206/wang23e.html.
Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in Neural Information Processing Systems, volume 28, 2015.
Zhenshuo Zhang, Minxuan Duan, and Hongyang Zhang. Efficient estimation of kernel surrogate models for task attribution. In International Conference on Learning Representations, 2026.
A TNDM: DEFINITIONS, PROPERTIES AND THEOREMS
A.1 SET FUNCTIONS AND TENSORS
Let , where . We are interested in set functions
We denote by F the set of all such functions.
Proposition 1. The set F, endowed with pointwise addition and scalar multiplication, is a vector space over R.
Proof. This follows immediately from the vector space structure of , since the vector space operations are defined pointwise.
Any set function can be encoded by its -th order value tensor , whose entries are defined by
for .
Theorem 2. The vector space is isomorphic to the space of -th order tensors through the map
defined in (2).
Proof. The map is linear because
for every and .
It is injective because contains the value of for every . It is surjective because, given any tensor , one may define
The resulting set function satisfies . Hence is a vector space isomorphism.
A.2 SET FUNCTIONS, DATAMODELS, LINEARITY, AND MULTILINEARITY
A datamodel, as introduced by Ilyas et al. (2022), predicts a quantity associated with a model trained on a subset of a fixed collection of datasets. Let be a collection of datasets, indexed by . For every , let
denote the model trained on the datasets indexed by S. A scalar quantity associated with , such as its expected output on a validation distribution,
defines a set function . In this sense, datamodels can be viewed as set functions describing how a model's behavior depends on the data used to train it. Linear datamodels, as introduced in Ilyas et al. (2022), motivate the following definition.
Definition 4. A set function is linear if there exist a parameter vector and a bias such that
for every . We denote the set of linear set functions by .
Identifying with its indicator vector , where , a linear set function can equivalently be written as . In what follows, we use and interchangeably.
The class is a vector subspace of . Moreover, whenever . For example, the set function is not linear.
In the same spirit, we introduce multilinear set functions.
Definition 5. A set function is multilinear if there exists a d-th order tensor
such that
for every . We denote the set of multilinear set functions by .
The tensor C in (3) is the coefficient tensor of v. It should be distinguished from the value tensor in (2). The two tensors are nevertheless related by invertible changes of basis.
Indeed, define
For every ,
The definition of the value tensor gives
Consequently, the coefficient tensor is
Theorem 3. Every set function is multilinear: .
Proof. Let , and let be its value tensor. Equation (4) expresses using . Applying the change of basis (5) yields (3) with . Thus . The reverse inclusion follows directly from the definition of .
A.3 RANK AND INTERACTION DEGREE OF SET FUNCTIONS
Through the isomorphism of Thm. 2, any notion of tensor rank can be extended to set functions. We focus here on CP rank.
Definition 6. The CP rank of a set function is the CP rank of its value tensor:
For , we define
This definition is unchanged if the coefficient tensor is used in place of the value tensor. Indeed, A in (5) is invertible, and CP rank is invariant under invertible transformations applied separately to its modes. Therefore,
For every fixed , all tensors in have finite CP rank. For example, the elementary decomposition gives . It follows that .
More precisely, the extension of (3) from to is multiaffine: it is affine in each variable when the other variables are fixed. By abuse of language, we use the term “multilinear set function.”
A general set function requires values to be specified. By contrast, if v has CP rank at most R, its value tensor admits a decomposition
This representation uses 2dR raw parameters, before accounting for the usual scaling indeterminacies of a CP decomposition. CP rank therefore induces a notion of model complexity: increasing R produces the nested family
A different and equally important notion of complexity is the interaction degree. For every , define
with the convention .
Proposition 2. The family is a basis of .
Proof. Every set function admits the expansion
where the coefficients are given by Möbius inversion:
Hence the family spans , and the expansion is unique. Equivalently, since it contains elements, it is a basis.
The entries of the coefficient tensor are precisely the coefficients in (7). More explicitly,
where selects the constant component in the j-th mode.
Definition 7. Let be nonzero, with the unique expansion . The interaction degree of is
For the zero function, we adopt the convention .
We denote the set of set functions of interaction degree at most k by
Proposition 3. The following statements hold.
• A set function is linear if and only if . In particular, every linear set function has interaction degree at most one.
• The interaction degree of an arbitrary set function is upper bounded by : .
Proof. If , then
Only monomials indexed by sets of cardinality zero or one occur, so .
Conversely, if , its expansion in the basis of Prop. 2 has the form
Thus .
The second statement follows directly from (7): every monomial is indexed by a subset , and therefore satisfies .
Similarly, increasing the degree bound produces the nested family
Increasing the CP-rank bound likewise gives
These two filtrations describe different notions of complexity and, in general, neither refines the other, as illustrated in Fig. 1(b).
A.4 INTERACTION DEGREE AND CP RANK IN K-HOP REASONING DATA ATTRIBUTION
We first establish a general result for set functions defined by possibly overlapping support sets.
Theorem 4. Let be nonempty subsets of , and let . Consider the set function
Then
If the support sets are pairwise disjoint, then the CP-rank bound is tight:
These conclusions remain valid when some elements of N do not belong to any support set.
Proof. Identifying with its indicator vector , we have
After combining terms with identical support sets, all coefficients remain positive. Hence no highest-degree monomial can cancel, and .
To bound the CP rank, let and . For each , define
The value tensor of is . Since each has CP rank one, .
Suppose now that the support sets are pairwise disjoint. Apply an invertible change of basis in every mode sending to and to . Choose one representative for each support set and contract every other mode with the linear functional satisfying . The resulting tensor is
Because every is nonzero, invertible rescaling of the modes reduces this tensor to the standard -tensor, defined by
whose CP rank is (Chen et al., 2010, Theorem 3(a)). Since contraction with linear functionals cannot increase CP rank, . Combined with the upper bound, this gives .
We apply this result to a simplified model of data attribution for multi-hop reasoning. Let be a collection of datasets and let be evaluation queries. For each query , let index the datasets containing the facts required to answer .
For , let denote the model trained on . We make the simplifying assumption that answers correctly if and only if . The average accuracy of is therefore the set function
Corollary 2. The average-accuracy datamodel satisfies
If the query support sets are pairwise disjoint, then .
In particular, if query requires reasoning facts stored in distinct datasets, then . If every query is a k-hop reasoning task of this form, then , regardless of whether the query support sets overlap.
Datasets whose indices lie outside affect neither the interaction degree nor the CP rank of .
Proof. Apply Thm. 1 with for every a.
This result provides a direct motivation for Tensor Network Datamodels (TNDMs). TNDMs fit multilinear set functions while imposing a low-rank structure on their associated tensors, with CP rank being one possible choice. Besides making the representation computationally tractable, this structure provides an inductive bias for generalization: when the underlying datamodel is approximately low rank, observations from a limited number of training subsets can inform predictions on unseen subsets, for essentially the same reason that low-rank structure enables tensor completion. The strength of TNDMs therefore lies in their ability to represent set functions that are low rank but may nevertheless have high interaction degree, as can naturally occur in realistic data-attribution problems involving k-hop reasoning over facts distributed across multiple data sources.
Note that the pairwise-disjointness assumption can be relaxed. The same CP-rank conclusion holds whenever each support contains a private dataset, that is, an element
Indeed, retaining one private mode per support in the contraction argument again produces a weighted -tensor.
Without such an assumption, the CP-rank bound need not be tight. For example, the set function has two overlapping support sets but CP rank one.
A.5 COVERAGE WITH REDUNDANT SUPPORTING GROUPS
Proposition 4 (Tensor-train ranks of a coverage function). Let be nonempty, pairwise-disjoint subsets of , and define
Then
In any ordering in which each forms a contiguous block, the value tensor of c has TT ranks at most two. Groups outside affect neither conclusion.
Proof. Each factor has degree and a nonzero coefficient on the product of all variables in . Since the sets are disjoint, their product has a nonzero coefficient on , establishing the degree claim.
Consider a prefix cut in the stated ordering, with selected groups and on its two sides. A cut between support blocks separates the function into a product of a left function and a right function, so its unfolding has rank one.
A cut within a block splits at most one support set. Let and indicate that no group has been selected from the left and right portions of that block, respectively. The remaining support blocks contribute factors and , giving
This is a sum of two separable terms, so the unfolding has rank at most two. The minimal TT ranks equal the ranks of the prefix unfoldings, proving the claim. Groups outside the support sets contribute constant modes and do not change the argument.
B TNDM: FITTING AND PARAMETERIZATIONS
This appendix gives the explicit CP and tensor-train parameterizations used by the TNDMs of Sec. 2. Throughout, we use the coefficient-tensor representation
By the invertible mode-wise change of basis described in Appendix A, the same tensor network ranks are obtained if the corresponding value tensor is used instead.
B.1 CP PARAMETERIZATION
A rank-R CP tensor has the form
Consequently,
Thus TNDM-CP is exactly the sum-of-products representation of Definition 2. It uses 2dR parameters and evaluating one coalition requires operations.
B.2 TENSOR-TRAIN PARAMETERIZATION
For an ordering of the training units, a tensor-train represents the coefficient tensor using cores
Writing for the matrix obtained by fixing the physical index to , the corresponding datamodel is
where each factor contracts a coefficient-tensor core with .
(a) what we measure
(b) how a row is predicted
(c) what we get

how it is fitted
least squares over the matrix entries, on the measured rows only ( unknowns, not ); the rank r, the network topology, and are chosen on held-out validation coalitions
Figure 5: Fitting a TNDM as tensor completion. (a) Each observed coalition provides one entry of the coalition tensor. (b) The fitting objective in Eq. 12 estimates the parameters of a low-rank tensor network to the observed entries. (c) The fitted network defines predictions for unobserved coalitions. The example uses a tensor train; CP and tree networks use different factorizations of the same coalition tensor. A TNDM learns from a small set of measured training subsets and uses the shared low-rank structure to predict outcomes for subsets that were never retrained.
Equivalently, after transforming the cores to the value-tensor basis, the -th factor is , where index 1 denotes inclusion and index 2 denotes exclusion. The two representations are related by the invertible local change of basis of Appendix A.
If all internal ranks satisfy , the model uses parameters and evaluates a coalition in time.
Unlike CP rank, TT rank depends on the ordering of the tensor modes. For a fixed ordering, each TT bond corresponds to a prefix bipartition of the training units. The minimum exact bond dimension at that cut equals the rank of the corresponding matrix unfolding; we state this explicitly in Appendix D.
B.3 FITTING FROM COALITION OBSERVATIONS
Both parameterizations are fitted using the same observed coalition–outcome pairs as the other datamodels. Given
we optimize the regularized least-squares objective of Sec. 2,
Ranks and regularization parameters are selected using held-out coalition observations.
Figure 5 illustrates this tensor-completion view for a tensor-train: observed coalition outcomes determine a subset of tensor entries, the TT factors are fitted on those entries, and the fitted network predicts the remaining coalition values.
C TENSOR NETWORK NOTATION AND CONSTRUCTIONS
We use the conventions collected by Rakhshan & Rabusseau (2026): a node is a tensor and each leg is one mode, with its dimension in gray at the free end; joining two legs of equal dimension sums that index; a filled black dot is a copy tensor; attaching or to a physical leg fixes absence or presence of a training unit; and a network with no free legs is a scalar. Colour is a reading aid only: blue is the learned coalition tensor or its cores, orange represents attribution weights, green is a local change of basis. Figure 6 summarizes these conventions.

Figure 6: Diagram notation. A node is a tensor and each leg is one mode, with its dimension in gray at the free end; joining two legs of equal dimension sums that index; a filled dot is a copy tensor; attaching or to a physical leg fixes absence or presence of a training unit; and a network with no free legs evaluates to a scalar. Only connectivity carries algebraic meaning. Tensor-network diagrams provide a compact graphical notation for the tensor operations used throughout the paper.
D TENSOR-TRAIN RANK AND COALITION UNFOLDINGS
For an ordering , let
and define the coalition unfolding
Proposition 5 (TT rank and coalition unfoldings). For a fixed ordering , the minimum exact TT bond dimension at cut k equals
Equivalently, is the smallest integer for which maps
satisfy
for every and .
Proof. A representation
corresponds exactly to a matrix factorization
with inner dimension , where the rows of are and the rows of are . The smallest admissible inner dimension therefore equals .
E GENERAL COMPLEMENTARY AND REDUNDANT SUPPORT STRUCTURE
The support-set model of Sec. 3 assumes one training group for each required fact. We now allow several training groups to provide the same required fact.
For query , let
be nonempty, pairwise-disjoint sets. Query a is answered correctly when the selected coalition contains at least one training group from every . Define
Sets belonging to different queries may overlap.
Let
Thus, is the number of training groups involved in query a, and is the number of required facts with redundant supporting groups.
For an ordering and prefix cut
define
The quantity counts the sets split by the cut.
Theorem 5 (Complementary and redundant support structure). For every query a,
For every ordering and prefix cut ,
For positive weights , define
Then
and
The degree bound is an equality whenever the degree-max terms do not cancel.
Proof. For a fixed query a, each factor
has degree and contains the nonzero highest-degree term
The sets are disjoint, so their product contains the nonzero term
Hence .
A singleton set contributes the rank-one factor . For ,
is a sum of two rank-one terms. Expanding the nonsingleton factors therefore gives
For the reverse inequality, choose a matrix unfolding that places at least one variable from each nonsingleton on each side. The unfolding of every split factor has matrix rank two, while singleton factors and unused variables have rank one. After permuting rows and columns, the full unfolding is a Kronecker product of these factor unfoldings, so its matrix rank is
Matrix-unfolding rank cannot exceed CP rank, giving
For a fixed TT cut, every set lying entirely on one side contributes unfolding rank one. Every set split by the cut contributes unfolding rank two because
is the sum of two separable terms whose left and right factors are linearly independent. The full unfolding is therefore a Kronecker product with rank
Finally, degree, CP rank, and matrix rank are respectively bounded under addition by the maximum degree, the sum of CP ranks, and the sum of matrix ranks. Applying these bounds to gives the three aggregate bounds.
Corollary 3 (Pure complementarity). If every contains one training group, then
for every query a, and
Writing
gives
Thus the support-set model of Sec. 3 is recovered.
Corollary 4 (Single-query redundant coverage). For one query with nonempty, pairwise-disjoint sets ,
has
If every is contiguous in the tensor ordering, every prefix cut splits at most one , so every TT rank is at most two.
F ATTRIBUTION FUNCTIONALS AND CONTRACTION PROOFS
Let denote the value tensor, using physical index for inclusion bit . Define
and
For a weight tensor W, define the linear functional
F.1 LINEAR FUNCTIONALS OF A FITTED TNDM
Theorem 6 (Linear-functional contraction). Every linear functional on has a unique weight tensor . If and have TT ranks bounded by and , respectively, in the same ordering, then
can be evaluated in operations. For a product weight tensor, the cost reduces to . Moreover,
Proof. Let denote the standard-basis tensor associated with coalition . For a linear functional , define
Linearity gives
for every tensor X, while evaluation on the standard basis establishes uniqueness.
For TT representations of ranks bounded by and , sequential contraction of the two networks costs . A product weight tensor has TT rank one, giving . The final bound follows from the Cauchy–Schwarz inequality.
F.2 MARGINAL-CONTRIBUTION CURVES AND SEMIVALUES
For , define the product weight tensor by placing on mode and on every other mode. The resulting marginal-contribution curve is
The same definition without hats applies to the measured set function v.
Proposition 6 (Marginal-contribution curve). For every ,
and
Each evaluation of costs for a rank-r TT. The polynomial has degree at most , so Gauss–Legendre quadrature with nodes evaluates the Shapley integral exactly in exact arithmetic, at total cost .
Proof. Expanding the product weight tensor gives Eq. (9). Setting retains only , giving leave-one-out. Setting assigns equal probability to every context, giving Banzhaf.
For Shapley values,
which gives the Shapley weights. The computational costs follow from Thm. 6.
Figure 7 summarizes the three readouts: leave-one-out evaluates the marginal curve at , Banzhaf at , and Shapley integrates the curve over .
Proposition 7 (Grouped marginal-curve coefficients). Let denote the Möbius coefficient associated with . For every ,

one difference leg at site i; every other context averaged at retention rate t

Figure 7: LOO, Banzhaf, and Shapley are three readouts of the same marginal curve. Left: for a fixed , the rank-one weight tensor places on site and on every other site. Its contraction with the fitted TNDM costs . Right: LOO evaluates the curve at , Banzhaf at , and Shapley integrates the curve over . Once a TNDM is fitted, several familiar attribution scores can be obtained as different summaries of the same learned subset function.
Consequently, is constant if and only if for every .
Vanishing grouped coefficients do not require every higher-order Möbius coefficient to vanish, because coefficients of equal order may cancel. In particular, additive set functions satisfy for every and therefore have constant marginal curves.
Proof. The marginal contribution satisfies
Substitution into Eq. (9) and summation over all contexts containing gives
Grouping terms by yields Eq. (10). A polynomial is constant exactly when every coefficient of a positive power vanishes.
Proposition 8 (Semivalue weight tensor). Let be a distribution over context sizes and define
Then
The weight tensor admits a counting-network representation with TT ranks at most d. Exploiting the sparse counter transitions, contraction with a rank-r TNDM costs .
Special cases are
and
for leave-one-out.
Proof. Expanding the contraction and grouping coalition indicators by gives the semivalue definition. The factor implements the difference between retaining and removing training unit .
A counting network propagates the partial Hamming weight from left to right. At site , the sparse transition either preserves or increments the count. The contraction therefore costs at site , and summation over all sites gives .
the counting core is a counter

closed network =
Figure 8: Summing predictions at a fixed coalition size. Contracting the fitted datamodel (blue) with a counting weight tensor (orange) computes . The counter starts at zero, increments when a group is included, and terminates at ; it has at most states. For the symmetric semivalue of group , the corresponding construction places the difference vector at and counts only the remaining groups. A terminal count receives weight , where is the probability assigned to context size (Proposition 8). The tensor network representation lets us aggregate predictions over all subsets of a given size without enumerating those subsets individually.
Figure 8 shows the counting-network construction used to aggregate predictions over coalitions of a fixed cardinality.
F.3 INTERACTION COEFFICIENTS
Under the indexing convention of Sec. 2, the value-to-coefficient transformation on each physical mode is
where A is defined in Appendix A. The first transformed coordinate selects the interaction component, while the second selects the constant component.
Proposition 9 (Rank-preserving interaction transform). The Möbius transform acts locally on every physical mode and therefore preserves the tensor network topology and every internal rank of . For a rank-r TT, the local transformation costs .
Fixing the transformed physical leg of training unit i to the interaction coordinate leaves an order- tensor whose entries are precisely the Möbius coefficients indexed by sets containing i. Contracting the remaining modes with the counting network gives
for all interaction orders k, at cost .
Proof. The Boolean Möbius transformation applies the matrix M independently to every physical mode. Multiplication of a physical leg by an invertible local matrix modifies only the corresponding tensor core and leaves every internal bond dimension unchanged.
Fixing the transformed leg of unit to the interaction coordinate selects coefficients indexed by sets containing . Contracting the remaining modes with the counting network groups those coefficients by cardinality, giving the stated quantities and the complexity.
Figure 9 illustrates the local Möbius change of basis, the interaction slice associated with one training unit, and the subsequent aggregation by interaction order.
G FIXED-SCORE ATTRIBUTION AND SUBSET PREDICTION
Influence functions, TracIn, and TRAK compute attribution scores using information from fitted learners or training trajectories (Koh & Liang, 2017; Pruthi et al., 2020; Park et al., 2023). Suppose a
(a) open the interaction slice

legs stay open: the output is a tensor, not a scalar
(b) summarize it by order

green node = local change of basis
values Möbius basis. The graph topology and every bond dimension are unchanged (Prop. 9).
Figure 9: Interaction discovery for one training unit (example ). (a) A green matrix on every physical leg rewrites the network in the Möbius basis; fixing the transformed leg of unit to 1 leaves an order- tensor whose entries are exactly the interactions containing . Unlike a scalar attribution, this tensor-valued transformation deliberately keeps its legs open. (b) Contracting those legs with the counting weight tensor of Figure 8 collapses the slice into the degree profile . The fitted TNDM retains information about interactions, allowing us to inspect how strongly each training unit participates in interactions of different orders.
score vector has been computed once and then reused to predict outcomes for different training subsets. The resulting subset predictor has the form
Proposition 10 (A fixed-score subset predictor is additive). For any fixed vector , the predictor
has interaction degree at most one and TT ranks at most two in every ordering. The marginal contribution of training unit equals in every context. Consequently, every normalized symmetric semivalue of training unit equals .
Proof. Using coalition indicators,
The multilinear expansion contains no coefficients of degree greater than one, so
For , a TT representation with ranks at most two is given by
and
Multiplying the cores gives
The case is immediate.
For every context ,
Hence the marginal-contribution curve of Eq. (9) satisfies
Every normalized symmetric semivalue therefore returns .
Proposition 10 concerns the reuse of a fixed score vector across training subsets. Influence functions, TracIn, and TRAK may use gradients, curvature information, checkpoints, projections, or ensembles when producing the score vector. Recomputing the attribution scores after changing the training subset can produce context-dependent quantities outside the fixed-score model above.
The coalition-prediction experiments in the paper compare functions fitted directly to observed subset–outcome pairs. Consequently, the reported prediction comparisons concern the evaluated datamodel families. A comparison with attribution algorithms that use additional information from the trained learner or training trajectory requires a separate experimental protocol.
H SURROGATE CLASSES
Let denote the indicator vector of a training coalition. We compare datamodels that impose different restrictions on the set function predicted from these indicators.
Linear and polynomial datamodels. The linear datamodel is the affine set function defined in Sec. 2. A degree-p polynomial datamodel has the form
Degree-2 and degree-3 datamodels correspond to quadratic and cubic models, respectively; the degree specifies the maximum interaction order included. Dense polynomial models fit all monomials through the specified degree using ridge regression. Sparse degree-3 models select monomials using orthogonal matching pursuit. Within a degree-bounded model, factorizing the coefficient tensors imposes an additional rank constraint.
Kernel datamodels. RBF kernel ridge uses the kernel
with bandwidth and regularization selected using validation coalitions.
Tensor network datamodels. Direct CP, TT, and hierarchical Tucker (HT) datamodels approximate the value tensor using the corresponding factorization, without imposing a polynomial-degree cutoff. The TT degree ladder first fits degree-bounded predictors and then represents them as tensor-trains. We distinguish this procedure from fitting a TT directly to the observed coalition outcomes.
Where cardinality adjustment is used, the method label identifies the surrogate component fitted after adjustment. Its degree need not equal the degree of the complete predictor. Preprocessing and fitting configurations are specified separately for each experiment.
I EXPERIMENTAL DETAILS
I. 1 RELATION-COMPOSITION TASK
Our construction draws on the controlled relational-composition setting of Wang et al. (2024), adapted to training data attribution through removable groups of relation examples. We use three-step chains with explicitly generated intermediate entities, whereas their composition experiments study two-hop inference without emitting the intermediate entity.
| Training groups | Relation sequences | Required relations | Groups per relation |
|---|---|---|---|
| 8 | 8 | 3 | 2 |
| 12 | 10 | 3 | 2 |
| 24 | 10 | 2 | 3 |
Table 4: Reasoning-task configurations. Required relations are those whose training examples depend on the selected coalition. Each relation sequence defines 31 evaluation queries, one per initial entity. The three reasoning settings vary the number of training groups while keeping the same basic relation-composition structure.
Entities and relations. Entities are elements of , and each relation specifies an additive shift modulo 31. For relation sequence and initial entity , the evaluation query asks for the terminal entity in
The model generates the intermediate entities before predicting the terminal entity. Each relation sequence is evaluated at all 31 initial entities.
Training groups. Let denote the groups supporting the -th coalition-dependent relation of sequence . These sets are disjoint within each sequence, although a group may support relations in several sequences. Table 4 summarizes the three configurations. All have three reasoning steps. At , the third relation is generic and is taught through background data available to every coalition.
Relation examples. Each required relation contributes 372 training examples: 31 initial entities, three positions for its token, and four generic contexts. Each example contains one coalition-dependent relation token; the other two positions contain generic relation tokens.
Groups supporting the same relation supply identical examples of that relation. The coalition training pool contains these examples once whenever at least one supporting group is selected. Evaluation combines the required relation tokens within a single chain, whereas training presents them separately. All 31 initial entities occur in training, so evaluation tests composition of separately learned relations.
Absent relations. When no selected group supports a required relation, its token embedding is initialized to the identity-relation embedding and tied to it after every optimizer step. The shifts are chosen so that no nonempty subset of the coalition-dependent shifts sums to zero modulo 31. This prevents omitted shifts from cancelling each other.
Background data and sampling. Background examples are three-step chains with randomly sampled initial entities, shifts, and generic relation aliases. They contain no coalition-dependent relation tokens. Approximately one quarter of each background batch consists of examples with two identity relations.
For a nonempty coalition, each training batch contains 410 background examples and 102 examples sampled with replacement from the selected relation pool. The empty coalition uses 512 background examples. Training steps and batch size are fixed across coalitions. Consequently, the expected exposure per required relation decreases as the selected relation pool grows.
I.2 TRANSFORMER LEARNER AND TRAINING
Architecture. The learner is an eight-layer decoder-only transformer with width 256, eight attention heads, and MLP expansion ratio four. It uses parameter-free pre-RMSNorm, rotary position embeddings, QK RMS normalization, ReLU-squared MLP activations, value-residual mixing, an embedding shortcut, and an untied output layer. Logits are capped using a scaled tanh with cap 30. There are no biases or dropout.
The context length is nine tokens. The vocabulary contains 31 entity tokens, 93 generic relation tokens, one token for each coalition-dependent relation of each sequence, and an equality token. Vocabulary sizes are 149, 155, and 145 for , , and , respectively.
Training objective. Training is teacher-forced on sequences . Cross-entropy is applied to the three next-entity predictions, with the softmax restricted to the 31 entity logits. The intermediate entities supplied during training are the correct ones; at evaluation, they are generated greedily by the model.
Optimization. Each coalition is trained from scratch for 1,000 AdamW steps with batch size 512, learning rate , and weight decay 0.1 applied to all parameters. AdamW uses its default momentum and numerical-stability settings. There is no learning-rate schedule, warmup, gradient clipping, or mixed precision. We evaluate the final model; intermediate logging is not used to select a checkpoint.
Within each experimental configuration and learner seed, coalitions share the same initialization. The learner seed also controls data generation. The blind replication and all runs use Quadro RTX 8000 GPUs.
I. 3 MEASURED OUTCOMES
For evaluation query , the model first generates intermediate entities and greedily. Let denote the natural logarithm of the probability assigned to the correct terminal entity, conditional on the resulting context. The softmax is restricted to the 31 entity logits.
The outcome is therefore a final-answer log probability, rather than the log probability of the entire generated sequence. Higher values indicate better predictions. For each relation sequence, we also record the mean
We record both the individual-query outcomes and these sequence means, together with the corresponding final-answer accuracies.
The and datamodels are fitted to the sequence means , separately for each learner seed. Outcomes are not averaged across learner seeds before fitting.
For a fixed learner seed, complete coalition enumeration provides exact attribution references for the measured set function. It does not give the expectation over training randomness. Likewise, the evaluation queries answered by one model share a single retraining run and are not independent retraining replicates.
I. 4 COALITION SAMPLING AND EVALUATION SPLITS
Within each experiment and observation budget, all datamodels receive the same coalition–outcome pairs. Validation coalitions are used for hyperparameter selection. Test outcomes are excluded from fitting and model selection.
Complete enumeration at . We retrain the learner on all coalitions. Datamodels receive only sampled coalition observations, partitioned into fitting and validation sets. Predictions are evaluated on the remaining coalitions. The prediction budget sweep uses four fixed initial-entity-zero outputs, with a 75%/25% fitting/validation split and three repeated coalition splits. Validation selects hyperparameters within each family, output, and split; NMSE is then summarized by the median across the four outputs and three splits. Complete enumeration also supplies reference outcomes.
Fixed observation design at d = 12. The observation design is constructed without retraining outcomes, using pivoted QR on group-indicator monomials of degree at most three, subject to cardinality quotas. It contains 160 new coalitions: 52 of size two, 52 of size four, and eight of each size from five through eleven. Nested prefixes define budgets of 32, 48, 64, 96, 128, and 160 new observations.
All size-three coalitions are excluded from surrogate fitting and used for evaluation. Fourteen additional size-two coalitions complete the pair observations needed to compute third-order differences at the empty coalition. A separate collection of gate observations checks the learner's behavior; these observations are not included in the reported count of new coalitions. At 160 new observations, 177 distinct outcomes are used for fitting and validation (141 fitting and 36 validation); additional learner checks are accounted for separately from these fitting and validation outcomes.
The replication uses learner seeds 43 and 59 as blind evaluation seeds. Seed 31 is reported separately because results from the earlier experiment were available during development. Datamodel fits and set nominations are frozen before their evaluation outcomes are obtained.
Random observation design at . Coalitions are sampled by including each training group independently with probability . Duplicate masks are discarded, and the remaining masks are retained in draw order. Nested prefixes of 256, 512, and 1,024 coalitions define the observation budgets. Each budget includes a 20% validation allocation stratified by coalition cardinality.
A disjoint random set of 256 coalitions is used for prediction evaluation. An additional 46 evaluation coalitions comprise the full and empty sets, 24 leave-one-out sets, and 20 sets obtained by removing all supporting groups for one required relation. The full and empty coalitions are excluded from the training masks.
The same observation and evaluation masks are used across learner seeds 31, 43, and 59. Each datamodel is fitted separately for each seed, so comparisons across seeds hold the coalition design fixed.
I. 5 SURROGATE FITTING AND MODEL SELECTION
Datamodels are fitted to the observed coalition indicators and measured outcomes. Hyperparameters are selected using validation coalitions. Test outcomes and attribution references derived from test outcomes are excluded from model selection.
Fitting objective. Let be the fitting observations. The regularized fitting objective is
where are observation weights and is the configured regularizer. When cardinality adjustment is used, the tensor model is fitted to the residual outcomes defined below. Ranks and regularization settings are selected using validation coalitions.
Linear-tensor hybrids. For Linear + TNDM-TT, the residual component above takes the form , where is a fitted linear predictor and is a TT residual correction. The complete predictor retains the shared cardinality adjustment. Attribution values are computed from the combined predictor. Setting the TT correction to zero recovers the fitted linear baseline. The Linear + CP and Linear + HT variants use the corresponding tensor parameterizations for the correction.
Cardinality adjustment at and . For each relation sequence , the fitted predictor has the form , . Here is a degree-3 polynomial fitted by weighted ridge regression. Each fitting observation receives weight inversely proportional to the number of fitting coalitions of the same size, with weights normalized to have mean one. For each observed size , is the mean residual after subtracting from the fitting outcomes of that size. We set when no fitting coalition has size . The residual model is then fitted to the remaining signal.
The cardinality baseline sets . The cardinality-plus-linear baseline uses a linear residual model. Polynomial, kernel, and tensor network variants use their respective residual models with the same cardinality adjustment. Thus, the family names in these comparisons identify the residual model; polynomial degree and tensor rank describe that component.
Cardinality coefficients, size offsets, observation weights, and residual scales are computed from fitting outcomes only. Validation outcomes select model configurations and stopping points. The selected predictors are not refitted on the combined fitting and validation sets.
Tensor orders. Known relation-to-group assignments define candidate tensor orders. At , TT considers the natural order and orders grouping the supporting groups of selected relation sequences. At , it considers a relation-based order and a fixed shuffled order. Validation selects among these candidates. CP and HT use the configured relation-based mode arrangement.
Polynomial and kernel configurations at . Polynomial ridge considers 13 logarithmically spaced regularization values between and . Sparse degree-3 regression uses orthogonal matching pursuit with the number of selected terms chosen from . For RBF kernel ridge, let denote the median squared distance between coalition indicators. The kernel coefficient is selected from , , using the same ridge-regularization grid.
Tensor configurations at . Direct CP, TT, and HT models consider ranks and weight-decay/function-penalty pairs and . Optimization uses AdamW with learning rate 0.02, at most 201 steps, and gradient clipping at 10. Validation is evaluated every ten steps, with early stopping. Configurations are selected by validation mean-squared error.
The TT degree ladder uses polynomial predictors through degree six and distills them into tensor-trains on 2,048 coalitions, with ranks selected from . This procedure is reported separately from direct TT fitting.
I. 6 EVALUATION METRICS
Coalition prediction. For a fixed learner seed, let denote the test coalitions and let be the number of relation sequences. Define . In the experiment, normalized mean-squared error is computed as NMSE = . Here, contains the 256 random test coalitions. We report the mean across three learner seeds and their range. These seeds share the task and coalition design.
Interaction discovery. For the experiment, each triple receives the score . We rank all 220 triples by this score and compute average precision, taking complete triples as positives. A triple is complete when it contains one supporting group for each required relation.
The reported average precision is averaged over ten relation sequences and the two blind learner seeds. This measures recovery of the structural completeness labels, rather than numerical accuracy of all third-order differences. Interaction discovery is a secondary endpoint; comparisons across methods and budgets are not multiplicity-corrected.
Training-set selection. For direct selection, candidate coalitions of a fixed size are ranked by predicted utility. Let denote the retained recommendations for relation sequence a. We evaluate
Completeness is determined by the support sets, whereas utility is measured by retraining.
The primary endpoint retains three size-four coalitions per relation sequence, excluding fitted coalitions from the candidate set. The structural comparison retains three size-three coalitions per sequence. A separate seed-31 evaluation retrains the highest-ranked nomination per sequence. Attribution-based selection is reported separately from direct utility ranking.
I. 7 MODULAR RETRAINING: ATTRIBUTION FROM ONE FIT
We construct a controlled retraining task with eight training data groups. The groups are , , , , and four distractor groups. Each contains eleven training facts describing a relation on eleven entities; the two A groups provide the same relation. The seven distinct relations are affine permutations modulo eleven, with multiplier-offset pairs , , , , , , .
The learner consists of seven relation-specific conditional-logit tables. For each learner seed in , every coalition starts from the same seed-specific initialization, with entries sampled from . Each nonempty coalition is trained for 200 full-batch Adam updates at learning rate 0.1; the empty coalition retains the initial state. The primary utility is the mean log probability of the correct target after composing the learned transition matrices for . We measure all coalition outcomes for each seed. This conditional-logit experiment is distinct from the transformer-retraining experiments: its players are removable training groups, not input features.
For each learner seed and budget , we draw 20 observation sets by uniformly sampling distinct coalitions without replacement. The empty and full coalitions are not forced. All surrogate methods share the observation set and internal fitting/validation split within each repetition. Budgets are sampled independently rather than as nested prefixes. The budget includes validation observations.
Each surrogate jointly predicts four utility outputs: the three-relation composition, the composition, an additive atomic-relation utility, and a redundant-A utility. Hyperparameters are selected by prediction MSE averaged over the validation coalitions and all four outputs. Figure 4 reports attribution errors for the primary three-relation output. Shapley values, pairwise interactions, third-order interactions, and held-out coalition predictions all use the same fitted surrogate. Exact reference attributions and held-out errors are not used for model selection.
Surrogates and fitting. Linear and Degree-2 use ridge regression on binary inclusion indicators and their corresponding monomials, with an unpenalized intercept and 19 penalties logarithmically spaced from to . Degree-3 uses orthogonal matching pursuit, considering support sizes subject to the fitting-sample limit, with a shared support across outputs. RBF uses , with and the same ridge-penalty grid. CP and TT are fitted by gradient descent. CP considers ranks and TT considers . Both use ridge coefficients , two restart candidates.
Attribution accuracy. For completely enumerated set functions, reference attribution quantities are computed from the measured coalition outcomes. The corresponding quantities are then evaluated on each fitted datamodel. Figure 4 reports relative errors for the modular retraining task.
Reference values from enumeration are exact for the measured fixed-seed set function. They do not represent an average over learner randomness.
I. 8 HYPERPARAMETER SEARCH AT d = 12
The following configurations apply to the residual models fitted after cardinality adjustment.
Polynomial and kernel models. Polynomial ridge uses thirteen logarithmically spaced regularization values from to . Its design contains indicator monomials through the specified degree, without an additional intercept. Fitting uses inverse-frequency cardinality weights. A single regularization value is selected jointly across the ten relation sequences.
Degree-three OMP uses the same weighted monomial design and considers sparsities from one through sixty. The sparsity is selected jointly across sequences. RBF kernel ridge considers with the same thirteen ridge parameters. For fitting weights , its weighted kernel system uses the regularizer .
Direct tensor models. CP, TT, and HT consider ranks . The weight-decay and functional-penalty coefficients are paired as , , . Each relation sequence has its own factors or cores. TT is evaluated at every observation budget; the CP and HT variants are evaluated at .
Before optimization, each sequence’s residual is divided by its fitting-set standard deviation, with a minimum scale of 0.05. The objective combines cardinality-weighted squared error with a penalty on mean squared model output over 128 randomly generated coalitions. These additional coalitions require no measured learner outcomes.
| Method | m = 256 | m = 512 | m = 1,024 |
|---|---|---|---|
| Cardinality only | 0.972 [0.971, 0.972] | 0.934 [0.933, 0.934] | 0.918 [0.917, 0.919] |
| Linear | 0.749 [0.749, 0.749] | 0.687 [0.686, 0.687] | 0.669 [0.669, 0.670] |
| Degree-2 ridge | 0.626 [0.625, 0.627] | 0.467 [0.466, 0.469] | 0.348 [0.347, 0.348] |
| Degree-3 ridge | 0.669 [0.668, 0.670] | 0.510 [0.508, 0.511] | 0.342 [0.340, 0.343] |
| Degree-3 OMP | 0.859 [0.857, 0.860] | 0.635 [0.624, 0.654] | 0.271 [0.247, 0.284] |
| RBF kernel ridge | 0.562 [0.562, 0.562] | 0.386 [0.385, 0.387] | 0.257 [0.256, 0.258] |
| CP | 0.490 [0.447, 0.526] | 0.148 [0.133, 0.177] | 0.087 [0.084, 0.089] |
| TT | 0.472 [0.464, 0.485] | 0.188 [0.184, 0.191] | 0.071 [0.066, 0.078] |
| HT | 0.951 [0.924, 0.966] | 0.850 [0.825, 0.877] | 0.766 [0.716, 0.828] |
| TT degree ladder | 0.660 [0.646, 0.671] | 0.432 [0.429, 0.437] | 0.269 [0.267, 0.272] |
Table 5: Held-out NMSE on the reasoning task; lower is better. Entries are means over learner seeds 31, 43, and 59, with seed ranges in brackets. Each seed's NMSE averages over ten relation sequences on 256 random test coalitions. The observation budget includes the validation allocation. Seeds share the task and coalition design. Bold denotes the lowest mean within each budget. Method labels follow the fitting procedure in Appendix I.5. Direct CP and TT give the lowest prediction errors across all observation budgets, while other tensor parameterizations do not show the same advantage.
Optimization uses float64 parameters and AdamW with learning rate 0.02 and gradient norm clipping at ten. Training runs for at most 201 steps. Validation is evaluated every ten steps, with early stopping after six checks without improvement. The best validation checkpoint is retained. Each configuration uses a deterministic initialization; no additional restart search is performed.
TT degree ladder. The degree ladder uses an interaction-degree decomposition of the predictor, following the perspective of Convy & Whaley (2022):
Each component collects interactions among exactly training groups. Restricting the sum to gives a degree-truncated model. The ladder increases this cutoff and selects the retained degree using validation outcomes, with polynomial coefficients compressed into TT form. At each polynomial degree, ridge candidates are fitted over the same regularization grid. The three candidates with lowest validation error are converted to coefficient tensors and compressed by TT-SVD at ranks . The ladder always evaluates through degree three. Higher degrees are accepted only when the relative validation-error improvement is at least ; the search stops at the first rejected degree. This procedure compresses fitted polynomial coefficients and is distinct from directly optimizing a TT residual model.
J ADDITIONAL EXPERIMENTAL RESULTS
J.1 COALITION PREDICTION AT
Table 5 reports prediction error for all evaluated surrogate families. Direct TT and CP achieve the lowest errors across the three observation budgets. At 512 observations, both outperform degree-3 ridge, degree-3 OMP, and RBF at 1,024 observations. This comparison holds separately for each learner seed. The improvement is specific to the fitted representation: HT and the TT degree ladder do not match the performance of direct TT or CP in this experiment.
Fully enumerated eight-group task. The task contains eight optional training groups and eight relation sequences. Each sequence requires three relations, with two supporting groups per relation, giving a coverage indicator of interaction degree six. Retraining on all coalitions provides a complete reference for evaluating subset prediction.
| Method | Joint, m = 256 | Joint, m = 512 | Joint, m = 1,024 | LOO, m = 1,024 |
|---|---|---|---|---|
| Cardinality | 3.472 ± 0.019 | 3.648 ± 0.202 | 3.698 ± 0.022 | 0.556 ± 0.007 |
| Linear | 2.562 ± 0.018 | 2.663 ± 0.257 | 2.741 ± 0.016 | 1.184 ± 0.004 |
| Degree-2 ridge | 2.672 ± 0.012 | 2.733 ± 0.297 | 2.125 ± 0.007 | 0.962 ± 0.007 |
| Degree-3 ridge | 4.324 ± 0.012 | 5.053 ± 0.230 | 3.869 ± 0.019 | 1.326 ± 0.005 |
| Degree-3 OMP | 3.780 ± 0.349 | 4.390 ± 0.361 | 6.292 ± 0.057 | 3.136 ± 0.026 |
| RBF | 2.077 ± 0.009 | 2.484 ± 0.454 | 2.100 ± 0.035 | 1.011 ± 0.027 |
| HT | 3.395 ± 0.101 | 3.454 ± 0.373 | 3.392 ± 0.139 | 0.555 ± 0.005 |
| TNDM-TT, degree ladder | 5.016 ± 0.426 | 5.957 ± 0.173 | 4.303 ± 0.104 | 1.661 ± 0.181 |
| TNDM-CP | 2.123 ± 0.211 | 1.875 ± 0.436 | 1.939 ± 0.258 | 0.780 ± 0.193 |
| TNDM-TT | 2.614 ± 0.053 | 2.174 ± 0.355 | 1.395 ± 0.043 | 0.559 ± 0.016 |
Table 6: RMSE of predicted changes in retrained utility, in nats; lower is better. Joint removal deletes every group supplying one required relation; leave-one-out (LOO) removal deletes one group. Entries show means ± sample SD over learner seeds 31, 43, and 59, which share the task and coalition design. Bold marks the lowest mean in each column. TNDM-TT is most accurate for joint removals, while single-group removal is easier and is best matched by HT in this experiment.
The observation-budget sweep first averages test NMSE over the four outcomes within each split, then reports the mean and sample standard deviation over three splits. At 128 observations, TNDM-TT attains mean NMSE 0.041, compared with 0.230 for degree-three ridge and 0.259 for RBF.
J.2 PREDICTING JOINT-REMOVAL EFFECTS
Using the fitted 24-group datamodels, we predict changes in utility after removing either one training group or every group supplying a required relation. Effects are measured relative to the full training coalition. Evaluation includes 24 single-group and 20 relation-removal masks, using the same learner seeds and fitting designs as the prediction comparison. No additional datamodel is fitted for these effects. Table 6 reports errors across observation budgets. At 1,024 observations, TNDM-TT has the lowest joint-removal RMSE among all ten families in each learner seed. This evaluates the prediction of interacting deletions; selection of retained training subsets is evaluated separately. For single-group removal, HT has the lowest mean error.
J.3 INTERACTION DISCOVERY AT
Table 7 reports average precision for identifying complete triples from predicted third-order differences. TT improves on degree-3 ridge at the larger observation budgets. At 160 new observations, its AP is 0.779 and 0.746 on learner seeds 43 and 59, respectively, compared with 0.356 and 0.281 for degree-3 ridge.
The ordering is budget-dependent. At 48 and 64 observations, degree-3 ridge has higher mean AP than TT. At 128 observations, the linear-plus-TT variant has the highest mean AP among the reported methods. Direct TT has the highest mean at 160 observations.
J.4 TRAINING-SET SELECTION
Primary comparison at . Table 8 reports selection of size-four coalitions at a budget of 160 new observations. Each datamodel ranks the candidate coalitions by predicted utility and retains three recommendations per relation sequence.
TT, degree-3 ridge, RBF, and the TT degree ladder identify complete highest-ranked coalitions for every relation sequence in both blind learner seeds. Among the three retained recommendations, TT has completeness 0.983, compared with 1.000 for degree-3 ridge, RBF, and the TT degree ladder. Thus, the interaction-discovery advantage of TT does not imply better training-set selection.
Exact leave-one-out scores vanish in this construction: removing one group from the full coalition leaves every required relation supported and the deduplicated training pool unchanged. The resulting selection comparison therefore does not establish an advantage over influence-based attribution methods in general.
| Method | New coalition observations | |||||
|---|---|---|---|---|---|---|
| 32 | 48 | 64 | 96 | 128 | 160 | |
| Linear | 0.053 | 0.054 | 0.083 | 0.050 | 0.052 | 0.055 |
| Degree-2 ridge | 0.057 | 0.045 | 0.049 | 0.044 | 0.042 | 0.052 |
| Degree-3 ridge | 0.081 | 0.143 | 0.200 | 0.260 | 0.289 | 0.318 |
| Degree-3 OMP | 0.071 | 0.094 | 0.074 | 0.083 | 0.101 | 0.093 |
| RBF kernel ridge | 0.045 | 0.043 | 0.071 | 0.071 | 0.146 | 0.089 |
| CP | - | - | - | - | - | 0.313 |
| TT | 0.081 | 0.120 | 0.173 | 0.305 | 0.423 | 0.762 |
| HT | - | - | - | - | - | 0.214 |
| TT degree ladder | 0.078 | 0.143 | 0.200 | 0.260 | 0.406 | 0.306 |
| Linear + CP | - | - | - | - | - | 0.328 |
| Linear + TT | 0.056 | 0.122 | 0.096 | 0.271 | 0.540 | 0.668 |
| Linear + HT | - | - | - | - | - | 0.114 |
Table 7: Average precision for interaction discovery on the reasoning task; higher is better. Each entry averages over ten relation sequences and learner seeds 43 and 59. All 220 triples are ranked by the absolute predicted third difference at the empty coalition, with complete triples as positives. Budgets count new coalition observations and exclude the separate gate collection. CP and HT variants were evaluated only at 160 new coalition observations. This is a secondary endpoint; comparisons across methods and budgets are not multiplicity-corrected. TNDM-TT becomes substantially better at recovering the true complementary triples as more coalition outcomes are observed, although the strongest method depends on the observation budget.
| Method | Top-1 completeness | Top-3 completeness | Top-3 utility (nats) |
|---|---|---|---|
| Linear | 0.650 | 0.633 | -4.187 |
| Degree-2 ridge | 0.900 | 0.950 | -0.585 |
| Degree-3 ridge | 1.000 | 1.000 | -0.001 |
| Degree-3 OMP | 0.500 | 0.500 | -5.546 |
| RBF kernel ridge | 1.000 | 1.000 | -0.003 |
| CP | 0.850 | 0.883 | -1.336 |
| TT | 1.000 | 0.983 | -0.173 |
| HT | 0.650 | 0.583 | -4.717 |
| TT degree ladder | 1.000 | 1.000 | -0.001 |
| Linear + CP | 0.800 | 0.850 | -1.704 |
| Linear + TT | 0.950 | 0.917 | -0.967 |
| Linear + HT | 0.700 | 0.683 | -3.596 |
| Random | 0.050 | 0.117 | -9.985 |
| Cardinality / exact LOO | 0.100 | 0.100 | -10.030 |
Table 8: Selection of size-four training coalitions at and 160 new observations. Entries average over ten relation sequences and learner seeds 43 and 59. Top-1 completeness evaluates the highest-ranked recommendation; top-3 completeness is the fraction of complete sets among the three retained recommendations. Top-3 utility is their mean measured final-answer log probability. Higher values are better for all three metrics. Cardinality and exact leave-one-out selectors have identical reported results. Several nonlinear methods, including TNDM-TT, reliably identify complete subsets; stronger interaction recovery does not automatically translate into better subset selection.
Retrained recommendations at . For each relation sequence, we rank all size-three coalitions by predicted utility and retrain the highest-ranked recommendation using learner seed 31. Table 9 reports completeness and measured utility at observation budgets 512 and 1,024.
| Method | m = 512 | m = 1,024 | ||
|---|---|---|---|---|
| Complete | Utility | Complete | Utility | |
| Linear | 8/10 | -2.324 | 8/10 | -2.326 |
| Degree-3 ridge | 10/10 | -0.001 | 10/10 | -0.001 |
| Degree-3 OMP | 10/10 | -0.001 | 10/10 | -0.001 |
| RBF kernel ridge | 10/10 | -0.001 | 10/10 | -0.001 |
| CP | 9/10 | -1.142 | 10/10 | -0.001 |
| TT | 10/10 | -0.001 | 8/10 | -2.285 |
Table 9: Retrained evaluation of the highest-ranked size-three coalition for each of ten relation sequences at . Completeness counts sequences whose recommended coalition supports every required relation. Utility is the mean measured final-answer log probability in nats; higher is better. All entries use learner seed 31. These results concern one recommendation per sequence, rather than the top-three completeness metric averaged across learner seeds. TNDMs can select high-utility subsets, but their prediction advantage does not consistently produce better subset selection than the polynomial or kernel baselines.
At 512 observations, TT selects complete coalitions for all ten relation sequences, matching degree-3 ridge, OMP, and RBF. At 1,024 observations, these three baselines remain complete on all ten sequences, whereas TT is complete on eight. CP improves from nine complete recommendations to ten. The prediction advantage of TT and CP therefore does not establish a corresponding advantage in this selection task.
J.5 SUBSET SELECTION FROM INDIVIDUAL ATTRIBUTION SCORES
For each fitted 12-group datamodel, we enumerate its 4,096 predicted coalition values and compute individual Shapley values. We retain the three groups with the largest scores, breaking exact ties by ascending group index. Each selected subset is evaluated using its recorded retrained utility and whether it supplies all three required relations. This selects one subset per evaluation sequence, rather than ranking candidate subsets directly by predicted utility.
At 160 new observations, Linear + TNDM-TT selects complete subsets for five of ten sequences in learner seed 43 and seven of ten in seed 59. Its mean completeness is , compared with for quadratic ridge and for degree-3 ridge and RBF. It also achieves the highest mean retrained utility among the compared methods at this budget (Table 10). These results use the two blind learner seeds and exclude the seed-31 development run.
This is a secondary comparison at a retrospectively selected budget. The ordering varies across budgets and attribution rules: degree-3 ridge reaches Shapley-based completeness at 64 observations, while RBF reaches at 96.
Comparison across observation budgets. Tables 11 and 12 report completeness across all evaluated budgets. For Banzhaf-based selection, we use the same fitted datamodels, compute individual Banzhaf values, and retain the three highest-scoring groups using the same tie-breaking rule. Each entry averages ten evaluation sequences within each learner seed, then averages the two seed means. The best-performing method depends on both the observation budget and the attribution rule.
J.6 PRETRAINED-MODEL FINE-TUNING EVIDENCE
Sport–Music. We adapt the task of Huang et al. (2025). Five sport–music associations define ten optional training groups: one sport group and one music group per association. Four subjects contribute documents to each paired set of groups, giving four documents per optional group. Every training run also includes 80 fixed background documents.
The study contains 96 full-parameter Qwen2-7B fine-tunes: 88 distinct coalitions at one learner seed and eight repeated runs covering four coalitions at two additional seeds. Evaluation uses 80 probes
| Method | Complete (%) | Retrained utility (nats) |
|---|---|---|
| Linear + TNDM-TT | ||
| TNDM-CP | ||
| Degree-2 ridge | ||
| Linear + TNDM-CP | ||
| Linear + HT | ||
| Degree-3 OMP | ||
| TNDM-TT | ||
| TNDM-TT, degree ladder | ||
| Linear | ||
| HT | ||
| Degree-3 ridge | ||
| RBF | ||
| Cardinality | ||
| Fixed LOO | ||
| Random scores |
Table 10: Selection by individual Shapley values at 160 new observations, with 17 shared observations also used for fitting and validation. Entries show means ± sample SD across two learner-seed means, each averaged over ten evaluation sequences. Higher is better in both columns. Completeness measures relation coverage; utility is measured after retraining. Bold marks the highest mean in each column. Random scores denotes the random-score baseline, not expected performance under uniform sampling of triples. At this budget, combining a linear model with TNDM-TT gives the strongest Shapley-based subset selection among the compared methods, though the ordering varies across budgets.
| Method | 32 | 48 | 64 | 96 | 128 | 160 |
|---|---|---|---|---|---|---|
| Linear | 20 | 20 | 15 | 35 | 20 | 35 |
| Degree-2 ridge | 40 | 5 | 40 | 50 | 35 | 45 |
| Degree-3 ridge | 40 | 5 | 75 | 40 | 30 | 20 |
| Degree-3 OMP | 30 | 20 | 30 | 35 | 40 | 40 |
| RBF | 35 | 10 | 55 | 65 | 15 | 20 |
| TNDM-TT | 15 | 5 | 25 | 30 | 10 | 40 |
| Linear + TNDM-TT | 30 | 20 | 35 | 45 | 25 | 60 |
| TNDM-TT, degree ladder | 40 | 5 | 75 | 40 | 60 | 35 |
| Cardinality | 0 | 0 | 0 | 0 | 0 | 0 |
| Fixed LOO | 0 | 0 | 0 | 0 | 0 | 0 |
| Random scores | 0 | 0 | 0 | 0 | 0 | 0 |
Table 11: Shapley-based subset selection. Columns give the number of new coalition observations. Entries are mean percentages of complete selected triples over blind learner seeds 43 and 59, each evaluated on ten relation sequences. Higher is better; bold marks all methods tied for the highest mean within each budget. Random scores reports the random-score baseline's completeness, not the expected completeness of uniformly sampled triples. No method dominates across all budgets; attribution-based subset selection depends strongly on both the observation budget and the attribution rule.
across five classes. Datamodel prediction is evaluated over 15 shared coalition splits. These splits vary the observed coalitions; they are not independent replications of learner training.
Table 13 compares prediction configurations. A single rank-five TNDM-CP improves on the tuned linear, matched-pair, and degree-2 baselines. Ensembles improve prediction further using additional surrogate-fitting compute. In the separate class-mode interaction analysis, both TNDM-CP and class-specific degree-2 models recover four of the five expected strongest pairs.
AG News RoBERTa–LoRA. Each coalition fine-tunes a fresh adapter and classification head from the same pretrained RoBERTa-base initialization. Eight optional training groups vary document length, duplication, controlled label corruption, and class enrichment. The outcome is negative held-out probe log-loss.
| Method | 32 | 48 | 64 | 96 | 128 | 160 |
|---|---|---|---|---|---|---|
| Linear | 20 | 20 | 15 | 35 | 20 | 35 |
| Degree-2 ridge | 40 | 5 | 40 | 50 | 35 | 45 |
| Degree-3 ridge | 35 | 0 | 65 | 40 | 25 | 30 |
| Degree-3 OMP | 35 | 20 | 25 | 50 | 40 | 40 |
| RBF | 35 | 25 | 40 | 70 | 40 | 50 |
| TNDM-TT | 20 | 10 | 15 | 35 | 25 | 35 |
| Linear + TNDM-TT | 25 | 25 | 20 | 50 | 30 | 40 |
| TNDM-TT, degree ladder | 35 | 0 | 65 | 40 | 50 | 40 |
| Cardinality | 0 | 0 | 0 | 0 | 0 | 0 |
| Fixed LOO | 0 | 0 | 0 | 0 | 0 | 0 |
| Random scores | 0 | 0 | 0 | 0 | 0 | 0 |
Table 12: Banzhaf-based subset selection under the same protocol as Table 11. Entries are mean percentages of complete selected triples; columns give new-observation budgets. Higher is better; bold marks all methods tied for the highest mean within each budget.
| Datamodel configuration | Held-out |
|---|---|
| Linear, tuned | |
| Matched-pair, tuned | |
| Degree-2, tuned | |
| TNDM-CP, single fit, rank 5 | |
| TNDM-CP, best of 8, rank 5 | |
| TNDM-CP, ensemble of 8 initializations | |
| TNDM-CP, ensemble over ranks 3–6 | |
| TNDM-CP, ensemble over rank and regularization |
Table 13: Sport–Music log-probability prediction: mean sample SD over 15 shared coalition splits. Ensembles use additional surrogate-fitting compute. Bold marks the highest mean. TNDM-CP outperforms the tuned non-tensor baselines, and ensembling several low-rank fits improves prediction further.
The reference collection enumerates all 256 coalitions for each adapter rank in and learner seed in , totaling 4,608 fine-tunes. Reference attribution values use the complete coalition outcomes for each rank and learner seed. Estimators receive only the budgeted observations.
Table 14 reports pooled median relative errors at 128 observations, using 20 observation-sampling repeats per rank/seed combination. These combinations share the dataset and do not represent 18 independent datasets. TNDM-TT has the lowest median Banzhaf error among the compared methods at this budget; KernelSHAP has the lowest median Shapley error. The separate comparison aggregating attribution error across budgets favors degree-truncated and RBF baselines over TNDMs at all six adapter ranks. The displayed endpoint therefore supports competitive attribution at this budget, rather than an advantage across all fine-tuning comparisons.
J.7 PREDICTION ON BROADER EXPERIMENTAL SETTINGS
We evaluate coalition prediction on AG News and UCI HAR with training groups, and on a coin-flip task with groups of in-context examples. For AG News, each coalition defines a multinomial naive Bayes classifier with 2048 hashed features and add-one smoothing. The outcome is the negative mean log-loss on 2000 test examples. For UCI HAR, each coalition defines a multiclass ridge classifier with regularization parameter 10, applied to a fixed 64-dimensional projection of the sensor features. The outcome is the negative mean softmax log-loss on the official test split. For the coin-flip task, the coalition selects examples in the prompt of a frozen Qwen model, and the outcome is the negative mean log-loss on the evaluation examples.
Evaluation protocol. All coalition outcomes are available for each setting. For each of three random permutations of the coalitions, we reveal a prefix of size . We use of this prefix for fitting and for validation; all remaining coalitions form the test set. The same split is
| Estimator | Banzhaf ↓ | Shapley ↓ |
|---|---|---|
| Linear | 0.1701 | 0.3555 |
| Degree-2 | 0.2013 | 0.3721 |
| RBF | 0.1724 | 0.3368 |
| TNDM-CP | 0.1736 | 0.3358 |
| TNDM-TT | 0.1634 | 0.3285 |
| MSR Banzhaf | 0.2258 | - |
| KernelSHAP | - | 0.1233 |
Table 14: Full AG News RoBERTa–LoRA attribution comparison at 128 observed coalitions. Entries are pooled median relative errors over six adapter ranks, three learner seeds, and 20 observation-sampling repeats per combination. MSR estimates Banzhaf values directly; KernelSHAP estimates Shapley values directly. Lower is better; bold marks the lowest median for each target. TNDM-TT is competitive for attribution on AG News, while dedicated estimators can still be better for specific targets such as Shapley values.
| Setting | m | Linear | Polynomial | OMP | RBF | CP | TT |
|---|---|---|---|---|---|---|---|
| AG News | 128 | 0.522 | 0.208 | 0.778 | 0.131 | 0.062 | 0.041 |
| 256 | 0.492 | 0.049 | 0.400 | 0.047 | 0.032 | 0.029 | |
| 512 | 0.479 | 0.044 | 0.294 | 0.034 | 0.014 | 0.041 | |
| UCI HAR | 128 | 0.761 | 0.671 | 0.854 | 0.713 | 0.756 | 0.743 |
| 256 | 0.777 | 0.700 | 0.719 | 0.656 | 0.774 | 0.613 | |
| 512 | 0.405 | 0.706 | 0.771 | 0.382 | 0.175 | 0.151 | |
| Coin flip | 32 | 1.144 | 1.985 | 1.428 | 1.364 | 1.110 | 2.018 |
| 64 | 1.904 | 0.872 | 3.443 | 1.622 | 0.868 | 1.159 | |
| 128 | 1.273 | 0.770 | 1.325 | 1.034 | 0.571 | 0.458 |
Table 15: Coalition prediction beyond relation composition. Entries are median test NMSE over three coalition splits; lower is better. The budget includes both fitting and validation coalitions. AG News and UCI HAR use deterministic classifier refits with . Coin flip uses frozen-model inference with . Bold marks the lowest median in each row.
used by every surrogate family. Hyperparameters are selected separately within each family by validation NMSE. The polynomial baseline selects between degrees 2 and 3; CP and TT select ranks from and , respectively. Table 15 reports median test NMSE across the three coalition splits at budgets , , and . These repetitions vary the observed coalitions while keeping the underlying coalition outcomes fixed.
Results. The relative performance depends on the setting and the observation budget. On AG News, TT has the lowest median NMSE at and 256, while CP performs best at . On UCI HAR, the polynomial baseline performs best at , and TT performs best at the two larger budgets. On coin flip, CP performs best at the two smaller budgets and TT at . These results support tensor network surrogates beyond relation composition, with gains that vary across tasks and budgets.
J.8 IN-CONTEXT PREDICTION WITH
We evaluate coalition prediction for a frozen Qwen2.5-1.5B-Instruct model on coin-flip reasoning and GSM8K. Each task has a pool of candidate demonstrations, and each coalition selects four demonstrations for the prompt. The outcome is the negative answer-token log-loss, averaged over 48 evaluation queries for coin flip and 12 for GSM8K. Model weights remain fixed throughout.
Evaluation protocol. For each task and each seed in , we evaluate 1300 coalitions. We use nested fitting sets of size , a separate set of 200 validation coalitions, and 300 test coalitions. Thus, fitting and model selection together use 600 or 1000 observed outcomes. Every surrogate receives the same coalitions and outcomes. Candidates are selected by validation RMSE
| Surrogate | Coin flip | GSM8K | ||
|---|---|---|---|---|
| Linear | 0.1779 ± 0.0123 | 0.1853 ± 0.0002 | 0.3262 ± 0.0113 | 0.2854 ± 0.0105 |
| RBF | 0.1755 ± 0.0131 | 0.1679 ± 0.0078 | 0.2885 ± 0.0057 | 0.2645 ± 0.0142 |
| Coefficient CP | 0.1754 ± 0.0154 | 0.1674 ± 0.0091 | 0.2890 ± 0.0087 | 0.2760 ± 0.0123 |
| TT, random | 0.1732 ± 0.0174 | 0.1680 ± 0.0077 | 0.2874 ± 0.0093 | 0.2758 ± 0.0121 |
| TT, semantic | 0.1733 ± 0.0174 | 0.1671 ± 0.0088 | 0.2887 ± 0.0113 | 0.2760 ± 0.0119 |
| Degree-graded TT, random | 0.1750 ± 0.0156 | 0.1685 ± 0.0124 | 0.2879 ± 0.0100 | 0.2761 ± 0.0116 |
| Degree-graded TT, semantic | 0.1750 ± 0.0156 | 0.1678 ± 0.0086 | 3.2994 ± 0.3212 | 1.1528 ± 1.1618 |
Table 16: Held-out coalition prediction for frozen-model in-context learning with candidate demonstrations and four demonstrations per coalition. Entries are mean test RMSE sample standard deviation across two seeds; lower is better. Each fitting budget is supplemented by 200 validation coalitions. At larger candidate-pool dimension, CP and TT remain competitive with nonlinear baselines and improve on the linear model, while RBF is strongest on GSM8K at the larger budget.
within each family and, for TT, within each ordering. We report the random and semantic orderings separately.
The CP baseline factorizes the degree-two and degree-three coefficient tensors separately and includes an additive component. We denote it by coefficient CP to distinguish it from the direct value-tensor CP model used in the preceding comparison. We also evaluate a degree-graded TT with maximum degree three alongside the ordinary TT.
Results. Coefficient CP and ordinary TT improve on the linear baseline for both tasks, both fitting budgets, and both seeds. At , their mean errors on coin flip are close to those of RBF. On GSM8K, RBF achieves the lowest mean error at this budget. Ordinary TT gives similar results under the two orderings. The degree-graded variant has substantially larger test errors under the semantic ordering on GSM8K. These experiments show that tensor network surrogates remain competitive with nonlinear baselines at a larger candidate-pool dimension.
J.9 ATTRIBUTION ACCURACY
We compare attribution values computed from fitted datamodels with reference values obtained by enumerating all measured coalition outcomes. We evaluate linear, RBF, and TT surrogates on UCI HAR and a Qwen representation-probe task.
Settings. UCI HAR uses the classifier-refitting task described above, with ten training data groups. For the Qwen probe, each coalition selects training groups for a logistic-regression classifier on fixed representations from Qwen2.5-1.5B-Instruct. The representations are standardized and projected to 32 dimensions using a transformation fitted once on the training representations. Three of the ten groups have flipped training labels. The classifier is refitted for each coalition with , while the representation model remains fixed. The outcome is log 2 minus the mean true-label log-loss on 112 held-out examples.
Fitting and evaluation. For UCI HAR, we report 320 fitting coalitions and 32 validation coalitions over ten matched coalition splits. For the Qwen probe, we use 512 fitting coalitions and 205 validation coalitions for each of the three seeds . Within each setting and repetition, all surrogate families receive the same fitting and validation coalitions. Candidates are selected using coalition-prediction error on the validation set.
We measure attribution error by , where denotes the attribution quantity being evaluated. For Shapley values, Banzhaf values, and leave-one-out effects, contains the ten singleton groups. For pairwise Shapley interactions, it contains all unordered pairs. The reference values use the complete measured coalition function.
| Attribution | Linear | RBF | TT |
|---|---|---|---|
| UCI HAR: 320 fitting, 32 validation; ten splits | |||
| Shapley | 0.047190 ± 0.000116 | 0.044079 ± 0.000344 | 0.041886 ± 0.000704 |
| Banzhaf | 0.001240 ± 0.000105 | 0.001132 ± 0.000062 | 0.000983 ± 0.000072 |
| Pairwise interaction | 0.049988 ± 0.000000 | 0.047985 ± 0.000215 | 0.045343 ± 0.000602 |
| Qwen probe: 512 fitting, 205 validation; three seeds | |||
| Shapley | 0.067948 ± 0.001012 | 0.009971 ± 0.002894 | 0.055446 ± 0.007836 |
| Banzhaf | 0.033136 ± 0.002820 | 0.005382 ± 0.000884 | 0.018738 ± 0.006185 |
| Leave-one-out | 0.309582 ± 0.004989 | 0.009050 ± 0.007205 | 0.077350 ± 0.024296 |
| Pairwise interaction | 0.229971 ± 0.000743 | 0.019093 ± 0.004560 | 0.062223 ± 0.008455 |
Table 17: Attribution RMSE against references computed from all 1024 measured coalition outcomes. Entries are mean ± sample standard deviation across the repetitions specified in each panel; lower is better. TNDM-TT gives the lowest attribution error on UCI HAR and improves over the linear baseline on the Qwen probe, while RBF is strongest on the probe task.
Results. TT has the lowest mean error among the three surrogates for each reported attribution quantity on UCI HAR. On the Qwen probe, TT improves on the linear baseline, while RBF achieves the lowest mean error for all four quantities. Thus, attribution accuracy depends on how well the fitted datamodel captures the measured coalition function. Exact contraction computes attribution values for the fitted TT; error relative to the measured function remains a separate empirical quantity.
J.10 WHAT THE LINEAR DATAMODELING SCORE MEASURES
The linear datamodeling score (LDS) evaluates how well sums of individual attribution scores rank retraining outcomes (Park et al., 2023). For a fixed evaluation query , attribution vector , and evaluation subsets of a specified size, it is
where denotes Spearman correlation. We adapt this definition to training groups. In our comparison, is the exact Shapley vector of each fitted datamodel, computed from its predictions without using reference outcomes. This is our evaluation convention; LDS itself does not require Shapley values.
Individual scores do not retain all joint effects. For a nonlinear datamodel, LDS evaluates rather than the direct prediction . Different subset functions can have the same individual attribution vector and therefore the same additive predictions.
Consider four training groups and the function . A subset succeeds only if it contains a group from each pair. By symmetry, every group has Shapley value . Consequently, the sum of Shapley values is for every two-element subset. Nevertheless, four of these subsets have utility one and the other two have utility zero.
LDS is therefore undefined because its additive prediction is constant, even when the Shapley values and the underlying datamodel are exact. The direct prediction instead has Spearman correlation one. Moreover, the additive function has the same Shapley vector despite representing a different subset function. Evaluating only the attribution vector cannot distinguish these representations.
Evidence from retraining experiments. Table 18 compares LDS with Spearman correlation of the direct datamodel prediction . Both use the same evaluation subsets within each experiment. For LDS, the prediction is the sum of the fitted datamodel's individual Shapley values.
On the eight-group task, replacing direct nonlinear predictions with summed individual scores reduces correlation for every displayed nonlinear family. For example, RBF achieves direct correlation 0.738 but LDS 0.386; TNDM-TT achieves 0.697 and 0.358, respectively. Linear predictions and their score
| Datamodel | ||||
|---|---|---|---|---|
| LDS | Direct | LDS | Direct | |
| Linear | ||||
| Degree-2 ridge | ||||
| Degree-3 ridge | ||||
| RBF | ||||
| TNDM-CP | ||||
| TNDM-TT | ||||
| HT | ||||
| TNDM-TT, degree ladder | ||||
Table 18: LDS and direct-prediction Spearman correlation on the same evaluation subsets. Entries are means ± sample SD; higher is better. For d = 8, the observation budget is 128 and evaluation uses unobserved size-four subsets. Statistics use 20 observation-sampling repeats at one learner seed, after averaging eight relation sequences within each repeat. For d = 12, the budget is 160 new observations and evaluation uses all 220 size-three subsets. Statistics use two blind learner seeds, after averaging ten sequences within each seed. Bold marks the highest displayed mean per column. The two experiments use different protocols and should not be pooled. Summing individual attribution scores can discard information captured by nonlinear datamodels; direct subset predictions better preserve their joint effects.
sums have identical correlations. On the twelve-group task, TNDM-TT's direct correlation is 0.164, compared with LDS 0.031. Thus the reduction to individual scores can discard predictive information from polynomial, kernel, and tensor datamodels alike.
Correlation conventions. Values tied within receive average ranks. A constant prediction or reference makes correlation undefined; these cases are recorded as undefined, not zero. The displayed methods have defined correlations for all repetitions used in the table. The twelve-group results represent two learner seeds, rather than twenty independent training replications.
Matching the metric to the prediction task. LDS assesses the predictive usefulness of additive attribution scores. It does not, by itself, evaluate a nonlinear datamodel's joint predictions. Direct rank correlation retains those predictions, but it is unchanged by strictly increasing transformations and therefore does not measure whether predicted utility changes have the correct magnitude.
We consequently evaluate coalition prediction with NMSE, removal effects with RMSE, interaction recovery with average precision, and subset selection with completeness and measured retrained utility. These metrics assess different uses of the fitted function. LDS can complement them, but is insufficient as the sole measure of nonlinear datamodel quality.
J.11 NUMERICAL VERIFICATION OF ATTRIBUTION COMPUTATIONS
For the Qwen-probe experiment, we verify the attribution implementations against exhaustive enumeration of each fitted surrogate. We evaluate the surrogate on all 1024 coalitions and compute Shapley values, Banzhaf values, leave-one-out effects, and pairwise Shapley interactions directly from these predictions. We compare these values with those returned by the model-specific attribution routines.
Table 19 reports the largest absolute discrepancy across seeds 31, 43, and 59. The singleton column additionally takes the maximum over the three singleton attribution quantities and all ten groups. The pairwise column covers all 45 unordered pairs.
The two computations agree to numerical precision on these fitted models. This check concerns evaluation of the surrogate. Accuracy relative to the measured coalition function is assessed separately by the attribution errors reported above.
| Surrogate | Singleton quantities | Pairwise interactions |
|---|---|---|
| Linear | ||
| Coefficient CP | ||
| TT |
Table 19: Maximum absolute discrepancy between model-specific attribution computations and exhaustive enumeration of the same fitted surrogate. The tensor-based attribution computations match exhaustive enumeration to numerical precision.
J.12 BUDGET AND REPLICATION CONVENTIONS
Observation budgets. We distinguish the number of fitting coalitions from the total number of outcomes used for fitting and model selection. For the prediction experiment and the small-dimensional broader-setting comparison, includes both fitting and validation coalitions. For the experiments, counts fitting coalitions, with 200 additional validation coalitions. The attribution comparisons use 320 fitting and 32 validation coalitions for UCI HAR, and 512 fitting and 205 validation coalitions for the Qwen probe. Complete enumeration supplies reference attribution values without making all coalition outcomes available for surrogate fitting.
Replication and aggregation. The repetitions differ across experiments. The prediction comparison varies the learner seed while sharing the coalition design. The small-dimensional broader-setting comparison varies the fitting and validation split of a fixed coalition function. The UCI HAR attribution comparison likewise varies the coalition split with the underlying learner fixed. Accordingly, each table specifies its replication unit and summary statistic. Reported ranges and standard deviations describe variation across the recorded repetitions; they are not confidence intervals.
Reference quantities. For fully enumerated settings, reference attributions are computed from measured coalition outcomes. Attributions computed from a fitted datamodel are evaluated against these references. For the relation-composition tasks, structural completeness and interaction-support recovery instead use the specified relation-to-group assignments. We report these structural criteria separately from prediction error and retrained utility.
J.13 GROUP CONSTRUCTION AND TENSOR ORDERING
AG News. We construct ten training groups by partitioning each class into text-hash bins. Classes zero and one each contribute three bins, while classes two and three each contribute two. Within a class, an example is assigned by its text's SHA-256 hash modulo the number of bins. Groups are ordered first by class and then by bin index.
The classifier uses 2048 nonnegative hashed features containing unigrams and bigrams. The training and evaluation sets contain the first 20,000 training examples and first 2000 test examples, respectively, in dataset order. Class and feature smoothing parameters are both one.
UCI HAR. We sort the official training-subject identifiers and partition them into ten consecutive blocks using approximately equal numbers of subjects. Each block defines one training group. The official test subjects remain held out. Groups are ordered by their smallest subject identifier.
The 561 sensor features are projected to 64 dimensions using a fixed random matrix with seed 20260822. Its entries take values , and with probabilities , and , respectively, and are scaled by . A bias term is added after projection and is excluded from the classifier's ridge penalty.
Small-dimensional coin-flip task. The eight coalition units are the eight in-context demonstrations. Their tensor order follows their original order in the prompt. The empty coalition corresponds to evaluation without demonstrations. The outcome is the negative mean answer log-loss, with the language-model parameters held fixed.
Ordering in the prediction comparisons. For these three settings, the TT prediction fits use the natural group orders specified above. The separate tensor-compression analysis considers the natural order and twenty fixed random permutations, using seeds 41001 through 41020. Those compression-order comparisons are distinct from the fitted prediction results.
Ordering at . For coin flip, the semantic order sorts demonstrations lexicographically by starting face, sequence length, number of flips, and the binary flip pattern. For GSM8K, it sorts demonstrations by the tuple of distinct arithmetic operators in the annotated calculations, the number of annotated calculation steps, and the character length of the reference solution. Ties are broken by the original demonstration index.
Ordinary TT and degree-graded TT are fitted under both the semantic order and a random permutation generated with seed , where is the experiment seed. Their results are reported separately. The remaining fitted families are invariant to permutations of the coalition coordinates.
J.14 FITTING DETAILS FOR THE EXPERIMENTS
Coalition partitions. Each task and seed has an ordered collection of 1300 evaluated coalitions. The first 800 form the fitting pool, the next 200 form the validation set, and the final 300 form the test set. The smaller fitting budget uses only the first 400 coalitions of the fitting pool. The validation and test sets remain fixed across the two budgets. All surrogate families use these same partitions.
Target standardization. For each task, seed, and fitting budget, we compute the outcome mean and population standard deviation using only the fitting coalitions. If the standard deviation is zero, we set . The surrogate is fitted to . Predictions are transformed back to the original outcome scale: , where predicts the standardized outcome. Validation and test outcomes do not contribute to the standardization parameters.
Configuration selection. Candidates are selected separately for each surrogate family and, for the two TT families, for each ordering. Selection minimizes validation RMSE, with ties broken by candidate identifier. The selected candidate is evaluated on the held-out test coalitions. The semantic and random orderings remain separate reported configurations.
Reported error. Test RMSE is computed in the original log-loss units. For each task, fitting budget, family, and ordering, we report the mean and sample standard deviation across seeds 31 and 43. These errors describe prediction of coalition outcomes; they are distinct from the frozen language model's answer accuracy.
J.15 TRAINING DYNAMICS OF DATA ATTRIBUTION
To study how training data contributions evolve, the modular-arithmetic chain-of-thought experiment is evaluated every two training epochs. Training expressions containing two, three, four, or five operators are grouped by operator count, and each group is divided into two random halves, giving training data units. Every one of the coalitions is trained under three learner seeds. At checkpoint , is the exact-answer accuracy for coalition and seed , evaluated on 500 held-out expressions per target operator count. These are attributions to groups of training examples. Checkpoint evaluation reuses the same training trajectories, with additional evaluation cost but no additional retraining runs.
Shapley values and pairwise Banzhaf interaction indices are computed from the complete measured coalition games, without fitting a surrogate. For each pair , the interaction index is the uniform average of over ; positive and negative values indicate average synergy and redundancy, respectively. The non-additivity index, , is the fraction of coalition-outcome variance left unexplained by the best affine predictor under uniform weighting of all coalitions. The Walsh spectrum decomposes this variance by interaction degree. After removing the affine predictor, the unfolding diagnostic measures the fraction of squared singular values retained by rank , reporting the minimum over cuts in the displayed group ordering. Related spectral analyses characterize the effective rank and compression of hidden representations.

Figure 10: Data contributions depend on the target and training stage. Shapley values of eight training data groups for arithmetic targets with two through five operators. Solid and dashed lines distinguish the two random halves of each operator-count group. Lines show three-seed means; bands span the seed minimum and maximum. The group matching the evaluation target becomes dominant later in training.
in language models (Skean et al., 2025). The present analysis instead tracks the compressibility of training-subset outcomes across training checkpoints. For the five-operator target, contributions from three- and four-operator training data rise early and subsequently plateau or decline, whereas five-operator data becomes dominant later. Selected pairwise interactions also change sign during training. In particular, the two halves of the five-operator group are synergistic near the learning transition but redundant at the final checkpoint, with a Banzhaf interaction of approximately -0.20 (seed range [-0.22, -0.17]). Non-additive terms account for up to approximately 66% of the variance of the seed-averaged game, and approximately 22% at the final checkpoint. Nevertheless, rank four retains at least approximately 96% of the residual unfolding energy at every cut over the reported time window. This is another example of the relevance of the theoretical distinction between interaction degree and tensor rank. Here we see that substantial non-additive dependence need not produce large unfolding ranks. Across all four evaluation targets, the group matching the target operator count becomes the largest contributor later in training (Fig. 10).