Struct2Det: Grounding Category Structure in Visual Evidence for Few-Shot Object Detection

Kaixuan Chang, Huabing Zhou, Yanduo Zhang, Tao Lu, Liwei Wang, Zhongyuan Wang, Jiayi MaarXiv 2026

Imagine you’re looking at a complex engineering blueprint. You see two symbols that look almost identical—maybe a valve and a pump. To the untrained eye, they’re just a jumble of lines. But a seasoned engineer knows that the valve has a tiny extra port on the side, while the pump has a specific internal enclosure.

Current AI models struggle with this. They are great at recognizing "vibes"—the general appearance of an object—but they often miss the "blueprints"—the specific structural components that define what an object actually is. This is especially true in "few-shot" scenarios, where the AI has only seen a handful of examples.

TL;DR

Struct2Det moves beyond simple "appearance-based" AI by giving detectors a structural "manual" for every object category. By representing objects as graphs of components and their relationships, the model can gather evidence across an image and perform a final "sanity check" to distinguish between look-alike symbols that differ only in tiny, local details.

What Problem Does This Paper Address?

Few-shot object detection (FSOD) is the art of teaching a computer to find objects after showing it only 1 to 10 examples. While we've gotten good at finding cats and dogs, we're still pretty bad at industrial symbols or Chinese characters.

The problem is visual ambiguity. In many technical domains, two different categories might share 90% of their pixels. Standard models, which learn from raw appearance, often fail to realize that the 10% difference is the only part that matters. They lack "structural knowledge"—the understanding that a specific category must contain certain parts in a certain arrangement.

Methods

The authors introduce Struct2Det, a three-stage framework that treats detection like a verification process:

  1. Relational Structure Encoding (The "What"): Every category is turned into a Category Structural Graph (CSG). Nodes represent parts (like a line or a circle), and edges represent relationships (like "contained in" or "connected to"). This graph is encoded into a mathematical "global condition" that tells the model what to look for.
  2. Component-Grounded Detection (The "Where"): Instead of just looking for the whole object, the model uses "component queries" to scan the entire image for the individual parts defined in the graph. This image-wide evidence is used to "nudge" the detector's initial guesses.
  3. Verification-Guided Refinement (The "Double-Check"): This is the clever bit. If the model finds a candidate but isn't sure if it's Class A or Class B, it performs a local check. It looks inside the candidate box to see if the specific components required by the graph are actually there. If they are, it "corrects" the features and predicts again.
Figure 2. Overall architecture of Struct2Det. (a) Relational Structure Encoding specifies what components to expect (category level). (b) Component-Grounded Detection retrieves evidence of where they appear to modulate text embeddings (image level). (c) Verification-Guided Refinement checks whether candidates contain expected components and corrects their region features (candidate level). Both classification inputs, category embeddings and region features, carry structural evidence. The detector is shared across rounds.

Datasets

To test this, the authors built a massive new benchmark called InduSym. It contains nearly 89,000 symbol instances across 275 categories, all pulled from real engineering drawings.

They also evaluated on:

  • Digitize-PID: Another industrial symbol dataset.
  • OV-COCO: A standard "natural object" dataset (think chairs, buses, etc.) to see if the method generalizes.
  • ICDAR2013: Chinese characters, which are inherently structural.

Key Insights and Ideas

  • Structure > Appearance: In few-shot learning, a single "blueprint" (graph) can be more valuable than a dozen blurry photos. The graph provides the "ground truth" of what defines a category, independent of how a specific instance might look.
  • LLMs as Architects: You don't have to draw these graphs by hand. The authors used Large Language Models (like Qwen) to generate the structural SVGs from text descriptions, which were then parsed into graphs.
  • The Power of the "Second Look": The refinement stage (Stage 3) is crucial. By comparing competing hypotheses (e.g., "Is this a transformer or a connector?"), the model can use the presence or absence of a single component to make the final call.
Figure 3. Qualitative comparison on InduSym. Two regions randomly cropped from a large engineering drawing are enlarged, highlighting seven targets. Label colors match prediction boxes.

Key Results

Struct2Det set new records across the board:

  • On InduSym, it beat the strongest baseline by 6.02 points in Mean Average Precision (mAP) for few-shot categories.
  • On Digitize-PID, the gain was even larger: 9.68 points.
  • It also showed a massive 14.83% improvement in zero-shot Chinese character recognition, proving that understanding structure is the key to recognizing things you've never even seen before.

Limitations and Future Work

While Struct2Det is a leap forward, the authors note that "zero-shot" symbol detection (finding symbols with no visual examples, only a graph) is still very difficult. The model currently relies on some level of visual supervision to learn what the "parts" look like.

Future work will likely focus on how to learn these visual-structural correspondences with even less human help, perhaps by letting the model "discover" parts on its own from the graphs. For now, Struct2Det stands as a powerful reminder that in the world of complex data, the "how" (structure) is just as important as the "what" (appearance).

Summary updated

Abstract

Few-shot detectors struggle to distinguish categories that look alike but differ in local components, because a few examples rarely reveal which differences determine category identity. Category descriptions specify components and relations but do not establish their presence in an image. We propose Struct2Det, which uses category structure to guide detection and verify candidates in three stages. Relational Structure Encoding maps category graphs to component embeddings and a global condition. Component-Grounded Detection uses component queries to retrieve multi-scale image evidence that, with the global condition, modulates category text embeddings for initial detection. Verification-Guided Refinement matches candidate regions with components expected by their top-scoring categories; when class scores are close and matches are reliable, matched pairs correct region features before the shared detector predicts again. Category structure informs both classification inputs: text embeddings integrate image-wide component evidence, while region features incorporate candidate-specific matches. We also construct InduSym, with 88,912 symbol instances across 275 categories from 674 engineering drawings and a structural graph per category. Struct2Det improves few-shot-category AP over the strongest baseline by 6.02 points on InduSym and 9.68 on Digitize-PID, with the highest base-category AP on both. InduSym ablations show few-shot gains from correct category structure, image-level retrieval, and candidate verification. Further tests show gains in few-shot natural-object detection and zero-shot Chinese character recognition.
BibTeX
@misc{chang2026struct,
  author = {Kaixuan Chang and Huabing Zhou and Yanduo Zhang and Tao Lu and Liwei Wang and Zhongyuan Wang and Jiayi Ma},
  title = {{Struct2Det: Grounding Category Structure in Visual Evidence for Few-Shot Object Detection}},
  year = {2026},
  eprint = {2611.30469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.30469},
}
Figure