When Rule Violations Are Rare: Chimera Training for Logical Anomaly Detection

Alejandro Ascarate, Leo Lebrat, Rodrigo Santa Cruz, Clinton Fookes, Olivier Salvado

arXiv:2605.26171 · 2026-05-27 공개 · arXiv · PDF

anomaly-scores logical-anomaly-detection rule-violations neural-rule-evaluator feature-aware-gates chimera-training openimages vidor

Abstract

Many practical anomalies are not merely rare inputs, but violations of semantic constraints: objects co-occur in structured ways, actions imply preconditions, and events satisfy temporal or relational regularities. We study anomaly detection in this setting, where constraints are given as logical rules over learned visual concepts, but real rule violations are rare or absent during training. We propose a neural rule evaluator that compiles each constraint into a directed acyclic graph and learns feature-aware subtree MLP gates for its internal logical operators. Each gate maps child features and edge-level negations to a parent representation and a rule-satisfaction probability, with intermediate supervision obtained from exact Boolean propagation over ground-truth concept labels. The key difficulty is that same-image training data often provide insufficient coverage of informative truth configurations and also allow shortcut solutions. To address this, we introduce chimera training: an operand-level counterfactual construction at the feature level. Instead of mixing input images, we concatenate subtree features from different samples; each operand keeps the hard truth label of the sample it came from, and the chimera target is obtained by applying the node's logical operator to those inherited labels. This supplies supervised logical counterexamples without requiring real anomalous images. Across CLEVRER, OpenImages, and VidOR, the resulting evaluator improves rule-level anomaly AUROC over independent-events and same-image semantic-training baselines, especially for compositional and relational rules. The method yields both scalar anomaly scores and rule-level attributions.

한국어 요약

📋 한 줄 요약

**[Logical Anomaly Detection / Chimera Training]** Chimera training이 operand-level counterfactual feature concatenation으로 rule violation 데이터 없이 logical anomaly detector 학습, CLEVRER·OpenImages·VidOR에서 compositional·relational rule AUROC 개선.

🎯 핵심 기여도

💡 핵심 아이디어

Logical anomaly detection의 핵심 난제는 real rule violation 데이터 부재이며, image-level mixing이 아닌 feature-level operand 수준에서 다른 sample의 subtree feature를 concatenate해 hard truth label과 operator로 chimera target을 자동 합성하면, 실제 anomalous image 없이도 supervised logical counterexample 학습이 가능하다.

🔬 기술적 접근법

📊 주요 결과

💭 의의 및 한계

**의의**: Logical anomaly detection의 데이터 부족 문제를 feature-level operand chimera로 우회, neurosymbolic 학습의 새 데이터 augmentation 패러다임, 3 다양 도메인 데이터셋에서 일반화 입증, rule-level attribution으로 interpretable. **한계**: Logical rule이 사전 주어져야 함, learned visual concept의 정확도에 종속, chimera target이 hard label 가정으로 fuzzy logic 일반화는 후속, 큰 DAG에서 학습 cost 증가 가능.

🚀 실용적 활용