FPT-Agent: An LLM Agent for Mixed Precision Optimization with Numerical Feedback

Mixed precision tuning can reduce the execution time and memory footprint of scientific programs, but selecting an effective floating point format requires both numerical analysis and knowledge of the target hardware. In practice, numerical formats must be coordinated with data layout, precision conversions, and the available execution units. We present FPT-Agent, a large language model (LLM) agent framework for end-to-end automatic mixed precision tuning of C/C++ and CUDA programs. The framework combines LLVM program analysis, hardware capability detection, and numerical validation tools. An LLM planner uses this information and persistent agent memory to choose numerical diagnostics, request calibration inputs, and propose precision configurations. The planner uses compilation, accuracy, and performance results as feedback to update its decisions, with storage, computation, and accumulation formats modeled separately. When hardware optimization is enabled, the planner jointly explores precision assignments and compatible CPU SIMD, CUDA SIMT, and Tensor Core implementations. For each candidate, compiler transformations generate the corresponding programs for supported regions and data structures. A deterministic execution pipeline enforces compatibility and resource constraints, accepting a transformed program only after it satisfies the prescribed accuracy requirements and demonstrates a measured improvement in runtime or memory use over the original.

Authors

Publication Details

Journal
HAL
Published
2026-12-01
Primary Topic
Parallel Computing and Optimization Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

FPT-Agent: An LLM Agent for Mixed Precision Optimization with Numerical Feedback

Xiaofan Chen, Erin Carson, Xinye Chen
HAL
Parallel Computing and Optimization Techniques
preprint

FPT-Agent: An LLM Agent for Mixed Precision Optimization with Numerical Feedback

Xiaofan Chen, Erin Carson, Xinye Chen
preprint en

Abstract

Mixed precision tuning can reduce the execution time and memory footprint of scientific programs, but selecting an effective floating point format requires both numerical analysis and knowledge of the target hardware. In practice, numerical formats must be coordinated with data layout, precision conversions, and the available execution units. We present FPT-Agent, a large language model (LLM) agent framework for end-to-end automatic mixed precision tuning of C/C++ and CUDA programs. The framework combines LLVM program analysis, hardware capability detection, and numerical validation tools. An LLM planner uses this information and persistent agent memory to choose numerical diagnostics, request calibration inputs, and propose precision configurations. The planner uses compilation, accuracy, and performance results as feedback to update its decisions, with storage, computation, and accumulation formats modeled separately. When hardware optimization is enabled, the planner jointly explores precision assignments and compatible CPU SIMD, CUDA SIMT, and Tensor Core implementations. For each candidate, compiler transformations generate the corresponding programs for supported regions and data structures. A deterministic execution pipeline enforces compatibility and resource constraints, accepting a transformed program only after it satisfies the prescribed accuracy requirements and demonstrates a measured improvement in runtime or memory use over the original.

HAL
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon