paper-with-me

홈 › Papers

Scan and Snap: Understanding Training Dynamics and Token Composition in 1-layer Transformer

2023-05-25 · NeurIPS 2023 11

Transformer architecture has shown impressive performance in multiple research domains and has become the backbone of many neural network models. However, there is limited understanding on how it works. In particular, with a simple predictive loss, how the representation emerges from the gradient \emph{training dynamics} remains a mystery. In this paper, for 1-layer transformer with one self-attention layer plus one decoder layer, we analyze its SGD training dynamics for the task of next token prediction in a mathematically rigorous manner. We open the black box of the dynamic process of how the self-attention layer combines input tokens, and reveal the nature of underlying inductive bias. More specifically, with the assumption (a) no positional encoding, (b) long input sequence, and (c) the decoder layer learns faster than the self-attention layer, we prove that self-attention acts as a \emph{discriminative scanning algorithm}: starting from uniform attention, it gradually attends more to distinct key tokens for a specific next token to be predicted, and pays less attention to common key tokens that occur across different next tokens. Among distinct tokens, it progressively drops attention weights, following the order of low to high co-occurrence between the key and the query token in the training set. Interestingly, this procedure does not lead to winner-takes-all, but decelerates due to a \emph{phase transition} that is controllable by the learning rates of the two layers, leaving (almost) fixed token combination. We verify this \textbf{\emph{scan and snap}} dynamics on synthetic and real-world data (WikiText).

📄 PDF Abstract BibTeX arXiv:2305.16380

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderInductive Bias

Methods 이 논문이 사용한 방법론

SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…

Similar Papers 제목 키워드 기반

Cambrian-P: Pose-Grounded Video Understanding

2026-05-21 · Jihan Yang, Zifan Zhao, Xichen Pan, Shusheng Yang 외 arxiv

Camera pose matters. The position and orientation of each viewpoint define a shared spatial coordinate frame that relates observations across video frames. Yet this signal is largely absent from multimodal LLMs (MLLMs) f…

Spatial ReasoningPose Estimation

SNOW: Spatio-Temporal Scene Understanding with World Knowledge for Open-World Embodied Reasoning

2025-12-18 · Tin Stribor Sohn, Maximilian Dillitzer, Jason J. Corso, Eric Sax arxiv

Autonomous robotic systems require spatio-temporal understanding of dynamic environments to ensure reliable navigation and interaction. While Vision-Language Models (VLMs) provide open-world semantic priors, they lack gr…

Scene UnderstandingPoint Clouds

Snapshot Ptychography on Array cameras

2021-11-05 · Chengyu Wang, Minghao Hu, Yuzuru Takashima, Timothy J. Schulz 외

We use convolutional neural networks to recover images optically down-sampled by $6.7\times$ using coherent aperture synthesis over a 16 camera array. Where conventional ptychography relies on scanning and oversampling, …

Personalized Predictions of Glioblastoma Infiltration: Mathematical Models, Physics-Informed Neural Networks and Multimodal Scans

2023-11-28 · Ray Zirui Zhang, Ivan Ezhov, Michal Balcerak, Andy Zhu 외

Predicting the infiltration of Glioblastoma (GBM) from medical MRI scans is crucial for understanding tumor growth dynamics and designing personalized radiotherapy treatment plans.Mathematical models of GBM growth can co…

Joint Velocity-Growth Flow Matching for Single-Cell Dynamics Modeling

2025-05-19 · Dongyi Wang, Yuanwei Jiang, Zhenyi Zhang, Xiang Gu 외

Learning the underlying dynamics of single cells from snapshot data has gained increasing attention in scientific and machine learning research. The destructive measurement technique and cell proliferation/death result i…