atlas

Research map / Architectures and efficiency / Attention and transformers

Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Theory of self-attention dynamics · 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.

Derives a hierarchical self-attention (HSA) mechanism for nested multi-scale, multi-modal signals from entropy minimization, computes it in O(M·b²) via dynamic programming, and applies it to transformers trained from scratch and to pretrained RoBERTa zero-shot.

Problem

Standard transformer attention does not natively handle data spanning multiple scales and modalities; existing hierarchical or multi-modal architectures are ad hoc heuristics that either discard geometric information or are hard to generalize.

Approach

Represent data as nested signals with a signal hierarchy, derive attention from entropy minimization of an energy function with a block constraint that ties attention weights across sibling subtrees, and show this is the KL-closest hierarchical approximation to flat Softmax attention; compute it with a two-pass dynamic program.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use HSA instead of flat self-attentionSentiment classification models · IMDB and Elec (Word2Vec and T5-small embeddings)accuracy: IMDB Word2Vec: ${0.6739}\pm{0.0004}$ -> 0.7469±0.0029; IMDB T5-small: 0.7577$\pm$0.0024 -> 0.8129$\pm$0.0010; Elec Word2Helped
Replace Word2Vec token embeddings with T5-small embeddingsFSA and HSA sentiment classifiers · IMDB and Elecaccuracy: IMDB FSA: ${0.6739}\pm{0.0004}$ -> 0.7577$\pm$0.0024; IMDB HSA: 0.7469±0.0029 -> 0.8129$\pm$0.0010; Elec FSA: 0.7182$\pmHelped
Use hierarchical attention and nested multimodal representation instead of flat attentionN24News classifier · N24Newsaccuracy: FSA: $0.7921\pm 0.0036$; DeepSet: 0.7578; HSA: 0.7952Helped
Add image modality using the DeepSet architectureN24News classifier · N24Newsaccuracy: FSA: $0.7921\pm 0.0036$; DeepSet: 0.7578Hurt
Replace selected RoBERTa attention layers with HSA, zero-shotRoBERTa · IMDB, AGNEWS, CoLA, SST-2, MRPC, RTE, and QNLIaccuracy: IMDB: 0.9558 -> 0.9494; AGNEWS: 0.9469 -> 0.9422; CoLA: 0.8150 -> 0.7687; SST-2: 0.9403 -> 0.9025; MRPC: 0.9117 -> 0.855Mixed
Replace selected RoBERTa attention layers with HSA, zero-shotRoBERTa · IMDB, AGNEWS, CoLA, SST-2, MRPC, RTE, and QNLIFLOPs (MFLOPs per impacted layers): IMDB: 214.94 -> 4.32; AGNEWS: 8.99 -> 0.8357; CoLA: 0.4441 -> 0.1912; SST-2: 2.08 -> 0.4132; MRPC: 9.33 -> 0.8481; RTE: Helped
Replace Softmax attention with HSA in all hidden layersRoBERTa · Benchmark classification tasksaccuracyHurt
Interleave HSA layers with regular Softmax layersRoBERTa · Benchmark classification tasksaccuracyHelped
Use HSA in later rather than earlier RoBERTa layersRoBERTa · Benchmark classification tasksaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: IMDB Elec N24News

Benchmarks: IMDB Elec N24News GLUE (CoLA, SST-2, MRPC, RTE, QNLI) AGNEWS

Metrics: accuracy F1 score precision recall MFLOPs

Baselines: Flat self-attention (Softmax) DeepSet Original RoBERTa

Builds on: Transformer LieTransformer random Fourier features Geometric Deep Learning

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