---
title: Patterning by Susceptibility Inversion
url: https://www.emergentmind.com/topics/patterning-by-susceptibility-inversion
type: topic
---

# Patterning by Susceptibility Inversion

Patterning by susceptibility inversion is the use of linear response theory in Bayesian learning to determine which infinitesimal perturbations of the training data distribution produce a desired change in a model’s internal structure. In this framework, internal structure is represented by observables on parameter space, susceptibilities quantify how posterior expectation values of those observables respond to data reweighting, and the inverse problem—called patterning—is solved by applying the Moore–Penrose pseudoinverse to the susceptibility matrix. The formulation developed in "Susceptibilities and Patterning: A Primer on Linear Response in Bayesian Learning" and "Patterning: The Dual of Interpretability" places the method within a statistical-mechanical view of training, where the same mathematical object used to read structure can be inverted to write it [2605.07980, 2601.13548].

## 1. Conceptual position within interpretability

Mechanistic interpretability aims to understand how neural networks generalize beyond their training data by reverse-engineering their internal structures. Patterning is introduced as the dual problem: given a desired form of generalization, determine what training data produces it [2601.13548]. In this duality, interpretability is associated with extracting and analyzing latent structure, whereas patterning treats those same structural quantities as targets for intervention.

The central quantities are observables
\[
\phi_i(w):W\to\mathbb R
\]
defined on parameter space. These observables may isolate the contribution of an attention head, a layer, or a local learning-coefficient estimator. Their posterior expectations serve as structural coordinates. Patterning then asks for a perturbation of the data distribution that shifts these coordinates by a prescribed amount.

A key feature of this formulation is that it is explicitly Bayesian. In modern Bayesian deep learning, a trained network is represented by a Gibbs posterior
\[
\Pi(dw)\propto \exp\bigl(-n\beta\,L(w)\bigr)\,\pi(w)\,dw,
\]
where \(L(w)=\mathbb E_{z\sim q}[\ell_z(w)]\), \(n\) is the effective sample size, and \(\beta>0\) is an inverse-temperature or tempering parameter [2605.07980]. The corresponding empirical construction in the finite-sample setting is the annealed posterior
\[
p_n^\beta(w)=\frac{1}{Z_n^\beta}\,\exp\{-n\beta\,L_n(w)\}\,\varphi(w).
\]
Within this view, patterning is not a heuristic for dataset editing; it is the inversion of a local differential map from data distributions to posterior expectation values.

This suggests that patterning is structurally tied to the geometry of the posterior rather than to purely input-output behavior. A plausible implication is that the method is most naturally interpreted as an intervention on learned computation, not merely on surface performance.

## 2. Susceptibility as linear response

