Manuscript Offprint
arXiv:2610.34897SGDB: Semantic-Geometric Decoupling and Evidence Binding for Logical Anomaly Detection
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

Both: 1 rope · 1 reference · 1 label
(b) SGDB: from image to grounded output
Input
SGDB
Output

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:
-
Semantic–geometric fact construction assigns object identification and counting to a learned semantic decoder and final geometric operands to a separate witness readout.
-
Partial evidence binding and support-certified readout join identities to compatible measurements, preserve unmatched identities and verify component ownership before updating geometry.
-
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.
2.1. Appearance models and industrial benchmarks
Normal-appearance modeling is a central approach to industrial anomaly detection. MVTec AD provides defect images with pixel annotations [14], while VisA broadens the range of objects and multi-instance scenes [15]. PaDiM models patch embeddings with multivariate Gaussian distributions [16], and PatchCore stores a representative memory of normal patch features [3]. Reverse Distillation reconstructs teacher features from a compact one-class embedding [17]; EfficientAD combines efficient feature prediction with a global autoencoder [18]. DRAEM instead learns reconstruction and discrimination jointly using simulated anomalies [19]. These approaches establish useful appearance representations. Logical inspection additionally requires the identities, quantities and relationships of otherwise plausible components to be evaluated against the task configuration [1].
2.2. Component and relationship representations
Component-level methods address this requirement through segmentation and composition. ComAD extracts metrological properties from component regions [11]. PSAD uses a few annotated images to learn part segmentation and combines histogram, composition and patch memories [5]; CSAD obtains component pseudo-labels and combines patch histograms with local–global modeling [12]. SALAD learns the distribution of composition maps through synthetic anomalies [4], whereas LogiCo combines component reconstruction with segmentation-map discrimination [13]. PUAD complements reconstruction with an out-of-distribution model of spatially pooled features [20]. Recent work in Neurocomputing also addresses global context through pyramid fusion and state-space enhancement [21], and represents quantity and spatial relationships with separate memories [22].
Object matching provides a more explicit representation of composition. SAM-LAD matches segmented objects between query and reference images [6]. ObjectCore represents an image as a collection of object features and detects few-shot logical anomalies through bipartite matching to a support image [7]. SGDB uses association within the same image: decoded semantic identities are linked to measurements produced by a separate visual reader. This yields object-specific operands for subsequent constraint execution, including counted identities whose geometry is unavailable.
Synthetic logical examples also provide supervision when real violations are scarce. ComGEN generates anomalies through component-aware compositional editing [23]. Chimera training constructs counterfactual operands at the feature level to train a neural rule evaluator [24]. SGDB uses factual image edits with updated component targets to train semantic decoding; task constraints are evaluated by a fixed executor after evidence association.
2.3. Object queries and geometric evidence
Attention supplies a general mechanism for reading visual features [25]. DETR formulates detection as object-set prediction with bipartite training assignment [26]. Deformable DETR conditions attention on a small set of locations around reference points [27], while DAB-DETR expresses queries using dynamically updated anchor boxes [28]. These designs show
(a) Task-conditioned method overview
Input image
Category-specific readers

screw bag example
I Fact construction
Objects
Evidence
binding
Facts
Geometry
Identity · geometry · availability
Task constraints · normal statistics
II Verify
Bounds
Scores
T Alarm
III Explain
Selected trace
Frozen LLM
Qwen3-VL-8B
Example report
Anomaly
O4 exceeds its
length bound. [E05]
E05 428.2 px
Bound 363.1 px
(b) Fact construction

Linked facts: Identity · geometry · availability · source
(c) Constraint verification
Interval penalty
Deviation 0.585

Accepted range
Length (px) 196.1
Normalized contribution
363.1
428.2
6.069
(d) Execution-grounded explanation

E05 · O4 axis: 428.2 px
Upper bound: 363.1 px
Selected evidence E05
Threshold 4.430
Score 6.130
Frozen LLM
Exceeds bound [E05].
Figure 2: SGDB framework. (a) Bound facts are checked against task constraints, aggregated and compared with the alarm threshold. (b) Objects bind to geometric witnesses by class and position; unmatched identities remain counted. Quality and instance-support checks select the mask axis or retain the initial axis, shown by solid green and dashed brown lines. (c) The interval penalty is zero within the accepted range and increases linearly outside it; the marked point is the recorded O4 length. (d) Selected evidence E05 supports the frozen LLM's source-attributed explanation; numeric evidence is presented by the executor. Snowflakes denote the frozen visual frontend and language model.
how spatial hypotheses can guide semantic feature extraction. SGDB combines candidate-initialized and grid queries, then separates semantic decoding from the selection of a final geometric operand. Its deployment association links two prediction sets, rather than predictions and training targets.
When constraints depend on physical image geometry, the coordinate system of a measurement also matters. Anisotropic resizing can alter Euclidean lengths and principal directions. SGDB reads screw axes through instance-bound PCA in native coordinates [29], with support and elongation checks that retain the existing axis when the mask readout is unsuitable.
2.4. Language, executable reasoning and reports
Vision–language approaches connect visual normality to textual descriptions. WinCLIP uses prompt ensembles and window-level features [30]; AnomalyCLIP learns object-agnostic normality prompts [31]. AnomalyGPT supports anomaly localization and interactive descriptions [32]. For logical inspection, LogicAD combines extracted descriptions with formal reasoning [8], LogiCode generates executable inspection programs [9], and LogiCls decomposes constraints into subqueries for instruction-tuned violation classification [10]. VID-AD examines description-based logical inspection under visual distraction [2].
Executable intermediate representations are also studied beyond anomaly detection. VISPROG composes visual modules into programs with inspectable intermediate outputs [33]. DeepProbLog integrates neural predicates with probabilistic logic programs [34], and Logic Tensor Networks ground logical expressions in differentiable computations [35]. NeSyLAD applies learned segmentation and symbolic rule extraction to industrial logical anomalies [36]. SGDB evaluates explicit discrete requirements and continuous intervals fitted from normal data. Frozen OCR observations remain inputs for rope-label tasks; Qwen3-VL is evaluated as a separate comparison deployment [37, 38].
Sufficient explanations identify compact evidence supporting a prediction. Sufficient-subset training learns concise explanatory outputs [39], while sufficiency and necessity characterize different aspects of explanatory importance [40]. SGDB constructs its certificate over executed normalized rule scores. The certificate is connected to the semantic and geometric sources already established by evidence binding, and the full trace retains the other predicates and unavailable operands.
3. Semantic–geometric decoupling and evidence binding
3.1. Task setup and fact representation
Given image and task , SGDB returns an anomaly score , decision and supporting report. Figure 2 organizes the method into fact decoding, constraint verification and explanation. Its central representation is
where and are a decoded class and confidence, is associated geometric evidence, and indicates measurement availability. Task rules operate on these assembled facts.
Component targets on normal fitting/development images supervise the visual readers and their selection. Explicit task requirements configure the executor; normal measurements supply continuous bounds and score references. At inspection, the input is an image and its task identifier. The readers predict object identities, masks and geometric witnesses, which are assembled into the facts above.
3.2. Semantic object decoding
The visual frontend comprises an ImageNet-initialized WideResNet50-2 encoder [41, 42], multiscale feature fusion and center, box, semantic-mask and endpoint heads. Center localization follows the object-as-point formulation [43]. Component targets from normal sources supervise the frontend, which is frozen during semantic-decoder training.
The decoder reads dense features using candidate-initialized queries and spatial queries:
(2)
Candidate queries encode the frontend’s class, confidence and geometric hypothesis together with sampled visual features. Spatial queries cover a fixed grid. Two Transformer layers update the queries; first-layer soft support masks contribute a spatial attention bias to the second layer. Figure 3 details this training mechanism. A normal-source parent and its factual edit share decoder parameters. Hungarian assignment matches each prediction set to its updated component targets for class, center, box, axis and mask supervision, denoted by . Support coupling aligns predicted geometry with mask support. Paired-edit consistency supervises count changes and shared-object displacements:
Edits add, remove or move components and carry updated factual targets. Duplicate candidate-query perturbations are also used
(a) Mask feedback

(b) Paired factual training

