Sparse Inter-Layer Dependencies of Transformer FFN Neurons

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, extended

Summary

A new training-free attribution method reveals sparse inter-layer dependencies within Transformer Feedforward Network (FFN) blocks, which typically account for two-thirds of model parameters. This method estimates the influence of upstream neurons and attention outputs on a target neuron's activation. Empirical evaluation across GPT-2 variants and Qwen2.5-0.5B shows that small subsets of preceding activations and attention outputs, often 10% or more, preserve FFN neuron activations with high fidelity (AUROC scores above 0.9 at 5% sparsity). When neuron-specific masks are applied simultaneously across all layers, model perplexity remains largely unchanged at moderate sparsity levels. This indicates that despite dense parameterization, FFNs exhibit structured, sparse functional pathways at the neuron level, with effective sparsity compounding due to inherent activation sparsity.

Key takeaway

For AI Architects and Machine Learning Engineers optimizing Transformer models, understanding FFN's intrinsic sparse dependencies is crucial. You should consider this training-free attribution method to identify critical pathways, potentially guiding the design of more efficient, sparse-by-construction architectures or informing model distillation strategies. This approach offers a scalable tool for interpretability and could lead to compact models for faster inference without extensive retraining.

Key insights

Transformer FFN neurons exhibit sparse, structured inter-layer dependencies, discoverable via a training-free attribution method.

Principles

Method

Decompose FFN pre-activations into additive contributions, define relevance scores by squared dot product and activation variance, then causally test via mean-ablation activation patching.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Architect

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.