atlas

Research map / Architectures and efficiency / Attention and transformers

Continuity and Isolation Lead to Doubts or Dilemmas in Large Language Models

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 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.

The paper proves that decoder-only transformers with compact positional encoding exhibit continuity and isolation, which together prevent a single transformer from eventually learning all periodic sequences, and supports this with experiments on several LLMs.

Problem

Whether decoder-only Transformers can eventually learn simple infinite pattern sequences (e.g., periodic sequences) with certainty, given limits on sensitivity of their output distributions to input perturbations.

Approach

Proves that compact-positional-encoding decoder-only transformers are continuous with respect to relative Hamming distance on prompts, which implies an isolation property: any eventually learnable sequence has a positive-radius Hamming ball containing no other eventually learnable sequence, so no single such transformer can learn all periodic sequences. Extends prior encoder-only continuity result

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Perturb the all-zero prompt at one symbol (γ=0.01)Selected decoder-only LLMs · All-zero sequenceNTS: 0No clear effect
Perturb the all-zero prompt at γ=0.05Selected decoder-only LLMs · All-zero sequenceNTS: 0No clear effect
Replace softmax attention with ssmax (ablation)Decoder-only language models · All-zero sequence perturbationnext-token sensitivityHelped
Move perturbations toward the end of the inputDecoder-only language models · All-zero sequence perturbationnext-token sensitivityHelped
Increase model size within the Gemma-3 familyGemma-3 models · SyntaxVerificationsensitivityHelped
Use an instruct-tuned model rather than a base modelLanguage models · SyntaxVerificationerror rateHelped
Use phi-4 on the syntax verification taskphi-4 · SyntaxVerificationsensitivityHurt

Surprising findings

Limitations

Experimental setup

Datasets: 100 Python function exercises (SyntaxVerification, constructed by authors) synthetic periodic sequences all-zero sequences of length 190

Benchmarks: SyntaxVerification periodic sequence generation all-zero next-token sensitivity

Metrics: next-token sensitivity (NTS) success certainty error rate

Baselines: ssmax attention o3-mini o4-mini

Builds on: Barbero et al. representational collapse overwhelming strings Chiang and Cholak log-length scaled attention scalable softmax

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