GQLSA: Grouped-Query Latent Sparse Attention: A Hardware-Native Architecture for Efficient and Effective Sequence Modeling

We introduce Grouped-Query Latent Sparse Attention (GQLSA), a novel attention mechanism that integrates latent compression, grouped-query sharing, and block-sparse attention into a unified hardware-native architecture. GQLSA achieves linear O(T) complexity in sequence length, a 3.8x speedup over multi-head attention at sequence length 4096, a 2.2x reduction in peak memory consumption, and a 16x smaller KV cache—while maintaining language modeling quality on par with dense baselines (perplexity 13.06 versus 13.12 for MHA on WikiText-2). We present the complete mathematical formulation, algorithmic pseudocode, causal correctness verification, and comprehensive empirical evaluation across speed, memory, and quality dimensions.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-08
DOI
https://doi.org/10.5281/zenodo.22658037
Primary Topic
Natural Language Processing Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

GQLSA: Grouped-Query Latent Sparse Attention: A Hardware-Native Architecture for Efficient and Effective Sequence Modeling

Fardin Sabid
Zenodo (CERN European Organization for Nuclear Research)
Natural Language Processing Techniques
preprint

GQLSA: Grouped-Query Latent Sparse Attention: A Hardware-Native Architecture for Efficient and Effective Sequence Modeling

Fardin Sabid
preprint en

Abstract

We introduce Grouped-Query Latent Sparse Attention (GQLSA), a novel attention mechanism that integrates latent compression, grouped-query sharing, and block-sparse attention into a unified hardware-native architecture. GQLSA achieves linear O(T) complexity in sequence length, a 3.8x speedup over multi-head attention at sequence length 4096, a 2.2x reduction in peak memory consumption, and a 16x smaller KV cache—while maintaining language modeling quality on par with dense baselines (perplexity 13.06 versus 13.12 for MHA on WikiText-2). We present the complete mathematical formulation, algorithmic pseudocode, causal correctness verification, and comprehensive empirical evaluation across speed, memory, and quality dimensions.

Zenodo (CERN European Organization for Nuclear Research)
Quality Education
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.