Google AI Blog

Mixed-input matrix multiplication performance optimizations

Posted by Manish Gupta, Staff Software Engineer, Google Research AI-driven technologies are weaving themselves into the fabric of our daily routines, with the potential to enhance our access to knowledge and boost our overall productivity. The backbone of these applications lies in large language models (LLMs).

arXiv AI
Oct 1

Space Filling Curves is All You Need: Communication-Avoiding Matrix Multiplication Made Simple

The paper proposes a new matrix multiplication approach called SFC-CA GEMM that uses space‑filling curves to partition work in a platform‑ and shape‑oblivious way, achieving communication‑avoiding properties. It demonstrates provable asymptotic communication optimality for both square and rectangular matrices and outperforms vendor libraries on multiple x86 and Arm platforms, with speedups up to 5.5× for specific shapes and 1.8× in weighted harmonic mean throughput. The method is applied to real‑world tasks, improving large‑language‑model inference by up to 1.85× and distributed‑memory GEMM by up to 2.3× over state‑of‑the‑art frameworks.

By Evangelos Georganas, Alexander Heinecke, Pradeep Dubey
arXiv AI
Jul 14

CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learning

arXiv:2512. 02551v3 Announce Type: replace-cross Abstract: In this paper, we propose CUDA-L2, a system that combines large language models (LLMs) and reinforcement learning (RL) to automatically optimize Half-precision General Matrix Multiply (HGEMM) CUDA kernels.

By Songqiao Su, Xiaoya Li, Albert Wang, Guoyin Wang, Jiwei Li, Chris Shum
arXiv AI
Nov 6

CAMP: Context-Aware Mapping and Placement for LLMs on 3D-IMC Arrays

CAMP is a software-based, inference‑context‑aware weight mapping algorithm designed for 3D-IMC arrays used in large language model (LLM) accelerators. By constructing a conflict matrix that captures resource contention from the architecture, network, and runtime context, CAMP optimizes weight placement to improve concurrency of matrix‑vector multiplications. The algorithm uses a profiling‑driven feedback loop to prune the search space, achieving practical runtimes and boosting 3D‑IMC compute utilization from 42.4% to 60.3%, which translates to up to 2.0× higher 3D‑IMC throughput and 1.74× higher end‑to‑end throughput compared to existing mapping methods.

By Orhun G\"orkem, Athanasios Vasilopoulos, Georgios Pagonis, Victoria Clerico, Hadjer Benmeziane, Irem Boybat, Hsinyu Tsai, Abu Sebastian, William Andrew Simon
arXiv Machine Learning
Nov 6

ZYFA: Speed and Accuracy of FP8 FlashAttention on AMD CDNA4

ZYFA is a set of prefill kernels for AMD Instinct MI355X that accelerate FP8 FlashAttention by computing probabilities directly, using a ping‑pong thread schedule, and scaling probabilities before rounding. Compared with the vendor’s AITER kernels, ZYFA delivers 1.16–1.76× higher throughput on real model activations and up to 1.99× on benchmarked Gaussian inputs, while maintaining numerical error within a few percent of state‑of‑the‑art alternatives.

By Quentin Anthony, Ganesh Bikshandi, Praneeth Medepalli, Stephen Ebert
arXiv Machine Learning
Oct 3

TACO: Ternary Absolute-max Column-wise One-sparse Optimizer for LLM Fine-Tuning

The paper introduces TACO, a new optimizer for fine‑tuning large language models that drastically reduces optimizer state memory while preserving first‑order gradients. TACO selects the sign of the largest magnitude entry in each column of weight matrices, achieving a 174× reduction in persistent optimizer memory compared to AdamW8bit and a 2.9× decrease in peak training memory on OPT‑13B. This allows full‑parameter fine‑tuning of 30–32B‑parameter models on a single 80 GB GPU across multiple model families and tasks, with comparable accuracy and runtime to existing methods.

By Jichao Jiang (University of Central Florida), Cristian McGee (University of Central Florida), El Houcine Bergou (Mohammed VI Polytechnic University), Hanqin Cai (University of Central Florida), Aritra Dutta (University of Central Florida)
arXiv Machine Learning
Jun 30

DCC: Data-Centric Compilation of Machine Learning Kernels for Processing-In-Memory Architectures

arXiv:2511. 15503v3 Announce Type: replace-cross Abstract: High-performance Host processors can integrate Processing-In-Memory (PIM) devices, which can accelerate memory-intensive kernels of Machine Learning (ML) models, including Large Language Models (LLMs), by leveraging the large memory bandwidth available at PIM cores.

By Peiming Yang, Sankeerth Durvasula, Ivan Fernandez, Mohammad Sadrosadati, Onur Mutlu, Gennady Pekhimenko, Christina Giannoula
Google AI Blog
Mar 14, 2024

Cappy: Outperforming and boosting large multi-task language models with a small scorer

Posted by Yun Zhu and Lijuan Liu, Software Engineers, Google Research Large language model (LLM) advancements have led to a new paradigm that unifies various natural language processing (NLP) tasks within an instruction-following framework. This paradigm is exemplified by recent multi-task LLMs, such as T0 , FLAN , and OPT-IML .

By Google AI
arXiv AI
Nov 6

ActQuant: Sub-4-bit Action-Guided Backbone Weight-Only Quantization for Vision-Language-Action Models

ActQuant is a mixed‑precision post‑training quantization framework that reduces Vision‑Language‑Action model weights to sub‑4‑bit precision. It first allocates a single bit‑width to each weight matrix based on its contribution to action prediction, then optimizes per‑block scales using action‑aware curvature to focus dynamic range on control‑critical weights. Coupled with the OmniModel.cpp conversion pipeline, ActQuant enables deployment on edge devices, achieving up to 2.5 bits‑per‑weight while preserving over 90 % of baseline performance on both simulation and a real 6‑DoF UR3 robotic arm.

By Arash Akbari, Arman Akbari, Masih Eskandar, Qitao Tan, Yixiao Chen, Jingwu Luo, Bertha Pangaribuan, Liyun Zhang, Jennifer Dy, Geng Yuan, Xue Lin, Gaowen Liu, Stratis Ioannidis, Yanzhi Wang