When Rule Violations Are Rare: Chimera Training for Logical Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 30 references that are in the map. First posted on arXiv 25 May 2026.
Builds on
21 of 30 references.
References · 21
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2020Concept Bottleneck Modelscited by 1,032
- 2019CLEVRER: CoLlision Events for Video REpresentation and Reasoningcited by 484
- 2020A Unifying Review of Deep and Shallow Anomaly Detectioncited by 425
- 2019Neural Probabilistic Logic Programming in DeepProbLogcited by 394
9 more
- 2015Neural Module Networkscited by 376
- 2017A Semantic Loss Function for Deep Learning with Symbolic Knowledgecited by 270
- 2016Harnessing Deep Neural Networks with Logic Rulescited by 135
- 2017Inferring and Executing Programs for Visual Reasoningcited by 130
- 2017Logic Tensor Networks for Semantic Image Interpretationcited by 92
- 2023Few Shot Part Segmentation Reveals Compositional Logic for Industrial Anomaly Detectioncited by 19
- 2018Neural Algebra of Classifierscited by 7
- 2024LogicAL: Towards logical anomaly synthesis for unsupervised anomaly localizationcited by 7
- 2020Compositional Embeddings for Multi-Label One-Shot Learningcited by 5
Built on by
Not cited yet.