atlas

Research map / Architectures and efficiency / Attention and transformers

Hide & Seek: Transformer Symmetries Obscure Sharpness & Riemannian Geometry Finds It

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

Proposes geodesic sharpness, an adaptive sharpness measure defined on the Riemannian quotient manifold that removes parameter symmetries (including the GL(h) symmetry of attention), and shows it correlates with generalization for diagonal nets, ViTs fine-tuned on ImageNet, and BERT on MNLI.

Problem

Sharpness measures fail to predict generalization in transformers because attention layers have rich continuous symmetries (GL(h)) that make parameter-space perturbations ambiguous; existing adaptive sharpness only corrects for simpler rescaling symmetries.

Approach

Define sharpness as the maximal loss increase over a geodesic ball on the symmetry quotient manifold (horizontal lifts, symmetry-compatible metrics), approximated to second order with Christoffel symbols; first-order truncation recovers existing adaptive sharpness measures.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use geodesic sharpness with the inv metric instead of adaptive sharpnessDiagonal networks · Diagonal networksKendall rank correlation (τ): -0.68 -> -0.83Helped
Use geodesic sharpness with the mix metric instead of adaptive sharpnessDiagonal networks · Diagonal networksKendall rank correlation (τ): -0.68 -> -0.86Helped
Use geodesic sharpness with the inv metric instead of adaptive sharpnessCLIP ViT-B/32 · ImageNetKendall rank correlation (τ): -0.41 -> -0.71Helped
Use geodesic sharpness with the mix metric instead of adaptive sharpnessCLIP ViT-B/32 · ImageNetKendall rank correlation (τ): -0.41 -> -0.7Helped
Use geodesic sharpness with the inv metric instead of adaptive sharpnessBERT · MNLIKendall rank correlation (τ): 0.06 -> 0.28Helped
Use geodesic sharpness with the mix metric instead of adaptive sharpnessBERT · MNLIKendall rank correlation (τ): 0.06 -> 0.38Helped
Use the mix metric instead of the inv metric for geodesic sharpness (ablation)BERT · MNLIKendall rank correlation (τ): 0.28 -> 0.38Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1k MNLI synthetic regression data for diagonal networks

Benchmarks: ImageNet-1k MNLI

Metrics: Kendall rank correlation tau generalization gap

Baselines: adaptive sharpness relative sharpness

Builds on: adaptive sharpness Auto-PGD Kendall rank correlation

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