AI
New method trains neural compressors on-the-fly for scientific simulations using sketching
Researchers present an in situ training approach that uses sketched data to prevent forgetting while compressing large simulation outputs during computation.
A team of computer scientists has developed a novel training protocol for compressing scientific simulation data in real time, addressing a key challenge in handling massive computational outputs. Rather than processing data offline after simulations complete, their method operates during the simulation itself—a technique known as "in situ" training.
The Core Innovation#
The approach combines implicit neural representations with sketch-based regularization to train compression models on limited memory buffers. The key insight is leveraging sketched (simplified) versions of simulation data to prevent the neural network from "catastrophically forgetting" previously learned patterns—a common problem in continual learning scenarios where models encounter new data over time.
The authors provide theoretical grounding for this strategy through a result inspired by the Johnson-Lindenstrauss lemma, a foundational concept in dimension reduction. This theoretical framework explains why sketching works as an effective regularizer in their training scheme.
Performance Across Complex Data#
The method was tested on diverse scientific simulation datasets spanning:
- Two and three-dimensional data
- Long-term temporal evolution
- Unstructured grids and non-Cartesian coordinate systems
Crucially, the results show that sketching enables the in situ approach to achieve performance comparable to offline compression methods—where all data is available upfront. The technique demonstrates strong reconstruction quality at high compression rates, making it practical for managing the data deluge from modern scientific computing.
Why This Matters#
Simulations in physics, climate modeling, and engineering produce enormous datasets that strain storage and I/O systems. Training compression models while simulations run, rather than after, could substantially reduce computational overhead and data handling bottlenecks in high-performance computing environments.

