Manuscript Offprint

arXiv:2611.04469

EvoCG: Self-Evolving Precision Control for Faster Conjugate Gradient

Jiaqi Zhai, Haozhi Han, Kaiyi Huang, Wenju Zhao, Yifeng Chen, Yunquan Zhang, Ting Cao, Yunxin Liu, Hai Jin, Xuanhua Shi, Kun Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jiaqi Zhai ∗†‡^{*}\dagger\ddagger

jqzhai@hust.edu.cn

Huazhong University of Science and Technology

Wuhan, China

Wenju Zhao ‡^{\ddagger}

wjzh@hust.edu.cn

Huazhong University of Science and Technology

Wuhan, China

Haozhi Han ∗†^{*}\dagger

haozhi.han@stu.pku.edu.cn

School of Computer Science, Peking University

Beijing, China

Ting Cao

tingcao@mail.tsinghua.edu.cn

Institute for AI Industry Research,

Tsinghua University

Beijing, China

Yifeng Chen

cyf@pku.edu.cn

School of Computer Science, Peking University

Beijing, China

Kaiyi Huang ‡^{\ddagger}

huangky@hust.edu.cn

Huazhong University of Science and Technology

Wuhan, China

Yunquan Zhang

zyq@ict.ac.cn

Institute of Computing Technology,

Chinese Academy of Sciences

Beijing, China

Yunxin Liu

liuyunxin@air.tsinghua.edu.cn

Institute for AI Industry Research,

Tsinghua University

Beijing, China

Hai Jin ‡^{\ddagger}

hjin@hust.edu.cn

Huazhong University of Science and Technology

Wuhan, China

Xuanhua Shi ∗‡^{*}\ddagger

xhshi@hust.edu.cn

Huazhong University of Science and Technology

Wuhan, China

Kun Li ∗^{*}

likungw@gmail.com

Institute for AI Industry Research,

Tsinghua University

Beijing, China

Abstract

Modern GPUs offer far higher throughput in low precision than in FP64, but exploiting this in conjugate gradient (CG) solvers is difficult because tolerance to reduced precision evolves with the Krylov state. We present EvoCG, a mixed-precision CG solver that treats tile-wise precision as an online control action rather than a fixed setting: a reinforcement-learning policy in the iteration loop selects per-tile precision from the evolving solver state, made profitable by co-design with a Tile-CSC unified mixed-precision SpMV kernel and a low-overhead in-loop runtime. Across 47 SPD matrices from eight scientific domains, EvoCG is the fastest solver overall, with geometric-mean speedups of 2.52×2.52\times, 3.06×3.06\times, 2.48×2.48\times, 1.93×1.93\times, and 6.99×6.99\times over cuSPARSE, PETSc, Ginkgo, Mille-FP64, and Mille-Mixed. On the same substrate, it improves time-to-solution over EvoCG-FP64 by 1.28×1.28\times at only 11.4% more iterations and 1.09% overhead, with FP64-recomputed final true-residual norms nearly identical to those of FP64, and extends to Jacobi-preconditioned

CG without retraining, yielding a further 1.15×1.15\times geometric-mean speedup over EvoCG-FP64.

Keywords

Conjugate Gradient, Mixed-Precision Computing, Reinforcement Learning, GPU Acceleration

References (32)