Introduction
Understanding the internal logic and training data of black-box machine learning models is a cornerstone of AI safety and auditing. Domain Bridge introduces a novel forensic framework that leverages generative AI to "interrogate" these models. By iteratively refining text prompts through a closed loop of image generation and classification, Domain Bridge identifies the specific data domains a model was designed to handle—moving from broad categories like "human face" to fine-grained attributes such as "man with a short beard"—without requiring access to the original training set.
The Challenge of Black-Box Forensics
Traditional forensic methods often rely on static datasets (e.g., ImageNet) to probe target models. These approaches suffer from "hard borders": if a model's training domain is highly specialized or not represented in the probe dataset, the analysis fails. Furthermore, static probing struggles to capture the nuanced, fine-grained attributes that define a model's decision boundaries. Domain Bridge addresses these limitations by replacing fixed libraries with the near-infinite search space of a generative model.
Methodology: The Domain Bridge Framework
The core of Domain Bridge is an iterative generative loop that "walks" through a continuous embedding space to find the exact clusters relevant to the target model.
The framework consists of several integrated components:
- Description Decoder ($\mathcal{G}$): Utilizes Stable Diffusion to translate textual descriptions into diverse image sets.
- Target Model ($\mathcal{M}$): The black-box model under investigation, which classifies the generated images.
- Image Encoder ($\mathcal{E}$): Employs CLIP and BLIP to analyze images correctly classified by $\mathcal{M}$, converting them back into descriptive text.
- LLM Refinement: A controller (GPT-4) manages the text through three sub-modules:
- Enricher ($\mathcal{R}$): Adds detail to discover specific subclasses.
- Summarizer ($\mathcal{S}$): Distills verbose descriptions into concise labels.
- Grouper ($\mathcal{Z}$): Clusters similar descriptions to maintain a manageable search tree.
The system optimizes for Relevance (consistency of model predictions) and Generality (diversity of the represented images), ensuring the discovered domain is both accurate and comprehensive.
Key Insights and Experimental Results
The researchers evaluated Domain Bridge across various benchmarks, including CIFAR-10, Places365, and CelebA, comparing it against traditional corpus-based approaches.
Superior Domain Identification
On the Places365 dataset, Domain Bridge correctly identified 360 out of 365 classes, significantly outperforming the ImageNet-based baseline, which only identified 159. This success extends to fine-grained attributes; for instance, in the CelebA dataset, the tool successfully identified complex combinations like "man, beard, mustache" for the "Male" attribute.
Model Cloning and Real-World Utility
To validate the quality of the discovered domains, the authors performed "model cloning." A clone built using images generated by Domain Bridge achieved ~85% accuracy, whereas a clone built using ImageNet data reached only ~35%. In real-world tests, the framework successfully identified the domain of a specialized pneumonia classifier as "black and white chest x-ray images, showcasing ribs," confirming its utility for auditing niche medical models.
Conclusion
Domain Bridge represents a significant shift in AI forensics, treating generative models as dynamic search engines rather than mere creative tools. While the approach is computationally intensive and can occasionally struggle with semantic gaps in specific domains, its ability to uncover implicit biases and fine-grained attributes makes it a powerful tool for model auditing. Future work aims to expand this framework to audio and text modalities, further broadening the scope of black-box forensics.
Summary updated