Papers
Topics
Authors
Recent
Search
2000 character limit reached

Step-Decomposed Influence (SDI)

Updated 23 February 2026
  • Step-Decomposed Influence (SDI) is a framework that quantifies the temporal and stagewise impact of training data on model predictions.
  • It employs efficient sketching methods and Bayesian techniques to capture dynamic influence trajectories across training checkpoints.
  • SDI reveals phase transitions and fine-grained attribution patterns, aiding in interpretability, adaptive compute scaling, and improved model diagnostics.

Step-Decomposed Influence (SDI) is a principled framework for attributing and analyzing the temporal evolution of training data influence within learned models. SDI rigorously quantifies not only which data points affect a given prediction, but precisely when and at which computational or developmental stage this influence occurs. Recent advances, especially in the context of looped transformers and stagewise neural learning, have formalized SDI both as a length-ττ trajectory over recurrent network steps and as a dynamic function of training time, revealing fine-grained temporal patterns in model reasoning and feature formation (Kaissis et al., 10 Feb 2026, Lee et al., 14 Oct 2025).

1. Formal Definitions and Mathematical Foundations

Two principal formalisms of Step-Decomposed Influence have been established.

A. Stepwise Influence in Looped Transformers:

Let (w;z)\ell(w; z) be the loss on example zz under parameters ww. For a looped transformer, with recurrent body parameters wbodyw_{\mathrm{body}} applied over ττ steps, the total gradient on a test example zz' decomposes as

wbody(w;z)=t=1τφt(w;z),\nabla_{w_{\mathrm{body}}}\ell(w; z') = \sum_{t=1}^{τ} \varphi_t(w; z'),

where φt\varphi_t aggregates gradient contributions at loop step tt. The SDI trajectory between train example zz and test example zz' over training checkpoints {wk}\{w_k\} with learning-rate weights ηk\eta_k is

