paper-with-me

홈 › Papers

Karatsuba Matrix Multiplication and its Efficient Custom Hardware Implementations

2025-01-15 · Trevor E. Pogue, Nicola Nicolici

While the Karatsuba algorithm reduces the complexity of large integer multiplication, the extra additions required minimize its benefits for smaller integers of more commonly-used bitwidths. In this work, we propose the extension of the scalar Karatsuba multiplication algorithm to matrix multiplication, showing how this maintains the reduction in multiplication complexity of the original Karatsuba algorithm while reducing the complexity of the extra additions. Furthermore, we propose new matrix multiplication hardware architectures for efficiently exploiting this extension of the Karatsuba algorithm in custom hardware. We show that the proposed algorithm and hardware architectures can provide real area or execution time improvements for integer matrix multiplication compared to scalar Karatsuba or conventional matrix multiplication algorithms, while also supporting implementation through proven systolic array and conventional multiplier architectures at the core. We provide a complexity analysis of the algorithm and architectures and evaluate the proposed designs both in isolation and in an end-to-end deep learning accelerator system compared to baseline designs and prior state-of-the-art works implemented on the same type of compute platform, demonstrating their ability to increase the performance-per-area of matrix multiplication hardware.

📄 PDF Abstract BibTeX arXiv:2501.08889

Code (1)

trevorpogue/algebraic-nnhw 공식 구현 pytorch

Similar 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 dir…

Low-Rank GEMM: Efficient Matrix Multiplication via Low-Rank Approximation with FP8 Acceleration

2025-11-24 · Alfredo Metere arxiv

Large matrix multiplication is a cornerstone of modern machine learning workloads, yet traditional approaches suffer from cubic computational complexity (e.g., $\mathcal{O}(n^3)$ for a matrix of size $n\times n$). We pre…

LUT Tensor Core: A Software-Hardware Co-Design for LUT-Based Low-Bit LLM Inference

2024-08-12 · Zhiwen Mo, Lei Wang, Jianyu Wei, Zhichen Zeng 외

As large language model (LLM) inference continues to demand increasing computational resources, there is a rapidly growing trend toward using low-bit weights to reduce memory footprint and improve inference efficiency. H…

Code GenerationLanguage ModellingLarge Language Model

Accelerating Machine Learning Primitives on Commodity Hardware

2023-10-08 · Roman Snytsar

Sliding Window Sum algorithms have been successfully used for training and inference of Deep Neural Networks. We have shown before how both pooling and convolution 1-D primitives could be expressed as sliding sums and ev…

CPUModel Compression

Towards Memory-Efficient Training for Extremely Large Output Spaces -- Learning with 500k Labels on a Single Commodity GPU

2023-06-06 · Erik Schultheis, Rohit Babbar

In classification problems with large output spaces (up to millions of labels), the last layer can require an enormous amount of memory. Using sparse connectivity would drastically reduce the memory requirements, but as …

GPU