paper-with-me

Papers

MPX: Mixed Precision Training for JAX

2025-07-04 · Alexander Gräfe, Sebastian Trimpe arxiv

Mixed-precision training has emerged as an indispensable tool for enhancing the efficiency of neural network training in recent years. Concurrently, JAX has grown in popularity as a versatile machine learning toolbox. However, it currently lacks robust support for mixed-precision training. We propose MPX, a mixed-precision training toolbox for JAX that simplifies and accelerates the training of large-scale neural networks while preserving model accuracy. MPX seamlessly integrates with popular toolboxes such as Equinox and Flax, allowing users to convert full-precision pipelines to mixed-precision versions with minimal modifications. By casting both inputs and outputs to half precision, and introducing a dynamic loss-scaling mechanism, MPX alleviates issues like gradient underflow and overflow that commonly arise in half precision computations. Its design inherits critical features from JAX's type-promotion behavior, ensuring that operations take place in the correct precision and allowing for selective enforcement of full precision where needed (e.g., sums, means, or softmax). MPX further provides wrappers for automatic creation and management of mixed-precision gradients and optimizers, enabling straightforward integration into existing JAX training pipelines. MPX's source code, documentation, and usage examples are available at github.com/Data-Science-in-Mechanical-Engineering/mixed_precision_for_JAX .

📄 PDF Abstract BibTeX arXiv:2507.03312

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

MetaMix: Meta-state Precision Searcher for Mixed-precision Activation Quantization

2023-11-12 · Han-Byul Kim, Joo Hyung Lee, Sungjoo Yoo, Hong-Seok Kim

Mixed-precision quantization of efficient networks often suffer from activation instability encountered in the exploration of bit selections. To address this problem, we propose a novel method called MetaMix which consis…

Quantization

A Dynamic Approach to Accelerate Deep Learning Training

2019-09-25 · John Osorio, Adrià Armejach, Eric Petit, Marc Casas

Mixed-precision arithmetic combining both single- and half-precision operands in the same operation have been successfully applied to train deep neural networks. Despite the advantages of mixed-precision arithmetic in te…

Deep Learning

Training Time Prediction for Mixed Precision-based Distributed Training

2026-04-17 · Minchul Kang, Changyong Shin, Jinwoo Jeong, Hyunho Lee 외 arxiv

Accurate prediction of training time in distributed deep learning is crucial for resource allocation, cost estimation, and job scheduling. We observe that the floating-point precision setting is a key determinant of trai…

CSQ: Growing Mixed-Precision Quantization Scheme with Bi-level Continuous Sparsification

2022-12-06 · Lirui Xiao, Huanrui Yang, Zhen Dong, Kurt Keutzer 외

Mixed-precision quantization has been widely applied on deep neural networks (DNNs) as it leads to significantly better efficiency-accuracy tradeoffs compared to uniform quantization. Meanwhile, determining the exact pre…

Quantization

Search What You Want: Barrier Panelty NAS for Mixed Precision Quantization

2020-07-20 · ECCV 2020 8 · Haibao Yu, Qi Han, Jianbo Li, Jianping Shi 외

Emergent hardwares can support mixed precision CNN models inference that assign different bitwidths for different layers. Learning to find an optimal mixed precision model that can preserve accuracy and satisfy the speci…

Quantizationvalid