arXiv:2610.10487cs.DCOct 2026

Manuscript Offprint

arXiv:2610.10487

LOCAA: An Agentic System for Automated Lossy Compressor Tuning

Khondoker Mirazul Mumenin, Dong Dai, Sheng Di, Franck Cappello, Jinzhen Wang

Khondoker Mirazul Mumenin*, Dong Dai†, Sheng Di‡, Franck Cappello‡, Jinzhen Wang*

*University of North Carolina at Charlotte kmumenin@charlotte.edu, jwang96@charlotte.edu

†University of Delaware dai@udel.edu

‡Argonne National Laboratory sdil@anl.gov, cappello@mcs.anl.gov

Abstract—Large-scale scientific simulations generate substantial data volumes, making lossy compression essential for reducing storage and data movement costs. However, users configure compressors through numerical error bounds (EBs) while often evaluating results using quality metrics and end-to-end performance. Because the relationship between an EB and these outcomes varies across datasets and compressors, identifying a suitable configuration typically requires exhaustive search, which can be time-consuming and computationally demanding. We present LOCAA, an Large language model-based scientific lossy compression auto-tuning agent that performs compression-in-the-loop search using tool-integrated execution, compressor-aware guidance, and persistent memory. LOCAA supports user-defined objectives and constraints without requiring a specialized search strategy. We evaluate LOCAA across three scientific applications, five compressors, and three use cases: fixed-ratio compression, compression tuning under multiple quality constraints, and compression tuning under quality and time constraints. For fixed-ratio search across twelve fields from two applications, LOCAA requires 1.98×1.98 \times fewer evaluation trials than binary search and 5.03×5.03 \times fewer than FRaZ on average. For compression ratio (CR) maximization under joint Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index Measure (SSIM) constraints across six fields from the Community Earth System Model (CESM) application, LOCAA reduces the average evaluation trials from 61.5 using binary search to 17, corresponding to a 72.4% reduction. Persistent memory further reduces the average number of trials by 27.9% across multiple timesteps of the same field. These results demonstrate the potential of tool-augmented LLM agents to provide flexible and efficient compressor tuning across diverse scientific data and user-defined objectives.

Index Terms—Scientific lossy compression, large language model agents, auto-tuning, high-performance computing, error-bounded compression

I. INTRODUCTION

Recent advances in computing have accelerated scientific discovery and enabled increasingly large-scale simulations. These simulations generate unprecedented volumes of multidimensional data. For example, large-scale NYX simulations can produce terabytes of data per snapshot [1]. Managing, storing, transferring, and analyzing data at this scale requires efficient data management and reduction techniques. Although larger simulations can improve spatial and temporal fidelity, storage and I/O limitations may force researchers to discard outputs or reduce their resolution, potentially removing critical physical features needed for subsequent analysis.

Scientific lossy compression techniques [2]–[5] address this challenge by reducing data size while enforcing a user-defined EB. However, compression effectiveness depends strongly on the selected EB. Although the EB limits numerical reconstruction error, it does not directly translate to application-relevant quality measures such as PSNR or SSIM [6], which may be more meaningful to domain scientists. Consequently, selecting an appropriate EB requires balancing data reduction against the quality preservation for the target analysis.

This disconnection creates a practical tuning problem. Because the mapping from an EB to the resulting quality is nonlinear and depends on both the dataset and the compressor [7], users typically resort to repeated compression, decompression, and metric evaluation to identify an acceptable configuration.

The problem is further compounded by the growing diversity of scientific lossy compressors and the increasing variety of scientific datasets. New compressors and compressor-family variants are often designed for specific data characteristics, accuracy requirements, or performance objectives. As a result, the most effective compression configuration can vary substantially across datasets and use cases, making manual tuning increasingly difficult.

Motivated by these challenges, we propose LOCAA, a Scientific LOssy Compression Auto-tuning Agent. LOCAA performs compression-in-the-loop search by iteratively selecting compressor configurations, evaluating their outcomes, and using the observed results to guide subsequent trials. The framework supports different user-defined objectives and quality constraints. LOCAA uses an large language model to reason over previous evaluations, adapt the search strategy, and identify effective compressor and EB configurations with fewer redundant trials, which is the key distinction compared with manual trial-and-error and existing search methods. The contributions of LOCAA are summarized as follows:

• We formulate compressor and error-bound selection as an agentic search problem and introduce LOCAA, which adapts its search strategy using measured compression feedback and user-defined constraints.

• We develop a single-agent architecture that integrates compression-in-the-loop evaluation, task-specific search guidance, MCP-exposed tools, and lightweight persistent memory.

• We introduce compressor-aware searching strategies, including PSNR-driven initialization and staircase-aware navigation for compressors like ZFP, and quantify through ablation which components actually contribute to search efficiency.

  • We evaluate LOCAA across three applications, five compressors, and three use cases, showing it reaches feasible configurations using substantially fewer evaluation trials.

The remainder of the paper is organized as follows. Section II reviews related work. Section III presents the design of LOCAA, followed by evaluation in Section IV. Section V discusses limitations and future work, with conclusions in Section VI.

References (28)