In-Place Activated BatchNorm for Memory-Optimized Training of DNNs

Samuel Rota Bulò, Lorenzo Porzi, Peter Kontschieder
12/7/2017
cs.CV

Official code: mapillary/inplace_abn (1,333 stars, BSD-3-Clause, last commit 2026-10-14).

Abstract

In this work we present In-Place Activated Batch Normalization (InPlace-ABN) - a novel approach to drastically reduce the training memory footprint of modern deep neural networks in a computationally efficient way. Our solution substitutes the conventionally used succession of BatchNorm + Activation layers with a single plugin layer, hence avoiding invasive framework surgery while providing straightforward applicability for existing deep learning frameworks. We obtain memory savings of up to 50% by dropping intermediate results and by recovering required information during the backward pass through the inversion of stored forward results, with only minor increase (0.8-2%) in computation time. Also, we demonstrate how frequently used checkpointing approaches can be made computationally as efficient as InPlace-ABN. In our experiments on image classification, we demonstrate on-par results on ImageNet-1k with state-of-the-art approaches. On the memory-demanding task of semantic segmentation, we report results for COCO-Stuff, Cityscapes and Mapillary Vistas, obtaining new state-of-the-art results on the latter without additional training data but in a single-scale and -model scenario. Code can be found at https://github.com/mapillary/inplace_abn .

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

In-Place Activated BatchNorm for Memory-Optimized Training of DNNs

1,333183C, C++Nov 23, 20171 weeks agoBSD-3-Clause

Similar Papers

Cite this paper

@article{bul2017inplace,
  title  = {In-Place Activated BatchNorm for Memory-Optimized Training of DNNs},
  author = {Samuel Rota Bulò and Lorenzo Porzi and Peter Kontschieder},
  year   = {2017},
  eprint = {1712.02616},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1712.02616}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1712.02616.svg)](https://codeofpaper.com/paper/1712.02616)

Discussion