Attention is a core operation in large language models (LLMs). We present BD Attention (BDA), a lossless algorithmic reformulation of attention. BDA is enabled by a simple matrix identity from Basis Decomposition (BD), which restructures multi-head projections into a compact form while preserving exact outputs. Unlike I/O-aware system optimizations such as FlashAttention, BDA provides a mathematically guaranteed acceleration that is architecture-agnostic. On DeepSeek-V2-Lite (16B, FP16), BDA requires only 4s of offline preparation with no retraining required and, on modern GPUs, achieves 34% faster key/value projections and 25% smaller weights, while increasing perplexity (PPL) by just 0.02% (FP16) or 0.0004% (FP32), a negligible effect on model performance. These results position BDA as a theoretically exact method for lossless attention acceleration that is complementary to existing engineering-level optimizations. Our code is available at https://github.com/abcbdf/basis-decomposition-official.
Accelerating nuclear-norm regularized low-rank matrix optimization through Burer-Monteiro decomposition
Institute of Statistical Mathematics(统计数学研究所);Department of Mathematics University of Maryland at College Park(大学数学系);Institute of Operations Research and Analytics National University of Singapore(运营研究与分析国家大学研究所);Department of Mathematics and Institute of Operations Research and Analytics National University of Singapore(大学数学系和运营研究与分析国家大学研究所)
Finite basis Kolmogorov-Arnold networks: domain decomposition for data-driven and physics-informed problems
Pacific Northwest National Laboratory(太平洋西北国家实验室);University of North Carolina, Charlotte(北卡罗来纳大学夏洛特分校);Delft University of Technology(代尔夫特理工大学);University of Washington, Applied Mathematics(华盛顿大学应用数学系);Brown University, Applied Mathematics(布朗大学应用数学系)
Accelerating physics-informed neural networks for full waveform inversion using a hybrid quantum-classical finite-basis architecture
Department of Geophysics, Colorado School of Mines(地质学系,科罗拉多矿业学院);Department of Energy Science and Engineering, Stanford University(能源科学与工程系,斯坦福大学);Department of Petroleum Engineering, Colorado School of Mines(石油工程系,科罗拉多矿业学院)