Model-to-Circuit Cross-Approximation For Printed Machine Learning Classifiers

Giorgos Armeniakos, Georgios Zervakis, Dimitrios Soudris, Mehdi B. Tahoori, Jörg Henkel

Abstract

Printed Electronics (PE) represent a transformative technology for smart packaging, wearable healthcare, and disposable sensors due to their flexibility and low manufacturing costs. However, the significant physical footprint of printed transistors—often microns in size compared to the nanometer scale of silicon—creates a massive "area problem" that has historically limited PE to only the simplest machine learning models. This paper presents a novel cross-layer approximation framework that enables complex classifiers, such as Multi-Layer Perceptrons (MLPs) and Support Vector Machines (SVMs), to be implemented on ultra-low-cost, flexible printed circuits. By simultaneously optimizing model weights, pruning logic gates, and scaling operating voltage, the framework achieves significant power and area savings, allowing complex models to run on tiny, printed batteries with negligible accuracy loss.

The Challenge: The Area Problem in Printed Electronics

While PE is a game-changer for ubiquitous computing, the hardware overhead of traditional AI components is a major bottleneck. A simple multiply-accumulate (MAC) unit—the fundamental building block of neural networks—can be six orders of magnitude larger in area when printed compared to its silicon counterpart. This disparity has previously restricted the field to basic models like Decision Trees. Complex models like MLPs were considered impractical because they were too large to fit on a standard substrate and too power-hungry for the thin-film batteries used in flexible devices.

Methods: A Cross-Layer Approximation Framework

The authors address these limitations through a Model-to-Circuit Cross-Approximation framework. Rather than optimizing software and hardware in isolation, the framework attacks the problem at three distinct levels simultaneously:

  1. Algorithmic Level (Coefficient Approximation): The framework replaces the weights (coefficients) of a trained model with "hardware-friendly" values. Because these weights are hardwired directly into the printed circuit (bespoke design), selecting values that require simpler logic drastically reduces the size and complexity of the multipliers.
  2. Logic Level (Netlist Pruning): The system analyzes the resulting circuit to identify gates that either rarely change state (low switching activity) or only affect the least significant bits of the output. These insignificant gates are pruned and replaced with constant values, further reducing the physical footprint.
  3. Circuit Level (Voltage Over-Scaling - VOS): To minimize power consumption, the supply voltage is lowered below nominal levels. While this typically introduces timing errors, the previous pruning steps simplify the circuit and create "delay slack," allowing the model to maintain functional correctness even at lower voltages.

To navigate the vast design space of possible configurations, the authors employ a Genetic Algorithm (NSGA-II). This allows them to identify "Pareto-optimal" designs—configurations that provide the best possible trade-offs between area, power consumption, and classification accuracy.

Experimental Evaluation

The framework was evaluated using 24 different ML classifiers (12 MLPs and 12 SVMs) across six diverse datasets from the UCI Machine Learning Repository, including Cardiotocography (Cardio), Wine Quality (RedWine & WhiteWine), Wheat Kernel characteristics (Seeds), Orthopedic pathology (Vertebral 3C), and psychological measurement data (Balance Scale).

Key Insights

  • Synergistic Approximation: A critical finding is the synergy between logic pruning and voltage scaling. Pruning does more than save area; it shortens the critical path of the circuit. This increased speed allows the voltage to be dropped further than would otherwise be possible, compounding the power savings.
  • Classifier Resilience: The research highlights that classifiers are inherently more resilient to hardware approximation than regressors. Because a classifier's final output is determined by an argmax function, it can absorb significant numerical noise as long as the relative ranking of the categories remains correct.
  • Bespoke Circuitry: By hardwiring model parameters directly into the gate logic, the framework eliminates the need for expensive memory and general-purpose processors, which are currently unfeasible for low-cost PE applications.

Results and Impact

The framework demonstrated massive efficiency gains compared to exact bespoke designs:

  • Resource Efficiency: On average, the framework achieved a 51% reduction in area and a 66% reduction in power for less than a 5% loss in accuracy.
  • Battery Compatibility: Most importantly, the framework enabled 80% of the examined classifiers to operate within the strict power budgets of commercial printed batteries (such as those from Molex or Zinergy).
  • Optimization Performance: The genetic algorithm proved efficient, finding optimal configurations in approximately 22 minutes per epoch on standard server hardware.

Limitations and Future Outlook

While the framework represents a significant leap forward, it relies on "bespoke" circuitry—meaning each circuit is custom-printed for a specific model and dataset. If the model requires an update, a new circuit must be manufactured. Additionally, printed electronics currently operate at low frequencies (Hz to kHz), making them suitable for sensor data but not for high-speed applications like real-time video.

Future research may explore alternative approximation techniques, such as Stochastic Computing, to further reduce the footprint of machine learning in the printed domain, potentially opening the door for even more sophisticated AI on everyday disposable objects.

Summary updated

BibTeX
@article{armeniakos2023model,
  author = {Giorgos Armeniakos and Georgios Zervakis and Dimitrios Soudris and Mehdi B. Tahoori and Jörg Henkel},
  title = {{Model-to-Circuit Cross-Approximation For Printed Machine Learning Classifiers}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2023},
  doi = {10.1109/tcad.2023.3258668},
}
Figure