paper-with-me

Papers

InfoFlow: A Framework for Multi-Layer Transformer Analysis

2026-05-18 · Penghao Yu, Haotian Jiang, Zeyu Bao, Qianxiao Li arxiv

While the approximation properties of single-layer Transformer architectures have been studied in recent works, a rigorous theoretical understanding of the multi-layer setting remains limited. In this work, we establish that multi-layer Transformers possess fundamentally different approximation capabilities from single-layer ones: for certain retrieval tasks, any single-layer Transformer requires least $Ω(\varepsilon^{-k})$ parameters to achieve precision $\varepsilon$, where $k$ grows linearly with sequence length $T$, whereas a two-layer Transformer with a single head per layer achieves the same approximation precision with at most $O (\varepsilon^{-1})$ parameters. To understand this separation, we identify two structural mechanisms underlying multi-layer approximation. Specifically, softmax attention can only efficiently retrieve the token attaining the maximum attention score, incurring exponential-in-length parameter cost for $k$-th largest retrieval with $k \geq 2$. Moreover, the parameter cost of decoding coupled information scales with the size of the retrieved token set. Motivated by these findings, we propose InfoFlow, a framework for multi-layer Transformers. The framework tracks an information set of accessible input positions at each token and layer, assigning an explicit approximation rate to each mode of information propagation. This abstraction recovers known approximation bounds, remains consistent with experimental observations on trained networks, and yields concrete predictions in settings where direct theoretical analysis is currently intractable. Our results provide a principled framework for reasoning about the approximation efficiency of multi-layer Transformers.

📄 PDF Abstract BibTeX arXiv:2605.17930

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

InfoFlowNet: A Multi-head Attention-based Self-supervised Learning Model with Surrogate Approach for Uncovering Brain Effective Connectivity

2023-11-30 · Chun-Hsiang Chuang, Shao-Xun Fang, Chih-Sheng Huang, Weiping Ding

Deciphering brain network topology can enhance the depth of neuroscientific knowledge and facilitate the development of neural engineering methods. Effective connectivity, a measure of brain network dynamics, is particul…

Causal DiscoveryCausal InferenceEEGElectroencephalogram (EEG)+2

InfoFlow: Reinforcing Search Agent Via Reward Density Optimization

2025-10-30 · Kun Luo, Hongjin Qian, Zheng Liu, Ziyi Xia 외 arxiv

Reinforcement Learning with Verifiable Rewards (RLVR) is a promising approach for enhancing agentic deep search. However, its application is often hindered by low \textbf{Reward Density} in deep search scenarios, where a…

Reinforcement Learning

JoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attention

2023-10-01 · Yuandong Tian, Yiping Wang, Zhenyu Zhang, Beidi Chen 외

We propose Joint MLP/Attention (JoMA) dynamics, a novel mathematical framework to understand the training procedure of multilayer Transformer architectures. This is achieved by integrating out the self-attention layer in…

Explainable AI: Context-Aware Layer-Wise Integrated Gradients for Explaining Transformer Models

2026-02-18 · Melkamu Abay Mersha, Jugal Kalita arxiv

Transformer models achieve state-of-the-art performance across domains and tasks, yet their deeply layered representations make their predictions difficult to interpret. Existing explainability methods rely on final-laye…

Document ClassificationHate Speech DetectionImage ClassificationSentiment Analysis

SpectralKD: A Unified Framework for Interpreting and Distilling Vision Transformers via Spectral Analysis

2024-12-26 · Huiyuan Tian, Bonan Xu, Shijian Li, Gang Pan

Knowledge Distillation (KD) has achieved widespread success in compressing large Vision Transformers (ViTs), but a unified theoretical framework for both ViTs and KD is still lacking. In this paper, we propose SpectralKD…

Knowledge DistillationTransfer Learning