Skip to main content
QUICK REVIEW

[Paper Review] Runtime Monitoring Neuron Activation Patterns

Chih‐Hong Cheng, Georg Nührenberg|arXiv (Cornell University)|Sep 18, 2018
Adversarial Robustness in Machine LearningComputer Science10 references7 citations
TL;DR

This paper proposes runtime monitoring of neuron activation patterns in neural networks to detect decisions made outside the network's training distribution. By storing ReLU-based activation patterns from training data using BDDs and checking real-time inputs against a Hamming-distance-based abstraction, the method flags unreliable predictions with low false positives—achieving up to 54.54% detection of misclassifications in GTSRB with minimal operational overhead.

ABSTRACT

For using neural networks in safety critical domains, it is important to know if a decision made by a neural network is supported by prior similarities in training. We propose runtime neuron activation pattern monitoring - after the standard training process, one creates a monitor by feeding the training data to the network again in order to store the neuron activation patterns in abstract form. In operation, a classification decision over an input is further supplemented by examining if a pattern similar (measured by Hamming distance) to the generated pattern is contained in the monitor. If the monitor does not contain any pattern similar to the generated pattern, it raises a warning that the decision is not based on the training data. Our experiments show that, by adjusting the similarity-threshold for activation patterns, the monitors can report a significant portion of misclassfications to be not supported by training with a small false-positive rate, when evaluated on a test set.

Motivation & Objective

  • To address the challenge of detecting when a neural network makes decisions outside its training distribution, especially in safety-critical systems like autonomous driving.
  • To provide a formal, sound method for detecting 'out-of-distribution' inputs without relying on probabilistic guarantees.
  • To enable runtime verification of neural network decisions by monitoring high-level feature patterns in close-to-output layers.
  • To balance abstraction coarseness so that monitors are neither too sensitive nor too permissive, ensuring practical utility.
  • To integrate the monitor into real-world systems as a trust signal for sensor fusion and decision reliability.

Proposed method

  • After training, the network processes all correctly classified training data to record ReLU on-off activation patterns in high-level layers.
  • Activation patterns are abstracted and stored using Binary Decision Diagrams (BDDs) for efficient symbolic manipulation.
  • The monitor is extended via existential quantification to include patterns within a configurable Hamming distance (γ) of known patterns, enabling generalization.
  • Gradient-based sensitivity analysis identifies and monitors only the most important neurons, reducing BDD variable count and improving scalability.
  • A validation set is used to tune the Hamming distance threshold (γ) such that out-of-pattern detections correlate strongly with misclassifications.
  • During inference, the monitor checks if the current activation pattern is within the abstracted pattern space; if not, it issues a warning of potential unreliability.

Experimental results

Research questions

  • RQ1Can we detect when a neural network makes a decision based on activation patterns not seen during training?
  • RQ2How can we balance abstraction coarseness in the monitor to avoid both excessive false alarms and missed detections?
  • RQ3To what extent can a BDD-based monitor with Hamming-distance-based generalization detect misclassifications with low false-positive rates?
  • RQ4Can this method be applied to real-world safety-critical systems such as autonomous vehicle perception?
  • RQ5How does the monitor’s performance vary across different datasets and network architectures?

Key findings

  • On the MNIST dataset with γ=2, the monitor detected 99.4% of out-of-pattern inputs and flagged 31.66% of them as potentially misclassified, with only 0.6% false positives.
  • On the GTSRB benchmark with γ=3, the monitor signaled issues in 4.58% of operations and correctly identified 54.54% of those cases as misclassifications.
  • The monitor remained silent for 95.42% of operations on GTSRB, indicating low operational interference despite high detection capability.
  • The method achieved sound over-approximation of training data patterns, ensuring that any warning corresponds to a genuine unseen activation pattern.
  • The use of gradient-based neuron selection reduced BDD complexity, enabling scalability to large networks with hundreds of neurons.
  • The approach is applicable to object detection networks like YOLO and can be extended using more refined abstract domains such as difference bound matrices.

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.