English

Towards Sampling Data Structures for Tensor Products in Turnstile Streams

Machine Learning 2025-10-07 v1 Machine Learning

Abstract

This paper studies the computational challenges of large-scale attention-based models in artificial intelligence by utilizing importance sampling methods in the streaming setting. Inspired by the classical definition of the 2\ell_2 sampler and the recent progress of the attention scheme in Large Language Models (LLMs), we propose the definition of the attention sampler. Our approach significantly reduces the computational burden of traditional attention mechanisms. We analyze the effectiveness of the attention sampler from a theoretical perspective, including space and update time. Additionally, our framework exhibits scalability and broad applicability across various model architectures and domains.

Keywords

Cite

@article{arxiv.2510.03678,
  title  = {Towards Sampling Data Structures for Tensor Products in Turnstile Streams},
  author = {Zhao Song and Shenghao Xie and Samson Zhou},
  journal= {arXiv preprint arXiv:2510.03678},
  year   = {2025}
}
R2 v1 2026-07-01T06:16:47.713Z