AXNet: approximate computing using an end-to-end trainable neural network

Zhenghao Peng, Xuyang Chen, Chengwen Xu, Naifeng Jing, Xiaoyao Liang, Cewu Lu, Li Jiang

TL;DR

AXNet introduces a novel, end-to-end trainable neural network architecture for approximate computing that fuses an "approximator" and a "quality predictor" into a single holistic model. By leveraging multi-task learning and a unique "control vector" fusion method, AXNet achieves a 50.7% increase in safe-to-approximate samples and up to a 32x reduction in training time compared to state-of-the-art iterative methods.

What Problem Does This Paper Address?

Approximate computing is a powerful strategy for energy-efficient processing: it trades off a tiny bit of numerical accuracy for massive gains in speed and power savings. This is ideal for error-resilient applications like image processing or scientific simulations.

However, "going approximate" is risky without quality control. Standard frameworks use two separate neural networks:

  1. The Approximator: Performs the actual computation (e.g., a fast version of a complex math function).
  2. The Predictor: Decides if a specific input is "safe" to approximate or if it should be sent to the high-precision CPU to avoid massive errors.

The challenge is that training these two networks to cooperate is difficult. If you train them separately ("one-pass"), they don't account for each other's behavior. If you train them iteratively, the process becomes agonizingly slow and often gets stuck in local optima. AXNet aims to solve this by making the entire system end-to-end trainable in one go.

Methods

The authors first tried a standard weight-sharing approach (common in multi-task learning) but found it highly unstable. The gradients from the predictor (using Cross-Entropy loss) were often orders of magnitude larger than those from the approximator (using Mean Squared Error), causing the training to oscillate wildly.

To solve this, they developed the AXNet architecture:

  • Subnet Fusion: Instead of just sharing weights, the prediction subnet generates control vectors.
  • Hadamard Product: These control vectors are multiplied element-wise (Hadamard product) with the activation values of the approximation subnet.
  • Modulation: This allows the predictor to directly "filter" or modulate the activations of the approximator. Essentially, the predictor learns to suppress or enhance specific features in the approximator to keep the error within bounds.
  • Hardware Integration: The authors propose a modified Neural Processing Unit (NPU) design that uses a simple "switch unit" to handle these Hadamard products with minimal hardware overhead.

Datasets

The researchers evaluated AXNet using the AxBench suite, a standard multi-platform benchmark for approximate computing. The benchmarks cover various domains:

  • Robotics: inversek2j
  • Image Processing: sobel, jpeg
  • Signal Processing: FFT
  • Scientific Computing: bessel
  • Financial Analysis: blackscholes
  • Machine Learning: kmeans

Key Insights and Ideas

  • Higher-Order Non-linearity: By using the Hadamard product to fuse subnets, AXNet mathematically introduces quadratic and higher-order terms into the network. This increases the model's capacity to fit complex functions compared to a standard MLP of the same size.
  • The Saturation Effect: The authors observed that the predictor often converges slower than the approximator. They attribute this to the "skewness" of the safety labels (most data might be safe or unsafe), a phenomenon they call the saturation effect.
  • Global Optimization: Because the loss function is joint ($J = L_{approx} + L_{pred}$), the two subnets seek a global optimum together. The predictor doesn't just judge the approximator; it actively helps the approximator shape its internal representations to be more "predictable."
  • Efficiency via Fusion: AXNet eliminates redundant parameters. For example, in the jpeg benchmark, AXNet achieved similar performance to iterative methods while using 60% fewer parameters.

Key Results

  • Higher Invocation: AXNet achieved 50.7% more "invocations" (the proportion of samples safely handled by the fast approximator) on average compared to the one-pass method and 30.8% more than the iterative method.
  • Drastic Training Speedup: Compared to the iterative training method (which requires multiple rounds of re-labeling and re-training), AXNet is significantly faster. It achieved a 32x speedup in training time for the jpeg benchmark and a 13.8x speedup for bessel.
  • Energy Efficiency: By increasing the invocation rate, AXNet allows the system to stay in the "approximate" mode longer, leading to superior energy-delay product (EDP) results across all tested benchmarks.

Limitations and Future Work

  • Data Imbalance: When the "safe-to-approximate" rate is near 0% or 100%, the predictor struggles to learn due to highly skewed samples. The authors suggest that standard data imbalance techniques (like SMOTE or specialized loss weighting) might be needed in these edge cases.
  • Hardware Complexity: While the NPU modifications are described as "light," any change to data paths in silicon involves non-trivial design and verification costs.
  • Future Directions: The authors plan to investigate network compression techniques specifically for AXNet and evaluate its performance in a physical NPU implementation rather than just a theoretical model.

Summary updated

BibTeX
@inproceedings{peng2018axnet,
  author = {Zhenghao Peng and Xuyang Chen and Chengwen Xu and Naifeng Jing and Xiaoyao Liang and Cewu Lu and Li Jiang},
  title = {{AXNet: approximate computing using an end-to-end trainable neural network}},
  booktitle = {ICCAD},
  year = {2018},
  url = {https://openreview.net/forum?id=dFILL2-ARhU},
}

Loading related content...

Figure