Design-Specification Tiling for ICL-based CAD Code Generation
Not on the map. Why?
Abstract (arXiv)
Large language models~(LLMs) have demonstrated remarkable capabilities in code generation, yet their performance remains limited on domain-specific tasks such as Computer-Aided Design~(CAD) code generation, largely due to the scarcity of high-quality training data. In-Context Learning~(ICL) provides a training-free alternative by prompting LLMs with task-specific exemplars, but its effectiveness critically depends on how exemplars are selected. Existing selection strategies mainly rely on similarity or point-wise diversity, often overlooking the compositional nature of CAD design specifications, where a query may involve multiple functional requirements, geometric constraints, and design primitives. As a result, selected exemplars can be individually relevant but collectively redundant, providing insufficient coverage for complex design requirements. In this work, we propose knowledge sufficiency as a principled objective for exemplar selection, aiming to select a compact set of exemplars that maximally satisfies the requirements contained in a target design specification. To instantiate this objective, we introduce Design-Specification Tiling~(DST), which estimates knowledge sufficiency through a surrogate tiling ratio by decomposing design specifications into multi-granular components and measuring the proportion of query components covered by selected exemplars. We further show that optimizing this objective can be formulated as a submodular maximization problem, and develop a polynomial-time greedy algorithm tailored to this setting with a (1-1/e)-approximation guarantee. Extensive experiments across multiple LLMs demonstrate that DST substantially improves CAD code generation quality and consistently outperforms existing ICL exemplar selection strategies, highlighting the importance of requirement-level knowledge coverage for domain-specific code generation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 58 of its 76 references that are in the map. First posted on arXiv 13 Mar 2026.
Builds on
58 of 76 references.
References · 58
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2018ABC: A Big CAD Model Dataset For Geometric Deep Learningcited by 339
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2021DeepCAD: A Deep Generative Network for Computer-Aided Design Modelscited by 266
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
38 more
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
- 2023Structured Chain-of-Thought Prompting for Code Generationcited by 136
- 2022Coder Reviewer Reranking for Code Generationcited by 83
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examplescited by 80
- 2024CAD-MLLM: Unifying Multimodality-Conditioned CAD Generation With MLLMcited by 74
- 2023FELM: Benchmarking Factuality Evaluation of Large Language Modelscited by 66
- 2023On the Robustness of Code Generation Techniques: An Empirical Study on GitHub Copilotcited by 64
- 2024CAD-Recode: Reverse Engineering CAD Code from Point Cloudscited by 63
- 2024Generating CAD Code with Vision-Language Models for 3D Designscited by 61
- 2025CAD-Coder: Text-to-CAD Generation with Chain-of-Thought and Geometric Rewardcited by 53
- 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 46
- 2023Large Language Model-Aware In-Context Learning for Code Generationcited by 42
- 2025MDP3: A Training-free Approach for List-wise Frame Selection in Video-LLMscited by 40
- 2025CAD-Coder: An Open-Source Vision-Language Model for Computer-Aided Design Code Generationcited by 39
- 2024GenCAD: Image-Conditioned Computer-Aided Design Generation with Transformer-Based Contrastive Representation and Diffusion Priorscited by 36
- 2023ChatCAD+: Towards a Universal and Reliable Interactive CAD using LLMscited by 35
- 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
- 2023Outline, Then Details: Syntactically Guided Coarse-To-Fine Code Generationcited by 27
- 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Modelscited by 27
- 2024OpenECAD: An Efficient Visual Language Model for Editable 3D-CAD Designcited by 26
- 2025CADmium: Fine-Tuning Code Language Models for Text-Driven Sequential CAD Designcited by 23
- 2023CAD: Photorealistic 3D Generation via Adversarial Distillationcited by 18
- 2025CME-CAD: Heterogeneous Collaborative Multi-Expert Reinforcement Learning for CAD Code Generationcited by 18
- 2025Strategy Coopetition Explains the Emergence and Transience of In-Context Learningcited by 17
- 2024From 2D CAD Drawings to 3D Parametric Models: A Vision-Language Approachcited by 15
- 2025MeshCoder: LLM-Powered Structured Mesh Code Generation from Point Cloudscited by 15
- 2024Meta In-Context Learning Makes Large Language Models Better Zero and Few-Shot Relation Extractorscited by 13
- 2024The Fact Selection Problem in LLM-Based Program Repaircited by 12
- 2025Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoningcited by 12
- 2025Exploring the Role of Diversity in Example Selection for In-Context Learningcited by 12
- 2024Cropper: Vision-Language Model for Image Cropping through In-Context Learningcited by 10
- 2025From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generationcited by 10
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
- 2025CAD-Judge: Toward Efficient Morphological Grading and Verification for Text-to-CAD Generationcited by 9
- 2023Pre-training Code Representation with Semantic Flow Graph for Effective Bug Localizationcited by 8
- 2025CAD-Coder:Text-Guided CAD Files Code Generationcited by 8
- 2025Automated CAD Modeling Sequence Generation from Text Descriptions via Transformer-Based Large Language Modelscited by 8
- 2025The Role of Diversity in In-Context Learning for Large Language Modelscited by 6
50 most cited of 58 All 58 (JSON)
Built on by
Not cited yet.