SDI(z,z):=(I1(z,z),,Iτ(z,z)),\mathrm{SDI}(z, z') := (\mathcal{I}_1(z, z'), \ldots, \mathcal{I}_τ(z, z')),

where

It(z,z)k=1Kηkwbody(wk;z),φt(wk;z).\mathcal{I}_t(z, z') \equiv \sum_{k=1}^K \eta_k \langle \nabla_{w_{\mathrm{body}}}\ell(w_k; z), \varphi_t(w_k; z') \rangle.

B. Bayesian and Stagewise Influence:

Let θθ denote model parameters and pt(θD)p_t(θ\mid D) be the local Bayesian posterior at training step tt. The SDI of upweighting training sample ziz_i on the loss of zjz_j at tt is

It(zi,zj)=Covθpt(θD)[i(θ),j(θ)].I_t(z_i, z_j) = -\mathrm{Cov}_{θ \sim p_t(θ\mid D)}\bigl[\ell_i(θ),\ell_j(θ)\bigr].

This tracks influence as a function of training time, characterizing non-monotonic transitions and revealing developmental phases (Lee et al., 14 Oct 2025).

2. Algorithmic Frameworks and Sketching Methods

A. SDI in Looped Transformers:

To accommodate the prohibitive memory cost of per-example gradients at scale, SDI utilizes sketching—especially TensorSketch and CountSketch—for on-the-fly dimensionality reduction of the φt\varphi_t. During training,

  • Forward and backward passes are instrumented to recover activations at,ja_{t,j} and backpropagated signals δt,j\delta_{t,j} at each loop step and token.
  • For matrix parameters, sketched outer products TS(δt,j,at,j)TS(\delta_{t,j}, a_{t,j}) are accumulated.
  • For vector parameters, CS(δt,j)CS(\delta_{t,j}) is used.
  • Per-example, per-step sketches φ~i,tRm\tilde\varphi_{i,t}\in\mathbb{R}^m are stored, from which dot products approximate It(z,z)\mathcal{I}_t(z, z').

Error in each SDI estimate is unbiased and decays as O(1/m)O(1/\sqrt{m}), where mm is the sketch dimension (Kaissis et al., 10 Feb 2026).

B. Bayesian SDI with SGLD Sampling:

In the stagewise context, Stochastic Gradient Langevin Dynamics (SGLD) is used to sample from the local posterior at each checkpoint. For each tt,

  • Multiple SGLD chains run from the saved checkpoint to yield draws {θ(r)}\{θ^{(r)}\}.
  • Empirical covariance of per-example loss across draws yields It(zi,zj)I_t(z_i, z_j).

This pipeline is computationally intensive (O(Mn2)O(Mn^2) per step for MM samples, nn examples), but robust to singular geometries and directly applicable to large neural models (Lee et al., 14 Oct 2025).

3. Interpretability, Temporal Attribution, and Cancellation

SDI reveals not merely the magnitude or sign of training data influence but its stepwise or stagewise localization:

  • Influence Horizon: SDI identifies the final loop iteration or training phase during which training data exerts significant effect, crucial for optimizing compute allocation and dynamic halting.
  • Cancellation Detection: Aggregate influence may obscure phase-opposing contributions; SDI can separate early positive from late negative (or vice versa) effects within recurrent computations.
  • Mechanistic Hypotheses: In algorithmic reasoning or parity tasks, SDI exposes periodic and state-machine-like latent dynamics, as shown by step-peaked influence aligned with discrete hidden state cycles (Kaissis et al., 10 Feb 2026).
  • Phase Transition Mapping: Stagewise SDI recovers sharp peaks and sign flips in influence at theoretically predicted “phase transitions” in model development, e.g., emergence of induction heads, morphological structure discovery, or syntactic scoping rules (Lee et al., 14 Oct 2025).

4. Empirical Results and Scaling Properties

Experiments conducted on looped GPT-style transformers and linguistic/cognitive tasks empirically validate the SDI methodology (Kaissis et al., 10 Feb 2026):

  • Accuracy: In looped transformers (135M params, τ=32\tau=32), TensorSketch SDI (sketch size m=2048m=2048) yields 3.9% relative error to dense baseline. Conservation of total influence is maintained to <107<10^{-7}.
  • Scalability: SDI allows 10×\times larger batch sizes within the same GPU budget by sketching, with runtime overhead dominated by the backward pass rather than sketching itself.
  • Latency: Per-checkpoint overhead for SDI computation is 2.6\approx 2.6 s relative to inference alone.
  • Mechanistic Probes: In a parity cycle experiment, SDI displays a four-step sawtooth pattern precisely tracking an interpretable four-state dynamical system.
  • Reasoning Tasks: In Sudoku via looped transformers, more difficult puzzles yield higher self-influence and extended late-step influence persistence (slower energy curve decay), directly mirroring accuracy improvements with additional compute.

Stagewise SDI on LLMs (Pythia, 70M–12B params) reveals non-monotonic, class-specific influence traces corresponding to known model developmental stages and circuit formation (Lee et al., 14 Oct 2025).

5. Complexity, Error Guarantees, and Practical Considerations

For looped transformers, the sketching implementation imposes O(Bτm)O(B τ m) memory (vs O(Bτwbody)O(B τ |w_\text{body}|) for dense), with additional O(Bτmlogm)O(B τ m \log m) computation per batch for FFT-based TensorSketch—negligible relative to overall training. The error in outer-product and dot-product sketches is analytically characterized, with concentration bounds and decay in variance as O(1/m)O(1/\sqrt{m}).

In the Bayesian (SGLD) setting, each posterior sampling chain introduces per-step cost O(mcost())O(m \cdot \text{cost}(\nabla \ell)), with overall scaling driven by the number of draws MM and minibatch size. SDI is Hessian-free and thus applicable at arbitrary traversed checkpoints, not just local minima (Lee et al., 14 Oct 2025).

Notable limitations include the cost and hyperparameter tuning of SGLD at large scale, the observational (not causal) nature of SDI, and interpretive ambiguity of influence sign outside clear developmental transitions.

6. Applications and Extensions in Model Attribution

SDI enables a diverse set of data attribution and interpretability tasks:

  • Depth-Targeted Data Curation: Training examples can be down-weighted or selected according to their predominant influence phase (e.g., early parsing vs late semantic refinement).
  • Safe Compute Scaling: SDI “energy” (sum of stepwise influence magnitudes) informs adaptive loop truncation or halting in recurrent models, grounded in empirical attribution signal.
  • Schema Discovery and Circuit Attribution: Group-averaged SDI supports discovery of structural and functional classes within models, aiding mechanistic interpretability.
  • Retrieval-then-Refine and RLHF Extensions: Sketched, step-aligned influence enables efficient retrieval-based attribution and fine-grained localization of preference/feedback impact in reinforcement learning from human feedback.

A plausible implication is that SDI exposes not only the static salience of training data, but dynamically organizes and temporally localizes the emergence of model capabilities. This enables a new class of temporal and mechanistic interpretability studies beyond static attribution.


Key References:

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Step-Decomposed Influence (SDI).