DomAgent: Leveraging Knowledge Graphs and Case-Based Reasoning for Domain-Specific Code Generation
Shuai Wang, Dhasarathy Parthasarathy, Robert Feldt, Yinan Yu

TL;DR
DomAgent enhances domain-specific code generation by integrating knowledge graphs and case-based reasoning with LLMs, significantly improving performance in real-world applications and bridging the gap with larger models.
Contribution
Introduces DomAgent, a novel autonomous coding agent that combines structured knowledge reasoning and case retrieval for effective domain adaptation in code generation.
Findings
Significantly improves domain-specific code generation performance.
Enables small models to approach large model capabilities in real-world tasks.
Demonstrates effectiveness on data science and truck software development datasets.
Abstract
Large language models (LLMs) have shown impressive capabilities in code generation. However, because most LLMs are trained on public domain corpora, directly applying them to real-world software development often yields low success rates, as these scenarios frequently require domain-specific knowledge. In particular, domain-specific tasks usually demand highly specialized solutions, which are often underrepresented or entirely absent in the training data of generic LLMs. To address this challenge, we propose DomAgent, an autonomous coding agent that bridges this gap by enabling LLMs to generate domain-adapted code through structured reasoning and targeted retrieval. A core component of DomAgent is DomRetriever, a novel retrieval module that emulates how humans learn domain-specific knowledge, by combining conceptual understanding with experiential examples. It dynamically integrates…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Software Engineering Research · Advanced Graph Neural Networks
