paper-with-me

홈 › Papers

Why Attention Patterns Exist: A Unifying Temporal Perspective Analysis

2026-01-29 · Qingyue Yang, Jie Wang, Xing Li, Yinqi Bai, Xialiang Tong, Huiling Zhen, Jianye Hao, Mingxuan Yuan, Bin Li arxiv

Attention patterns play a crucial role in both training and inference of large language models (LLMs). Prior works have identified individual patterns such as retrieval heads, sink heads, and diagonal traces, yet these observations remain fragmented and lack a unifying explanation. To bridge this gap, we introduce \textbf{Temporal Attention Pattern Predictability Analysis (TAPPA), a unifying framework that explains diverse attention patterns by analyzing their underlying mathematical formulations} from a temporally continuous perspective. TAPPA both deepens the understanding of attention behavior and guides inference acceleration approaches. Specifically, TAPPA characterizes attention patterns as predictable patterns with clear regularities and unpredictable patterns that appear effectively random. Our analysis further reveals that this distinction can be explained by the degree of query self-similarity along the temporal dimension. Focusing on the predictable patterns, we further provide a detailed mathematical analysis of three representative cases through the joint effect of queries, keys, and Rotary Positional Embeddings (RoPE). We validate TAPPA by applying its insights to KV cache compression and LLM pruning tasks. Across these tasks, a simple metric motivated by TAPPA consistently improves performance over baseline methods. The code is available at https://github.com/MIRALab-USTC/LLM-TAPPA.

📄 PDF Abstract BibTeX arXiv:2601.21709

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Towards Unifying Diffusion Models for Probabilistic Spatio-Temporal Graph Learning

2023-10-26 · Junfeng Hu, Xu Liu, Zhencheng Fan, Yuxuan Liang 외

Spatio-temporal graph learning is a fundamental problem in modern urban systems. Existing approaches tackle different tasks independently, tailoring their models to unique task characteristics. These methods, however, fa…

DenoisingGraph Learning

CAPS: Unifying Attention, Recurrence, and Alignment in Transformer-based Time Series Forecasting

2026-02-02 · Viresh Pati, Yubin Kim, Vinh Pham, Jevon Twitty 외 arxiv

This paper presents $\textbf{CAPS}$ (Clock-weighted Aggregation with Prefix-products and Softmax), a structured attention mechanism for time series forecasting that decouples three distinct temporal structures: global tr…

Time Series Forecasting

APS-LSTM: Exploiting Multi-Periodicity and Diverse Spatial Dependencies for Flood Forecasting

2024-12-07 · Jun Feng, Xueyi Liu, Jiamin Lu, Pingping Shao

Accurate flood prediction is crucial for disaster prevention and mitigation. Hydrological data exhibit highly nonlinear temporal patterns and encompass complex spatial relationships between rainfall and flow. Existing fl…

Temporal Information Extraction

User Trajectory Prediction Unifying Global and Local Temporal Information

2025-08-04 · Wei Hao, Bin Chong, Ronghua Ji, Chen Hou arxiv

Trajectory prediction is essential for formulating proactive strategies that anticipate user mobility and support advance preparation. Therefore, how to reduce the forecasting error in user trajectory prediction within a…

Trajectory Prediction

Learning to Remember Patterns: Pattern Matching Memory Networks for Traffic Forecasting

2021-10-20 · ICLR 2022 4 · Hyunwook Lee, Seungmin Jin, Hyeshin Chu, Hongkyu Lim 외

Traffic forecasting is a challenging problem due to complex road networks and sudden speed changes caused by various events on roads. A number of models have been proposed to solve this challenging problem with a focus o…

Traffic Prediction