Neural Probabilistic Circuits (NPCs) represent a sophisticated class of Concept Bottleneck Models (CBMs) that integrate deep learning with probabilistic reasoning. While they offer a compelling balance of performance and interpretability, their reliance on a neural network for attribute recognition introduces a significant adversarial vulnerability. This research, appearing at NeurIPS 2025, provides a theoretical foundation for NPC robustness and introduces RNPC, a modified architecture designed to be provably more resistant to adversarial attacks.
The Vulnerability of Concept Bottlenecks
Concept Bottleneck Models attempt to improve interpretability by forcing a model to predict human-understandable "concepts" (e.g., "wing color," "beak shape") before making a final classification. In NPCs, a neural network recognizes these attributes, and a probabilistic circuit performs the final reasoning. However, the attribute recognition layer remains a "black box." An attacker can introduce imperceptible perturbations to an input image to flip a predicted attribute, which subsequently derails the final classification.
Methods: From NPC to RNPC
The authors first establish a "Robustness for Free" theorem, proving that the adversarial robustness of a standard NPC depends solely on the robustness of its attribute recognition model. The probabilistic reasoning layer does not inherently degrade the robustness of the underlying concept recognizer, unlike the linear layers often used in standard CBMs.
To enhance this baseline, the authors propose the Robust Neural Probabilistic Circuit (RNPC). The core innovation is a shift from node-wise integration to class-wise integration:
- Standard NPC (Node-wise): This architecture sums the contributions of every possible combination of attributes to reach a final class prediction. This granularity makes it highly sensitive to single-attribute flips.
- RNPC (Class-wise): This model partitions the attribute space into "neighborhoods" ($V_y$) for each class based on high-probability attribute sets. During inference, it integrates probability over these neighborhoods rather than specific points.
By focusing on the "region" of attributes belonging to a class, RNPC becomes significantly harder to fool. If an attack shifts an attribute prediction but the resulting vector remains within the class's defined "neighborhood," the final classification remains stable.
Experimental Evaluation
The authors evaluated RNPC across several image classification tasks with structured attributes, including MNIST-Add3/5 (predicting the sum of concatenated digits), CelebA-Syn (facial attributes), and GTSRB-Sub (traffic sign attributes). These datasets were constructed to ensure a minimum inter-class Hamming distance, allowing for a clear definition of the protection "radius."
Key Results and Insights
RNPC demonstrates superior robustness without the typical "accuracy tax" associated with defensive models. On the MNIST-Add5 task, under strong Projected Gradient Descent (PGD) attacks, the standard NPC's accuracy plummeted below 40%. In contrast, RNPC maintained an accuracy of over 80%.
Beyond robustness, RNPC offers a surprising efficiency gain. By summing over class neighborhoods rather than every possible attribute combination, it reduces inference complexity from exponential to linear relative to the number of classes.
Conclusion and Future Work
RNPC provides a provable defense against concept-level perturbations by leveraging the geometric structure of the attribute space. While highly effective, the model currently requires detailed attribute annotations and assumes attribute independence given the input. Future work will explore "label-free" versions using multimodal models like CLIP and methods to handle datasets where classes share highly similar attribute profiles (the "radius 0" problem).
Summary updated