Skip to main content
QUICK REVIEW

[Paper Review] AppGNN: Approximation-Aware Functional Reverse Engineering using Graph Neural Networks

Tim Bücher, Lilas Alrahis|arXiv (Cornell University)|Aug 23, 2022
Ferroelectric and Negative Capacitance DevicesEngineering5 citations
TL;DR

This paper proposes AppGNN, a novel graph neural network framework that enhances functional reverse engineering (RE) resilience against Approximate Computing (AxC) by using approximation-aware graph node sampling. It enables GNNs to accurately classify and reverse-engineer approximate circuits—such as adders and multipliers—despite structural variations from AxC, improving classification accuracy from 53% to 81% on evolutionary-based approximate adders, even without prior knowledge of the approximation type.

ABSTRACT

The globalization of the Integrated Circuit (IC) market is attracting an ever-growing number of partners, while remarkably lengthening the supply chain. Thereby, security concerns, such as those imposed by functional Reverse Engineering (RE), have become quintessential. RE leads to disclosure of confidential information to competitors, potentially enabling the theft of intellectual property. Traditional functional RE methods analyze a given gate-level netlist through employing pattern matching towards reconstructing the underlying basic blocks, and hence, reverse engineer the circuit's function. In this work, we are the first to demonstrate that applying Approximate Computing (AxC) principles to circuits significantly improves the resiliency against RE. This is attributed to the increased complexity in the underlying pattern-matching process. The resiliency remains effective even for Graph Neural Networks (GNNs) that are presently one of the most powerful state-of-the-art techniques in functional RE. Using AxC, we demonstrate a substantial reduction in GNN average classification accuracy-- from 98% to a mere 53%. To surmount the challenges introduced by AxC in RE, we propose the highly promising AppGNN platform, which enables GNNs (still being trained on exact circuits) to: (i) perform accurate classifications, and (ii) reverse engineer the circuit functionality, notwithstanding the applied approximation technique. AppGNN accomplishes this by implementing a novel graph-based node sampling approach that mimics generic approximation methodologies, requiring zero knowledge of the targeted approximation type. We perform an extensive evaluation and show that, using our method, we can improve the classification accuracy from 53% to 81% when classifying approximate adder circuits that have been generated using evolutionary algorithms, which our method is oblivious of.

Motivation & Objective

  • To investigate the security implications of Approximate Computing (AxC) on functional reverse engineering (RE) of ICs.
  • To identify the limitations of existing RE methods—especially template matching and GNN-based approaches—when applied to approximate circuits.
  • To develop a GNN-based framework that remains effective in classifying and reverse-engineering circuits despite AxC-induced structural variations.
  • To design a graph sampling strategy that mimics generic approximation patterns, enabling GNNs to generalize across unknown AxC techniques.
  • To evaluate the proposed AppGNN framework on diverse approximate adder and multiplier circuits, including state-of-the-art evolutionary-based approximations.

Proposed method

  • AppGNN employs a novel graph-based node sampling approach that emulates common approximation patterns in AxC, such as bit truncation or zero-padding, without requiring prior knowledge of the specific approximation method.
  • The framework uses two sampling strategies: random node sampling and leaf node sampling, both designed to preserve structural characteristics of approximate circuits in the graph representation.
  • AppGNN trains GNNs on exact circuits but applies the sampled graphs during inference to improve classification accuracy on approximate counterparts.
  • The method leverages the structural similarity between sampled graphs and actual approximate circuits, enabling the GNN to generalize across diverse AxC techniques.
  • The approach is evaluated using multiple datasets, including ACA, LOBA, ROBA, LTA, LCA, and EvoApprox adders and multipliers, across varying levels of approximation aggressiveness.
  • AppGNN is publicly available on GitHub, enabling reproducibility and integration into existing RE pipelines.

Experimental results

Research questions

  • RQ1To what extent does Approximate Computing (AxC) degrade the performance of state-of-the-art GNN-based functional reverse engineering (RE) methods?
  • RQ2Can a GNN-based RE framework be made resilient to AxC without prior knowledge of the specific approximation technique used?
  • RQ3How effective is AppGNN in classifying approximate adder and multiplier circuits compared to GNN-RE, especially under increasing approximation aggressiveness?
  • RQ4Does the choice of graph sampling strategy (random vs. leaf node) significantly affect classification accuracy across different AxC types?
  • RQ5Can AppGNN maintain high classification accuracy on exact circuits while significantly improving performance on approximate ones?

Key findings

  • AppGNN improves GNN-based reverse engineering accuracy from 53% to 81% on EvoApprox-based approximate adders, a 28-percentage-point gain, despite the method being unaware of the evolutionary approximation technique used.
  • On average, AppGNN outperforms GNN-RE across all adder circuit types, with the largest improvement of 28 percentage points on the EvoApprox dataset.
  • AppGNN achieves up to 91% classification accuracy on LTA-based circuits, benefiting from structural similarities in the sampled graphs due to isolated nodes from bit truncation.
  • For multiplier circuits, AppGNN outperforms GNN-RE by 3.7 percentage points on ROBA-based circuits, though it underperforms by 14.2 points on EvoApprox multipliers, indicating sensitivity to approximation type.
  • AppGNN maintains near-identical performance to GNN-RE on exact circuits, with a maximum difference of only 1.3 percentage points, confirming its compatibility with non-approximate designs.
  • The classification accuracy of GNN-RE drops significantly with increasing approximation aggressiveness, while AppGNN shows a much weaker decline or even improvement in some cases, such as with EvoApprox adders.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.