CVJul 15

2D Rotary Position Embedding for Scene Text Recognition with Transformers

arXiv:2607.134580.0h-index: 6
Predicted impact top 100% in CV · last 90 daysOriginality Incremental advance
AI Analysis

For scene text recognition researchers, this provides a simple, parameter-free positional encoding that improves Transformer performance on challenging irregular text without architectural changes.

The paper introduces 2D-RoPE-STR, a parameter-free adaptation of axial 2D Rotary Position Embedding for scene text recognition, which handles anisotropic text crops and extends rotary coupling to encoder-decoder cross-attention. On six benchmarks, gains concentrate on irregular layouts (curved, rotated, perspective-distorted), with ablations isolating improvements over 1D RoPE and 2D alternatives.

Scene Text Recognition (STR) remains challenging due to the diversity of text appearances, including curvature, rotation, and perspective distortion. Recent Transformer-based approaches perform well but usually rely on one-dimensional positional encodings that ignore the 2D spatial structure of text images. Axial 2D extensions of Rotary Position Embedding (RoPE) exist for vision Transformers, but they assume roughly square, isotropic image content and apply the rotation only within encoder self-attention. Scene text violates both assumptions: crops are markedly anisotropic, and STR models are encoder-decoder, so the decoder must relate its queries to the encoder's 2D layout through cross-attention. We introduce 2D-RoPE-STR, which adapts axial 2D-RoPE to this setting through (1) an anisotropic row/column dimension allocation matched to the aspect ratio of text, and (2) an extension of the rotary coupling into encoder-decoder cross-attention, letting autoregressive decoding steps attend to encoder tokens by their 2D layout, a setting not addressed by prior encoder-only formulations. Both changes are essentially parameter-free and require no architectural redesign beyond the positional-encoding module. We further introduce a diagnostic protocol (a controlled ablation pair isolating only the positional encoding, an image-level net-win disagreement analysis, and encoder attention visualization) that identifies where and why relative 2D position helps: curved, rotated, and perspective-distorted layouts where reading order departs from a straight horizontal line. On six standard benchmarks (IIIT5K, SVT, ICDAR 2013, ICDAR 2015, CUTE80, SVTP), gains concentrate on exactly these irregular layouts, with ablations isolating each design choice against 1D RoPE and 2D sinusoidal and learnable alternatives.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes