Transformers' FFNs Exhibit Sparse Inter-Layer Dependencies, Aiding Interpretability

Johannes Knittel, Hanspeter Pfister· July 15, 2026 View original

Summary

A new training-free attribution method reveals that Transformer Feedforward Networks (FFNs) have sparse, structured inter-layer dependencies. Small subsets of preceding neuron activations and attention outputs are sufficient to explain FFN neuron activations, offering insights for interpretability and efficient inference.

This research investigates the internal structure of Feedforward Network (FFN) blocks within Transformer architectures, which are notoriously difficult to interpret despite their significant parameter count. The study introduces a novel, training-free attribution method to quantify the influence of upstream neuron activations and attention outputs on a target FFN neuron. Empirical findings across various models and layers indicate that only a small subset of preceding activations and attention outputs is needed to accurately preserve FFN neuron activations. This "effective sparsity" becomes even more pronounced when considering the inherent sparsity of upstream layers. Crucially, applying these neuron-specific masks across all layers simultaneously maintains model perplexity at moderate sparsity levels, suggesting that FFNs possess sparse and structured inter-layer dependencies despite their dense parameterization. This method offers a scalable tool for circuit-level interpretability and points towards potential pathways for more efficient inference.

Why it matters

Understanding the sparse dependencies within Transformer FFNs can lead to more interpretable AI models, enabling better debugging, safety, and potentially more efficient model architectures for deployment.

How to implement this in your domain

  1. 1Apply the proposed attribution method to analyze the FFNs of proprietary Transformer models for interpretability.
  2. 2Identify and prune redundant connections or neurons based on sparsity findings to optimize model size and inference speed.
  3. 3Develop tools that visualize these sparse dependencies to aid in model debugging and understanding.
  4. 4Explore how these insights can inform the design of future, inherently sparser Transformer architectures.

Who benefits

AI/ML DevelopmentCloud ComputingSoftware EngineeringResearch & Development

Key takeaways

  • Transformer FFNs exhibit sparse inter-layer dependencies, not dense as often assumed.
  • A new training-free method identifies influential upstream activations.
  • Small subsets of inputs can preserve FFN neuron activations with high fidelity.
  • This sparsity has implications for model interpretability and efficient inference.

Original post by Johannes Knittel, Hanspeter Pfister

"arXiv:2607.11990v1 Announce Type: new Abstract: Feedforward network (FFN) blocks account for a large fraction of the parameters and computation in Transformer architectures, yet their internal structure remains difficult to interpret due to the additive superposition induced by t…"

View on X

Originally posted by Johannes Knittel, Hanspeter Pfister on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses