Unknown

Dataset Information

Contextual priority attention enables linear time sequence modeling in transformers.


ABSTRACT: The quadratic computational complexity of the self-attention mechanism in Transformer models severely constrains their applicability to long sequence inputs. We propose Contextual Priority Attention (CPA), a novel attention mechanism that reduces computational complexity from [Formula: see text] to [Formula: see text] theoretically, with experimentally observed linear scaling, while preserving the essential contextual modeling capabilities of traditional attention. Unlike existing efficient attention variants that approximate the full attention matrix, CPA fundamentally reimagines attention as a global-context-driven priority system. Our approach first computes a Global Context Vector (GCV) to capture the overall sequence information, then uses this context to assign priority scores to ind

SUBMITTER: Khaled KB 

PROVIDER: S-EPMC12828051 | biostudies-literature | 2025 Dec

REPOSITORIES: biostudies-literature