Papers
arxiv:2607.21927

RIS-Kernel: A Model-Agnostic Architecture for Long-Context LLM Inference via Sparse Attention

Published on Jul 24

Abstract

Full self-attention in large language models scales as O(N^2), which limits long-context document analysis to 65,536 tokens and requires costly GPU clusters. The Reduced Interaction Sampling (RIS) inference engine addresses this constraint as a model-agnostic architecture. Without modifying weights, RIS reduces self-attention complexity to O(N log N) using sparse stochastic geometry that fits within commodity memory limits. We validate RIS on Qwen2-1.5B-Instruct across two regimes. In controlled evaluations at 32,768 tokens (where native dense attention serves as the upper bound), RIS-Stochastic at 1% density and 70 ensemble seeds achieves 75.00% accuracy, outperforming the native dense baseline (71.88%), while RIS-Stochastic at 5% density and 10 seeds matches it (71.88%). This demonstrates that sparse attention acts as a regularizer: low density (1%) over multiple seeds filters out sequence-level noise, whereas higher density (5%) reintroduces distractor noise. Under the tightest budget, RIS-Structural reaches 68.75% accuracy at 1% density with just 10 seeds, recovering 75% of the contextual gap relative to the zero-context floor (59.38%). At 65,536 tokens, where dense attention triggers out-of-memory faults, RIS yields retrieval gains of up to 14.06 percentage points over the zero-context floor (51.56%), which is confirmed as marginally significant under McNemar's paired test (p = 0.078 < 0.10). All evaluations run on commodity, unaccelerated CPU servers (16-128 GB of RAM), demonstrating that long-context LLM inference is feasible on standard academic hardware without GPU acceleration.

Community

๐ŸŽฅ Demo of #RISKernel running Qwen2.5 on an 18k-token context without dedicated GPUs! Ingested full theoretical & practical research articles to answer deep technical queries.

Replicate or test it yourself via my Hugging Face Space & Google Colab:
๐Ÿ”— https://huggingface.co/spaces/santosardr/ris-kernel-demo
#LLM #AI #Transformers #SparseAttention

This is a more detailed explanation of the RIS-Kernel architecture. The video was made for:
Conference Name: The 25th International Conference on Information and Knowledge Engineering (IKE 2026)
Co-located With: The 2026 World Congress in Computer Science, Computer Engineering, and Applied Computing (CSCE 2026)
Dates: July 20-23, 2026
Venue: Las Vegas, Nevada, USA
Publisher of Proceedings: CSREA Press (Computer Science Research, Education, and Applications Press) in collaboration with Springer Nature.

https://www.youtube.com/watch?v=paIP6V0pv8M&t=16s

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2607.21927
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2607.21927 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2607.21927 in a dataset README.md to link it from this page.

Spaces citing this paper 1

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.