الملخص
Hybrid architectures combining linear sequence models with softmax attention provide an effective balance between efficient long-context modeling and precise token retrieval. Existing designs such as Native Hybrid Attention (NHA) combine compressed long-term states with sliding-window attention, but their exact attention is restricted to a fixed local window. In this work, we introduce Prefix-State Hybrid Block Attention (PHBA), which replaces local sliding-window attention with top-k block-sparse retrieval and couples each retrieved block with a compact prefix state summarizing its preceding context. The prefix states are constructed by a gated linear recurrence at block boundaries and retrieved together with the corresponding token blocks, allowing the model to combine precise long-range evidence with compressed historical context within a unified layer. We further develop a hardware-aware Triton implementation that streams routed token blocks and prefix states without materializing large intermediate tensors. Experiments show that PHBA improves long-context and retrieval performance over strong linear and hybrid baselines while retaining efficient training and inference.
الكلمات المفتاحية
الموضوع
بيانات النشر
- المجلة
- غير متاح
- وصول مفتوح
- وصول مفتوح أخضر
اقتبس هذه المقالة
APA 7
Li, R., Hu, J., Wang, S., & Liang, Y. (2026). PHBA: Prefix-State Hybrid Block Attention. https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention
MLA 9
Li, Ruijie, et al. "PHBA: Prefix-State Hybrid Block Attention." https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention.
شيكاغو (المؤلف–التاريخ)
Li, Ruijie, Jiaxi Hu, Shiyu Wang, and Yuxuan Liang. 2026. "PHBA: Prefix-State Hybrid Block Attention." https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention.
هارفارد
Li, R., Hu, J., Wang, S. and Liang, Y. (2026) 'PHBA: Prefix-State Hybrid Block Attention', Available at: https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention.
فانكوفر
Li R, Hu J, Wang S, Liang Y. PHBA: Prefix-State Hybrid Block Attention. https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention
IEEE
R. Li, J. Hu, S. Wang, and Y. Liang, "PHBA: Prefix-State Hybrid Block Attention," https://omanscience.com/ar/articles/phba-prefix-state-hybrid-block-attention.