Skip to main content
QUICK REVIEW

[Paper Review] Finding Invariants in Deep Neural Networks.

Divya Gopinath, Ankur Taly|arXiv (Cornell University)|Apr 29, 2019
Adversarial Robustness in Machine LearningComputer Science30 references5 citations
TL;DR

This paper proposes automated techniques to infer invariant properties in feed-forward deep neural networks by analyzing activation patterns in neurons. It extracts convex input invariants and layer invariants to enhance model explainability, robustness, adversarial detection, and network distillation, demonstrating effectiveness on MNIST and ACASXU networks.

ABSTRACT

We present techniques for automatically inferring invariant properties of feed-forward neural networks. Our insight is that feed forward networks should be able to learn a decision logic that is captured in the activation patterns of its neurons. We propose to extract such decision patterns that can be considered as invariants of the network with respect to a certain output behavior. We present techniques to extract input invariants as convex predicates on the input space, and layer invariants that represent features captured in the hidden layers. We apply the techniques on the networks for the MNIST and ACASXU applications. Our experiments highlight the use of invariants in a variety of applications, such as explainability, providing robustness guarantees, detecting adversaries, simplifying proofs and network distillation.

Motivation & Objective

  • To automatically infer invariant properties in feed-forward neural networks that reflect consistent decision logic.
  • To identify input invariants as convex predicates over the input space to capture stable network behavior.
  • To extract layer invariants that represent learned features in hidden layers.
  • To apply these invariants to improve model explainability, robustness, and verification.
  • To evaluate the approach on real-world benchmarks like MNIST and ACASXU for practical validation.

Proposed method

  • Analyze neuron activation patterns across inputs to identify recurring decision logic in the network.
  • Extract input invariants by formulating convex predicates that characterize input regions leading to specific outputs.
  • Derive layer invariants by analyzing feature representations in hidden layers, capturing invariant structural patterns.
  • Use polyhedral abstraction and constraint solving to compute and validate invariants over input and hidden spaces.
  • Leverage invariants to simplify proofs, detect adversarial examples, and guide network distillation.
  • Apply the framework to trained networks on MNIST and ACASXU to extract and validate invariants in practice.

Experimental results

Research questions

  • RQ1How can invariant properties be automatically inferred from the activation patterns of feed-forward neural networks?
  • RQ2What types of invariants—input-level or layer-level—can be effectively extracted and used to explain network behavior?
  • RQ3To what extent can these invariants improve robustness guarantees and adversarial example detection?
  • RQ4Can invariants simplify formal verification and proof construction for deep networks?
  • RQ5How effective are the extracted invariants in distilling knowledge from larger networks?

Key findings

  • The method successfully extracts convex input invariants that capture stable decision boundaries in MNIST and ACASXU networks.
  • Layer invariants reveal consistent feature representations in hidden layers, supporting model explainability.
  • Invariants enable improved detection of adversarial examples by identifying deviations from learned invariant patterns.
  • The extracted invariants simplify formal proofs by reducing the complexity of verifying network behavior.
  • The approach supports network distillation by identifying and preserving key invariant behaviors in smaller models.
  • Empirical evaluation confirms the utility of invariants across multiple applications, including robustness and interpretability.

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.