SGDB: Semantic-Geometric Decoupling and Evidence Binding for Logical Anomaly Detection
Organizations: School of Information Science and Engineering, East China University of Science and Technology, Shanghai 200237, China
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.
Figures & tables
| Input | Decoded objects , initial witnesses , class masks ; , , . |
|---|---|
| 1 | Set for same-class pairs with ; otherwise set . Add dummy columns of cost . |
| 2 | (Hungarian). |
| 3 | Bind real matches to ; mark dummy matches unavailable. Retain every decoded identity. |
| 4 | for each mask-backed length class with do |
| 5 | . |
| 6 | Where readable, compute by Eq. ( 4 ) and both qualities by Eq. ( 5 ). |
| SALAD Fučka et al. [2025] | LogiCo Zhang et al. [2026a] | ComAD Liu et al. [2023] | PUAD Sugawara and Imamura [2024] | Qwen3-VL-8B Bai et al. [2025] | LogicAD-FE-fast Jin et al. [2025] | SGDB (Ours) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Category | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 |
| Breakfast box | 92.27 | 85.00 | 98.89 | 96.30 | 94.19 | 86.79 | 93.07 | 82.43 | 91.21 | 71.64 | 52.60 | 17.65 | 98.78 | 98.78 |
| Juice bottle | 99.79 | 98.61 | 99.22 | 95.62 | 87.96 | 79.68 | 99.83 | 98.61 | 83.31 | 61.46 | 53.67 | 1.40 | 96.38 | 96.00 |
| Pushpins | 100.00 | 75.21 | 98.37 | 93.55 | 87.11 | 78.53 | 86.69 | 69.44 | 62.84 | 14.29 | 53.02 | 8.00 | 98.87 | 96.22 |
| Screw bag | 93.95 | 84.65 | 84.18 | 69.41 | 79.22 | 24.84 | 70.20 | 28.92 | 55.25 | 49.34 | 49.82 | 2.84 | 98.92 | 93.54 |
| Splicing connectors | 96.08 | 88.78 | 91.80 | 84.31 | 85.61 | 82.90 | 94.30 | 88.00 | 78.56 | 56.95 | 65.70 | 8.85 | 97.97 | 88.08 |
| SALAD Fučka et al. [2025] | LogiCo Zhang et al. [2026a] | ComAD Liu et al. [2023] | PUAD Sugawara and Imamura [2024] | Qwen3-VL-8B Bai et al. [2025] | LogicAD-FE-fast Jin et al. [2025] | SGDB (Ours) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Scenario | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 | AUROC | F1 |
| Balls | 23.76 | 58.06 | 58.88 | 61.45 | 65.85 | 53.57 | 17.27 | 54.04 | 97.87 | 89.97 | 51.27 | 12.91 | 86.43 | 87.56 |
| Blocks | 90.92 | 84.62 | 94.37 | 90.98 | 77.93 | 71.64 | 79.70 | 74.55 | 92.93 | 90.37 | 48.78 | 14.69 | 89.15 | 86.98 |
| Cookies | 62.97 | 80.26 | 52.37 | 80.67 | 98.05 | 91.49 | 18.93 | 62.76 | 84.29 | 88.03 | 54.24 | 10.32 | 86.62 | 85.21 |
| Dishes | 52.36 | 37.59 | 66.61 | 73.74 | 73.95 | 57.72 | 61.84 | 43.60 | 99.64 | 95.39 | 80.55 | 77.45 | 92.90 | 96.63 |
| Fruits | 99.81 | 94.60 | 99.17 | 96.41 | 99.94 | 98.06 | 98.56 | 90.08 | 95.31 | 93.42 | 90.55 | 73.12 | 93.80 | 93.31 |
| LOCO logical | VID all 50 | |||
| Configuration | AUROC | F1 | AUROC | F1 |
| (a) Semantic decoder and geometric readout | ||||
| FMP reader | 95.01 | 90.88 | 91.33 | 89.47 |
| FMP + guarded geometry | 98.08 | 93.54 | 91.33 | 89.47 |
| Direct DFD: plain set | 95.01 | 90.88 | 93.41 | 91.78 |
| Direct DFD: evidence edit | 95.42 | 92.41 | 92.64 | 91.83 |
| LOCO logical | VID all 50 | |||
|---|---|---|---|---|
| Readout | AUROC | F1 | AUROC | F1 |
| Initial bound readout | 98.19 | 94.52 | 92.63 | 91.79 |
| Uniform mask readout | 96.36 | 93.54 | 93.58 | 92.86 |
| Quality selection only | 96.62 | 93.82 | 93.54 | 92.76 |
| SGDB: complete support | 98.19 | 94.52 | 93.56 | 92.76 |
| Selection | Mean | Suff. | Fail |
|---|---|---|---|
| All executed rules | 7.121 | 100.00 | 0 |
| All positive-score rules | 1.994 | 100.00 | 0 |
| Maximum-score rule | 1.000 | 99.70 | 17 |
| Compact sufficient (SGDB) | 1.006 | 100.00 | 0 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Fitting | Dev. | Cal. | Ann. fit. | Ann. dev. | Test |
|---|---|---|---|---|---|---|
| Breakfast Box | 234 | 29 | 62 | 234 | 29 | 185 |
| Juice Bottle | 224 | 27 | 54 | 224 | 27 | 236 |
| Pushpins | 248 | 31 | 69 | 248 | 31 | 229 |
| Screw Bag | 240 | 30 | 60 | 240 | 30 | 259 |
| Splicing Connectors | 237 | 30 | 60 | 237 | 30 | 227 |
| Balls | 100 | 50 | 50 | 20 | 15 | 790 |
| Candidate | Point F1 | Axis error | Unbound | Objective |
|---|---|---|---|---|
| Same class, 0.04 | 99.10 | 8.78 | 13 | 0.97528 |
| Same class, 0.08 | 99.68 | 8.76 | 0 | 0.97990 |
| Any class, 0.04 | 99.35 | 10.07 | 6 | 0.97466 |
| Any class, 0.08 | 99.68 | 10.10 | 0 | 0.97721 |
| Readout | Mean | Median | P95 | Large | Updates |
|---|---|---|---|---|---|
| Predicted endpoints | 11.96 | 4.96 | 53.00 | 8.00 | 0 |
| Connected components, untrimmed | 8.30 | 1.61 | 53.00 | 6.00 | 32 |
| Connected components, 1% trimming | 9.56 | 3.53 | 53.00 | 6.00 | 32 |
| Box-supported assignment, untrimmed | 2.50 | 0.83 | 9.36 | 0.00 | 60 |
| Box-supported assignment, 1% trimming | 4.68 | 3.54 | 12.96 | 0.00 | 60 |
| Category | Axes | Quality | Accepted |
|---|---|---|---|
| Screw bag | 490 | 23 | 3 |
| Tapes | 1,911 | 200 | 172 |
| Ropes | 1,627 | 9 | 0 |
| Sticks | 2,372 | 6 | 1 |
| Stationery | 3,202 | 2 | 0 |
| Own normal references | Shared SGDB references | |||||||
|---|---|---|---|---|---|---|---|---|
| LOCO | VID | LOCO | VID | |||||
| Policy | AUC | F1 | AUC | F1 | AUC | F1 | AUC | F1 |
| SGDB partial binding | 98.19 | 94.52 | 93.56 | 92.76 | 98.19 | 94.52 | 93.56 | 92.76 |
| Independent nearest witness | 98.19 | 94.52 | 93.56 | 92.76 | 98.19 | 94.52 | 93.56 | 92.76 |
| Without class compatibility | 98.19 | 94.52 | 92.60 | 91.38 | 98.19 | 94.52 | 93.55 | 92.76 |
| Without distance gate | 98.19 | 94.52 | 93.56 | 92.76 | 98.19 | 94.52 | 93.56 | 92.76 |
| Policy | Unbound | Dropped | Reuse | Cross-class |
|---|---|---|---|---|
| SGDB partial binding | 1 | 0 | 0 | 0 |
| Independent nearest witness | 0 | 0 | 3 | 0 |
| Without class compatibility | 0 | 0 | 0 | 309 |
| Without distance gate | 1 | 0 | 0 | 0 |
| Discard unbound identities | 1 | 1 | 0 | 0 |
| Radius 0.04 | 423 | 0 | 0 | 0 |
| Policy | Count kept | Null orphan | Reuse trials |
|---|---|---|---|
| SGDB partial binding | 100.00 | 100.00 | 0.00 |
| Independent nearest witness | 100.00 | 77.04 | 22.96 |
| Without class compatibility | 100.00 | 96.94 | 0.00 |
| Without distance gate | 100.00 | 99.43 | 0.00 |
| Discard unbound identities | 0.00 | 0.00 | 0.00 |
| Radius 0.04 | 100.00 | 100.00 | 0.00 |
| Category | Alarms | All | Positive | Compact | Max fail |
|---|---|---|---|---|---|
| breakfast box | 81 | 27.889 | 5.938 | 1.000 | 0 |
| juice bottle | 133 | 21.917 | 3.203 | 1.000 | 0 |
| pushpins | 94 | 6.862 | 2.543 | 1.000 | 0 |
| splicing connectors | 85 | 6.365 | 1.965 | 1.000 | 0 |
| screw bag | 126 | 5.254 | 1.571 | 1.000 | 0 |
| Sticks | 533 | 3.450 | 1.572 | 1.000 | 0 |
| Language | Reports | Accepted | Mean claims |
|---|---|---|---|
| English | 63 | 63 | 1.159 |
| Chinese | 7 | 7 | 1.429 |
| Condition | Images | AUROC | F1 | Normal FPR | Missing |
|---|---|---|---|---|---|
| Original | 1579 | 94.94 | 93.85 | 6.60 | 12.63 |
| Cable BG | 1579 | 94.06 | 91.88 | 11.60 | 14.94 |
| Mesh BG | 1579 | 92.83 | 91.96 | 13.00 | 13.94 |
| Low light | 1579 | 93.19 | 93.12 | 12.00 | 13.91 |
| Blur | 1579 | 92.76 | 92.99 | 13.60 | 13.37 |
| Method | Normal data / component targets | Requirements / implementation | VID calibration |
|---|---|---|---|
| SGDB V2 | Fit/DEV/CAL roles; component targets in Table S1 . | Explicit requirements; learned semantics, bound geometry and support certification. | Task level. |
| SALAD | Normal fitting; archived VID component-map input; LOCO annotation detail NR. | Local completed deployment; 70,000-step VID branch; no SGDB executor. | Category level. |
| LogiCo | Normal fitting; archived VID component frontend; exact LOCO target lineage NR. | Local component adaptation; fixed 200-epoch VID fit; no SGDB executor. | Pooling NR. |
| ComAD | LOCO normal RGB only, no component labels; VID shared component frontend. | LOCO DINO-S8, five clusters and CRF; VID component-map adapter. | Pooling NR. |
| PUAD | LOCO normal RGB only; VID local shared component-map input. | 70,000 steps; external ImageNet penalty images omitted. | Category level. |
| Qwen3-VL-8B | Archived prompts and normal score calibration; prompt-reference count NR. | Frozen image-language baseline; distinct from the explanation-side text model. | Pooling NR. |
| Scenario | Condition | SALAD | LogiCo | ComAD | PUAD | Qwen | LogicAD | SGDB |
|---|---|---|---|---|---|---|---|---|
| Balls | Original | 13.35 | 60.78 | 61.30 | 8.93 | 99.86 | 53.59 | 89.47 |
| Balls | Cable BG | 19.15 | 67.74 | 63.44 | 11.02 | 92.99 | 50.79 | 97.09 |
| Balls | Mesh BG | 56.74 | 62.37 | 74.76 | 43.63 | 99.64 | 66.19 | 88.09 |
| Balls | Low light | 16.15 | 55.46 | 70.78 | 12.72 | 99.27 | 37.80 | 77.10 |
| Balls | Blur | 13.39 | 48.04 | 58.98 | 10.07 | 97.59 | 47.99 | 80.41 |
| Blocks | Original | 95.44 | 93.31 | 80.51 | 88.64 | 99.34 | 43.85 | 87.73 |
| Scenario | Condition | SALAD | LogiCo | ComAD | PUAD | Qwen | LogicAD | SGDB |
|---|---|---|---|---|---|---|---|---|
| Balls | Original | 81.82 | 64.89 | 25.40 | 81.82 | 96.65 | 1.82 | 85.32 |
| Balls | Cable BG | 11.11 | 61.18 | 47.30 | 5.80 | 77.27 | 18.33 | 92.86 |
| Balls | Mesh BG | 57.92 | 53.09 | 51.66 | 54.35 | 94.12 | 23.26 | 93.15 |
| Balls | Low light | 58.06 | 63.64 | 75.49 | 47.76 | 92.00 | 21.14 | 83.26 |
| Balls | Blur | 81.37 | 64.45 | 68.00 | 80.46 | 89.80 | 0.00 | 83.19 |
| Blocks | Original | 85.27 | 91.60 | 71.59 | 83.53 | 99.09 | 19.12 | 86.01 |
| Dataset | Control | AUROC [95% CI] | F1 [95% CI] |
|---|---|---|---|
| LOCO | Initial bound | +0.00 [+0.00, +0.00] | +0.00 [+0.00, +0.00] |
| LOCO | Uniform mask | +1.83 [+1.18, +2.51] | +0.98 [-0.07, +2.05] |
| LOCO | Quality only | +1.57 [+0.96, +2.22] | +0.70 [-0.28, +1.69] |
| LOCO | FMP + guarded geometry | +0.11 [+0.00, +0.29] | +0.98 [+0.06, +2.00] |
| VID-AD | Initial bound | +0.93 [+0.56, +1.32] | +0.97 [+0.57, +1.43] |
| VID-AD | Uniform mask | -0.02 [-0.08, +0.04] | -0.10 [-0.20, -0.02] |
| Dataset | Control | AUROC [95% CI] | F1 [95% CI] |
|---|---|---|---|
| LOCO | Initial bound | +0.00 [+0.00, +0.00] | +0.00 [+0.00, +0.00] |
| LOCO | Uniform mask | +0.68 [+0.33, +1.09] | +1.12 [+0.54, +1.71] |
| LOCO | Quality only | +0.15 [+0.02, +0.35] | +0.28 [-0.03, +0.64] |
| VID-AD | Initial bound | +0.93 [+0.56, +1.32] | +0.97 [+0.57, +1.43] |
| VID-AD | Uniform mask | -0.03 [-0.08, +0.02] | -0.05 [-0.13, +0.01] |
| VID-AD | Quality only | +0.02 [+0.00, +0.06] | +0.00 [+0.00, +0.00] |
| Control | R views | G views | R groups | G groups |
|---|---|---|---|---|
| Initial bound | 90 | 1 | 20 | 1 |
| Uniform mask | 28 | 27 | 28 | 23 |
| Quality only | 22 | 14 | 22 | 14 |
| Dataset | Corrected FN | New FN | Corrected FP | New FP | Changes | Same residuals |
|---|---|---|---|---|---|---|
| LOCO | 13 | 1 | 0 | 4 | 18 | 16 |
| VID | 366 | 110 | 77 | 66 | 619 | 158 |
Anomaly Detection
Anomaly detection finds rare or unexpected patterns in data, from defective products and system faults to fraud and security threats.
See all 646 papers