Manuscript Offprint

arXiv:2610.13735

Orthros: Phase-Aware Heterogeneous Attention for Efficient Transformers

Yuhong Chou, Zehao Liu, Yuqi Pan, Qian Liu, Xianwei Chen, Zhongzhu Zhou, Jibin Wu

Yuhong Chou †^{\dagger}, Zehao Liu †^{\dagger}, Yuqi Pan ‡^{\ddagger}, Qian Liu §^{\S}, Xianwei Chen †^{\dagger}, Zhongzhu Zhou ⋄^{\diamond}, Jibin Wu †^{\dagger}

†^{\dagger}The Hong Kong Polytechnic University ‡^{\ddagger}University of Chinese Academy of Sciences

§Independent Researcher

◇University of Sydney

Efficient attention mechanisms, such as linear and sliding window attention, aim to reduce the computational complexity of Transformers from quadratic to linear. However, their degraded in-context recall often necessitates interleaving full attention layers, leaving the quadratic bottleneck unresolved in long-context processing. To address this, we introduce Orthros attention, which shifts the efficiency paradigm from structural allocation to phase-aware decoupling. As a unified module, it dynamically switches its computation pattern across different phases of sequence processing, enabling linear complexity prefilling and full attention decoding. Our design grants Orthros attention a lower asymptotic complexity compared to vanilla Transformers in prevalent long-context scenarios characterized by heavy prefilling and light decoding. Beyond theoretical formulation and complexity analysis, extensive empirical evaluations demonstrate Orthros's superiority across multiple dimensions. First, we validate its fundamental language modeling capabilities, demonstrating scalability across varying model sizes and strong competitiveness in comprehensive architectural comparisons. Second, Orthros exhibits exceptional conversion feasibility via a data-efficient Transformer-to-Orthros conversion, yielding performance that even surpasses the original Transformer. Finally, Orthros achieves a 21.9×21.9\times prefilling speedup over Transformers with end-to-end inference gains, while preserving long-context capabilities, as demonstrated by near-perfect 128K needle-in-a-haystack results and Transformer-level performance on real-world in-context recall tasks. Overall, these advantages in high performance, flexibility, and efficiency position Orthros as a promising candidate to succeed the Transformer in industrial applications.

Date: October 7, 2026

Correspondence: Jibin Wu (jibin.wu@polyu.edu.hk)

MIND LAB

MACHINE INTELLIGENCE AND

NATURE-INSPIRED COMPUTING LAB

機器智能與自然啓發計算實驗室

THE HONG KONG

POLYTECHNIC UNIVERSITY

香港理工大學

1. Introduction

Efficient attention mechanisms have been extensively investigated to address the growing prevalence of long-context scenarios in modern foundation models (Wang et al., 2024). In applications such as high-resolution multimodal (Bai et al., 2025, Xu et al., 2025), repository-level code analysis (Cao et al., 2026, Bogomolov et al., 2024), and long-horizon agentic workflows (Team et al., 2025a, Zeng et al., 2026, Zhuang et al., 2025), interaction sequences routinely span hundreds of thousands to millions of tokens. Under such extreme lengths, the quadratic complexity of vanilla full attention (Vaswani et al., 2017) becomes a critical bottleneck. While methods like sliding window and linear attention (Dai et al., 2019, Fu et al., 2025, Wang et al., 2025, Shen et al., 2024) reduce this complexity to a linear scale, their respective mechanisms of

Yuhong Chou: yuhong.chou@connect.polyu.hk; Corresponding author: Jibin Wu

Orthros: Phase-Aware Heterogeneous Attention for Efficient Transformers

key-value (KV) eviction and state compression severely degrade in-context recall (Arora et al., 2024, 2023a), especially in extended contexts. To mitigate this issue, hybrid Transformers that spatially mix linear and full attention (Li et al., 2025, Lieber et al., 2024, Dong et al., 2024, Team et al., 2025b, Blakeman et al., 2025) have emerged as the prevailing industry solution to balance performance and efficiency. However, such hybridization implies that the model's overall asymptotic complexity remains bottlenecked by its most computationally intensive component: full attention. Consequently, hybrid Transformers ultimately yield only a constant-factor speedup, effectively eclipsing the linear complexity advantage inherent to the efficient attention modules.

We propose Orthros attention, an efficient attention mechanism that maintains a favorable subquadratic complexity property without KV eviction or compression, thereby preserving in-context recall in prevalent long-context scenarios. Its core insight lies in shifting the allocation of computational complexity from the structural dimension to the distinct phases. Specifically, Orthros attention applies sliding window attention across the entire sequence, while selectively performing additional full attention at positions tasked with next-token prediction. By adopting distinct computational paradigms, this mechanism perfectly aligns with modern hardware realities: it maintains highly efficient linear complexity during the compute-intensive prefilling phase, while the heavier decoding computation is effectively masked by inherent memory I/O bottlenecks. Through our algorithmic design, these heterogeneous computations are encapsulated within a unified Orthros attention layer, while simultaneously ensuring strict consistency between training and inference. By functioning as a self-contained module, this formulation does not require broader architectural changes, such as cross-layer attention and decoder-decoder designs, thereby preserving the plug-and-play capability to convert existing well-trained foundation models.

Empirically, we conduct comprehensive experiments to validate Orthros attention across diverse scales and settings. First, using a controlled token budget, we verify the architecture's scalability from 160M to 6.8B parameters and perform detailed component ablations to justify our design choices. Second, we pre-train a 1.3B parameter Orthros model from scratch on 100B tokens, demonstrating that it achieves performance highly comparable to strong Transformer baselines. Third, we validate its plug-and-play capability by converting well-trained base models, specifically Llama3.1-8B and Qwen3-8B. Compared to models continually trained on equivalent data volumes, the converted Orthros models deliver performance comparable to or exceeding the original architecture. Fourth, evaluations on in-context recall tasks show that our pre-trained models match Transformer-level performance; notably, in long-context extension, Orthros achieves near-perfect retrieval accuracy on the 128K needle-in-a-haystack test. Fifth, system-level profiling of prefilling efficiency reveals that Orthros yields up to a 21.9×21.9\times speedup at an extreme sequence length of one million tokens. Finally, end-to-end inference results confirm that this acceleration translates into tangible overall gains, with the doubled FLOP count during decoding effectively masked by the I/O-bound nature of the phase. Together, our theoretical and empirical results validate that the Orthros Transformer delivers performance and efficiency competitive with or superior to strong Transformer baselines, positioning it as a highly promising successor to the Transformer architecture.

References (93)