arXiv:2610.34897cs.CVOct 2026

Manuscript Offprint

arXiv:2610.34897

SGDB: Semantic-Geometric Decoupling and Evidence Binding for Logical Anomaly Detection

Chenrui Ji, Jiafan Lu, Zilu Luo, Feng Wan, Qiuhui Chen, Weimin Zhong

Abstract

Logical anomaly detection requires recognizing scene components and measuring whether their configuration satisfies task constraints. Correct identities can coexist with inaccurate geometry; clean mask fragments can yield misleading lengths. We propose Semantic–Geometric Decoupling and Evidence Binding (SGDB). A semantic decoder learns object identities from component-annotated normal sources and factual edits; a separate reader supplies final measurements. Partial one-to-one association binds geometric witnesses to identities while retaining unmatched objects in the count. A support-certified reader selects mask-derived axes using line quality and complete component ownership. Explicit task requirements and normal-data references define executable checks, with decision thresholds fixed by independent normal calibration. Execution-grounded explanation traces rule contributions to source objects and measurements, extracting compact sufficient alarm certificates. A frozen language model expresses selected outcomes as cited claims, with numeric evidence retained by the executor. Reports preserve observed deviations and unavailable evidence. SGDB achieves 98.19% AUROC and 94.52% fixed-threshold F1 on five MVTec LOCO logical categories, and 93.56% AUROC and 92.76% F1 across all 50 VID-AD tasks. Frozen-output controls evaluate geometric readout and explanatory sufficiency and compactness.

Keywords: Logical anomaly detection, Semantic–geometric decoupling, Evidence binding, Geometric measurement, Execution-grounded explanation

1. Introduction

Logical anomaly detection requires recognizing scene components and measuring whether their configuration satisfies task requirements. Two screw bags can contain identical component counts yet differ in geometric validity; a tray can contain the required utensils in the wrong order. Recognition establishes identities and counts, while measurement supplies lengths, positions and relations. MVTec LOCO AD distinguishes these logical violations from structural defects [1], and VID-AD tests inspection under capture distractions [2].

Recent component-aware methods model component regions, object composition or reference matching [4–7]. Language-based approaches express inspection requirements through descriptions, programs and constraint subqueries [8–10]. Figure 1 illustrates why correct object identities and counts do not ensure geometric validity. Each geometric operand must be suitable for its constraint and attached to the intended object. A correctly recognized screw can have inaccurate regressed endpoints. A mask-derived length requires an identity to be checked against its object-specific bound. However, assigning a clean fragment of a merged region to an object can produce a plausible but incomplete axis. Readout must therefore check the instance support as well as the quality of the fitted line.

(a) Same counts, different geometric validity

Normal sample

Length anomaly

Figure

Both: 1 rope · 1 reference · 1 label

(b) SGDB: from image to grounded output

Input

SGDB

Output

Figure

Semantics

Geometry

Bind & verify

Semantic-geometric decoupling

Anomaly

Rope/reference ratio

exceeds its bound.

Evidence

1.362 > 1.174

Figure 1: Motivation for explicit geometric verification beyond appearance/composition scoring [3, 4]. (a) The two scenes have identical component counts. (b) SGDB maps an image to a decision, explanation and evidence through semantic–geometric decoupling, binding and verification. The recorded rope/reference ratio 1.362 exceeds the normal upper bound 1.174. Images and measurements are from frozen outputs.

We study logical inspection configured with normal images, component annotations and explicit task requirements. Compo-

*Corresponding authors: Qiuhui Chen and Weimin Zhong. Email addresses: chenqh@ecust.edu.cn (Qiuhui Chen), wmzhong@ecust.edu.cn (Weimin Zhong) nent targets supervise visual readers; normal observations establish measurement ranges and score references; task requirements specify the discrete constraints to execute. We propose Semantic–Geometric Decoupling and Evidence Binding (SGDB), which separates semantic recognition from final geometric readout and reconnects their outputs through explicit evidence binding. Component-aware inspection [4, 11–13] provides useful object and region representations; binding establishes which measured operand belongs to each decoded identity.

SGDB implements this separation above a shared visual frontend. A learned object-set decoder reads frozen features with candidate and spatial queries. A witness reader supplies initial geometric operands, including native-coordinate mask readout for screw axes. Same-class partial one-to-one association attaches compatible witnesses to decoded objects using center proximity. A subsequent support-certified readout replaces a length axis only when the candidate improves support quality and preserves a complete, distinct component for its observed instance. Each fact retains class, confidence, associated geometry, measurement availability and source indices. Unmatched identities still contribute to the count, with their geometric operands marked unavailable.

Bound facts support both executable verification and an explanation of the resulting decision. A rule deviation alone need not trigger an alarm: normal-reference normalization, aggregation and the task threshold determine its effect. SGDB therefore records each executed operand, requirement and score contribution together with its source links. It extracts a compact sufficient alarm certificate and uses the same trace to express the decision, supporting measurements and unavailable evidence.

The selected trace also conditions a frozen language model, whose claims retain executor-owned evidence citations and numeric records.

SGDB connects three complementary mechanisms through this evidence representation:

  1. Semantic–geometric fact construction assigns object identification and counting to a learned semantic decoder and final geometric operands to a separate witness readout.

  2. Partial evidence binding and support-certified readout join identities to compatible measurements, preserve unmatched identities and verify component ownership before updating geometry.

  3. Execution-grounded explanation extracts compact sufficient alarm certificates and traces their predicates to object identities, measured operands and evidence availability.

Evaluation spans all five LOCO logical categories and all 50 VID tasks. Shared-supervision controls examine fact construction and readout; frozen-trace comparisons examine explanatory sufficiency and compactness.

References (43)