Generative Optimization Networks for Memory Efficient Data Generation

Shreshth Tuli, Shikhar Tuli, Giuliano Casale, Nicholas R. JenningsarXiv 2021

Introduction

As deep learning applications increasingly migrate to edge devices—such as smart sensors and IoT monitors—resource constraints become a primary bottleneck. Standard generative models, including Generative Adversarial Networks (GANs) and Autoencoders, typically require at least two distinct neural networks (a generator/discriminator or encoder/decoder). This dual-network requirement often exceeds the limited RAM available on edge hardware. While model compression techniques like pruning or quantization can reduce memory footprints, they frequently result in significant accuracy degradation.

This paper introduces Generative Optimization Networks (GONs), a novel framework designed to be inherently lightweight. By rethinking the standard GAN architecture, GONs achieve state-of-the-art anomaly detection performance while significantly reducing memory consumption.

The GON Framework

The core innovation of the GON is the complete removal of the Generator network. Instead of training a second network to produce samples, GONs utilize a single, differentiable Discriminator ($D$) to both evaluate and generate data.

Architecture and Generation Process

In a traditional GAN, a generator maps latent noise to the data space. In a GON, this mapping is replaced by neural network inversion. To generate a sample, the system starts with a random noise vector ($z$). It then performs gradient optimization directly in the input space, "nudging" $z$ via gradient ascent to maximize the Discriminator’s output score. This process effectively asks the Discriminator how to transform the noise into something it recognizes as "real" data.

The Generative Optimization Network (GON) architecture, illustrating the use of a single discriminator D for both real sample evaluation and noise-to-sample optimization.

Training and Anomaly Detection

The Discriminator is trained using a self-supervised loop: it learns to assign high scores to real data and low scores to the "optimized" fake samples it generated itself. For anomaly detection, the GON attempts to reconstruct an input window of time-series data. It searches for the closest "real-looking" version of that data through optimization; if the distance between the original input and its reconstruction is high, the input is flagged as an anomaly.

Experimental Evaluation

The researchers evaluated GONs against several multivariate time-series benchmarks, including the Server Machine Dataset (SMD), the Multi-Source Distributed System (MSDS), and a newly introduced suite called FTSAD (Fog Time Series Anomaly Detection). FTSAD was specifically collected on a Raspberry Pi cluster to simulate real-world edge computing faults like CPU overloads and DDoS attacks.

Results and Discussion

Experiments conducted on a Raspberry Pi 4B demonstrated that GONs provide a superior trade-off between detection accuracy and resource utilization.

  • Memory Efficiency: GONs reduced memory consumption by 9.16% to 57.89% compared to SlimGAN, the strongest baseline. This efficiency is primarily due to the elimination of the generator parameters and the associated activation memory.
  • Detection Accuracy: GONs achieved up to 32% higher F1 scores for anomaly detection, outperforming the best baselines by an average of 6.77%.
  • Efficiency Metrics: When measuring the F1 score per gigabyte of RAM (F1/GB), GONs consistently outperformed competing models across various memory constraints.
Comparison of F1 score and F1/GB efficiency across various models as a function of memory allocation.

While GONs require more computation during inference due to the iterative optimization loop, this trade-off is often favorable for edge devices where RAM is a tighter bottleneck than CPU cycles. Training overhead remained manageable, with only a 5% increase in time compared to standard models.

Conclusion

Generative Optimization Networks represent a shift toward more resource-aware deep learning. By leveraging the Discriminator as an implicit map of the data distribution, GONs eliminate the need for redundant generator networks. This approach not only fits within the strict memory limits of edge devices but also improves the robustness of anomaly detection in complex, high-dimensional environments.

Summary updated

BibTeX
@misc{tuli2021generative,
  author = {Shreshth Tuli and Shikhar Tuli and Giuliano Casale and Nicholas R. Jennings},
  title = {{Generative Optimization Networks for Memory Efficient Data Generation}},
  year = {2021},
  eprint = {2110.02912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.02912},
}
Figure