Figure 3: Fact-decoder training. (a) First-layer soft masks bias second-layer attention over frozen visual features. (b) A normal-source parent and its edit share decoder parameters. Updated targets supervise object sets; support coupling aligns geometry with masks, and edit consistency supervises count changes and shared-object displacement. The removal example is schematic.
during training. The frontend remains frozen; optimization and individual loss weights are specified in the supplementary material.
Background and padded slots are removed to obtain the object set. The center routes an identity to a witness; final measurement values are supplied by the association below.
3.3. Partial one-to-one evidence association
Let be the witness set, with containing center, box and axis. A decoded object and witness are eligible when their classes agree and their normalized center distance is at most . Algorithm 1 constructs an cost matrix with dummy columns and computes a minimum-cost injective assignment.
A matched object inherits the witness geometry with ; a dummy match sets and . Both retain the decoded class and confidence, so unmatched identities remain counted. The indexed fact list preserves multiplicities, and the trace records decoded/witness indices and matching distance.
Normal development data select a single scheme from same-class or any-class association at radii 0.04 or 0.08. The selected same-class radius 0.08 is used across all categories and for both decoder variants.
3.4. Support-certified geometric readout
Initial witnesses use the frontend geometry, with the previously selected guarded native-axis reader for screws. This reader assigns box-supported screw-mask pixels and uses native-coordinate PCA; its support, centroid and elongation checks are specified in the supplementary material. Association fixes which initial witness belongs to each decoded identity. The subsequent reader refines the axis component of these bound objects, preserving their decoded identities, centers and boxes.
For a mask-backed length class , let be its bound objects and the frozen foreground mask. Each mask pixel is assigned to the nearest bound center in native image coordinates, . Let be the pixels assigned to , their native-coordinate mean and their principal direction. A candidate axis uses projection quantiles:
At least 16 pixels and finite, distinct endpoints are required. The candidate and initial axis are evaluated against the same using
where is the supported fraction of sampled axis points, is the assigned-pixel fraction covered by the projected axis interval, and is the largest connected-region fraction. A candidate requires and a quality gain of at least . The global floor is the tenth percentile of readable candidate quality on normal development images.
High quality alone can admit an incomplete fragment. Let contain the substantial 8-connected components of the full class mask, and be the component with greatest overlap with . The class certificate is
(6)
where dilates a component by two mask pixels. Components smaller than are excluded. The certificate connects the observed bound instances to distinct class-mask components. These structural checks must pass for every instance before any axis of its class can be updated.
An additional guard rejects boundary-truncated components and unresolved shortening behind another object's box. The acceptance decision is
(7)
Here is the initial bound axis. Rejected updates retain the initial bound axis. The rule is shared across screw-bag, tape, rope, stick and stationery length readouts; other operands retain their original readers. Algorithm 1 gives the complete fact-construction procedure. The trace records both the initial witness link and any accepted mask readout or rejection reason.
3.5. Constraint verification and normal calibration
Discrete task requirements are encoded in the task’s executable constraint configuration and evaluated on the predicted
Algorithm 1. Binding and support-certified fact construction
Input Decoded objects O, initial witnesses E, class masks ; , , .
1 Set for same-class pairs with ; otherwise set . Add n 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).
7 Extract , dominant components and class certificate by Eq. (6).
8 Evaluate ; accept or retain by Eq. (7). Record the support source and decision.
9 end for
10 ; assemble and source trace .
Output Facts , counts , measurement availability and evidence trace .
facts. Continuous intervals and scales are fitted from normal fitting/development observations. A measurement yields
Counts, lengths, locations and relations are reconstructed from the assembled objects, with category-specific postprocessing. Cached color, OCR, separator contrast and cable-centerline observations remain available to their task rules. Missing required geometry contributes an explicit unavailable-operand residual.
For normal fitting residual reference , define
Independent normal calibration images fix
(12)
The strict comparison determines the decision at score ties. Intervals, residual references and calibration thresholds are frozen before inspection.
3.6. Execution-grounded explanation
The executor records : observed operand, requirement, raw residual, normalized contribution and links to factual/visual sources. Counts cite decoded identities;
measured predicates also cite the bound witness and accepted readout. Missing operands retain their availability state.
For an alarm, a compact certificate identifies a sufficient subset of these executed contributions. Let
With , choose
The descending prefix maximizes both terms of Eq. (13) at each cardinality, making a minimum-size sufficient certificate. Equal-score ties prefer available predicates and then key order. Omitted contributions are zeroed in this score-space definition.
A frozen language model realizes the selected predicate outcomes as source-attributed claims. For each selected record, its input contains the predicate name, operator, qualitative comparison and evidence ID. Names of unavailable operands are retained. Numeric operands, intervals and score comparisons remain in the executor's evidence records. We use the existing Qwen3-VL-8B-Instruct checkpoint in text-only mode [38], with greedy decoding and frozen weights.
The model returns the recorded decision and claims paired with evidence IDs. A contract checks decision consistency, exact coverage of the selected and unavailable evidence, permitted IDs and explicit missingness; generated claims contain no numeric values. The executor attaches citations and renders the original numeric evidence beside the text. Outputs failing the contract retain a structured-trace report. The full trace preserves other deviations and unavailable operands, including in non-alarm reports. This connects fluent language to the same executed evidence used by the detector.
4. Experiments
4.1. Datasets and information sources
We evaluate five MVTec LOCO AD categories using normal images and logical anomalies, for 1,136 test images; structural anomalies are excluded. VID-AD contributes 7,895 images across ten scenarios and five capture conditions, giving all 50 deployment tasks [1, 2]. Parent-image roles and known cross-condition source groups are preserved.
Normal images have separate fitting, development and calibration roles. Fitting observations train the readers and provide residual references; development observations select checkpoints/readout settings and pad continuous intervals; calibration scores fix alarm thresholds. LOCO contains 1,183 fitting, 147 development and 305 calibration images. VID uses 1,000, 500 and 500 images in these roles, with ten calibration images per deployment task.
Component annotations supply class, center, box, axis and weak-mask targets for visual learning. They cover all LOCO fitting/development parents and 194 fitting/147 development VID parents. Factual edits of fitting parents carry updated targets and can produce logically abnormal configurations. Manually specified discrete task requirements configure the executor; continuous measurement intervals are fitted from normal observations. Calibration images are independent of network and association selection. Method development included inspection of the public test sets; the reported results use the final frozen configurations. Supplementary Table S1 gives the category-level budgets.
4.2. Implementation and comparisons
The visual frontend is trained for 40 epochs per category at resolution, using AdamW [44]. Each semantic decoder adds 768 updates and 1,536 image exposures with the frontend frozen. At most 64 candidate queries and 64 grid queries pass through a width-64, four-head, two-layer decoder. Association is selected on 294 annotated normal development parents using the fixed point-F1/axis-error objective. The selected same-class radius is 0.08. The support-readout quality floor is fixed from 609 readable normal-development axes. The component and pixel tolerances are shared across categories; normal TRAIN/DEV/CAL data receive the same readout as test images. Architecture, optimization and readout details are provided in the supplementary material.
The external comparisons report the completed local deployments of SALAD, LogiCo, ComAD, PUAD, Qwen3-VL-8B and LogicAD-FE-fast. LOCO ComAD uses DINO-S8 clustering and CRF without component labels; its VID deployment uses a shared component-map frontend. Local PUAD omits the external ImageNet penalty-image term, and LogicAD-FE-fast uses a simplified program/frontend configuration. VID SALAD and PUAD use category-level calibration; SGDB uses task-level calibration. The supplementary comparison-condition table and the archive condition matrix specify their supervision, implementation and calibration settings. AUROC and fixed-threshold F1 are percentages, macro-averaged over five LOCO tasks or all 50 VID tasks.
Internal controls share normal-source partitions, component-supervision budgets, the visual frontend and task requirements. Decoder variants use the same update budget. Binding/readout controls reuse frozen semantic outputs and visual witnesses. Each configuration fits its references and threshold from its own normal facts using the same scoring and calibration recipe; the readout study also fixes the initial references and thresholds to isolate measurement changes.
4.3. Detection performance
Tables 1 and 2 report complete category/scenario comparisons. SGDB achieves 98.19 AUROC and 94.52 F1 on LOCO logical, and 93.56 AUROC and 92.76 F1 on VID. Relative to the FMP plus guarded-geometry reference, the changes are +0.11/+0.98 percentage points on LOCO AUROC/F1 and +2.22/+3.30 on VID. The VID result reflects the complete set of capture conditions.
Figures 4 and 5 compare 20 LOCO and 30 VID sources. Source order is fixed lexicographically across categories and conditions. Each prediction strip shows the decision and its score/threshold comparison.
Table 1: LOCO logical detection results (%). Paired columns report AUROC and fixed-threshold F1. Mean averages five tasks. Supervision and implementation settings are specified in Section 4.2 and the supplement. Best/second-best distinct values are bold/underlined, with shared marks for ties. Blue columns denote SGDB.
| Category | SALAD[4] | LogiCo[13] | ComAD[11] | PUAD[20] | Qwen3-VL-8B[38] | LogicAD-FE-fast[8] | SGDB(Ours) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| Mean | 96.42 | 86.45 | 94.49 | 87.84 | 86.82 | 70.55 | 88.82 | 73.48 | 74.23 | 50.74 | 54.96 | 7.75 | 98.19 | 94.52 |
Table 2: VID detection results by scenario (%). Paired columns report AUROC and fixed-threshold F1. Rows average five conditions; Mean averages all 50 tasks. Supervision and calibration settings are specified in Section 4.2 and the supplement. Best/second-best distinct values are bold/underlined; blue columns denote SGDB.
| Scenario | SALAD[4] | LogiCo[13] | ComAD[11] | PUAD[20] | Qwen3-VL-8B[38] | LogicAD-FE-fast[8] | SGDB(Ours) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| Ropes | 43.00 | 3.67 | 31.93 | 5.26 | 80.20 | 29.63 | 41.65 | 4.19 | 81.46 | 77.46 | 58.45 | 30.33 | 88.50 | 86.33 |
| Stationery | 51.07 | 76.85 | 62.29 | 76.16 | 65.61 | 58.43 | 42.39 | 63.48 | 71.91 | 24.55 | 55.90 | 16.98 | 100.00 | 100.00 |
| Sticks | 82.90 | 23.83 | 45.63 | 41.94 | 97.55 | 88.28 | 82.16 | 22.00 | 85.27 | 78.46 | 69.12 | 16.82 | 99.92 | 98.77 |
| Tapes | 100.00 | 92.08 | 98.65 | 90.34 | 100.00 | 94.35 | 100.00 | 88.69 | 92.94 | 71.35 | 68.97 | 29.00 | 98.73 | 94.99 |
| Tools | 90.16 | 37.87 | 93.88 | 84.44 | 76.92 | 58.99 | 78.99 | 15.68 | 82.81 | 62.05 | 61.59 | 28.74 | 99.50 | 97.84 |
| Mean | 69.70 | 58.94 | 70.38 | 70.14 | 83.60 | 70.22 | 62.15 | 51.90 | 88.44 | 77.11 | 63.94 | 31.04 | 93.56 | 92.76 |
SGDB's boxes and axes come from its support-checked associated objects; the semantic colors depict the frozen frontend witnesses. Baseline representations retain their original meanings: SALAD shows saved local appearance/composition maps and ComAD displays component regions.
The disaggregated results show complementary strengths. SGDB attains the highest displayed LOCO AUROC on screw bag and splicing connectors, while category leaders differ across the benchmark. On VID, support-certified readout raises Tapes from 89.43/85.27 to 98.73/94.99 AUROC/F1, alongside strong results for Stationery, Sticks and Ropes. The fixed-threshold normal FPR is on LOCO and on VID. Complete task-level results and condition summaries appear in the supplementary material.
4.4. Mechanism controls under shared supervision
Table 3(a) separates semantic decoding, initial witness readout and final support certification under the shared setup above. Direct evidence-edit DFD and its initial bound readout use the same decoder predictions and task requirements. Replacing direct geometry with bound witnesses raises LOCO AUROC/F1 from 95.42/92.41 to 98.19/94.52; screw-bag AUROC rises from 85.04 to 98.92. The certificate then improves VID from 92.63/91.79 to 93.56/92.76 while preserving LOCO performance. The plain-set hybrid provides a decoder control without the certificate.
Table 3(b) changes binding or unbound-object handling while retaining the certified readout. Nearest assignment allows witness reuse; the other controls remove class compatibility or
Table 3: Mechanism controls with shared component supervision and task requirements (%). (a) Decoder/readout configurations; the final row adds the support certificate. (b) Binding policies with the same complete-support readout. Each row uses its own normal references and CAL threshold under the shared recipe. Best/second-best distinct values are bold/underlined within each block and column; ties share marks.
| Configuration | LOCO logical | VID all 50 | ||
|---|---|---|---|---|
| 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 |
| Hybrid: plain set | 98.02 | 93.54 | 93.38 | 91.75 |
| Bound DFD: initial readout | 98.19 | 94.52 | 92.63 | 91.79 |
| SGDB: certified readout | 98.19 | 94.52 | 93.56 | 92.76 |
| (b) Binding-policy controls | ||||
| SGDB partial binding | 98.19 | 94.52 | 93.56 | 92.76 |
| Independent nearest witness | 98.19 | 94.52 | 93.56 | 92.76 |
| Without class compatibility | 98.19 | 94.52 | 92.60 | 91.38 |
| Without distance gate | 98.19 | 94.52 | 93.56 | 92.76 |
| Discard unbound identities | 98.19 | 94.52 | 93.56 | 92.76 |
| Tighter radius (0.04) | 97.98 | 94.52 | 93.97 | 93.11 |
distance gating, drop unbound identities, or tighten the radius. Removing class compatibility gives 92.60/91.38 on VID with its own references, versus 93.55/92.76 with shared SGDB references. Nearest assignment and removal of the distance gate leave detection metrics unchanged. Radius 0.04 gives 97.98/94.52 on LOCO and 93.97/93.11 on VID; radius 0.08 remains the normal-development selection.
Controlled removal of each matched witness on the 294 annotated normal development parents gives 3,136 binding-stage trials. The semantic identities and remaining witnesses stay fixed. Partial binding retains decoded counts and marks orphan geometry unavailable in every trial. Nearest assignment reuses another witness in 720 trials (22.96%); dropping unbound objects changes every trial's count. This probe measures identity preservation, missing-evidence representation and witness reuse at the binding interface. Complete results appear in the supplementary material.
4.5. Support-certified readout
Table 4 changes only the axis-update rule, holding frozen semantic outputs, initial witnesses, masks and task requirements fixed. Uniform mask readout improves VID but lowers LOCO AUROC to 96.36. Quality selection alone can admit an incomplete, internally clean fragment. Complete component ownership retains all 90 tape corrections while preventing the screw degradations introduced by quality-only readout. The complete-support deployment corrects 90 prior errors and introduces one type-related tape miss, for 89 fewer errors across all 9,031 test images.
Table 4: Geometric-readout controls with fixed semantic outputs, witnesses, masks and task requirements (%). Normal references and thresholds follow the same fitting/calibration recipe. SGDB combines quality selection with complete instance support. Best/second-best distinct values are bold/underlined; ties share marks.
| Readout | LOCO logical | VID all 50 | ||
|---|---|---|---|---|
| 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 |
Fixing the initial intervals, references and thresholds gives the same 90 corrections and one new tape miss, attributing these transitions to measurement selection. The completeness check filters 20 of 23 quality-eligible screw axes and preserves all 259 screw decisions, scores and thresholds. The tape corrections cover 20 cross-condition filename-index groups. Support coverage and per-source transitions are provided in the supplementary material.
Paired resampling of 10,000 category–label-stratified groups gives V2-minus-initial VID gains of 0.93 AUROC points (95% interval 0.56–1.32) and 0.97 F1 points (0.57–1.43). The five capture conditions travel together within filename-index groups. V2's LOCO AUROC advantages over uniform and quality-only readout are 1.83 points (1.18–2.51) and 1.57 points (0.96–2.22). Uniform readout retains a small VID F1 advantage: the V2-minus-uniform difference is -0.10 points (-0.20 to -0.02). The paired intervals and source-index transition ledgers in the supplement locate the benefit in preserving reliable geometry across categories. These conditional intervals use the existing, previously inspected test cohorts.
4.6. Execution-grounded explanation
We evaluate evidence selection on the same frozen V2 deployment, retaining its facts, references, thresholds and all 9,031 predictions. The 66,297 executed rule records provide operands and source links. Table 5 compares four policies on all 5,725 alarms. Sufficiency is the fraction whose selected contributions still exceed the original threshold under Eq. (13); mean size counts selected rule records.
Table 5: Explanation selection on 5,725 frozen alarms. Mean: selected rules per alarm; Suff.: alarm sufficiency (%); Fail: insufficient selections. All policies use the same trace and source links. Bold/underline mark best/second-best sufficiency and failure values; ties share marks.
| 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 |
The compact certificate retains sufficiency for every alarm with 1.006 rules on average, reducing the selected count by relative to all positive-score rules. A single maximum-score rule is insufficient for 17 tape alarms: two strongest contributions give 4.125413, exactly the threshold, whereas three give 4.165858 and trigger the strict comparison. These are jointly sufficient score contributions, including the unavailable-measurement term.
Reports preserve missing evidence in all 1,254 affected records, including 94 non-alarms. Raw predicate deviations occur in 191 non-alarm traces, so their reports distinguish deviation from an alarm. Source checks reproduce all scores and decisions; an independent calculation reconstructs 3,928 cited geometric operands with maximum absolute error .
The frozen language model expresses selected predicate outcomes as source-attributed claims, paired with executor-rendered numeric evidence in Figs. 6 and 7. Per-category results, certificate checks and language-output consistency results are provided in the supplementary material.
4.7. Decision, explanation and evidence
Figures 6 and 7 render six reports with language-model claims and executor-owned numeric evidence. Each report pairs generated claims with the full score comparison, selected rule contributions and source-linked operands. The screw report selects the short-length predicate: 428.22 pixels exceeds the 363.12-pixel bound, giving a sufficient certificate score of 6.13006. The Tools report selects zero decoded bolts against a requirement of two. The blurred Stationery report cites its evaluated counts and retains the complete zero-residual trace. Cookies receives a zero-residual normal report despite its anomalous image label, exposing the available semantic facts behind the miss. Dishes cites the missing-spoon count while preserving unavailable utensil order. In Tapes, the accepted support readout changes the green/red length ratio from 2.053 to 0.980, below its interval; the report links that predicate to the two measured axes and their support records. Panel (g) of Fig. 7 additionally shows why the
(a) Logical anomalies: first two sources per category
Breakfast box
Juice bottle
Pushpins
Screw bag
Connectors
Input

