Reproduce “LogiCode: an LLM-Driven Framework for Logical Anomaly Detection” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yiheng Zhang, Yunkang Cao, Xiaohao Xu, Weiming Shen

Researchers from Huazhong University of Science and Technology developed LogiCode, an LLM-driven framework for detecting logical anomalies in industrial images by generating and executing Python code. The framework identifies errors in high-level semantic logic and provides explicit, rule-based explanations, achieving an average binary classification accuracy of 0.989 and 0.963 reasoning accuracy.

Key insights

  • LLMs can effectively bridge the gap in industrial anomaly detection by interpreting complex logical relationships and generating executable code for verification.
  • Providing explicit, rule-based explanations for detected anomalies is crucial for enhancing interpretability and facilitating effective root cause analysis in industrial quality control.
  • Specialized datasets with detailed logical anomaly annotations and comprehensive benchmarks are essential for advancing and rigorously evaluating LLM-driven detection methods.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.