Susceptibilities quantify how posterior expectations shift when the data distribution is perturbed. If a probe distribution \(q'\) is introduced through
\[
q_h=(1-h)\,q+h\,q',\qquad h\in[0,1],
\]
and \(\langle \phi\rangle_h\) denotes the posterior expectation of an observable under the perturbed loss, then the susceptibility of \(\phi\) toward the perturbation \(q\to q'\) is
\[
\chi(\phi;q')=\frac{1}{n\beta}\left.\frac{\partial}{\partial h}\langle\phi\rangle_h\right|_{h=0}.
\]
The fluctuation–dissipation theorem identifies this derivative with a posterior covariance:
\[
\chi(\phi;q')
=
\frac{1}{n\beta}\left.\frac{\partial}{\partial h}\langle\phi\rangle_h\right|_{h=0}
=
-\,\mathrm{Cov}_{w\sim\Pi}\!\bigl[\phi(w),\,\Delta L(w)\bigr],
\]
where \(\Delta L(w)=E_{q'}[\ell_z(w)]-E_q[\ell_z(w)]\) [2605.07980].

For a point perturbation, one obtains the per-sample susceptibility. With \(q'=(1-\varepsilon)q+\varepsilon\delta_{z_0}\),
\[
\chi(\phi;q')=\varepsilon\,\chi_{z_0}(\phi),
\qquad
\chi_z(\phi):=-\,\mathrm{Cov}\bigl[\phi,\ell_z-L\bigr].
\]
In the notation of the patterning paper, for a sample \((x,y)\),
\[
\chi_i(x,y)
=
\frac{1}{n\beta}\left.\frac{\partial}{\partial h}\langle\phi_i\rangle_{\beta,h}\right|_{h=0}
=
-\,\mathrm{Cov}_\beta\!\bigl[\phi_i,\ell_{xy}(w)-L(w)\bigr],
\]
with \(\ell_{xy}(w)=-\log p(y\mid x,w)\) and \(L(w)=\mathbb E_q[\ell_{xy}(w)]\) [2601.13548].

This covariance formula is the core analytic step. It converts a derivative with respect to a data-distribution perturbation into a posterior statistic. The theory therefore links sensitivity analysis, Bayesian influence, and statistical mechanics within a single local-response object. The primer further notes that per-sample losses yield the influence matrix, described there as the Bayesian influence function of [arXiv:2509.26544], while component-localized observables yield the structural susceptibility matrix [2605.07980].

A common misunderstanding would be to treat susceptibility as a global descriptor of training dynamics. The formulation is explicitly first-order: it describes the initial response of posterior expectations to an infinitesimal perturbation.

## 3. Structural susceptibility matrices and data-to-structure Jacobians

When a family of observables \(\{\phi_1,\dots,\phi_H\}\) is chosen, often to localize to particular model components, and a basis of perturbation directions \(\{z_1,\dots,z_D\}\) is fixed, the pairwise susceptibilities assemble into the structural susceptibility matrix
\[
S\in\mathbb R^{H\times D},
\qquad
S_{j,k}
=
\chi_{z_k}(\phi_j)
=
-\,\mathrm{Cov}\!\bigl[\phi_j(w),\,\ell_{z_k}(w)-L(w)\bigr].
\]
Equivalently, if local perturbations of the data distribution are parameterized by coordinates \(\{\varepsilon_\mu\}_{\mu=1}^D\), then
\[
S_{j\mu}
=
\frac{\partial}{\partial\varepsilon_\mu}
\mathbb E_{w\sim\Pi(\varepsilon)}[\phi_j(w)]\Big|_{\varepsilon=0}.
\]
If the structural coordinate map is written as
\[
\mu(\varepsilon)
=
\bigl(
\mathbb E_{\Pi(\varepsilon)}[\phi_1],\dots,\mathbb E_{\Pi(\varepsilon)}[\phi_H]
\bigr)\in\mathbb R^H,
\]
its Jacobian at \(\varepsilon=0\) is exactly \((n\beta)S\):
\[
d\mu=n\beta\,S\,d\varepsilon.
\]
The primer states this explicitly: the susceptibility matrix is, up to a factor of \(n\beta\), the Jacobian of the map from data distributions to structural coordinates [2605.07980].

The corresponding formulation in the patterning paper writes the same relation in integral and coordinate form. For an infinitesimal density shift \(\delta p(x,y)\),
\[
\delta\mu=\int \chi(x,y)\,\delta p(x,y)\,dx\,dy,
\]
and in coordinates,
\[
\delta\langle\phi_i\rangle
=
\sum_{j=1}^r \chi_i(x_j,y_j)\,\delta h_j.
\]
This matrix viewpoint has two consequences. First, it turns interpretability into a differential map from sample-weight space to observable space. Second, it makes singular-value analysis natural: the left singular vectors identify principal structures in observable space, and the right singular vectors identify principal data patterns in sample-weight space [2601.13548].

In practical terms, \(S\) or \(\chi\) is the local coupling matrix between data patterns and model components. This suggests that the matrix provides a structured decomposition of which data perturbations are most effective at modulating specific internal computations.

## 4. Pseudoinverse solutions to the patterning problem

Patterning is defined as the inverse problem: given a desired infinitesimal change
\[
\Delta\phi\in\mathbb R^H
\]
or, equivalently, a target shift \(\delta\mu_{\rm target}\in\mathbb R^H\) in structural coordinates, determine the smallest-norm perturbation in data space that realizes it to first order. In the notation of the primer, one solves
\[
n\beta\,S\,d\varepsilon=\Delta\phi.
\]
Because \(S\) is generally non-square, the solution is posed as a minimum-Euclidean-norm problem. Introducing Lagrange multipliers yields
\[
d\varepsilon
=
\frac1{n\beta}\,S^\top(S\,S^\top)^{-1}\Delta\phi
=
\frac1{n\beta}\,S^+\Delta\phi,
\]
where
\[
S^+=S^\top(S\,S^\top)^{-1}
\]
is the Moore–Penrose pseudo-inverse of \(S\) on the row-space of \(S\). Thus the minimal-norm patterning perturbation is
\[
\Delta\varepsilon=\frac1{n\beta}S^+\Delta\phi
\]
[2605.07980].

The patterning paper presents the same derivation in terms of the susceptibility matrix \(\chi\):
\[
\min_{\delta h}\|\delta h\|^2
\quad\text{s.t.}\quad
\chi\,\delta h=\delta\mu_{\rm target},
\]
with solution
\[
\delta h^*
=
\chi^\top(\chi\chi^\top)^{-1}\delta\mu_{\rm target}
=
\chi^\dagger\delta\mu_{\rm target}.
\]
If regularization is desired, one may instead solve
\[
\min_{\delta h}\;\tfrac12\|\chi\,\delta h-\delta\mu_{\rm target}\|^2
+\tfrac\alpha2\|\delta h\|^2,
\]
whose closed-form solution is
\[
\delta h^*
=
(\chi^\top\chi+\alpha I)^{-1}\chi^\top\,\delta\mu_{\rm target}
\]
[2601.13548].

Singular-value decomposition gives an especially transparent interpretation. Writing
\[
\chi=\sum_{\alpha=1}^{\min\{H,r\}}\sigma_\alpha\,u_\alpha\,v_\alpha^\top,
\]
with singular values \(\sigma_1\ge \sigma_2\ge\cdots\ge 0\), the vectors \(u_\alpha\) are principal structures and \(v_\alpha\) are principal data patterns. The pseudoinverse becomes
\[
\chi^\dagger
=
\sum_{\alpha:\sigma_\alpha>0}
\frac1{\sigma_\alpha}v_\alpha u_\alpha^\top.
\]
When the target is aligned with a single mode, \(\delta\mu_{\rm target}=u_\beta\), the minimal intervention is
\[
\delta h^*=\frac1{\sigma_\beta}v_\beta.
\]
This is the algebraic core of susceptibility inversion: structural targets are projected onto accessible response modes, and the corresponding data intervention is read off from the right singular vectors [2601.13548].

## 5. Empirical estimation and operational approximations

The formal theory is stated at the population level, but practical patterning uses an empirical posterior
\[
\Pi^{\rm emp}_\beta(dw)\propto \exp\!\bigl(-n\beta\,L_n(w)\bigr)\,\pi(w),
\]
constructed from a finite training set \(D_n\). Population covariances are then replaced by the empirical estimator
\[
\hat S_{j,k}
=
-\,\mathrm{Cov}_{w\sim\Pi^{\rm emp}_\beta}
\bigl[\phi_j(w),\,\ell_{z_k}(w)-L_n(w)\bigr].
\]
The primer states that this estimator is exactly the per-sample weight derivative, identified there with Gustafson’s local-sensitivity or the Bayesian influence function, of \(\mathbb E_{\Pi^{\rm emp}}[\phi_j]\) when sample \(z_k\) is upweighted by an infinitesimal amount [2605.07980].

For component-localized observables \(\phi_j=\phi_{C_j}\), the complementary parameters must be clamped and only the component subspace sampled, a procedure described as weight-restriction. This induces a multiplicative renormalization factor. In practice, that constant is removed by standardizing each row or column, for example by subtracting its mean and dividing by its standard deviation across data points. Posterior expectations and covariances are approximated by SGLD or Langevin-dynamics sampling, typically on minibatches, which adds an extra sampling noise layer. These approximations define an empirical susceptibility matrix \(\hat S\), and its pseudo-inverse is often ridge-regularized:
\[
\hat S^+_\lambda
=
\hat S^\top(\hat S\hat S^\top+\lambda I)^{-1}.
\]
Finite reweightings of the training batch are then computed as
\[
\rho_i\approx 1+\varepsilon\,(\hat S^+\,\Delta\phi)_i
\]
[2605.07980].

The patterning paper provides the experimental sampling configurations used in two benchmark settings. In the induction-circuit experiments, susceptibilities were estimated by SGLD sampling with \(n\beta=30\), \(\gamma=300\), step size \(\varepsilon=3\times10^{-4}\), \(4\) chains, and \(300\) draws. In the parentheses-balancing experiments, susceptibilities were measured on \(1\,024\) in-distribution samples with SGLD using \(n\beta=100\), \(\gamma=500\), step size \(\varepsilon=3\times10^{-6}\), \(4\) chains, and \(5\,000\) draws [2601.13548].

The framework therefore depends on two layers of approximation: a linear-response approximation in data space and a sampling-based approximation in posterior space. A common misconception is that pseudoinverse patterning directly prescribes finite dataset edits without caveats. The underlying papers instead emphasize small perturbations, estimator noise, and regularization.

## 6. Experimental demonstrations and scope

Two demonstrations are central in the published exposition: an induction-circuit experiment in a small language model and a synthetic parentheses-balancing task. Together they instantiate both principal-direction patterning and susceptibility-gap patterning.

| Setting | Intervention basis | Reported outcome |
|---|---|---|
| Induction circuit | Re-weighting by \(v_2\) | Accelerates or delays formation of structure |
| Parentheses balancing | Susceptibility gap \(\chi^{EQ}_x-\chi^N_x\) | Steers algorithmic preference |

In the small language model, the model is a 2-layer, 8-head GPT-2–style transformer with \(3\) M parameters, trained for \(50\) k steps on a Pile subset. The SVD of the \(16\times\) (≈ \(1\) M-token) susceptibility matrix yields the second singular mode \((u_2,v_2,\sigma_2)\). This mode was found to couple the well-known induction circuit in weights to induction patterns in the data. Data interventions were defined as four per-token weighting maps based on the scalar \(v_2\) loading: Suppress, Baseline, Induce2×, and Induce4×. Retraining used \(4\) seeds each and measurements every \(1\) k steps. The reported metrics were prefix-matching score, previous-token attention score, and UMAP principal component explained variance. The reported result is that repressing tokens with negative \(v_2\) nearly prevents induction-circuit formation, while amplifying them \(2\times\) or \(4\times\) accelerates and strengthens it [2601.13548].

The primer summarizes the same experiment by stating that the second principal susceptibility mode \(v_2\) identifies a coherent token-pattern that elicits an induction-like loop in the network, and that reweighting each token’s loss according to its loading on \(v_2\), using a small multiplier \(\alpha\in[0,4]\), can steer the model toward or away from producing induction behaviors [2605.07980].

In the synthetic parentheses-balancing task, there are two distinct zero-loss solutions on the training distribution: #Nested, which accepts only well-nested sequences, and #Equal-Count, which accepts any sequence with equal numbers of “(” and “)”. Singular learning theory associates to each local minimum \(w^*\) a local learning coefficient
\[
\lambda(w^*)
=
-\lim_{\epsilon\to0^+}
\log_2
\frac{\mathrm{vol}(\tfrac12\epsilon,w^*)}{\mathrm{vol}(\epsilon,w^*)},
\]
and among equal-loss solutions, posterior odds favor the one with lower LLC. Two observables, \(\phi_N(w)\) and \(\phi_{EQ}(w)\), isolate the loss around each solution, with \(\mu_N=\langle\phi_N\rangle\approx\lambda_N\) and \(\mu_{EQ}=\langle\phi_{EQ}\rangle\approx\lambda_{EQ}\). Measuring \(\chi^N_x\) and \(\chi^{EQ}_x\) reveals how each sample shifts these coefficients. The susceptibility gap
\[
\Delta\chi_x=\chi^{EQ}_x-\chi^N_x
\]
then identifies the influential examples for steering between the two solution classes [2601.13548].

The experimental protocol used \(30\) transformers from Li et al. (2025), each with \(2\)–\(3\) layers, \(4\) heads, and weight decay \(0.001\), exhibiting OOD accuracies clustered near \(0\) or \(1\). The top-\(3\) Nested and bottom-\(3\) Equal-Count models were identified, and their susceptibilities averaged to approximate the two rows of \(\chi\). “Almost nested” and “almost equal” samples were then selected by maximizing or minimizing the susceptibility gap. Two \(200\) k-sample datasets were constructed: Almost Nested, which removed \(36.6\) k False samples and added two copies of \(18.3\) k “almost nested”; and Almost Equal, which removed \(67.1\) k False and added four copies of \(19.0\) k “almost equal.” Retraining \(100\) models on each dataset produced the reported result that Almost Nested eliminates high-OOD solutions, with all \(100\) converging to Equal-Count, while Almost Equal increases the fraction of Nested solutions, with mean OOD \(\approx 0.50\) versus \(0.31\) baseline [2601.13548].

These experiments are also notable because the direction of the effect is not reducible to simple data augmentation intuitions. In the parentheses task, the intervention acts through the susceptibility gap and the local learning coefficients rather than through an obvious direct encoding of the target rule. A plausible implication is that patterning can select among competing zero-loss mechanisms by reshaping posterior preference over solution basins.

## 7. Limitations, scaling questions, and relation to adjacent methods

The framework has explicitly stated limits. All of the formal derivations rest on a linear-response approximation, valid when the perturbation is small and when the map from perturbation parameters to structural coordinates is well approximated by its first derivative. The scaling by \(n\beta\) controls the sharpness of the posterior, and the inversion can amplify estimation errors in small singular-value directions, which is why ridge regularization is used in practice [2605.07980].

The current experiments are also bounded in scale and protocol. The patterning paper states that the present demonstrations use approximately \(3\) M-parameter models and offline one-off interventions. It further states that susceptibility estimation via SGLD is computationally expensive, approximately \(500\times\) a single training run for the induction experiments, while also noting that it scales linearly with model size and may be accelerated by approximate predictors or online protocols [2601.13548].

Several extensions are identified in the source material. These include online patterning, in which data weights are adjusted dynamically as structures emerge; scaling by sampling only a subset of components or using learned approximators for susceptibilities; and alignment-oriented uses, in which patterning constrains or encourages specific internal computations, such as preventing deceptive structures or promoting robust constraint-encoding [2601.13548]. These are presented as extensions rather than established empirical conclusions.

Patterning by susceptibility inversion is therefore best understood as a local, posterior-geometric method for shaping internal structure. It does not replace mechanistic interpretability; rather, it formalizes the inverse operation. The same susceptibility matrix that reads structure through covariance and singular modes becomes, through pseudoinverse inversion, a prescription for minimal data reweighting that writes structure back into the model [2605.07980].

Source: https://www.emergentmind.com/topics/patterning-by-susceptibility-inversion