000
001
000
001
000
001
000
001
000
001
GT
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
GT: Anomaly
SALAD
Pred: Anomaly
S 53.19 / T 3.26
Correct
Pred: Anomaly
S 57.08 / T 3.26
Correct
Pred: Anomaly
S 118.07 / T 4.21
Correct
Pred: Anomaly
S 145.71 / T 4.21
Correct
Pred: Anomaly
S 21.73 / T 3.71
Correct
Pred: Anomaly
S 20.64 / T 3.71
Correct
Pred: Normal
S 4.02 / T 4.44
Missed anomaly
Pred: Anomaly
S 5.16 / T 4.44
Correct
Pred: Anomaly
S 12.63 / T 7.02
Correct
Pred: Anomaly
S 58.17 / T 7.02
Correct
ComAD

Pred: Anomaly
S 0.61 / T 0.09
Correct
Pred: Anomaly
S 0.64 / T 0.09
Correct
Pred: Anomaly
S 30.32 / T 0.11
Correct
Pred: Anomaly
S 29.35 / T 0.11
Correct
Pred: Anomaly
S 0.19 / T 0.12
Correct
Pred: Anomaly
S 0.27 / T 0.12
Correct
Pred: Normal
S 0.09 / T 0.25
Missed anomaly
Pred: Normal
S 0.08 / T 0.25
Missed anomaly
Pred: Normal
S 0.02 / T 0.08
Missed anomaly
Pred: Normal
S 0.02 / T 0.08
Missed anomaly
SGDB

Pred: Anomaly
S 12.84 / T 5.53
Correct
Pred: Anomaly
S 12.25 / T 5.53
Correct
Pred: Anomaly
S 28.71 / T 0.00
Correct
Pred: Anomaly
S 32.17 / T 0.00
Correct
Pred: Anomaly
S 4.50 / T 3.61
Correct
Pred: Anomaly
S 5.67 / T 3.61
Correct
Pred: Anomaly
S 5.67 / T 3.61
Correct
Pred: Anomaly
S 6.13 / T 4.43
Correct
Pred: Normal
S 0.00 / T 4.42
Missed anomaly
Pred: Anomaly
S 6.54 / T 4.42
Correct
(b) Normal references and an additional logical anomaly
Breakfast box
Juice bottle
Pushpins
Screw bag
Connectors
Input

000
002
000
002
000
002
000
002
000
002
GT
GT: Normal
GT: Anomaly
GT: Normal
GT: Anomaly
GT: Normal
GT: Anomaly
GT: Normal
GT: Anomaly
GT: Normal
GT: Anomaly
SALAD
Pred: Normal
S -0.59 / T 3.26
Correct
Pred: Anomaly
S 50.65 / T 3.26
Correct
Pred: Normal
S -1.46 / T 4.21
Correct
Pred: Anomaly
S 121.87 / T 4.21
Correct
Pred: Anomaly
S 5.50 / T 3.71
False alarm
Pred: Anomaly
S 29.41 / T 3.71
Correct
Pred: Normal
S -1.96 / T 4.44
Correct
Pred: Anomaly
S 6.15 / T 4.44
Correct
Pred: Normal
S -2.56 / T 7.02
Correct
Pred: Anomaly
S 22.61 / T 7.02
Correct
ComAD

Pred: Normal
S 0.07 / T 0.09
Correct
Pred: Anomaly
S 0.52 / T 0.09
Correct
Pred: Normal
S 0.09 / T 0.11
Correct
Pred: Anomaly
S 31.00 / T 0.11
Correct
Pred: Normal
S 0.06 / T 0.12
Correct
Pred: Anomaly
S 0.18 / T 0.12
Correct
Pred: Normal
S 0.11 / T 0.25
Correct
Pred: Normal
S 0.10 / T 0.25
Missed anomaly
Pred: Normal
S 0.02 / T 0.08
Correct
Pred: Anomaly
S 0.42 / T 0.08
Correct
SGDB

Pred: Normal
S 0.00 / T 5.53
Correct
Pred: Anomaly
S 12.25 / T 5.53
Correct
Pred: Normal
S 0.00 / T 0.00
Correct
Pred: Anomaly
S 30.91 / T 0.00
Correct
Pred: Normal
S 0.00 / T 3.61
Correct
Pred: Anomaly
S 4.50 / T 3.61
Correct
Pred: Normal
S 0.00 / T 4.43
Correct
Pred: Anomaly
S 6.03 / T 4.43
Correct
Pred: Normal
S 0.00 / T 4.42
Correct
Pred: Anomaly
S 6.54 / T 4.42
Correct
S: frozen image score; T: frozen threshold. Alarm if S > T. Green: correct decision; red: error.
Figure 4: LOCO comparison on 20 fixed sources: (a) logical anomalies; (b) normal references and an additional logical anomaly. GT is the provided logical-anomaly mask union. Prediction strips use full-precision scores; green/red denotes a correct/incorrect image-level decision. Spatial representations differ across methods.
joint tape alarm requires three score contributions rather than a single violated predicate.
(a) Original condition: normal sources
| Balls | Blocks | Cookies | Dishes | Fruits | Ropes | Stationery | Sticks | Tapes | Tools | |
|---|---|---|---|---|---|---|---|---|---|---|
| Input | ||||||||||
| GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal | GT: Normal |
| ComAD | ||||||||||
| Pred: NormalS 0.03 / T 0.16Correct | Pred: NormalS 0.05 / T 0.19Correct | Pred: NormalS 0.07 / T 0.07Correct | Pred: NormalS 0.12 / T 0.14Correct | Pred: NormalS 0.02 / T 0.16Correct | Pred: NormalS 0.04 / T 0.34Correct | Pred: NormalS 0.10 / T 0.50Correct | Pred: NormalS 0.22 / T 0.26Correct | Pred: AnomalyS 0.03 / T 0.02False alarm | Pred: NormalS 0.03 / T 0.33Correct | |
| SGDB | ||||||||||
| Pred: AnomalyS 2.40 / T 0.00False alarm | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.00Correct | Pred: NormalS 0.00 / T 0.13Correct | Pred: NormalS 0.00 / T 1.67Correct | |
| SALAD | NormalS -0.48 / T 3.68 | NormalS -0.50 / T 4.71 | AnomalyS 15.51 / T 3.76 | NormalS -0.80 / T 3.96 | NormalS -1.08 / T 4.53 | NormalS -3.58 / T 4.20 | AnomalyS 4.79 / T 4.54 | NormalS 0.09 / T 5.72 | AnomalyS 9.82 / T 4.94 | NormalS -1.47 / T 4.40 |
| PUAD | NormalS 0.09 / T 2.46 | NormalS 0.14 / T 3.56 | AnomalyS 8.22 / T 2.44 | NormalS -0.92 / T 2.30 | NormalS 0.08 / T 2.72 | NormalS -2.19 / T 2.79 | AnomalyS 4.12 / T 2.93 | NormalS -0.82 / T 3.69 | AnomalyS 7.36 / T 2.71 | NormalS -0.25 / T 4.13 |
(b) Original condition: logical anomalies
| Balls | Blocks | Cookies | Dishes | Fruits | Ropes | Stationery | Sticks | Tapes | Tools | |
|---|---|---|---|---|---|---|---|---|---|---|
| Input | ||||||||||
| GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly |
| ComAD | ||||||||||
| Pred: NormalS 0.15 / T 0.16Missed anomaly | Pred: AnomalyS 1.14 / T 0.19Correct | Pred: AnomalyS 0.49 / T 0.07Correct | Pred: AnomalyS 0.64 / T 0.14Correct | Pred: AnomalyS 0.35 / T 0.16Correct | Pred: NormalS 0.17 / T 0.34Missed anomaly | Pred: NormalS 0.47 / T 0.50Missed anomaly | Pred: NormalS 0.25 / T 0.26Missed anomaly | Pred: AnomalyS 0.44 / T 0.02Correct | Pred: AnomalyS 0.47 / T 0.33Correct | |
| SGDB | ||||||||||
| Pred: AnomalyS 4.12 / T 0.00Correct | Pred: AnomalyS 5.15 / T 0.00Correct | Pred: AnomalyS 4.23 / T 0.00Correct | Pred: AnomalyS 4.13 / T 0.00Correct | Pred: AnomalyS 4.13 / T 0.00Correct | Pred: AnomalyS 3.36 / T 0.00Correct | Pred: AnomalyS 3.78 / T 0.00Correct | Pred: AnomalyS 4.74 / T 0.00Correct | Pred: AnomalyS 7.54 / T 4.13Correct | Pred: AnomalyS 5.16 / T 1.67Correct | |
| SALAD | AnomalyS 10.16 / T 3.68 | AnomalyS 27.41 / T 4.71 | AnomalyS 22.69 / T 3.76 | AnomalyS 5.58 / T 3.96 | AnomalyS 6.96 / T 4.53 | NormalS -3.40 / T 4.20 | AnomalyS 9.39 / T 4.54 | NormalS 0.81 / T 5.72 | AnomalyS 21.95 / T 4.94 | NormalS 3.39 / T 4.40 |
| PUAD | AnomalyS 5.81 / T 2.46 | AnomalyS 19.85 / T 3.56 | AnomalyS 9.69 / T 2.44 | AnomalyS 4.46 / T 2.30 | AnomalyS 2.76 / T 2.72 | NormalS -2.02 / T 2.79 | AnomalyS 6.36 / T 2.93 | NormalS 0.50 / T 3.69 | AnomalyS 14.90 / T 2.71 | NormalS 1.34 / T 4.13 |
(c) Blurry condition: logical anomalies
| Balls | Blocks | Cookies | Dishes | Fruits | Ropes | Stationery | Sticks | Tapes | Tools | |
|---|---|---|---|---|---|---|---|---|---|---|
| Input | ||||||||||
| GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly | GT: Anomaly |
| ComAD | ||||||||||
| Pred: AnomalyS 0.21 / T 0.13Correct | Pred: AnomalyS 1.78 / T 0.19Correct | Pred: AnomalyS 0.62 / T 0.08Correct | Pred: AnomalyS 1.29 / T 0.24Correct | Pred: AnomalyS 0.37 / T 0.16Correct | Pred: AnomalyS 0.44 / T 0.17Correct | Pred: NormalS 0.49 / T 0.50Missed anomaly | Pred: NormalS 0.21 / T 0.26Missed anomaly | Pred: AnomalyS 0.44 / T 0.02Correct | Pred: AnomalyS 0.42 / T 0.33Correct | |
| SGDB | ||||||||||
| Pred: AnomalyS 4.12 / T 0.00Correct | Pred: AnomalyS 9.24 / T 0.00Correct | Pred: AnomalyS 4.21 / T 2.37Correct | Pred: AnomalyS 4.13 / T 0.00Correct | Pred: AnomalyS 4.13 / T 0.00Correct | Pred: AnomalyS 3.32 / T 0.00Correct | Pred: AnomalyS 3.85 / T 0.00Correct | Pred: AnomalyS 4.76 / T 3.49Correct | Pred: AnomalyS 7.65 / T 2.40Correct | Pred: AnomalyS 5.18 / T 1.97Correct | |
| SALAD | AnomalyS 8.87 / T 3.68 | AnomalyS 27.12 / T 4.71 | AnomalyS 18.79 / T 3.76 | NormalS 2.10 / T 3.96 | AnomalyS 6.48 / T 4.53 | NormalS -3.92 / T 4.20 | AnomalyS 7.64 / T 4.54 | NormalS 1.95 / T 5.72 | AnomalyS 19.21 / T 4.94 | NormalS 1.92 / T 4.40 |
| PUAD | AnomalyS 4.58 / T 2.46 | AnomalyS 19.51 / T 3.56 | AnomalyS 6.50 / T 2.44 | NormalS 1.25 / T 2.30 | NormalS 2.40 / T 2.72 | NormalS -2.52 / T 2.79 | AnomalyS 5.73 / T 2.93 | NormalS 0.55 / T 3.69 | AnomalyS 12.56 / T 2.71 | NormalS -0.84 / T 4.13 |
S: frozen image score; T: frozen threshold. Alarm if S > T. Green: correct decision; red: error.
Figure 5: VID comparison on 30 fixed sources across ten scenarios: (a) original normal, (b) original anomalous, and (c) blurry anomalous images. GT is image-level. SGDB shows associated objects; ComAD shows component regions. SALAD and PUAD provide scored decisions from their cached outputs.
Image
Evidence region
(a) Screw bag / length


