TL;DR
This paper introduces a training-free method to help Vision-Language Models (VLMs) accurately retrieve specific parts from complex 3D CAD assemblies based on natural language instructions. By having models reflect on their own mistakes to build an "Error Notebook" and using Retrieval-Augmented Generation (RAG) to reference these corrected reasoning paths during inference, the authors achieve massive accuracy boosts (up to +23.4%) without needing to fine-tune proprietary models.
What Problem Does This Paper Address?
In automated engineering and design, a common task is "specification-aware part retrieval"—finding a specific part within a complex 3D CAD assembly based on a relational description (e.g., "the cylindrical pin that fits into the flat plate").
Doing this with Large Language Models (LLMs) or VLMs is incredibly difficult for two primary reasons:
- Token Limits: CAD models (like STEP files) contain massive amounts of non-natural language metadata that easily exceed the token limits of standard models.
- No Fine-Tuning: The most capable models for this kind of spatial and relational reasoning (like GPT-4o or Gemini) are proprietary, making task-specific fine-tuning either impossible or prohibitively expensive.
The authors set out to build a framework that allows off-the-shelf VLMs to perform highly accurate part retrieval in complex assemblies without requiring any weight updates.
Methods
The authors propose a two-stage, training-free VLM pipeline designed to bypass token limits and improve reasoning through reflection.
Stage 1: Part Description Generation (Bypassing Token Limits) Instead of feeding raw CAD code to the model, the system uses a VLM to look at 2D images of the overall assembly and individual parts. The VLM generates a concise, discriminative text description for every part. This translates heavy geometric data into lightweight text.
Stage 2: The "Error Notebook" and RAG Instead of standard few-shot prompting, the authors introduce an Error Notebook.
- Construction: The model attempts to solve a retrieval task using Chain-of-Thought (CoT) reasoning. If it fails, it is prompted to reflect on its trajectory, identify the exact point it made a logical error, and write a corrected reasoning path.
- Verification: A Grammar-Constraint (GC) verifier checks these corrected paths to ensure they end with a properly formatted, valid part filename. Valid corrections are saved in the notebook.
- Inference: When a new query arrives, the system uses RAG to find the most similar past queries in the Error Notebook. It feeds these corrected reasoning trajectories to the VLM as few-shot exemplars, effectively showing the model how to avoid common mistakes before it even makes them.
Datasets
The authors built a new multimodal CAD assembly dataset based on the existing Fusion 360 Gallery Dataset (specifically the Assembly Dataset).
- It contains 752 assemblies, ranging from simple (2 parts) to highly complex (249 parts).
- They used GPT-4o to generate initial part descriptions and relational specifications.
- Crucial Addition: They introduced human preference annotations. Professional annotators filtered out ambiguous cases or assemblies where parts were visually indistinguishable, creating a high-quality ground-truth benchmark for evaluation.
Key Insights and Ideas
- Reflection is better than repetition: Showing a model how to correct a flawed reasoning path (via the Error Notebook) yields much better results than standard few-shot learning (just showing the right answer) or self-consistency (having the model vote on multiple blind attempts).
- Text as an intermediate representation: By using a VLM to convert visual CAD parts into text descriptions first, the system sidesteps the token-explosion problem of raw CAD files while maintaining the context needed for relational reasoning.
- Cross-model distillation works wonders: You don't need a massive model in production. The authors found they could use a frontier model (GPT-4o) to generate the Error Notebook, and then use that notebook to guide a tiny, open-source model (like the 2B-parameter Qwen2-VL). This transfers the reasoning capability of the large model to the small one without any training.
Key Results
- Massive Accuracy Gains: On the human-preference dataset, GPT-4o (Omni) jumped from 41.7% accuracy to 65.1% (+23.4 absolute points) when using the Error Notebook. Gemini models saw similar double-digit improvements.
- Grammar Constraints Matter: Adding the GC verifier to filter out badly formatted corrections in the notebook added up to +4.5 points of accuracy.
- Small Models Punch Above Their Weight: Using the open-source Qwen2-VL-2B-Instruct model paired with an Error Notebook generated by GPT-4o, the 2-billion parameter model achieved performance just ~4 points shy of GPT-4o mini.
- Efficiency: While the RAG approach uses more prompt tokens, it actually reduced inference latency slightly (from 8.04s to 6.50s for the 2nd VLM stage), likely because the high-quality exemplars reduced the model's internal search depth.
Limitations and Future Work
Limitations: While inference is fast, constructing the Error Notebook and generating the initial part descriptions requires a high volume of API calls upfront. The time and cost to process Stage 1 scales linearly with the number of parts in an assembly, which could be a bottleneck for industrial assemblies with thousands of components.
Future Work: The authors plan to explore cross-domain applications of Error Notebooks. They aim to establish this as a more general paradigm for training-free, reflective reasoning in multimodal AI, proving that models can learn from their mistakes at inference time across various disciplines.
Summary updated