Automatic Quantization for Physics-Based Simulation
Jiafeng Liu, Haoyang Shi, Siyuan Zhang, Yin Yang, Chongyang Ma and, Weiwei Xu

TL;DR
This paper introduces an automated quantization framework for physics-based simulations that balances precision and memory efficiency, enabling users to specify error bounds or compression rates and achieve significant memory savings.
Contribution
The proposed method uses error propagation theory and auto-diff to automatically determine optimal quantization schemes, extending the Taichi compiler with dithering for improved accuracy.
Findings
Achieves up to 2.5x memory compression
Maintains visual quality with minimal degradation
Demonstrates effectiveness on various physics simulations
Abstract
Quantization has proven effective in high-resolution and large-scale simulations, which benefit from bit-level memory saving. However, identifying a quantization scheme that meets the requirement of both precision and memory efficiency requires trial and error. In this paper, we propose a novel framework to allow users to obtain a quantization scheme by simply specifying either an error bound or a memory compression rate. Based on the error propagation theory, our method takes advantage of auto-diff to estimate the contributions of each quantization operation to the total error. We formulate the task as a constrained optimization problem, which can be efficiently solved with analytical formulas derived for the linearized objective function. Our workflow extends the Taichi compiler and introduces dithering to improve the precision of quantized simulations. We demonstrate the generality…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