(b) Tools / quantity


(c) Stationery / blur


Execution-grounded report
Anomaly
[E05] The screw length exceeds the upper bound.
E05 Length 428.22 px; allowed [196.08, 363.12] px; source O4.
Subset E05; S(C) = 6.13006
GT: anomaly | correct
Anomaly
[E01] The bolt count is below the required count.
E01 Bolt count: 0 observed / 2 required.
Subset E01; S(C) = 4.08497
GT: anomaly | correct
Normal
[E01-E04] All required counts for black pencils, blue erasers, red pencils, and red erasers are satisfied.
Count evidence (observed / required)
E01 Black pencil 1 / 1
E02 Blue eraser 1 / 1
E03 Red pencil 1 / 1
E04 Red eraser 1 / 1
13 checks; 0 deviations
GT: normal | correct
Figure 6: Execution-grounded reports: (a) screw-length alarm; (b) missing-bolt alarm; (c) normal Stationery under blur. Rows separate visual evidence, decisions, frozen-LLM claims and executor-owned measurements. An alarm requires ; is the selected subset score. Evidence IDs are local to each case. GT labels are used only for retrospective review.
Image
Evidence region
(d) Cookies / quantity


Execution-grounded report
Normal
[E01-E04] All required counts are satisfied: yellow cookies, black cookies, square dishes, and round dishes each meet their specified criteria.
Count evidence (observed / required)
E01 Yellow cookie 2 / 2
E02 Black cookie 1 / 1
E03 Square dish 1 / 1
E04 Round dish 1 / 1
9 checks; 0 deviations
GT: anomaly | missed
(e) Dishes / unavailable evidence


Anomaly
[E03] The spoon count is below the required count.
[E04] The utensil order measurement is unavailable.
E03 Spoon count: 0 observed / 1 required.
E04 Utensil order: unavailable.
Subset E03; S(C) = 4.08497
GT: anomaly | correct
(f) Tapes / certified measurement


