[Paper Review] An end-to-end approach for speeding up neural network inference
This paper proposes an end-to-end framework that jointly optimizes neural network inference speed and accuracy by learning dynamic network structures through a batch activation loss and Gumbel reparameterization. It enables both pruning and conditional computation, achieving 45–52% less computation on ResNet and 19–37% less on MobileNetV2 for ImageNet classification without significant accuracy drop.
Important applications such as mobile computing require reducing the computational costs of neural network inference. Ideally, applications would specify their preferred tradeoff between accuracy and speed, and the network would optimize this end-to-end, using classification error to remove parts of the network \cite{lecun1990optimal,mozer1989skeletonization,BMVC2016_104}. Increasing speed can be done either during training -- e.g., pruning filters \cite{li2016pruning} -- or during inference -- e.g., conditionally executing a subset of the layers \cite{aig}. We propose a single end-to-end framework that can improve inference efficiency in both settings. We introduce a batch activation loss and use Gumbel reparameterization to learn network structure \cite{aig,jang2016categorical}. We train end-to-end against batch activation loss combined with classification loss, and the same technique supports pruning as well as conditional computation. We obtain promising experimental results for ImageNet classification with ResNet \cite{he2016resnet} (45-52\% less computation) and MobileNetV2 \cite{sandler2018mobilenetv2} (19-37\% less computation).
Motivation & Objective
- To enable end-to-end optimization of neural network inference speed and accuracy tradeoffs in real-world applications like mobile computing.
- To develop a unified framework that supports both model pruning and conditional computation during inference.
- To reduce computational cost without sacrificing classification performance through learnable network structure.
- To train the network using a batch activation loss combined with classification loss for joint optimization.
Proposed method
- Introduce a batch activation loss to guide the learning of network structure during training.
- Use Gumbel reparameterization to differentiably sample discrete structures, enabling backpropagation through network architecture choices.
- Train the network end-to-end using a combination of batch activation loss and standard classification loss.
- Enable both filter pruning and conditional execution of layers by learning which components to retain or activate.
- Apply the framework to ResNet and MobileNetV2 for ImageNet classification.
Experimental results
Research questions
- RQ1Can a single end-to-end framework jointly optimize inference speed and accuracy in neural networks?
- RQ2Can Gumbel reparameterization effectively learn dynamic network structures for both pruning and conditional computation?
- RQ3Does the proposed method achieve significant computation reduction while maintaining high classification accuracy?
- RQ4How does the batch activation loss contribute to learning efficient network structures?
Key findings
- The proposed method reduces computation by 45–52% on ResNet for ImageNet classification with minimal accuracy degradation.
- On MobileNetV2, the method achieves 19–37% less computation while maintaining competitive accuracy.
- The framework successfully supports both pruning and conditional computation within a single training paradigm.
- The use of Gumbel reparameterization enables differentiable architecture search, allowing end-to-end optimization of network structure.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.