GRATING: Low-Latency and Memory-Efficient Semantic Selection on Device
Zhou, Jiahao, Lin, Chengliang, Li, Dingji, Dong, Mingkai, Chen, Haibo
–arXiv.org Artificial Intelligence
Semantic top-K selection with cross-encoder rerankers underpins of on-device AI services, such as retrieval-augmented generation, agent memory, and personalized recommendation. However, its latency and memory demands dominate end-to-end budgets on edge hardware. Revisiting the objective of top-K selection, we reveal that only relative rankings matter, not exact per-candidate scores. We further observe sequence-level sparsity: relative rankings stabilize early in intermediate layers, allowing pruning opportunities prior to completing full inference. Building on this insight, we propose monolithic forwarding and develop a training-free inference system, GRATING. By maintaining a global view of all candidates, it reduces latency through progressive cluster pruning. It also bounds peak memory usage by strategically overlapping I/O with computation via dual-layer sliding window and chunked execution. We evaluate GRATING against state-of-the-art baselines on rerankers from 0.6B to 8B parameters across Apple M2 and RTX 5070. GRATING consistently reduces latency by up to 89.0% and peak memory by up to 94.9% in microbenchmarks, without any loss in precision. Across three real-world on-device AI applications, GRATING lowers latency by 11.6%-51.0% and peak memory by 18.6%-77.8%, demonstrating substantial improvements in efficiency and deployability.
arXiv.org Artificial Intelligence
Oct-20-2025
- Country:
- Asia
- Europe
- Germany (0.04)
- Slovenia > Drava
- Municipality of Benedikt > Benedikt (0.04)
- North America
- Canada > British Columbia
- United States
- California
- Los Angeles County > Long Beach (0.04)
- Santa Clara County > Santa Clara (0.04)
- District of Columbia > Washington (0.04)
- Florida > Miami-Dade County
- Miami (0.04)
- New York > New York County
- New York City (0.04)
- Washington > King County
- Seattle (0.04)
- California
- Genre:
- Research Report (1.00)
- Industry:
- Information Technology (0.94)
- Media > Film (0.46)
- Technology: