[Paper Review] Towards Reverse-Engineering Black-Box Neural Networks
This paper proposes a method to reverse-engineer black-box neural networks by querying input-output pairs to infer model attributes such as architecture, optimization algorithm, and training dataset. Using a metamodel trained on diverse white-box models, the approach predicts these attributes with high accuracy and demonstrates that this knowledge enables more effective adversarial attacks, blurring the line between white-box and black-box models.
Many deployed learned models are black boxes: given input, returns output. Internal information about the model, such as the architecture, optimisation procedure, or training data, is not disclosed explicitly as it might contain proprietary information or make the system more vulnerable. This work shows that such attributes of neural networks can be exposed from a sequence of queries. This has multiple implications. On the one hand, our work exposes the vulnerability of black-box neural networks to different types of attacks -- we show that the revealed internal information helps generate more effective adversarial examples against the black box model. On the other hand, this technique can be used for better protection of private content from automatic recognition models using adversarial examples. Our paper suggests that it is actually hard to draw a line between white box and black box models.
Motivation & Objective
- Investigate the extent to which internal attributes of black-box neural networks can be inferred from input-output queries.
- Address the vulnerability of black-box models to reverse-engineering, especially concerning intellectual property and privacy.
- Develop a metamodel that predicts model attributes (architecture, optimizer, training data) using only query responses.
- Demonstrate that reverse-engineered knowledge enhances the effectiveness of adversarial attacks on black-box models.
- Explore generalization across model families and query quality to assess robustness of the inference method.
Proposed method
- Train a metamodel on a diverse meta-training set of white-box models to predict attributes from input-output query responses.
- Use query-based input-output pairs as input features to the metamodel, avoiding reliance on internal model parameters.
- Employ active query optimization to select inputs that maximize information gain for attribute prediction.
- Apply transferability of adversarial examples by generating perturbations on predicted model families rather than random architectures.
- Use leave-one-out cross-validation to evaluate within-family transferability of adversarial examples.
- Compare attack performance across scenarios: white box, family-known black box, and fully unknown black box.
Experimental results
Research questions
- RQ1To what extent can model architecture, optimization procedure, and training dataset be inferred from black-box query responses?
- RQ2How does the quality and quantity of queries affect the accuracy of attribute inference?
- RQ3Can reverse-engineered model attributes improve the success rate of adversarial attacks on black-box models?
- RQ4Does adversarial transferability perform better within model families than across different architectures?
- RQ5How generalizable is the metamodel when the target black-box model differs from the meta-training distribution?
Key findings
- The metamodel achieves high accuracy in predicting model attributes such as architecture family, optimizer (e.g., SGD vs. ADAM), and training dataset from only input-output queries.
- When the model family is correctly predicted, adversarial attacks achieve a misclassification rate of 85.7%, approaching the family-oracle case (86.2%) and significantly outperforming attacks without prior knowledge.
- Within-family adversarial transferability outperforms across-family transferability, with diagonal entries in Table 4 showing higher success rates within the same architecture family.
- Generating adversarial examples against multiple models from the same family (e.g., ResNet101, ResNet152) is more effective than targeting a single model or multiple unrelated families.
- The method enables a significant reduction in query cost for effective attacks by focusing on predicted model families, demonstrating that reverse-engineering enhances attack efficiency.
- The study shows that the distinction between white-box and black-box models is blurred, as black-box models can be effectively reverse-engineered to enable white-box-like attacks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.