On Exact Bit-level Reversible Transformers Without Changing Architecture
Guoqiang Zhang, J. P. Lewis, W. Bastiaan Kleijn
摘要
Various reversible deep neural networks (DNN) models have been proposed to reduce memory consumption in the training process. However, almost all existing reversible DNNs either require special non-standard architectures or are constructed by modifying existing DNN architectures considerably to enable reversibility. In this work we present the BDIA-transformer, which is an exact bit-level reversible transformer 1 that uses an unchanged standard architecture for inference. The basic idea is to first treat each transformer block as the Euler integration approximation for solving an ordinary differential equation (ODE) and then incorporate the technique of bidirectional integration approximation (BDIA) (originally designed for diffusion inversion) into the neural architecture, together with activation quantization to make it exactly bit-level reversible. In the training process, we let a hyper-parameter γ in BDIA-transformer randomly take one of the two values 0.5, -0.5 per training sample per transformer block for averaging every two consecutive integration approximations. As a result, BDIA-transformer can be viewed as training an ensemble of ODE solvers parameterized by a set of binary random variables, which regularizes the model and results in improved validation accuracy. Lightweight side information per transformer block is required to be stored in the forward process to account for binary quantization loss to enable exact bit-level reversibility. In the inference procedure, the expectation E(γ) = 0 is taken to make the resulting architectures of BDIA-transformer identical to transformers up to activation quantization. Our experiments in both image classification and language translation show that BDIA-transformers outperform their conventional counterparts significantly in terms of validation performance due to the regularization effect of the set of γ random variables while also requiring considerably less training memory. Preprint. Under review.
问 Lune
尽管问,回答会引用原文。
Lune 会读完全文和相关的 Paper,每个回答都附上所依据的原文段落。
它引用的 Paper5
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 次引用
- Elucidating the Design Space of Diffusion-Based Generative ModelsTero Karras, Miika Aittala, Timo Aila, Samuli LaineNeurIPS 2022 · 3,959 次引用
- End-to-End Diffusion Latent Optimization Improves Classifier GuidanceBram Wallace, Akash Gokul, Stefano Ermon, Nikhil NaikICCV 2023 · 118 次引用
- Momentum Residual Neural NetworksMichael E. Sander, Pierre Ablin, Mathieu Blondel, Gabriel PeyréICML 2021 · 67 次引用
- Reversible Vision TransformersKarttikeya Mangalam, Haoqi Fan, Yanghao Li, Chao-Yuan Wu 等CVPR 2022 · 52 次引用
相关 Paper
- High-Performance Temporal Reversible Spiking Neural Networks with O(L) Training Memory and O(1) Inference CostJiakui Hu, Man Yao, Xuerui Qiu, Yuhong Chou 等ICML 2024 · 24 次引用
- Memory-Efficient Reversible Spiking Neural NetworksHong Zhang, Yu ZhangAAAI 2024 · 13 次引用
- DIVISION: Memory Efficient Training via Dual Activation PrecisionGuanchu Wang, Zirui Liu, Zhimeng Jiang, Ninghao Liu 等ICML 2023 · 4 次引用
- Memory-Efficient Differentiable Transformer Architecture SearchYuekai Zhao, Li Dong, Yelong Shen, Zhihua Zhang 等ACL Findings 2021 · 11 次引用
- RobuQ: Pushing DiTs to W1.58A2 via Robust Activation QuantizationKaicheng Yang, Xun Zhang, Haotong Qin, Yucheng Lin 等ICML 2026 · 5 次引用
