atlas

Research map / Architectures and efficiency / Attention and transformers

Positional Attention: Expressivity and Learnability of Algorithmic Computation

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 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.

Introduces positional Transformers whose attention depends only on fixed positional encodings, proves they can simulate MPC with O(log n) depth overhead, gives a norm-based generalization bound, and empirically compares ID/OOD performance with standard Transformers on algorithmic tasks.

Problem

Understanding whether Transformers can execute parallel algorithmic computation when attention weights depend only on positional information, and how this affects expressivity, learnability, and out-of-distribution generalization.

Approach

Decouple attention from input values: attention matrices are computed solely from fixed positional encodings P (constant across layers), while values come from the layer input. This mirrors data-agnostic communication in many parallel algorithms, is shown to match MPC expressivity with logarithmic depth overhead, and removes the dependence of the generalization bound on key/query spectral norms.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use positional attention instead of standard self-attentionPositional Transformer · Cumulative sum, cumulative min, cumulative median, sorting, and cumulative maximum sum subarray (OOD)lossHelped
Use positional attention instead of standard self-attentionPositional Transformer · k-hop induction heads (in-distribution)lossHurt
Increase the number of training samplesStandard and positional Transformers · Cumulative sum, cumulative min, cumulative median, sorting, and cumulative maximum sum subarray (in-distribution)lossHelped
Use positional attention instead of standard self-attentionPositional Transformer · k-hop induction heads (OOD)lossHurt
Use positional attention instead of standard self-attentionPositional Transformer · Mixed-type input task (OOD; minimum, sum, and multi-task min/max)lossHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic algorithmic task data (cumulative sum, cumulative min, cumulative median, sorting, cumulative max sum subarray k-hop induction heads (synthetic) mixed-type category-value task (synthetic)

Benchmarks: in-distribution loss on five algorithmic tasks k-hop induction heads out-of-distribution scale-factor tests on algorithmic tasks mixed-type input task (min, sum, min/max)

Metrics: loss (MSE) MAPE

Baselines: standard Transformer with self-attention Transformer with RoPE fine-tuned GPT-2

Builds on: Transformers simulate MPC (Sanford et al.) Benes networks norm-based Transformer generalization bounds (Edelman et al.) position-based attention (Shaw/Luong-style)

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