Abstract
Neural network based approximate computing is a universal architecture promising to gain tremendous energy-efficiency for many error resilient applications. To guarantee the approximation quality, existing works deploy two neural networks (NNs), e.g., an approximator and a predictor. The approximator provides the approximate results, while the predictor predicts whether the input data is safe to approximate with the given quality requirement. However, it is non-trivial and time-consuming to make these two neural network coordinate—they have different optimization objectives—by training them separately. This paper proposes a novel neural network structure—AXNet—to fuse two NNs to a holistic end-to-end trainable NN. Leveraging the philosophy of multi-task learning, AXNet can tremendously improve the invocation (proportion of safe-to-approximate samples) and reduce the approximation error. The training effort also decreases significantly. Experimental results show 50.7% more invocation and substantial cuts in training time when compared to existing neural network based approximate computing frameworks.
Introduction
Approximate computing offers a compelling trade-off for error-resilient applications, such as image processing and scientific simulations, by sacrificing marginal numerical accuracy for significant gains in energy efficiency and processing speed. Traditional frameworks typically employ a dual-network strategy: an approximator to perform the computation and a predictor to determine if an input is safe for approximation.
The primary bottleneck in these systems is the coordination between the two networks. Training them separately (one-pass) often leads to suboptimal performance as they do not account for each other’s behavior. Conversely, iterative training is computationally expensive and prone to local optima. AXNet addresses these challenges by unifying the approximator and predictor into a single, end-to-end trainable architecture.
The AXNet Architecture
To overcome the limitations of simple weight-sharing—which often suffers from gradient instability due to the differing scales of Cross-Entropy (predictor) and Mean Squared Error (approximator) losses—AXNet introduces a unique fusion mechanism.
In the AXNet model, the prediction subnet generates control vectors ($c^{(l)}$). These vectors are fused with the approximation subnet's activations ($a^{(l)}$) using an element-wise Hadamard product. This modulation allows the predictor to directly filter or enhance specific features within the approximator, ensuring the output remains within acceptable error bounds. Mathematically, this interaction introduces higher-order non-linearities, increasing the model's capacity to represent complex functions compared to standard multi-layer perceptrons (MLPs).
Key Insights and Optimization
AXNet leverages multi-task learning to optimize a joint loss function ($J = L_{approx} + L_{pred}$). This global optimization forces the two subnets to seek a mutual optimum; the predictor does not merely judge the approximator but actively shapes its internal representations to be more "predictable."
The authors also identified a "saturation effect" where the predictor converges more slowly than the approximator, often due to skewed safety labels in the training data. By fusing the subnets, AXNet mitigates this by allowing the approximator to adapt to the predictor's learning pace. Furthermore, the architecture is highly efficient; for instance, in JPEG benchmarks, AXNet achieved performance parity with iterative methods while utilizing 60% fewer parameters.
Experimental Results
The researchers evaluated AXNet using the AxBench suite across diverse domains, including robotics, signal processing, and financial analysis.
As shown in the training comparisons, AXNet provides far more stable convergence than naive weight-sharing. Key performance metrics include:
- Increased Invocation: AXNet achieved a 50.7% average increase in "invocations" (the percentage of samples safely handled by the approximator) compared to one-pass methods, and a 30.8% increase over iterative methods.
- Training Speedup: The end-to-end approach yielded dramatic reductions in training time, specifically a 32x speedup for JPEG and a 13.8x speedup for Bessel function benchmarks.
- Energy Efficiency: By maximizing the time the system spends in approximate mode, AXNet delivers superior energy-delay product (EDP) results.
Conclusion
AXNet represents a significant advancement in approximate computing by successfully fusing prediction and approximation into a single trainable entity. While future work is needed to address data imbalance in edge cases and to verify physical NPU implementations, AXNet's ability to improve accuracy-guaranteed invocation while drastically reducing training overhead makes it a robust solution for next-generation energy-efficient hardware.
Summary updated