[Paper Review] Zero Time Waste: Recycling Predictions in Early Exit Neural Networks
Introduces Zero Time Waste (ZTW), an early-exit framework that reuses predictions from previous internal classifiers via cascade connections and ensembling to reduce wasted computation during inference, improving accuracy-time trade-offs.
The problem of reducing processing time of large deep learning models is a fundamental challenge in many real-world applications. Early exit methods strive towards this goal by attaching additional Internal Classifiers (ICs) to intermediate layers of a neural network. ICs can quickly return predictions for easy examples and, as a result, reduce the average inference time of the whole model. However, if a particular IC does not decide to return an answer early, its predictions are discarded, with its computations effectively being wasted. To solve this issue, we introduce Zero Time Waste (ZTW), a novel approach in which each IC reuses predictions returned by its predecessors by (1) adding direct connections between ICs and (2) combining previous outputs in an ensemble-like manner. We conduct extensive experiments across various datasets and architectures to demonstrate that ZTW achieves a significantly better accuracy vs. inference time trade-off than other recently proposed early exit methods.
Motivation & Objective
- Motivate reducing neural network inference waste by exploiting information recycled from earlier internal classifiers.
- Propose a zero-waste framework that concatenates cascade connections and ensemble methods to reuse past predictions.
- Demonstrate improved accuracy vs. inference time trade-offs across standard classifiers and reinforcement learning settings.
- Quantify information reuse with a new metric (Hindsight Improvability) and provide ablations to understand contributing factors.
Proposed method
- Attach M shallow internal classifiers (ICs) to intermediate layers of a pre-trained network without changing base parameters.
- Use cascade connections to pass logits from earlier ICs to later ICs via skip connections, allowing later ICs to refine previous predictions.
- Construct an ensemble of IC outputs using a weighted geometric mean with class balancing to form final predictions for each IC, training weights to minimize cross-entropy.
- Train ICs in parallel with their cascade inputs, while stopping gradients from later losses to earlier ICs to preserve early-layer representations.
- During inference, terminate early when the current IC’s ensemble confidence exceeds a threshold τ, balancing accuracy and computation.
- Provide a training algorithm (Algorithm 1) for joint cascade and geometric-ensemble training.
Experimental results
Research questions
- RQ1Can information from earlier ICs be effectively reused to improve later ICs without retraining the base network?
- RQ2Does the combination of cascade connections and geometric ensembling reduce computational waste while maintaining or improving accuracy across datasets and architectures?
- RQ3How does ZTW perform in supervised learning versus reinforcement learning settings?
- RQ4What is the impact of information reuse on the efficiency-accuracy trade-off compared to SDN and PBEE?
Key findings
- ZTW achieves better accuracy versus inference-time trade-offs than SDN and PBEE across CIFAR-10/100, Tiny ImageNet, and ImageNet with multiple architectures.
- Reusing past IC information via cascade connections primarily boosts early IC performance, while ensembling improves later IC performance.
- ZTW maintains base-network accuracy at reduced compute and even outperforms the base network in some settings.
- In RL, ZTW reduces computation (via confidence-based early exits) while preserving policy performance on Atari 2600 environments.
- The proposed Hindsight Improvability metric demonstrates the amount of potential accuracy gains from past-information reuse, with ZTW outperforming independent IC baselines on this metric.
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.