Google AI Blog By Google AI

Mixed-input matrix multiplication performance optimizations

Read the original on Google AI Blog →

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).

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at Google AI Blog.

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