Anomaly
[E03] The green red length ratio is below the lower bound.
E03 Ratio 0.98034; allowed [1.8575, 2.0797]; sources O0, O1.
Subset E03; S(C) = 7.53937
GT: anomaly | correct
(g) Tapes / jointly sufficient alarm
| Rule contribution | obs./req. | z | Two strongest contributions |
|---|---|---|---|
| E01 Green count | 0 / 1 | 4.044522 | 4.125413 = τ No alarm |
| E02 Red count | 2 / 1 | 4.044522 | Three contributions |
| E03 Missing geometry | yes / no | 4.044522 | 4.165858 > τ Anomaly |
Figure 7: Reports for (d) a Cookies miss, (e) missing spoon with unavailable order, and (f) support-certified tape measurement. Panel (g) separates the rule contributions from their sufficient subsets: two contributions equal the threshold without triggering an alarm, whereas three exceed it. Columns and symbols follow Fig. 6; numeric evidence comes from the execution traces.
5. Discussion
SGDB connects semantic identities, geometric measurements and executable requirements through a common evidence representation. Bound witness geometry improves length verification over direct prediction; complete-support selection retains tape corrections and protects screw measurements. Partial binding preserves decoded counts, unavailable geometry and witness ownership. Execution-grounded explanation carries these source links into a compact account of the score comparison, including alarms that require several contributions.
6. Conclusion
SGDB decouples semantic recognition from geometric measurement and reconnects them through partial evidence binding and support-certified readout. The resulting fact and source trace supports both executable verification and compact sufficient alarm certificates. Reports connect selected predicates to object identities, measurements and evidence availability. SGDB achieves 98.19/94.52 AUROC/F1 on LOCO logical and 93.56/92.76 on all 50 VID tasks. Shared-supervision and frozen-output controls examine the roles of geometric evidence, complete support and execution-grounded explanation.
Normal observations define measurement and score references, component annotations train the visual readers, and task requirements configure the executor. Extending this setup to unfamiliar scenes and reduced component supervision is a useful direction. The Cookies trace illustrates another role of the report: an anomalous image can yield zero-residual semantic facts, making the representation behind a missed alarm available for review.
CRediT authorship contribution statement
Chenrui Ji: Conceptualization, Methodology, Software, Investigation, Writing – original draft. Jiafan Lu: Software, Validation, Visualization, Writing – review & editing. Zilu Luo: Validation, Writing – review & editing. Feng Wan: Formal analysis, Validation, Writing – review & editing. Qiuhui Chen: Conceptualization, Methodology, Supervision, Project administration, Writing – review & editing. Weimin Zhong: Supervision, Resources, Funding acquisition, Writing – review & editing.
Data and code availability
MVTec LOCO AD and VID-AD are available from their original providers [1, 2]. The research code, frozen configurations, per-image outputs and CPU reproduction scripts are publicly available at https://github.com/Qybc/SGDB, release v1.0.0. The release supports metric reconstruction, execution-trace replay and recorded language-output verification. Benchmark images and third-party pretrained models are obtained from their original providers.
Declaration of competing interests
The authors declare no competing interests.
Funding
This work was supported in part by the Fundamental and Interdisciplinary Disciplines Breakthrough Plan of the Ministry of Education of China (Grant No. JYB2025XDXM402) and the National Natural Science Foundation of China (Grant Nos. 62633009 and 62603270).
Declaration of generative AI and AI-assisted technologies in manuscript preparation
Codex assisted with manuscript editing and LaTeX preparation.
References
[1] P. Bergmann, K. Batzner, M. Fauser, D. Sattlegger, C. Steger, Beyond Dents and Scratches: Logical Constraints in Unsupervised Anomaly Detection and Localization, International Journal of Computer Vision 130 (4) (2022) 947–969. doi:10.1007/s11263-022-01578-9.
[2] H. Nakata, Y. Zou, S. Sakai, S. Maeda, C. Gu, Y. Wei, S. Gao, C. Zhang, VID-AD: A Dataset for Image-Level Logical Anomaly Detection under Vision-Induced Distraction, arXiv preprint arXiv:2603.13964 (2026). doi:10.48550/arXiv.2603.13964.
[3] K. Roth, L. Pemula, J. Zepeda, B. Schölkopf, T. Brox, P. Gehler, Towards Total Recall in Industrial Anomaly Detection, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022, pp. 14318–14328.
[4] M. Fučka, V. Zavrtanik, D. Skočaj, SALAD – Semantics-Aware Logical Anomaly Detection, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025, pp. 21843–21852.
[5] S. Kim, S. An, P. Chikontwe, M. Kang, E. Adeli, K. M. Pohl, S. H. Park, Few Shot Part Segmentation Reveals Compositional Logic for Industrial Anomaly Detection, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, 2024, pp. 8591–8599. doi:10.1609/aaai.v38i8.28703.
[6] Y. Peng, X. Lin, N. Ma, J. Du, C. Liu, C. Liu, Q. Chen, SAM-LAD: Segment Anything Model meets zero-shot logic anomaly detection, Knowledge-Based Systems 314 (2025) 113176. doi:10.1016/j.knosys.2025.113176.
[7] M. Fučka, V. Zavrtanik, D. Skočaj, ObjectCore – Efficient Few-shot Logical Anomaly Detection using Object Representations, in: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2026, pp. 3857–3867.
[8] E. Jin, Q. Feng, Y. Mou, G. Lakemeyer, S. Decker, O. Simons, J. Stegmaier, LogicAD: Explainable Anomaly Detection via VLM-based Text Feature Extraction, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 39, 2025, pp. 4129–4137. doi:10.1609/aaai.v39i4.32433.
[9] Y. Zhang, Y. Cao, X. Xu, W. Shen, LogiCode: An LLM-Driven Framework for Logical Anomaly Detection, IEEE Transactions on Automation Science and Engineering 22 (2025) 7712–7723. doi:10.1109/TASE.2024.3468464.
[10] X. Zhang, X. Zhou, Z. Deng, D. Geng, J. Wang, Interpretable Logical Anomaly Classification via Constraint Decomposition and Instruction Fine-Tuning, arXiv preprint arXiv:2602.03530 (2026). doi:10.48550/arXiv.2602.03530.
[11] T. Liu, B. Li, X. Du, B. Jiang, X. Jin, L. Jin, Z. Zhao, Component-aware anomaly detection framework for adjustable and logical industrial visual inspection, Advanced Engineering Informatics 58 (2023) 102161. doi:10.1016/j.aei.2023.102161.
[12] Y.-H. Hsieh, S.-H. Lai, CSAD: Unsupervised Component Segmentation for Logical Anomaly Detection, in: Proceedings of the British Machine Vision Conference, BMVA, 2024.
[13] X. Zhang, M. Xu, X. Zhou, LogiCo: A Unified Framework for Logical and Structural Anomaly Detection, in: Computer Vision – ECCV 2026, Springer, 2026, pp. 244–261. doi:10.1007/978-3-032-37550-6_14.
[14] P. Bergmann, K. Batzner, M. Fauser, D. Sattlegger, C. Steger, The MVTec Anomaly Detection Dataset: A Comprehensive Real-World Dataset for Unsupervised Anomaly Detection, International Journal of Computer Vision 129 (4) (2021) 1038–1059. doi:10.1007/s11263-020-01400-4.
[15] Y. Zou, J. Jeong, L. Pemula, D. Zhang, O. Dabeer, SPot-the-Difference Self-supervised Pre-training for Anomaly Detection and Segmentation, in: Computer Vision – ECCV 2022, Springer, 2022, pp. 392–408. doi:10.1007/978-3-031-20056-4_23.
[16] T. Defard, A. Setkov, A. Loesch, R. Audigier, PaDiM: A Patch Distribution Modeling Framework for Anomaly Detection and Localization, in: Pattern Recognition. ICPR International Work-shops and Challenges, Springer, 2021, pp. 475–489. doi:10.1007/978-3-030-68799-1_35.
[17] H. Deng, X. Li, Anomaly Detection via Reverse Distillation From One-Class Embedding, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022, pp. 9737–9746.
[18] K. Batzner, L. Heckler, R. König, EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies, in: Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 2024, pp. 128–138.
[19] V. Zavrtanik, M. Kristan, D. Skočaj, DRAEM – A Discriminatively Trained Reconstruction Embedding for Surface Anomaly Detection, in: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2021, pp. 8330–8339.
[20] S. Sugawara, R. Imamura, PUAD: Frustratingly Simple Method for Robust Anomaly Detection, in: IEEE International Conference on Image Processing, 2024, pp. 842–848. doi:10.1109/ICIP51287.2024.10647438.
[21] Y. Hu, H. Lin, H. Huang, Y. Guo, F. Wu, J. Long, J. Han, Unsupervised logical anomaly detection in industry: Mamba optimized by nested pyramid fusion and parameter-shared state space enhancement, Neurocomputing 674 (2026) 132824. doi:10.1016/j.neucom.2026.132824.
[22] Z. Zhang, W. Zhao, Y. Zhang, E. Zio, Z. Zhang, A unified framework for image anomaly detection via reconstruction, segmentation and spatial relationship modeling, Neurocomputing 685 (2026) 133581. doi:10.1016/j.neucom.2026.133581.
[23] X. Tong, Y. Chang, Q. Zhao, J. Yu, B. Wang, J. Lin, Y. Lin, X. Mai, H. Wang, Z. Tao, Y. Wang, W. Zhang, Component-Aware Unsupervised Logical Anomaly Generation for Industrial Anomaly Detection, in: IEEE International Conference on Robotics and Automation, 2025, pp. 16722–16729. doi:10.1109/ICRA55743.2025.11127296.
[24] A. Ascarate, L. Lebrat, R. Santa Cruz, C. Fookes, O. Salvado, When Rule Violations Are Rare: Chimera Training for Logical Anomaly Detection, arXiv preprint arXiv:2605.26171 (2026). doi:10.48550/arXiv.2605.26171.
[25] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, I. Polosukhin, Attention Is All You Need, in: Advances in Neural Information Processing Systems, Vol. 30, 2017.
[26] N. Carion, F. Massa, G. Synnaeve, N. Usunier, A. Kirillov, S. Zagoruyko, End-to-End Object Detection with Transformers, in: Computer Vision – ECCV 2020, Springer, 2020, pp. 213–229. doi:10.1007/978-3-030-58452-8_13.
[27] X. Zhu, W. Su, L. Lu, B. Li, X. Wang, J. Dai, Deformable DETR: Deformable Transformers for End-to-End Object Detection, in: International Conference on Learning Representations, 2021.
[28] S. Liu, F. Li, H. Zhang, X. Yang, X. Qi, H. Su, J. Zhu, L. Zhang, DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR, in: International Conference on Learning Representations, 2022.
[29] I. T. Jolliffe, J. Cadima, Principal component analysis: a review and recent developments, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 374 (2065) (2016) 20150202. doi:10.1098/rsta.2015.0202.
[30] J. Jeong, Y. Zou, T. Kim, D. Zhang, A. Ravichandran, O. Dabeer, WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentation, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023, pp. 19606–19616.
[31] Q. Zhou, G. Pang, Y. Tian, S. He, J. Chen, AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection, in: International Conference on Learning Representations, 2024.
[32] Z. Gu, B. Zhu, G. Zhu, Y. Chen, M. Tang, J. Wang, AnomalyGPT: Detecting Industrial Anomalies Using Large Vision-Language Models, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 38, 2024, pp. 1932–1940. doi:10.1609/aaai.v38i3.27963.
[33] T. Gupta, A. Kembhavi, Visual Programming: Compositional Visual Reasoning Without Training, in: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023, pp. 14953–14962.
[34] R. Manhaeve, S. Dumančić, A. Kimmig, T. Demeester, L. De Raedt, DeepProbLog: Neural Probabilistic Logic Program-
ming, in: Advances in Neural Information Processing Systems, Vol. 31, 2018.
[35] S. Badreddine, A. d'Avila Garcez, L. Serafini, M. Spranger, Logic Tensor Networks, Artificial Intelligence 303 (2022) 103649. doi:10.1016/j.artint.2021.103649.
[36] M. Dahmardeh, M. Saadatpour, F. Manigrasso, L. Morra, F. Setti, NeSyLAD: A Neuro-Symbolic Approach for Unsupervised Logical Anomaly Detection, in: Image Analysis and Processing – ICIAP 2025, Springer Nature Switzerland, 2026, pp. 598–610. doi:10.1007/978-3-032-10192-1_50.
[37] Qwen Team, Qwen2.5-VL-3B-Instruct: Official Model Card, Model documentation, accessed 24 October 2026 (2025). URL https://huggingface.co/Qwen/Qwen2.5-VL-3B-Instruct
[38] S. Bai, Y. Cai, R. Chen, K. Chen, X. Chen, Z. Cheng, et al., Qwen3-VL Technical Report, arXiv preprint arXiv:2511.21631 (2025). doi:10.48550/arXiv.2511.21631.
[39] S. Bassan, R. Eliav, S. Gur, Explain Yourself, Briefly! Self-Explaining Neural Networks with Concise Sufficient Reasons, in: International Conference on Learning Representations, 2025.
[40] B. Bharti, P. Yi, J. Sulam, Sufficient and Necessary Explanations (and What Lies in Between), in: Conference on Parsimony and Learning, Vol. 280 of Proceedings of Machine Learning Research, 2025, pp. 1191–1215.
[41] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, L. Fei-Fei, ImageNet: A large-scale hierarchical image database, in: 2009 IEEE Conference on Computer Vision and Pattern Recognition, 2009, pp. 248–255. doi:10.1109/CVPR.2009.5206848.
[42] S. Zagoruyko, N. Komodakis, Wide Residual Networks, in: Proceedings of the British Machine Vision Conference, BMVA Press, 2016, pp. 87.1–87.12. doi:10.5244/C.30.87.
[43] X. Zhou, D. Wang, P. Krähenbühl, Objects as Points, arXiv preprint arXiv:1904.07850 (2019). doi:10.48550/arXiv.1904.07850.
[44] I. Loshchilov, F. Hutter, Decoupled Weight Decay Regularization, in: International Conference on Learning Representations, 2019.
Supplementary material SGDB: Semantic–Geometric Decoupling and Evidence Binding for Logical Anomaly Detection
Chenrui Ji, Jiafan Lu, Zilu Luo,
Feng Wan, Qiuhui Chen, Weimin Zhong
S1 Data roles and implementation
S1.1 Information sources and normal-data budgets
SGDB uses normal images, component targets and explicit task requirements for distinct parts of inspection. Normal fitting images supply the original visual training sources and residual references. Normal development images select reader checkpoints, association/readout settings and continuous-interval padding. Independent normal calibration images fix the alarm thresholds. Same-parent edits inherit their source role, and known cross-condition source groups are preserved.
Component targets provide class, center, box, axis and weak-mask supervision for the visual readers. Table S1 distinguishes the full normal pools from the parents carrying these targets. At inspection, objects and masks are predicted from the query image. Discrete task requirements are encoded as executable constraints on the resulting facts; continuous bounds and residual scales are estimated from normal observations. The task identifier selects the relevant readers, constraints and normal references.
S1
Table S1: Normal-source budgets and component-supervised parents. Ann.: annotated with component facts and weak masks.
| 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 |
| Blocks | 100 | 50 | 50 | 20 | 15 | 800 |
| Cookies | 100 | 50 | 50 | 18 | 15 | 780 |
| Dishes | 100 | 50 | 50 | 20 | 15 | 805 |
| Fruits | 100 | 50 | 50 | 20 | 15 | 750 |
| Ropes | 100 | 50 | 50 | 16 | 12 | 800 |
| Stationery | 100 | 50 | 50 | 20 | 15 | 800 |
| Sticks | 100 | 50 | 50 | 20 | 15 | 770 |
| Tapes | 100 | 50 | 50 | 20 | 15 | 800 |
| Tools | 100 | 50 | 50 | 20 | 15 | 800 |
S1.2 Architecture and optimization
The visual frontend uses a WideResNet50-2 encoder truncated after the third residual stage. Global-context modulation, multiscale upsampling/skip fusion and explicit normalized coordinates feed center, semantic-mask, box and endpoint heads. Training uses
The segmentation term combines weighted binary cross-entropy and Dice loss on valid weak-mask channels. Endpoint order is handled by the minimum loss over the two permutations. Category frontends receive 40 epochs with 240 sampled examples per epoch and batch size four. AdamW uses encoder/head learning rates , weight decay and a cosine schedule. The encoder is frozen for the first two epochs and batch-normalization statistics stay frozen. The frontend seed is 42.
The DFD has 64 candidate slots and 64 grid slots, width 64, four attention heads and
S2 two layers. Grid slots use a fixed layout. Spatially pooled feature memory has a grid. First-layer soft support masks add a log-sigmoid bias to second-layer attention. The main decoder objective is
Support coupling aligns geometric predictions with mask support. Paired-edit consistency uses count changes and shared-object displacement, with duplicate source-query perturbations. The plain-set control omits mask feedback and the coupling/consistency mechanisms. Each head receives 768 optimizer steps and 1,536 image exposures. Fifteen categories are trained for each of the two variants.
Fitting data comprise normal-source parents and paired edits with updated factual targets. An edit can produce a logically abnormal configuration; supervision remains component/fact based. The decoder's geometric predictions support its training objective, while final hybrid measurements use associated witnesses.
S2 Association and geometric-readout selection
S2.1 Normal-development association
Four candidates combine same-class or any-class eligibility with radii 0.04 or 0.08. Selection uses 294 annotated original normal development parents across 15 categories. For each category, the objective is
where relative matched-axis error is clipped to [0,1]. The category objectives are macro-averaged. Unbound recognized objects count as false positives and unmatched reference objects as false negatives. Ties follow the preset candidate order. The same selected scheme is applied to both datasets and decoder variants.
S3
Table S2: Complete normal-development association selection. Point F1 and clipped axis error are category macro-averages (%). Unbound is a count.
| 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 |
The selected same-class radius 0.08 has 3,136 decoded development objects and no unbound objects. The main hybrid's test set has one unbound object in one breakfast-box image. The null policy retains that identity in the count and leaves its geometry-dependent operands unavailable.
S2.2 Initial screw-mask ownership and native axes
For instance , predicted box width and height are lower-bounded by 0.02. Foreground pixels are eligible within the box expanded by 12.5% on each side. Among eligible instances, a pixel is assigned by minimizing
Unsupported pixels are excluded. Assigned pixels are mapped to native coordinates before PCA, and the selected reader uses untrimmed projection endpoints.
The substitution requires at least 16 assigned pixels, 75% expanded-box support, normalized centroid displacement at most 0.04, principal-to-secondary eigenvalue ratio at least four, and finite endpoints. Otherwise the original FMP axis is retained. These fallback axes remain valid witnesses for subsequent identity association. A dummy semantic-to-witness match instead produces null geometry.
The readout candidates combine connected-component or box-supported assignment with zero or 1% projection trimming. Selection uses 30 normal development screw-bag images with
S4
Table S3: Native-axis error on 60 normal development screw instances. Relative errors are percentages; Large counts errors above 20% and Updates counts substituted axes. Reference axes are stored normal component targets.
| Readout | Mean | Median | P95 | Large | Updates |
|---|---|---|---|---|---|
| Predicted endpoints | 11.96 | 4.96 | 53.00 | 8.00 | 0 |
| Connected components, untrimmed | 8.30 | 53.00 | 32 | ||
| Connected components, 1% trimming | 9.56 | 3.53 | 53.00 | 32 | |
| Box-supported assignment, untrimmed | 2.50 | 0.83 | 9.36 | 0.00 | 60 |
| Box-supported assignment, 1% trimming | 3.54 | 0.00 | 60 |
60 screw instances. Admission requires at least a 10% mean-error reduction, no regression in median, P95 or errors above 20%, and at least one valid substitution. Candidate order resolves remaining ties after mean and P95 error.
S2.3 Post-binding support certification
The initial witnesses above are bound to decoded identities before the final readout. For screw bags, tapes, ropes, sticks and stationery, same-class foreground pixels are reassigned to the nearest bound center using Euclidean distance in native coordinates, without clipping to boxes. At least 16 assigned pixels are required. PCA directions use native-coordinate covariance; endpoints use the 1st and 99th projection percentiles.
Quality is evaluated for the initial and candidate axes on the same assigned support. samples 64 equally spaced axis points and measures membership in the assigned binary mask dilated once with a kernel. measures how many assigned pixels project inside the axis interval padded by one native mask-pixel diagonal. is the largest 8-connected assigned-region area divided by all assigned pixels. The fixed quality floor is 0.9908659040240699, the tenth percentile over 609 readable normal-development candidates; the required gain is 0.05.
Substantial components of the full class mask have at least pixels. Their count must equal the number of currently bound recognized instances, and dominant
S5
Table S4: Certified readout coverage on the 3,429 test images with length readouts. Axes: bound target axes; Quality: candidates passing the quality gate; Accepted: candidates passing the complete certificate.
| 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 |
components must be distinct. Each instance must retain at least 98% of its full dominant component and its frozen center must lie within a two-mask-pixel dilation of that component. Structural failure rejects every proposed update in that class. These checks use observed identities, without replacing them by normal expected counts.
The boundary guard rejects a dominant component touching the image edge or its adjacent one-pixel band. If a candidate shortens the initial axis by more than one native mask-pixel diagonal, 64 initial-axis samples are projected onto the candidate direction. Samples outside the padded candidate interval, together with its two endpoints, are tested against every other recognized object's box expanded by one mask pixel. Any intersection rejects the update. The rejection retains the initial axis, its witness link and availability; it does not delete an object or supply an expected normal length. Accepted updates retain the original identity-to-witness link and additionally record the mask source, assigned support, candidate quality and gate results.
The tolerances were fixed before the completeness experiment. The same reader is applied to normal fitting/development/calibration and test images, without category-specific switches or selection by proximity to a normal length interval. The development setting is summarized in Sec. 4.1 of the main paper.
The certificate updates 176 axes in 175 test images. With own normal references or the original bound deployment's references shared, all final decisions are identical between the two modes. The tape repair set is the same 90 images, corresponding to 20 cross-condition
S6 filename-index groups, with one additional type-related miss. All screw-bag predictions and normal configuration equal the initial bound deployment. The complete-support and whole-component-only variants yield exactly the same final facts and predictions, so the extra boundary/shortening guards have no measured independent benefit here.
S3 Frozen-output binding-policy ablations
S3.1 Policies and evaluation modes
All six policies reuse the evidence-edit decoder’s frozen semantic outputs and the same initial FMP/guarded-screw witnesses, followed by the fixed complete-support readout. The main policy is the previously selected same-class, one-to-one assignment at radius 0.08. Independent nearest assignment uses the same eligibility test but allows several decoded objects to use one witness. The any-class control removes only class compatibility. The ungated control allows every same-class pair, with dummy cost , so only witness scarcity requires an unbound object. The drop-unbound control first applies the main assignment and then discards objects assigned to a dummy. The radius control uses 0.04 with all other main-policy choices retained. The six binding policies and all readout tolerances are retained without a new search.
For each policy, original normal fitting and development parents rebuild the intervals and residual references; independent calibration parents set the 95th-percentile threshold using the same strict comparison. Auxiliary models, source roles, task rules and the score formula are unchanged. A second diagnostic applies the original SGDB references and thresholds to every policy's facts. This separates a changed fact interface from the additional effect of normal-reference fitting and calibration. No network forward, optimizer update or baseline execution is performed.
The class-agnostic policy gives 92.60/91.38 VID AUROC/F1 with its own normal references and 93.55/92.76 with shared SGDB references. The tighter radius gives 93.97/93.11
S7
Table S5: Binding policies with their own normal references and CAL thresholds, and with SGDB's references/thresholds shared (%). Each four-column group reports LOCO AUROC/F1, then VID AUROC/F1.
| Policy | Own normal references | Shared SGDB references | ||||||
|---|---|---|---|---|---|---|---|---|
| LOCO | VID | LOCO | VID | |||||
| 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 |
| Discard unbound identities | 98.19 | 94.52 | 93.56 | 92.76 | 98.19 | 94.52 | 93.56 | 92.76 |
| Tighter radius (0.04) | 97.98 | 94.52 | 93.97 | 93.11 | 97.00 | 92.81 | 93.66 | 93.01 |
Table S6: Binding traces on all 9,031 test images and 51,158 decoded objects. Unbound counts decoded objects without a witness; Dropped counts identities removed from the assembled facts. Reuse counts assignments beyond one use per witness. Cross-class counts links with different decoded/witness labels.
| 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 |
on VID and 97.98/94.52 on LOCO. These controls retain the original normal-development choice of radius 0.08.
Independent nearest assignment changes 3 test scores and 0 decisions. Dropping unbound identities changes 1 scores and 0 decisions. Removing the distance gate changes 0 scores. Binding-trace counts are unchanged by the downstream axis readout.
S3.2 Controlled missing-witness probe
The binding-stage probe, before the downstream support readout, uses all 294 annotated original normal development parents. For every originally matched decoded object, its assigned witness is removed once, producing 3,136 trials. The image, semantic output, remaining witnesses and their measurements are unchanged. Every policy is then reapplied. These
S8
Table S7: Controlled witness removal over 3,136 trials (%). Count kept: all decoded identities remain counted. Null orphan: the decoded object whose original witness was removed remains present with unavailable geometry. Reuse trials: at least one witness is assigned to several objects.
| 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 |
modified witness sets are used only to inspect binding behavior; they do not fit normal references or thresholds, select a configuration, or represent additional real anomaly images.
Partial binding preserves the count and marks the orphan geometry unavailable in all trials. Nearest assignment redirects the orphan to an already used witness in 720 trials. The drop-unbound control removes one identity in every trial. Class-agnostic assignment reroutes the orphan in 96 trials and creates 136 cross-class links in total. Ungated same-class assignment reroutes it in 18 trials. This probe demonstrates the count/measurement-availability distinction under a controlled intervention; it does not establish the prevalence or detection accuracy of natural witness failures.
S3.3 Numerical verification
The support-readout audit independently checks complete-component ownership, support gates, frozen semantic fields, normal calibration, strict decisions and task-macro AUROC/F1. The binding controls are refreshed by applying the same fixed reader to their previously saved object assignments, without a new neural or baseline run. The main policy reproduces every audited complete-support configuration and all 9,031 predictions exactly; each of the six policies retains 9,031 records under each reference mode. Controlled witness-removal trials and assignment traces are unchanged because they evaluate the binding interface before axis updates. Original manuscripts, master tables and prior experiment archives are preserved.
S9
S4 Normal references and deployment
For continuous operand , let , be normal-fitting quantiles. The scale and development padding are
The interval is . Residual references use normal fitting observations; an unavailable reference key defaults to . All required missing operands share one binary unavailable-evidence residual. Cached pixel, color, separator, cable and OCR observations are retained alongside reconstructed object-derived quantities.
Calibration selects the empirical 95th percentile with the higher convention. For sorted calibration scores, its one-based index is . With ten normal calibration images per VID task, this selects the observed maximum. Decisions use the strict comparison . The interval recipe, score normalization and calibration convention are shared across the internal configurations; references and thresholds correspond to each configuration's normal facts.
S10
Algorithm S1. Normal-data configuration and SGDB deployment
Input Normal fitting, development and calibration roles; component targets; task requirements. 1 Train the visual frontend on component targets from normal fitting sources; select on normal development targets and freeze it. 2 Train the predesignated semantic decoder on normal fitting parents and paired factual edits; select on normal development targets. 3 Select the guarded screw readout on its annotated normal development subset. 4 Select one association scheme on the 294 annotated original normal development parents. 5 Fix the normal-development quality floor; apply the support-certified readout to bound normal objects, then fit intervals and residual references. 6 Use independent normal calibration scores to freeze each task threshold. 7 For an inspection image: obtain decoded semantic objects and frozen geometric witnesses. 8 Apply guarded screw geometry where eligible, then perform partial one-to-one association. 9 Apply quality and complete-support checks; accept mask-axis updates or retain the initial axes. Rebuild operands and retain auxiliary appearance/OCR cues. 10 Execute frozen task constraints and score normalization; compare the score strictly with its threshold. 11 Record rule operands, residuals, normalized contributions and their source links; for an alarm, select the first sufficient descending prefix. 12 Generate qualitative claims with the frozen language model, check their IDs and render numeric evidence from the common trace. Output Frozen score, image-level decision and supporting report.
S5 Execution-grounded explanation
S5.1 Trace schema and certificate selection
Each trace record stores a rule key and evidence ID, observed value, executable requirement, residual, normalized score and source paths. Referenced objects retain their decoded indices, confidence, associated witness index, matching distance and available geometry. Length operands additionally retain the prior and candidate axes, support quality and completeness checks where a support-readout record exists. Cached pixel/OCR measurements retain their own source fields. A zero decoded count points to the count record rather than inventing an object region.
The certificate operates on the fixed normalized contributions. For a subset C, omitted
S11 scores are set to zero and , with . Sorting requires time and scanning the prefixes requires . For any subset of size , its maximum is at most and its sum is at most . Therefore , proving minimum cardinality of the first prefix exceeding the threshold. Equal-score ties prefer available predicates over the aggregate unavailable-evidence flag and then use key order. This defines a sufficient score-space certificate; selected predicates may share underlying operands.
The full trace and score are preserved alongside the certificate. For non-alarms, the renderer retains unavailable operands and any raw deviations, including those normalized to zero. Otherwise it cites evaluated count predicates and the zero-score execution state. The language realization layer conditions on selected qualitative outcomes and evidence identifiers. Numeric values remain in the executor-owned evidence records. Image-level truth is attached only after generation for the qualitative review strip.
S5.2 Selection-policy comparison and checks
All four policies use the same 66,297 rule records from 9,031 frozen images. The comparison cohort contains every one of the 5,725 original alarms. All-executed selection retains every rule; positive-score selection drops zero contributions; maximum-score selection retains one largest contribution; compact sufficient selection uses the first sufficient descending prefix. Mean size is an image-weighted average on that alarm cohort, and sufficiency uses each image's existing strict threshold comparison. No references, thresholds or detection predictions are changed.
The compact certificate retains 5,759 rule records, compared with 11,418 positive-score records and 40,767 executed records over the alarm cohort. Of the certificates, 5,708 contain one rule and 17 contain three. In the latter tape traces, each of the three selected contributions equals 4.044522437723423. One yields 4.084967662100657 and two yield 4.125412886477891, equal to the threshold; all three yield 4.165858110855125. The selected predicates are the green-tape count, red-tape count and measurement-unavailable flag.
S12
Table S8: Per-category alarm counts and mean selected-rule counts. The last column counts alarms insufficiently explained by only the maximum-score rule. Every compact certificate is sufficient.
| 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 |
| Fruits | 438 | 3.000 | 1.438 | 1.000 | 0 |
| Tools | 548 | 7.000 | 2.294 | 1.000 | 0 |
| Cookies | 550 | 8.789 | 2.813 | 1.000 | 0 |
| Tapes | 500 | 3.484 | 1.814 | 1.068 | 17 |
| Stationery | 550 | 12.996 | 1.500 | 1.000 | 0 |
| Ropes | 430 | 6.986 | 1.847 | 1.000 | 0 |
| Blocks | 471 | 7.000 | 2.034 | 1.000 | 0 |
| Dishes | 594 | 4.355 | 1.845 | 1.000 | 0 |
| Balls | 592 | 7.000 | 1.782 | 1.000 | 0 |
The full reports retain missing evidence in 1,254 records, including 94 non-alarms; 191 non-alarm traces have raw deviations. Checks reconstruct every residual, normal-tail normalization and full score and reproduce all 9,031 decisions. Independent axis/center calculations reconstruct 3,928 cited geometric operands with maximum absolute error . Certificate cardinality is also checked by exhaustive enumeration on 160 small synthetic score vectors, a joint-aggregation fixture and four deliberately corrupted report fields. These checks measure execution and provenance consistency.
S5.3 Frozen language realization
The language input projects a trace record to its predicate name, operator, qualitative relation and evidence ID. Missing operands retain their names. It excludes raw image pixels, source filenames, image-level truth and detector-normalization values. The frozen model writes qualitative claims; the report renders observed numbers and requirements directly from the source records. The JSON response contains the unchanged decision and a list of claims with
S13 evidence IDs. Facts sharing one qualitative relation may be combined into a claim.
The contract checks the JSON schema, unchanged decision, exact selected-ID coverage, allowed citations and the absence of literal numeric quantities in generated text. It also checks relation grouping, explicit unavailable states and selected lexical conflicts. A rejected output is retained as a structured trace rather than accepted prose. These are mechanical preservation checks; the comparison measures contract adherence. All prompts, raw responses and rejection reasons are archived, including earlier prompt-adapter development runs.
The final renderer is evaluated on one SHA256-ranked source from each of the 55 deployment tasks, the six main-paper cases and three additional execution states: a joint alarm, a non-alarm with unavailable evidence and a non-alarm with raw deviations. Deduplication gives 63 English reports; seven case reports are also generated in Chinese. Selection does not consume image-level truth. The final batch runs on physical GPU 2 with the existing checkpoint, greedy decoding, batch size two and at most 640 new tokens per report. Detector facts, thresholds and decisions are unchanged. The model uses no image input and takes no optimization steps.
All 70 reports preserve the tested source contract (Table S9). Fifty deliberate corruptions of decisions, source IDs, claim coverage, numeric text and unsupported-cause text are rejected.
Table S9: Frozen language realization. Accepted denotes preservation of the defined source contract; mean claims measures report size. Numeric evidence is rendered by the executor.
| Language | Reports | Accepted | Mean claims |
|---|---|---|---|
| English | 63 | 63 | 1.159 |
| Chinese | 7 | 7 | 1.429 |
S6 Comparison settings and condition results
The external detection tables compare completed local deployments. LOCO ComAD uses DINO-S8 clustering with five clusters and CRF processing without component labels; its
S14
Table S10: SGDB condition summaries across all ten VID scenarios. Values other than image counts are percentages. Missing is the task macro-average of unavailable-operand rates.
| 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 |
cross-scene deployment uses the archived shared component-map frontend. Local PUAD omits the external ImageNet penalty-image term. Cross-scene LogiCo uses its archived component frontend. LogicAD-FE-fast is a simplified local program/frontend deployment. Cross-scene SALAD and PUAD use category-level calibration, while SGDB uses deployment-task calibration. SGDB uses component annotations on the normal sources listed in Table S1, factual edits with updated targets, and explicit task requirements.
Internal controls share the normal-source roles, component-supervision budgets, visual frontend, task requirements and score/calibration recipe. The plain-set and evidence-edit decoders each use 768 updates and 1,536 image exposures. Direct DFD and its initial bound readout share semantic predictions and differ in the source of geometric operands. Binding-policy controls share decoder outputs and the complete-support reader; geometric-readout controls share decoder outputs, initial witnesses and class masks. The comparison recomputes normal references and thresholds from each configuration's normal facts using the fixed recipe. The matched-reference diagnostic instead holds the initial intervals, references and thresholds fixed, measuring the decision changes due to axis selection alone.
S15
Table S11: Information and implementation conditions of the completed deployments. NR: not established by the retained comparison protocol; the archive provides the actual image scores and thresholds. Internal mechanism controls share SGDB's component supervision and task requirements.
| 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 front-end. | 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. |
| LogicAD-FE-fast | Archived normal inputs and local frontend; target lineage NR. | Simplified local program/frontend deployment. | Pooling NR. |
The machine-readable condition matrix adds method-specific development selection, known annotation budgets, source-protocol links and unresolved adapter details. Detection tables describe these local deployments. Mechanism attribution uses the shared-supervision internal controls.
S16
S7 All 50 VID task results
The following tables report every retained primary method on all 50 deployment tasks. Each Mean row is an arithmetic task macro-average. The SGDB column refers to the fixed evidence-edit decoder with complete-support readout; the internal controls appear in the main-paper ablation. Best/second-best distinct displayed values are bold/underlined, and ties share marks.
Table S12: Complete VID task AUROC (%).
| 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 |
| Blocks | Cable BG | 86.09 | 92.38 | 75.51 | 75.25 | 99.06 | 47.89 | 85.35 |
| Blocks | Mesh BG | 87.87 | 94.04 | 77.33 | 68.35 | 100.00 | 40.38 | 91.11 |
| Blocks | Low light | 91.25 | 96.75 | 81.58 | 78.64 | 98.59 | 48.61 | 91.36 |
| Blocks | Blur | 93.95 | 95.38 | 74.73 | 87.62 | 67.65 | 63.16 | 90.20 |
| Cookies | Original | 63.51 | 49.77 | 99.98 | 13.81 | 49.39 | 51.39 | 91.08 |
| Cookies | Cable BG | 71.91 | 61.49 | 99.77 | 23.38 | 83.40 | 56.47 | 86.05 |
| Cookies | Mesh BG | 61.51 | 70.45 | 99.98 | 25.53 | 99.91 | 49.04 | 87.05 |
| Cookies | Low light | 61.32 | 45.23 | 98.70 | 18.09 | 93.24 | 53.39 | 84.71 |
| Cookies | Blur | 56.62 | 34.91 | 91.79 | 13.85 | 95.52 | 60.92 | 84.20 |
| Dishes | Original | 70.45 | 66.02 | 84.88 | 87.12 | 99.54 | 84.14 | 96.25 |
| Dishes | Cable BG | 50.41 | 61.69 | 69.73 | 54.67 | 99.23 | 49.89 | 96.15 |
| Dishes | Mesh BG | 26.09 | 56.41 | 72.63 | 33.55 | 99.90 | 90.18 | 86.97 |
| Dishes | Low light | 59.46 | 73.80 | 79.71 | 64.67 | 99.59 | 98.13 | 96.14 |
| Dishes | Blur | 55.41 | 75.14 | 62.79 | 69.19 | 99.94 | 80.43 | 88.98 |
| Fruits | Original | 99.88 | 100.00 | 99.96 | 98.50 | 99.34 | 98.40 | 96.00 |
| Fruits | Cable BG | 99.62 | 97.74 | 99.96 | 97.26 | 83.79 | 98.02 | 90.00 |
| Fruits | Mesh BG | 99.98 | 100.00 | 99.92 | 99.18 | 95.95 | 99.00 | 91.50 |
| Fruits | Low light | 99.68 | 98.32 | 99.98 | 98.14 | 98.90 | 100.00 | 95.50 |
| Fruits | Blur | 99.90 | 99.80 | 99.90 | 99.72 | 98.59 | 57.35 | 96.00 |
| Ropes | Original | 41.29 | 27.76 | 73.93 | 41.60 | 81.30 | 63.04 | 89.09 |
| Ropes | Cable BG | 43.62 | 34.84 | 85.24 | 39.02 | 81.52 | 57.20 | 89.77 |
| Ropes | Mesh BG | 45.76 | 33.00 | 92.35 | 43.44 | 81.06 | 47.29 | 87.30 |
| Ropes | Low light | 41.64 | 35.18 | 75.91 | 40.13 | 82.19 | 79.21 | 87.24 |
| Ropes | Blur | 42.71 | 28.87 | 73.58 | 44.05 | 81.22 | 45.50 | 89.09 |
| Stationery | Original | 52.95 | 77.15 | 61.07 | 48.07 | 57.37 | 52.13 | 100.00 |
| Stationery | Cable BG | 68.53 | 55.80 | 71.49 | 54.36 | 62.93 | 58.34 | 100.00 |
| Stationery | Mesh BG | 50.75 | 54.04 | 64.07 | 39.85 | 78.90 | 62.87 | 100.00 |
| Stationery | Low light | 32.76 | 56.13 | 74.33 | 28.22 | 70.19 | 63.21 | 100.00 |
| Stationery | Blur | 50.35 | 68.36 | 57.09 | 41.45 | 90.15 | 42.95 | 100.00 |
| Sticks | Original | 69.44 | 35.85 | 97.65 | 70.44 | 88.31 | 69.34 | 100.00 |
| Sticks | Cable BG | 76.31 | 55.48 | 98.65 | 76.29 | 84.02 | 73.14 | 100.00 |
| Sticks | Mesh BG | 98.10 | 66.29 | 95.58 | 98.88 | 87.58 | 69.63 | 100.00 |
| Sticks | Low light | 85.71 | 34.96 | 96.79 | 85.38 | 88.34 | 56.27 | 100.00 |
| Sticks | Blur | 84.94 | 35.58 | 99.10 | 79.79 | 78.09 | 77.24 | 99.62 |
| Tapes | Original | 100.00 | 99.73 | 100.00 | 100.00 | 94.26 | 68.17 | 99.89 |
Continued on next page
S17
Table S12 continued
| Scenario | Condition | SALAD | LogiCo | ComAD | PUAD | Qwen | LogicAD | SGDB |
|---|---|---|---|---|---|---|---|---|
| Tapes | Cable BG | 100.00 | 100.00 | 100.00 | 100.00 | 89.54 | 69.09 | 96.78 |
| Tapes | Mesh BG | 100.00 | 100.00 | 100.00 | 100.00 | 94.83 | 65.04 | 97.05 |
| Tapes | Low light | 100.00 | 93.60 | 100.00 | 100.00 | 94.75 | 61.87 | 100.00 |
| Tapes | Blur | 100.00 | 99.93 | 100.00 | 100.00 | 91.31 | 80.68 | 99.95 |
| Tools | Original | 86.98 | 95.09 | 79.60 | 77.65 | 77.07 | 57.85 | 99.89 |
| Tools | Cable BG | 92.38 | 93.07 | 73.47 | 88.11 | 81.11 | 64.36 | 99.36 |
| Tools | Mesh BG | 88.95 | 93.09 | 81.20 | 78.84 | 77.98 | 67.28 | 99.25 |
| Tools | Low light | 93.11 | 95.07 | 78.42 | 75.64 | 86.03 | 69.85 | 99.89 |
| Tools | Blur | 89.36 | 93.05 | 71.89 | 74.71 | 91.86 | 48.59 | 99.11 |
| All 50 tasks | Macro mean | 69.70 | 70.38 | 83.60 | 62.15 | 88.44 | 63.94 | 93.56 |
Table S13: Complete VID fixed-threshold F1 (%).
| 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 |
| Blocks | Cable BG | 80.00 | 89.80 | 77.16 | 70.18 | 87.88 | 34.62 | 83.17 |
| Blocks | Mesh BG | 84.06 | 90.91 | 72.73 | 70.11 | 98.62 | 19.70 | 86.49 |
| Blocks | Low light | 80.20 | 91.67 | 67.86 | 68.93 | 96.83 | 0.00 | 90.55 |
| Blocks | Blur | 93.56 | 90.91 | 68.89 | 80.00 | 69.43 | 0.00 | 88.67 |
| Cookies | Original | 80.92 | 78.71 | 91.77 | 80.92 | 85.00 | 3.67 | 89.52 |
| Cookies | Cable BG | 82.17 | 82.26 | 95.93 | 65.22 | 88.99 | 8.93 | 87.04 |
| Cookies | Mesh BG | 83.14 | 81.93 | 94.64 | 70.18 | 97.09 | 17.74 | 84.30 |
| Cookies | Low light | 74.14 | 79.18 | 85.83 | 16.56 | 93.78 | 10.53 | 81.86 |
| Cookies | Blur | 80.92 | 81.25 | 89.27 | 80.92 | 75.29 | 10.71 | 83.33 |
| Dishes | Original | 73.68 | 77.24 | 79.14 | 86.11 | 91.18 | 88.10 | 98.23 |
| Dishes | Cable BG | 34.01 | 73.90 | 18.03 | 28.57 | 96.30 | 49.43 | 96.94 |
| Dishes | Mesh BG | 11.76 | 60.58 | 55.13 | 46.15 | 98.63 | 75.14 | 94.87 |
| Dishes | Low light | 5.26 | 77.98 | 77.07 | 0.00 | 98.63 | 98.67 | 98.23 |
| Dishes | Blur | 63.21 | 78.99 | 59.22 | 57.14 | 92.23 | 75.94 | 94.87 |
| Fruits | Original | 96.37 | 100.00 | 97.96 | 91.30 | 95.34 | 87.78 | 95.83 |
| Fruits | Cable BG | 97.51 | 90.50 | 96.37 | 91.01 | 83.64 | 85.06 | 88.89 |
| Fruits | Mesh BG | 99.01 | 100.00 | 98.99 | 96.04 | 96.97 | 88.89 | 90.71 |
| Fruits | Low light | 87.64 | 93.62 | 99.01 | 84.39 | 96.37 | 100.00 | 95.29 |
| Fruits | Blur | 92.47 | 97.96 | 97.98 | 87.64 | 94.79 | 3.88 | 95.83 |
| Ropes | Original | 16.53 | 9.23 | 29.23 | 20.97 | 77.72 | 74.15 | 87.76 |
| Ropes | Cable BG | 0.00 | 3.51 | 29.46 | 0.00 | 78.31 | 3.54 | 85.57 |
| Ropes | Mesh BG | 1.80 | 0.00 | 3.54 | 0.00 | 77.78 | 3.57 | 85.71 |
| Ropes | Low light | 0.00 | 11.76 | 15.13 | 0.00 | 78.49 | 68.60 | 84.85 |
| Ropes | Blur | 0.00 | 1.80 | 70.79 | 0.00 | 75.00 | 1.80 | 87.76 |
| Stationery | Original | 81.78 | 81.54 | 59.30 | 81.78 | 26.77 | 14.40 | 100.00 |
| Stationery | Cable BG | 80.93 | 74.10 | 61.27 | 59.30 | 13.56 | 46.75 | 100.00 |
| Stationery | Mesh BG | 82.71 | 71.55 | 60.57 | 62.22 | 48.32 | 15.00 | 100.00 |
| Stationery | Low light | 56.73 | 73.17 | 53.85 | 35.63 | 25.40 | 6.96 | 100.00 |
| Stationery | Blur | 82.09 | 80.46 | 57.14 | 78.46 | 8.70 | 1.80 | 100.00 |
| Sticks | Original | 28.80 | 44.83 | 93.66 | 21.67 | 80.00 | 9.17 | 99.05 |
| Sticks | Cable BG | 14.29 | 60.00 | 71.60 | 12.61 | 81.11 | 61.94 | 98.11 |
| Sticks | Mesh BG | 26.67 | 21.85 | 91.54 | 30.89 | 76.02 | 0.00 | 99.05 |
| Sticks | Low light | 17.39 | 43.27 | 93.40 | 14.16 | 84.82 | 7.41 | 98.58 |
| Sticks | Blur | 32.00 | 39.77 | 91.19 | 30.65 | 70.37 | 5.61 | 99.05 |
Continued on next page
S18
Table S13 continued
| Scenario | Condition | SALAD | LogiCo | ComAD | PUAD | Qwen | LogicAD | SGDB |
|---|---|---|---|---|---|---|---|---|
| Tapes | Original | |||||||
| Tapes | Cable BG | |||||||
| Tapes | Mesh BG | |||||||
| Tapes | Low light | |||||||
| Tapes | Blur | |||||||
| Tools | Original | |||||||
| Tools | Cable BG | |||||||
| Tools | Mesh BG | |||||||
| Tools | Low light | |||||||
| Tools | Blur | |||||||
| All 50 tasks | Macro mean |
S8 Paired grouped analysis and reproduction
S8.1 Paired grouped uncertainty
The paired analysis keeps the trained models, normal references and calibration thresholds fixed. It resamples groups with replacement within category and binary-label strata, using 10,000 replicates and seed 20261025. Each replicate uses the same group multiplicities for all compared methods. AUROC and fixed-threshold F1 are computed within each deployment task and then macro-averaged, matching the main tables. The reported intervals are the 2.5th and 97.5th percentiles of the paired differences in percentage points.
LOCO contributes 1,136 individual test-image groups. For VID, each scene, anomaly-path type and filename index forms a group of five capture conditions, giving 1,579 index groups for 7,895 images. This correspondence is an explicit resampling assumption; the retained dataset metadata do not verify physical-instance or source-video identity. Normal-role groups use the inherited manifest indices. Neither these group IDs nor exact image SHA-256 values overlap the fitting, development, calibration and test roles. This check does not establish independence between adjacent or visually similar frames.
The intervals describe conditional variation within the evaluated test cohorts under the frozen configurations, rather than training-seed variation or independent blind validation.
S19
Table S14: SGDB V2 minus each frozen control: point difference and paired grouped 95% interval (percentage points). Each deployment retains its own archived normal references. The guarded-geometry comparison is secondary.
| 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] |
| VID-AD | Quality only | +0.02 [+0.00, +0.06] | +0.00 [+0.00, +0.00] |
| VID-AD | FMP + guarded geometry | +2.22 [+1.49, +2.96] | +3.30 [+2.44, +4.19] |
Each contrast has a marginal interval; the intervals are not adjusted for simultaneous multiple comparisons. The uniform-mask control has a small VID F1 advantage, while V2 protects LOCO AUROC against both unrestricted and quality-only axis replacement.
Table S15: Sensitivity analysis with the original bound deployment's intervals, residual references and thresholds held fixed for all readout configurations (percentage points). Same resampling draws as Table S14.
| 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] |
Table S16: Changes to V2 across all 9,031 images. R/G: repaired/regressed views. Group counts use LOCO image IDs and VID cross-condition filename indices; one group can contain both kinds of change. Complete unchanged and changed group ledgers are supplied.
| 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 |
S20
S8.2 Reproduction material
The CPU archive contains 162,558 saved predictions from 18 configurations, all image labels and source-index group IDs, frozen intervals/references/thresholds, and 12,666 final fact records. The metric script reproduces 990 method/task rows and checks all 715 archived manuscript rows. The scoring replay starts from facts, executes the archived scalar predicates and reconstructs score-space explanation certificates; it does not invoke a detector. Recorded language outputs have a separate contract replay. The archive also supplies exact group draws, per-category results, condition-specific false-positive rates, and source-index transition ledgers.
The code and frozen reproduction records are available in the public SGDB repository (https://github.com/Qybc/SGDB, release v1.0.0). The release includes the research implementations and 15 semantic-decoder checkpoints. Its model inventory records the visual-frontend assets outside this release; original-image inference also requires the benchmark data and OCR/model runtime. The supplied CPU entry points reconstruct the reported results from frozen outputs and facts. No new training, detector inference, baseline run or threshold fitting was performed for this analysis.
S9 Implementation consistency
Consistency audits verify association, geometric provenance, normal references and strict decisions. They cover 1,176 development records, 25,332 initial facts, 18,062 initial predictions, 4,559 source-mask records and 36,124 complete-support predictions.
S21
Table S17: Paired decision transitions. Same residuals counts changed decisions with an identical raw rule-residual dictionary.
| 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 |
S10 Paired decisions and qualitative sources
S10.1 Paired operating-point changes
Table S17 compares FMP plus guarded geometry with SGDB over the full image cohorts. Changes with identical raw residuals reflect configuration-specific normal references and calibration. Main-paper FPR values are task macro-averages.
S10.2 Qualitative source selection and replay
The LOCO comparison uses the first two logical sources per category, followed by the first normal and third logical source. VID uses the first normal Original, anomalous Original and anomalous Blurry source per scenario. Detailed reports cover nine fixed sources, six in the main paper and three below. The joint-contribution inset adds the lexicographically first frozen tape trace requiring three contributions.
All reports use the audited execution traces. The six main reports use the frozen language model for qualitative claims, with numeric evidence rendered from source records; the three additional reports below retain the structured trace view. Ground truth is added only in the subsequent review strip.
Images are uniformly scaled and padded. Detail crops retain native coordinates and parent pixels. Boxes and axes show SGDB outputs; green/red strips indicate image-level correctness against the dataset label.
S22
Input + associated objects
Linked evidence detail
Decision / generated claims / numeric evidence
(a) Screw bag


GT: Normal | Review: correct
Normal:
Counts (observed/required): nut 2/2 [E01]; washer 2/2 [E02]; screw 2/2 [E03].
Full trace: 6 predicates; all residuals zero.
Sources: O0, O1, O2, O3, O4, O5 / decoded identities.
(b) Screw bag


GT: Anomaly | Review: correct
Anomaly:
Short-screw length: 416.86 px; interval [196.08, 363.12] [E05].
Selected R05: z=5.967.
S(C) = 6.02705 > 4.43005; sufficient alarm evidence.
Sources: O4 / associated axes.
(c) Screw bag


GT: Normal | Review: correct
Normal:
Counts (observed/required): nut 2/2 [E01]; washer 2/2 [E02]; screw 2/2 [E03].
Full trace: 6 predicates; all residuals zero.
Sources: O0, O1, O2, O3, O4, O5 / decoded identities.
Figure S1: Additional SGDB reports on normal and anomalous screw bags. All decisions, lengths and interval references are from the current hybrid replay. The input and linked detail retain original dataset pixels.
S23