paper-with-me

홈 › Papers

HadaCore: Tensor Core Accelerated Hadamard Transform Kernel

2024-12-12 · Krish Agarwal, Rishi Astra, Adnan Hoque, Mudhakar Srivatsa, Raghu Ganti, Less Wright, Sijia Chen

We present HadaCore, a modified Fast Walsh-Hadamard Transform (FWHT) algorithm optimized for the Tensor Cores present in modern GPU hardware. HadaCore follows the recursive structure of the original FWHT algorithm, achieving the same asymptotic runtime complexity but leveraging a hardware-aware work decomposition that benefits from Tensor Core acceleration. This reduces bottlenecks from compute and data exchange. On Nvidia A100 and H100 GPUs, HadaCore achieves speedups of 1.1-1.4x and 1.0-1.3x, with a peak gain of 3.5x and 3.6x respectively, when compared to the existing state-of-the-art implementation of the original algorithm. We also show that when using FP16 or BF16, our implementation is numerically accurate, enabling comparable accuracy on MMLU benchmarks when used in an end-to-end Llama3 inference run with quantized (FP8) attention.

📄 PDF Abstract BibTeX arXiv:2412.08832

Code (1)

pytorch-labs/applied-ai 공식 구현 pytorch

Tasks

GPUMMLU

Similar Papers 제목 키워드 기반

A TensorFlow implementation of Local Binary Patterns Transform

2021-06-30 · MANAS Journal of Engineering 2021 6 · Devrim Akgun

Feature extraction layers like Local Binary Patterns (LBP) transform can be very useful for improving the accuracy of machine learning and deep learning models depending on the problem type. Direct implementations of suc…

CPUGPU

Fast Walsh-Hadamard Transform and Smooth-Thresholding Based Binary Layers in Deep Neural Networks

2021-04-14 · Hongyi Pan, Diaa Dabawi, Ahmet Enis Cetin

In this paper, we propose a novel layer based on fast Walsh-Hadamard transform (WHT) and smooth-thresholding to replace $1\times 1$ convolution layers in deep neural networks. In the WHT domain, we denoise the transform …

AdaHOP: Fast and Accurate Low-Precision Training via Outlier-Pattern-Aware Rotation

2026-04-02 · Seonggon Kim, Alireza Khodamoradi, Pranathi Vasireddy, Kristof Denolf 외 arxiv

Hadamard transforms have become a key tool for stabilizing low-precision training, but existing methods apply them uniformly across tensors and computation paths. We show that this one-size-fits-all strategy is inherentl…

Kernel Regression of Multi-Way Data via Tensor Trains with Hadamard Overparametrization: The Dynamic Graph Flow Case

2025-09-26 · Duc Thien Nguyen, Konstantinos Slavakis, Eleftherios Kofidis, Dimitris Pados arxiv

A regression-based framework for interpretable multi-way data imputation, termed Kernel Regression via Tensor Trains with Hadamard overparametrization (KReTTaH), is introduced. KReTTaH adopts a nonparametric formulation …

HyperQuant: A Rate-Distortion-Optimal Quantization Pipeline for Large Language and Diffusion Models

2026-06-22 · Yuval Domb, Hadar Sackstein, Tomer Solberg arxiv

We present HyperQuant (Hadamard, optimallY Packing, Entropy Rice-coding), a unified post-training quantization pipeline for the weights and the KV cache of large language and diffusion transformers. Across a suite of sel…