Introduction
Interpretability in neural networks often relies on feature attribution—assigning credit to individual inputs like words or pixels. However, standard methods like basic Shapley values frequently assume feature independence. This assumption fails in language and speech, where inputs are deeply entangled through non-linear relationships. This paper utilizes the Shapley Taylor interaction index (STII) to measure how models non-linearly combine features, revealing how they internalize syntactic, semantic, and phonetic structures.
Measuring Non-Linear Interactions
The STII extends Shapley values to capture the joint influence of feature pairs beyond their individual contributions. Due to the exponential complexity of exact calculation, the authors employ Monte Carlo Permutation Sampling for approximation. This metric is applied to three domains:
- Syntax: Interaction between tokens relative to their distance in a dependency parse tree.
- Semantics: Interaction within Multiword Expressions (MWEs), distinguishing idiomatic from literal phrases.
- Phonetics: Interaction between acoustic features in speech models (Wav2Vec 2.0) to detect phonetic coarticulation.
Structural Decay and Distance
A primary finding is that feature interaction is highly localized. As the distance between tokens increases—whether measured by positional index ($d_i$) or syntactic parse distance ($d_p$)—the STII drops monotonically.
This suggests that models treat distant context as an unentangled "bag-of-words," reserving complex non-linear processing for immediate neighbors. Interestingly, autoregressive language models (ALMs) like GPT-2 show a more consistent relationship with syntactic structure than masked language models (MLMs) like BERT.
Syntactic vs. Positional Distance
To determine if models truly learn syntax or merely rely on proximity, the authors controlled for positional distance. In ALMs, tokens that are syntactically connected (low $d_p$) exhibit significantly higher interaction even when they are positionally distant.
As shown in the heatmaps, ALMs (left) demonstrate a more systematic pattern of interaction across the $d_i$ and $d_p$ space compared to the sparser and less consistent interactions in MLMs (right). This supports the insight that autoregressive models are more predisposed to learning syntax-style generalizations.
Idioms and Phonetic Coarticulation
The study further reveals that models recognize semantic non-compositionality. Tokens within "Strong" MWEs (idioms like "close call") interact more intensely than those in standard text, indicating the model understands that the phrase's meaning cannot be derived from a simple sum of its parts.
In the speech domain, Wav2Vec 2.0 captures the physical reality of coarticulation. Interaction is strongest across consonant-vowel boundaries, particularly for "sonorant" consonants (like 'w' or 'j') where the vocal tract remains relatively open, mirroring human phonetic perception.
Conclusion
By moving beyond independent feature attribution, STII provides a window into the non-linear "glue" that binds structured data. The results confirm that modern models do not just process sequences; they learn to mirror the hierarchical and physical structures inherent in human communication. Future work may extend this to higher-order interactions to uncover even more complex hierarchical dependencies.
Summary updated