paper-with-me

홈 › Papers

RSR-core: A High-Performance Engine for Low-Bit Matrix-Vector Multiplication

2026-03-29 · Mohsen Dehghankar, Abolfazl Asudeh arxiv

Matrix-vector multiplication is a fundamental building block in neural networks, vector databases, and large language models, particularly during inference. As a result, efficient matrix-vector multiplication engines directly translate into more efficient inference. Recent work has explored low-bit quantization of model weights, where matrices are represented using binary (1-bit) or ternary (1.58-bit) values while activation is kept in higher precision. These representations enable efficient hardware-level computation. In parallel, algorithms such as Redundant Segment Reduction (RSR) provide theoretical guarantees for accelerating low-bit matrix-vector multiplication. However, existing implementations operate at the application level and cannot be efficiently integrated into hardware kernels, limiting practical performance. To bridge this gap, we present RSR-core, a high-performance engine that implements the RSR algorithm as optimized low-level kernels for both CPU and CUDA environments. RSR-core supports efficient matrix-vector multiplication for binary and ternary weight matrices and general vectors while enabling practical deployment of RSR algorithm in real inference pipelines. RSR-core is provided as a production-ready engine with HuggingFace integration for preprocessing low-bit models and running accelerated inference. Experimental results demonstrate significant performance improvements over baseline HuggingFace PyTorch multiplication, achieving up to 62x speedup on CPU and up to 1.9x speedup for token generation on CUDA for popular ternary LLMs. The source code is publicly available at https://github.com/UIC-InDeXLab/RSR-core.

📄 PDF Abstract BibTeX arXiv:2603.27462

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SMEPilot: Characterizing and Optimizing LLM Inference with Scalable Matrix Extensions

2026-06-15 · Feiyang Chen, Haibo Chen arxiv

Modern CPUs increasingly integrate matrix extensions, such as Arm Scalable Matrix Extension (SME), that provide high-throughput matrix execution within the CPU. For LLM inference, however, these units are not a universal…

Leveraging ASIC AI Chips for Homomorphic Encryption

2025-01-13 · Jianming Tong, Tianhao Huang, Leo de Castro, Anirudh Itagi 외

Cloud-based services are making the outsourcing of sensitive client data increasingly common. Although homomorphic encryption (HE) offers strong privacy guarantee, it requires substantially more resources than computing …

Bus Admittance Matrix Revisited: Is It Outdated on Modern Computers?

2023-02-21 · Hantao Cui

Bus admittance matrix is widely used in power engineering for modeling networks. Being highly sparse, it requires fewer CPU operations when used for calculations. Meanwhile, sparse matrix calculations involve numerous in…

CPU

EFQ-Softmax: Exp-Free Quantization for Softmax

2026-09-09 · Haohui Han, Yuming Wan, Hongni Wang, Pengcheng Xie 외 arxiv

Low-bit attention accelerates Transformer inference by moving the $QK^\top$ and $PV$ matrix multiplications to FP8 or FP4 matrix engines. However, the softmax path often evaluates shifted-score exponentials in higher pre…

Yelp Review Rating Prediction: Machine Learning and Deep Learning Models

2020-12-12 · Zefang Liu

We predict restaurant ratings from Yelp reviews based on Yelp Open Dataset. Data distribution is presented, and one balanced training dataset is built. Two vectorizers are experimented for feature engineering. Four machi…

BIG-bench Machine LearningDeep LearningFeature Engineeringregression