atlas

Research map / Architectures and efficiency / Attention and transformers

Dynamics of Spontaneous Topic Changes in Next Token Prediction with Self-Attention

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Sparse and structured attention · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Theoretically characterizes spontaneous topic changes in a single-layer self-attention model via token-priority graphs, showing changes need lower-priority tokens to outnumber higher-priority ones and that longer context or ambiguity does not increase them, then checks this empirically with RAG on four frontier LLMs.

Problem

Self-attention models predict next tokens from structured input patterns and seem to lack the spontaneous topic shifts characteristic of human thought; it is unclear when and how such topic changes occur in self-attention and whether they resemble human cognition.

Approach

Defines a topic as a set of token-priority graphs (TPGs) and uses the Graph-SVM convergence result of a single-layer self-attention model trained on mixed-topic data to derive necessary conditions for topic change, showing that longer inputs and higher topic ambiguity do not increase change probability, unlike human cognition.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase test input length from T_test=4 to T_test=512Mixed-topic single-layer self-attention · Synthetic TPG test sequencesChange (%): 0.00 ± 0.00 -> 0.00 ± 0.00Hurt
Increase topic-overlap edge count L from 4 to 18Mixed-topic single-layer self-attention · Synthetic TPG test sequencesChange (%): 1.52 ± 1.31 -> 0.72 ± 0.86No clear effect
Increase input prompt lengthGPT-4o, Llama-3.3, Claude-3.7, and DeepSeek-V3 · ArXiv paper abstracts; RAG with single-paper versus paired-paper contextCosine similarityHelped
Increase topic ambiguityGPT-4o, Llama-3.3, Claude-3.7, and DeepSeek-V3 · ArXiv paper abstracts; five ambiguity binsCosine similarityNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: 100 arXiv papers from March 2025 synthetic TPG-generated sequences

Benchmarks: synthetic TPG simulations 100 arXiv papers (March 2025)

Metrics: proportion keep topic / ambiguous / change of topic cosine similarity between single-topic and mixed-topic conti attention priority similarity

Baselines: GPT-4o Llama-3.3 Claude-3.7 DeepSeek-V3

Builds on: token-priority graph Graph-SVM implicit bias of self-attention attribution graphs retrieval-augmented generation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy