Surrogate Interaction Theory
Surrogate Interaction Theory (SIT) offers a new way to uncover the internal reasoning of neural networks. Instead of interpreting semantically ambiguous individual neurons, it decomposes the output score of a DNN into interaction patterns, revealing emergent symbolic logic hidden inside AI. SIT enables the semi-formal verification of the mechanistic safety, auditing the overfitting risk of each training sample, and training a more trustworthy AI.
01
Breaking a Prevailing Bias
Many researchers take for granted that, when we demand interpretability with full rigor and completeness, a deep neural network’s inference logic cannot be formally translated into clear symbolic reasoning. But human symbolic thought emerges from biological neural networks. If biological neural networks achieve symbolic reasoning, there is no a priori reason artificial neural networks cannot.
Our theory addresses three fundamental questions to break the prevailing bias:
1. Can symbolic logic, similar to the emergent symbolic reasoning of human biological neural networks, exist within artificial neural networks?
2. How can we rigorously quantify such emergent symbolic logic?
3. Can we decompose and explain the generalization performance of artificial neural networks in terms of the representational quality of their inherent symbolic logic?
02
What Is An Interaction?
Surrogate Interaction Theory (SIT) [1,2,3] is developed upon the Möbius Transform, and offers a new way to interpret neural networks. Traditional mechanistic interpretability looks at individual neurons to understand the model. Instead, SIT focuses on the symbolic logic that emerges from the entire neural network.
Think about human cognition: our symbolic reasoning does not live inside single brain cells. It arises from the whole brain working together. SIT takes this same system-level view, measuring the interaction patterns encoded by the entire neural network.
We start with a neural network v and an input sample x. We pick one scalar output v(x) from it — this could be a classification confidence score or any other predictive value. We then split the model’s input x into n separate input units.
An interaction describes a subset S of these input units. It represents for either an AND relationship or an OR relationship among this subset of input units, which has been encoded by the neural network. Each interaction creates its own numerical contribution I(S) to the target scalar output v(x). In this way, every interaction stands for one piece of logic the neural network relies on to reach its final prediction.
An LLM reads the input sentence x = “Einstein's Theory of General Relativity proposes that gravity is the warping of”, and predicts the next token “space” with a prediction score v(x) =12.4.
1、AND interaction: Activated only when every input unit in the subset S appears together. For example, the subset (Einstein's, the, warping, of) forms an AND-interaction. It contributes an effect 1.28 to the prediction score v(x) only if all four input units exist in context.
2、OR interaction: Activated if any input unit in the subset S appears. For example, (Einstein's, Relativity) forms an OR-interaction. Either input unit triggers this interaction, contributing an effect 1.11 to the prediction score v(x).
The model’s final prediction score is simply the sum of all these individual interaction values. For very long input texts, each input unit need not be a single token or a single word; it can be a sentence or even a natural paragraph, thereby enabling the computation of interaction effects over broader scopes.
03
We are not after vague explanations built merely on correlation, intervention studies, or subjective human visual evaluation. Although it is impossible to close every gap in the rigor of engineering measurements, we pursue strictly verifiable mechanistic interpretations. We mathematically prove that a simple logical model with a few interactions can well fit our AND/OR interaction logic model delivers an exact fit to the neural network function on exponentially many inputs. SIT establishes rigorous guarantees via two key properties:
● Sparse Property [2]: For most neural networks satisfying three standard smoothness conditions, the number of interactions that shape the model’s prediction score has an upper bound. In lots of empirical experiments, this number for large language models usually sits between 50 and 150.
● Universal Matching Property [4]:The logic model φ(x′) constructed from these 50–150 interactions can approximate the neural network’s output v(x') for all 2ⁿ possible masked states x′ ∈ Ψ of the n input units.
∀x′ ∈ Ψ, |φ(x′) − v(x′)| < ε
In sum, the model’s final prediction score v(x) can be simply interpreted as the sum of all these individual interaction effects.
04
A Model’s Generalization Capcity Stems From Its Interaction Patterns
Since a neural network’s output equals the sum of effects from separate interaction patterns, our theory gives us a fresh lens to study generalization. Just like human reasoning, a model’s overall generalization comes from the combined generalization of its individual interaction patterns.
Generalization of an interaction: An interaction’s generalization means whether an interaction pattern learned from training data still works on unseen test data. Unfortunately, this definition is too hard to compute directly. So we use a practical alternative: we check if an interaction found in one neural network can also be discovered in another network trained on a different dataset. Thus, interactions that transfer across neural networks are considered generalizable to the unseen dataset.
In this way, this lets us split a model’s total output into two parts: effects from generalizable interactions, plus effects from non-generalizable ones.

05
Distinct Distributions of Generalizable and Non-Generalizable Interactions
Unlike human symbolic reasoning, where we judge truth by meaning, cross-network generalizable interactions follow clear mathematical distributions. We model how generalizable and non-generalizable interaction patterns spread across different complexity levels.
Complexity here is measured by interaction order. A 1st-order interaction is the effect of one input unit. 2nd-order and 3rd-order interactions come from combinations of two or three input units.
· Distribution of generalizable interactions follows a decaying shape. Simple (low-order) interactions are common; complex high-order ones are much fewer.
· Distribution of non-generalizable interactions follows a spindle shape. Most sit at medium complexity. Very simple or extremely complex interactions are rare. Their positive and negative effects tend to cancel each other out.
We derive analytical formulas for these distributions [5]. We also prove spindle-shaped non-generalizable interactions are mathematically isomorphic to random input combinations. This means these non-generalizable interactions are probably random noise.
Figure 4 : Interaction distribution over different orders. The dark bar indicates the strength of all positive interaction effects of an order, while the light bar indicates the strength of all negative interaction effects. The positive and negative effects of non-generalizable interactions usually cancel out each other.
06
We also observe that different large language models (LLMs) arrive at similar interaction patterns for the same input sentence [6]. This mirrors human cognition: different people have unique brain wiring shaped by different life experiences, yet we share a common system of symbolic logic for communication. Many of these core cognitive rules emerge spontaneously, rather than being fully taught by society.
We see the same pattern in neural networks. We tested 16 open-source large language models. When predicting the same target word from the identical prompt, different large langurage models usually use similar interactions.
Figure 5 : Each edge corresponds to a pair of open-source large language models. The color and thinkness of the edge indicates the ratio of the output score, which is attributed to shared interaction effects w.r.t. the two large models.
Figure 6 : Shared Interaction and Non-shared Interaction of Frontier Open-Source Large Language Models.
For each LLM, it usually encodes fewer than 30 interactions that are shared by another LLM, yet each shared interaction carries strong numerical influence. By constrast, there are 60-80 non-shared interactions encoded by an LLM, but the positive and negative effects of different non-shared interaction effects mostly cancel out each other, thus making little influence on the model output.
Just like humans, LLMs spontaneously develop shared consensus representations, forming a kind of “consensus” among models. Over two-thirds of an LLM's prediction score is attributed to these shared interactions.
Figure 7 : Interaction-Level Comparison: QWEN vs. DEEPSEEK. Blue and pink bars show the strength of all positive interactions and the strength of all negative interactions of each order models by one LLM. Green and orange bars besides the blue and pink bars indicate the strengths of positive interactions and negative interactions that are shared by the other LLM. The results demonstrate that most interaction patterns are highly shared across the two LLMs.
For example, We compare interactions learned by Qwen-2.5-7B and DeepSeek-R1-Distill-Llama-8B. Most interactions encoded by an LLM are shared by the other LLM, mostly within the first three orders, and positively promote prediction score of the target token.
07
Different Neural Networks Exhibit Similar Dynamics for Learning Interaction Patterns
When We also empirically find and mathematically prove that diverse neural networks exhibit similar learning dynamics for interactions [7]. This applies to neural networks for both image classification and natural language processing.
1. Early denoising stage: The total count of interactions falls, the ratio of generalizable interactions rises, and the average interaction complexity/order decreases. The gap between training loss and test loss (loss gap) stays nearly zero.
2. Later learning stage: The number and complexity/order of interactions increase, the average ratio of generalizable interactions declines, as the model learns more complex non-generalizable interactions. The loss gap grows gradually.
In short, interaction count first drops then rises, while interaction quality first rises then falls. This two-phase evolution explains the change in the model’s generalization ability during training.

Figure 8 : Dynamics of interactions encoded by a neural network during the training process.
08
Since we can decompose a neural network’s output score into combined effects of generalizable and non-generalizable interactions, the generalization capacity of a neural network can be viewed as the aggregated effect of the generalizability of its compositional interactions. We design an approximate-yet-efficient loss function to penalize non-generalizable interactions , which significantly reduces the overfitting level of a neural network and directly suppress overfitting.
In our experiments, penalizing the non-generalizable interactions drastically cuts the loss gap — even down to almost zero sometimes. It outperforms conventional regularization methods by a large margin.

Figure 9 : Comparison of the interaction distributions between a normally trained neural network and a neural network trained with our proposed loss. Our loss function eliminates most high-order interactions with positive-negative cancellation, and drives the neural network to mainly encode low-order positive interactions.

Figure 10 : The removal of non-generalizable interactions significantly reduces the training-testing loss gap. The neural network is first trained with a normal cross-entropy loss, which leads to significant loss gap. Then, we add the interaction-penalty loss to remove non-generalizable interactions, which significantly reduces the loss gap.
09
Formal Mechanism Auditing for Neural Networks
Traditionally, formal verification is usually applicable to structured computer code. Neural networks have long been regarded as vague, probabilistic black-box systems that cannot be rigorously audited.
Our Surrogate Interaction Theory breaks this limitation, though it does not yet reach the strict mathematical standard of full formal verification. Since network behavior can be fully decomposed into interpretable interaction patterns, we can directly audit these underlying interaction patterns and check whether they conform to real-world logic and domain rules. For scientific models, we can verify whether interactions follow basic scientific principles. For legal models, we examine whether interactions comply with legal reasoning.
This approach draws on the idea of formal auditing. Intriguingly, we find critical hidden problems even when models produce correct final results. In legal models in Figure 11, even correct case judgment made by an LLM often still rely on many flawed, misaligned interaction patterns. In pedestrian detection in Figure 12, the classification score of a correctly detected pedestrain usually depend on many overfitted, mutually canceling noisy interactions.
These invisible mechanism-level defects bring huge potential risks for trustworthy AI in high-stakes scenarios.
Figure 11 : Mechanism auditing of a legal LLM. Even when the legal LLM generates a correct case judgment, most interactions behind the judgment still represent incorrect reasoning logic, e.g., judging the case based on the action of an irrelevant person.
Figure 12 : Representation Risk Evaluation for Autonomous Driving Models. Half interactions are positive (red), and the other half interaction are negative. Such mutually canceling interactions usually represent overfitted patterns.
10
Neuron Level Mechanistic Interpretability vs. Surrogate Interaction Theory
Mechanistic interpretability has become a vibrant research area, with impactful work from Anthropic, OpenAI and others. Most existing approaches focus on interpreting individual neurons.
However, these methods all suffer from the neuron polysemanticity problem. They cannot theoretically guarantee each single neuron to represent a concept with a clear semantic boundary. The semantic meaning of each neuron rely heavily on empirical tests, thereby making it impossible to establish a strict bijective mapping between semantic meanings and neurons. Moreover, there is no mathematical criterion to fully verify the completeness of explanations, and they cannot rigorously decompose a network’s generalization at the mechanistic level. In contrast, Surrogate Interaction Theory achieves remarkable progress in these respects.
Figure 13 : Interaction-based Mechanistic Interpretability VS. Traditional Mechanistic Interpretability
11
Surrogate Interaction Theory Toolkit
12
References
[1] Jie Ren, Mingjie Li, Qirui Chen, Huiqi Deng, and Quanshi Zhang. Defining and quantifying the emergence of sparse concepts in dnns. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 20280–20289, 2023.
[2] Qihan Ren, Jiayang Gao, Wen Shen, and Quanshi Zhang. Where we have arrived in proving the emergence of sparse interaction primitives in dnns. In The Twelfth International Conference on Learning Representations, 2024a.
[3] Mingjie Li and Quanshi Zhang. Does a neural network really encode symbolic concepts? In International conference on machine learning, pp. 20452–20469. PMLR, 2023
[4] Lu Chen, Siyu Lou, Benhao Huang, and Quanshi Zhang. Defining and extracting generalizable interaction primitives from dnns. In International Conference on Learning Representations, volume 2024, pp. 23780–23802, 2024
[5] Lei Cheng, Junpeng Zhang, Qihan Ren, and Quanshi Zhang, "Revisiting Generalization Power of a DNN in Terms of Symbolic Interactions" in arXiv:2502.10162
[6] Siyu Lou, Yao Yan, Yuntian Chen, Quanshi Zhang, "Cross-LLM Consistency in Inference: Evidence from Shared Interactions" in arXiv:2606.08129, 2026.
[7] Yuxuan He, Junpeng Zhang, Hongyuan Zhang, Quanshi Zhang, "Technical Report: Quantifying and Analyzing the Generalization Power of a DNN" in arXiv:2505.06993, 2025.










