LogiCo: A Unified Framework for Logical and Structural Anomaly Detection

Ximiao Zhang, Min Xu, Xiuzhuang Zhou
6/27/2026
1 citation
cs.CV

Official code: cnulab/LogiCo (19 stars, Python, Apache-2.0, last commit 2026-06-30).

Abstract

Current anomaly detection methods primarily focus on structural anomalies, while paying insufficient attention to anomalies that violate logical constraints. Conversely, top-performing logical anomaly detection approaches address this by modeling global semantic consistency, but perform poorly on subtle structural anomalies due to inadequate detection granularity.

Show full abstract

In this paper, we propose LogiCo, a unified framework for Logical and structural anomaly detection via Component-level feature reconstruction. Unlike existing methods that rely on explicit global semantic modeling, LogiCo employs a novel component-level feature reconstruction technique to capture inter-component logical constraints. Specifically, LogiCo maps pre-trained image features into a discrete component-level feature space and performs collaborative feature reconstruction at both component and patch levels, enabling it to effectively detect both logical and structural anomalies. Furthermore, to address the specific challenge of count-related logical anomalies, we integrate a segmentation-map discriminator that extends the model's capability to identify quantitative inconsistencies. LogiCo achieves state-of-the-art performance on both logical and structural anomaly detection across four benchmarks, including MVTec-LOCO, MVTec-AD, VisA, and Real-IAD, demonstrating its superiority and practical feasibility. The code is available at https://github.com/cnulab/LogiCo.

View on arXivView PDF

Code Implementations(1)

cnulab/LogiCoOfficial100%
Apache-2.0

Official implementation of "LogiCo: A Unified Framework for Logical and Structural Anomaly Detection (ECCV 2026)"

191Python, CudaJun 27, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2026logico,
  title  = {LogiCo: A Unified Framework for Logical and Structural Anomaly Detection},
  author = {Ximiao Zhang and Min Xu and Xiuzhuang Zhou},
  year   = {2026},
  eprint = {2606.28688},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.28688v1},
  journal = {ECCV 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.28688.svg)](https://codeofpaper.com/paper/2606.28688)

Discussion