Interactive System-wise Anomaly Detection

Guanchu Wang, Ninghao Liu, Daochen Zha, Xia HuarXiv 2023

TL;DR

InterSAD (Interactive System-wise Anomaly Detection) introduces a framework for identifying anomalous systems—like malfunctioning robots or malicious users—by actively interacting with them. Unlike traditional methods that analyze static data, InterSAD learns a policy to "probe" systems with specific activation signals, forcing anomalies to reveal themselves through distinctive behavioral responses.

What Problem Does This Paper Address?

Most anomaly detection focuses on point-wise data (e.g., a single fraudulent transaction) or pattern-wise data (e.g., a spike in a time-series). However, in many real-world scenarios, the "instance" we want to evaluate is a system whose internal state isn't directly visible.

Consider a fleet of delivery robots. A robot with a slightly misaligned joint might look perfectly normal while standing still. You only discover the flaw when you give it a specific command—an "activation signal"—and observe its reaction. The challenge is three-fold:

  1. Definition: How do we formally define a "system-wise" anomaly?
  2. Interaction: What is the most effective signal to send to a system to make an anomaly stand out? (Random signals often result in noisy, inconclusive data).
  3. Stability: How do we train a detector when the data is being generated in real-time through non-stationary interactions?

Methods

The authors model interactive systems as Markov Decision Processes (MDPs). They categorize anomalies into two types: Anomalous Transition systems (e.g., a robot with physical flaws) and Anomalous Reward systems (e.g., a malicious user providing fake feedback).

The InterSAD framework consists of three main components:

  • Policy Network: Instead of using random inputs, a neural network learns a policy to generate activation signals. The goal of this policy is to "neutralize" the embeddings of normal systems, effectively forcing the majority to behave consistently so that outliers become obvious.
  • Encoder-Decoder Module: This module learns to map a system's response trajectory into a low-dimensional system embedding.
  • InterSAD-T (Transition) focuses on reconstructing the trajectory to capture physical behavior.
  • InterSAD-R (Reward) focuses on reconstructing reward sequences to capture feedback patterns.
  • System Embedding Neutralization (SEN): This is a key innovation. The policy is optimized to minimize the distance between system embeddings. By trying to make all systems look the same, the policy naturally discovers the signals that normal systems can follow but anomalous systems cannot.

To ensure training stability, the authors implement an Experience Replay Mechanism (ERM), storing interaction data in a buffer and sampling from it to break the correlations inherent in real-time data collection.

Fig. 3. An overview of InterSAD framework. A policy strategically selects actions to interact with the systems; an encoder-decoder model learns the embedding of the systems with the collected trajectories.

Datasets

The authors evaluated InterSAD on two distinct benchmarks:

  1. Robotic Systems: Using the OpenAI Gym/Pybullet environments (HalfCheetah, Walker2D, and Ant). Anomalies were created by subtly altering physical parameters, such as the diameters of thighs, shins, or feet.
  2. Recommender Systems: Using VirtualTaobao, which simulates user interactions in an e-commerce setting. Anomalies were "malicious users" who strategically clicked on items to poison the recommendation model.

Key Insights and Ideas

  • Active Probing is Essential: As shown in Figure 1(c), random activations often lead to inconsistent outputs from even normal systems, masking the anomaly. A well-designed activation signal is required to "isolate" the anomalous behavior.
  • Neutralization as a Filter: The idea of "System Embedding Neutralization" is counter-intuitive but brilliant. By training the policy to make the majority of systems look identical in the embedding space, any system that remains different is, by definition, an anomaly that cannot conform to the majority behavior.
  • Robustness via Latent Space: Detecting anomalies in the learned embedding space is significantly more robust to observation noise than looking at raw trajectories. The encoder acts as a filter that captures abstract, transition-relevant characteristics while discarding random noise.

Key Results

InterSAD demonstrated significant improvements over baselines like DDPG and random sampling:

  • Robotic Anomalies: In the Walker2D and Ant environments, InterSAD-T achieved a near-perfect ROC-AUC of 0.999, whereas random sampling methods struggled around 0.72–0.82.
  • User Attack Detection: In the VirtualTaobao environment, InterSAD-R maintained an ROC-AUC of 0.997+ even when malicious users only faked 0.5% of their clicks. Traditional methods saw their performance drop sharply as the "subtlety" of the attack increased.
  • Stability: The combination of SEN and ERM proved vital. Without SEN, the policy failed to distinguish anomalies effectively; without ERM, the training process often failed to converge due to the non-stationary nature of the interaction data.

Limitations and Future Work

While highly effective in simulation, the authors note that real-world deployment faces hurdles. Interacting with physical systems (like real robots) can be expensive or risky if the "probing" signal is too aggressive.

Future work involves:

  • Testing the framework on more sophisticated and complex systems.
  • Exploring ways to minimize the number of interactions required to identify an anomaly, which is crucial for high-cost hardware.
  • Investigating how to handle systems where the state space is partially observable or extremely high-dimensional.

Summary updated

BibTeX
@misc{wang2023interactive,
  author = {Guanchu Wang and Ninghao Liu and Daochen Zha and Xia Hu},
  title = {{Interactive System-wise Anomaly Detection}},
  year = {2023},
  eprint = {2304.10704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.10704},
}
Figure