TL;DR
This paper explores the application of Federated Learning (FL) for hardware assurance, specifically for reverse engineering integrated circuit (IC) designs using Scanning Electron Microscope (SEM) images. While FL shows promise in improving model performance by enabling collaborative training without sharing raw data, it critically fails to prevent sophisticated privacy attacks like Gradient Inversion Attacks (GIA), which can reconstruct sensitive IP from shared model updates.
What Problem Does This Paper Address?
The increasing complexity and outsourcing of IC design and manufacturing introduce significant security risks, including hardware Trojans, counterfeit components, and intellectual property (IP) theft. Traditional methods for detecting these issues are often limited in scalability and reliability. Deep learning (DL) offers a powerful solution for automated reverse engineering (RE) and hardware assurance, but training effective DL models requires large datasets, which are often proprietary and cannot be shared due to confidentiality concerns. Federated Learning (FL) has emerged as a potential solution, allowing collaborative model training without direct data sharing. However, its application in hardware assurance is underexplored, and the paper investigates both its potential benefits and its significant privacy pitfalls in this domain.
Methods
The study applies Federated Learning (FL) using the FedAVG algorithm to train a U-Net-based segmentation model for IC reverse engineering from SEM images. The core methodology involves:
- Data Generation: Creating synthetic SEM images from the REFICS dataset, simulating a realistic hardware assurance scenario.
- Federated Learning Workflow: Clients locally train a segmentation model on their private SEM image data and share only model updates (weights) with a central server for aggregation. This process is iterated to build a global model.
- Centralized Learning Baseline: For comparison, the researchers also train models using centralized learning (CL) with limited data (single client) and with full access to all data.
- Gradient Inversion Attack (GIA): A novel GIA is proposed and implemented, specifically optimized for image segmentation tasks. This attack aims to reconstruct the original SEM images by exploiting the shared model weights (derived from gradients) transmitted during the FL process. The GIA combines Mean Squared Error (MSE) and Cosine Similarity (CS) loss functions to effectively reconstruct both fine patterns and overall image structure.
Datasets
The study utilizes the REFICS dataset [13], specifically focusing on synthetic SEM images from the 32nm technology node. This dataset provides 800,000 images covering various IC layers (doping, metal, polysilicon, contact) with different processing parameters. For their experiments, the researchers generated a subset of 100 images with specific noise parameters and resized them to 256x256 pixels. This dataset is used for both training the segmentation models and evaluating the effectiveness of the gradient inversion attack.
Key Insights and Ideas
- FL Enhances Segmentation Performance: Federated learning, by allowing multiple clients to collaborate, significantly improves segmentation performance compared to a single-client centralized learning setup, especially when data is limited.
- More Clients = Better Performance (Up to a Point): Increasing the number of participating clients in FL generally leads to better model convergence (lower test loss) and improved segmentation accuracy (higher IoU and SSIM).
- FL is Not a Silver Bullet for Privacy: Despite its privacy-preserving design, FL is vulnerable to sophisticated attacks. The study demonstrates that Gradient Inversion Attacks can successfully reconstruct sensitive SEM images from shared model updates, exposing proprietary IP.
- Segmentation Models are More Complex Targets, but Still Vulnerable: While segmentation models are more complex than classification models, making them potentially less vulnerable to GIAs, this study shows that even advanced U-Net models can be successfully attacked, especially with optimized GIA techniques.
- Trade-offs Exist: FL offers a balance between data privacy and collaborative learning but comes with trade-offs in terms of computational cost and potentially slightly lower ultimate performance compared to centralized learning with full data access.
Key Results
- Segmentation Performance: The FL setup with 9 clients achieved IoU scores of 0.955, MSE of 0.013, and SSIM of 0.860, outperforming centralized learning with a single client. However, it still fell short of centralized learning with access to all 90 images (IoU: 0.956, MSE: 0.013, SSIM: 0.906).
- Gradient Inversion Attack Success: The GIA was able to reconstruct SEM images from FL updates. For 100 samples, the reconstructed images achieved an average MSE of 0.0830 ± 0.0138, PSNR of 10.87 dB ± 0.7387, and SSIM of 0.2918 ± 0.1114. While not perfect, these reconstructions revealed identifiable and sensitive features, posing a significant privacy risk.
- Training Time: FL generally required more training time than centralized training with a small dataset but could be faster than centralized training with a large dataset due to distributed computation.
Limitations and Future Work
Limitations:
- "Honest-but-Curious" Threat Model: The study assumes an "honest-but-curious" setting, where participants follow the protocol but might try to infer information. More malicious adversaries are not explicitly considered.
- Single Client as Adversary: The GIA simulation assumes the adversary is the server, which has access to model updates.
- Simplified GIA Scenario: The GIA was performed on single-image updates for proof-of-concept, although the paper notes that GIAs can be more accurate with multiple images.
- Data Heterogeneity: While the study used an i.i.d. setup for simplicity, real-world FL scenarios often involve non-i.i.d. data, which presents additional challenges.
Future Work:
- Combining FL with Other Privacy Techniques: Exploring the integration of FL with techniques like Differential Privacy (DP), Generative Adversarial Networks (GANs), and secure aggregation to enhance privacy guarantees.
- Exploring Other Attacks: Investigating a wider range of attacks, including model stealing, membership/property inference attacks, and model poisoning, on various AI models used in hardware assurance.
- Applying GIA to Other Models and Data: Extending GIA to other AI architectures (e.g., transformers, multimodal models) and different chip layers, as well as evaluating robustness in non-i.i.d. settings.
- Developing Comprehensive Frameworks: Creating standardized frameworks, taxonomies, and publicly accessible resources (datasets, tools) for AI attacks and defenses in hardware security.
Summary updated