Abstract
Deep Neural Networks (DNNs) achieve state-of-the-art accuracy at the cost of significant inference latency. Existing model compression techniques like pruning and quantization are "early-binding," applying the same computational effort regardless of input complexity. We present GATI, a system that utilizes "learned caches"—small auxiliary networks attached to intermediate layers—to enable late-binding inference. By predicting outputs early for simple or repetitive inputs and skipping remaining layers, GATI achieves up to a 7.69x speedup on real-world workloads while maintaining baseline accuracy.
Introduction
The increasing depth of DNNs has led to a computational bottleneck in latency-sensitive applications. Traditional optimization strategies—quantization, pruning, and distillation—fix model complexity at deployment time. This approach ignores two critical opportunities: input-dependent difficulty (some inputs are "easier" than others) and temporal locality (real-world data often repeats). Traditional caching is ineffective for high-dimensional hidden layer outputs because exact matches are rare. GATI addresses these issues by replacing static data stores with learned function approximators.
Methodology: Learned Caches
GATI introduces the concept of a Learned Cache, which consists of two sub-networks attached to intermediate layers of a base DNN:
- The Predictor: A lightweight model (e.g., fully-connected or convolutional) that estimates the final output from the current layer's hidden state.
- The Selector: A binary classifier that determines if the Predictor's output is sufficiently confident to trigger a "cache hit."
If a hit is detected, the inference terminates early, returning the prediction and skipping subsequent layers. This "late-binding" approach ensures that computational resources are allocated dynamically based on the input. To optimize deployment, GATI employs a Composition Phase to select optimal cache locations and architectures under memory and latency constraints. It also features an Online Retraining component to adapt to shifting data distributions in real-time.
Evaluation and Results
GATI was evaluated across image classification (CIFAR), speech recognition (VGG-16), and video analytics. In standard image tasks, GATI provided a 1.95x average speedup. On video streams exhibiting high temporal locality, such as traffic surveillance, speedups reached 7.69x.
Furthermore, in multi-model Directed Acyclic Graph (DAG) pipelines, GATI's "incremental replanning" allows saved latency from early stages to be reinvested into more accurate downstream models. This allows GATI to actually increase overall system accuracy by ~1% while still reducing latency by 1.26x.
Conclusion
GATI demonstrates that treating caches as learned function approximators allows DNNs to exploit input redundancy and varying difficulty levels. While it introduces a one-time training overhead and additional memory requirements, the significant latency reductions and the ability to adapt to shifting data distributions make it a powerful tool for efficient large-scale inference.
Summary updated