paper-with-me

Papers

DomAgent: Leveraging Knowledge Graphs and Case-Based Reasoning for Domain-Specific Code Generation

2026-03-22 · Shuai Wang, Dhasarathy Parthasarathy, Robert Feldt, Yinan Yu arxiv

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 top-down knowledge-graph reasoning with bottom-up case-based reasoning, enabling iterative retrieval and synthesis of structured knowledge and representative cases to ensure contextual relevance and broad task coverage. DomRetriever can operate as part of DomAgent or independently with any LLM for flexible domain adaptation. We evaluate DomAgent on an open benchmark dataset in the data science domain (DS-1000) and further apply it to real-world truck software development tasks. Experimental results show that DomAgent significantly enhances domain-specific code generation, enabling small open-source models to close much of the performance gap with large proprietary LLMs in complex, real-world applications. The code is available at: https://github.com/Wangshuaiia/DomAgent.

📄 PDF Abstract BibTeX arXiv:2603.21430

Code (0)

등록된 구현이 없습니다.

Tasks

Domain AdaptationKnowledge GraphsCode Generation

Similar Papers 제목 키워드 기반

Knowledge Base Question Answering by Case-based Reasoning over Subgraphs

2022-02-22 · Rajarshi Das, Ameya Godbole, Ankita Naik, Elliot Tower 외

Question answering (QA) over knowledge bases (KBs) is challenging because of the diverse, essentially unbounded, types of reasoning patterns needed. However, we hypothesize in a large KB, reasoning patterns required to a…

Knowledge Base Question AnsweringQuestion Answering

Reasoning with Graphs: Structuring Implicit Knowledge to Enhance LLMs Reasoning

2025-01-14 · Haoyu Han, Yaochen Xie, Xianfeng Tang, Sreyashi Nag 외

Large language models (LLMs) have demonstrated remarkable success across a wide range of tasks; however, they still encounter challenges in reasoning tasks that require understanding and inferring relationships between d…

Logical ReasoningMulti-hop Question AnsweringQuestion Answering

Pandora: Leveraging Code-driven Knowledge Transfer for Unified Structured Knowledge Reasoning

2025-08-25 · Yongrui Chen, Junhao He, Linbo Fu, Shenyu Zhang 외 arxiv

Unified Structured Knowledge Reasoning (USKR) aims to answer natural language questions by using structured sources such as tables, databases, and knowledge graphs in a unified way. Existing USKR methods rely on task-spe…

Knowledge Graphs

GUNDAM: Aligning Large Language Models with Graph Understanding

2024-09-30 · Sheng Ouyang, Yulan Hu, Ge Chen, Yong liu

Large Language Models (LLMs) have achieved impressive results in processing text data, which has sparked interest in applying these models beyond textual data, such as graphs. In the field of graph learning, there is a g…

AttributeGraph LearningKnowledge Graphs

Multi-hop Reasoning and Retrieval in Embedding Space: Leveraging Large Language Models with Knowledge

2026-02-25 · Lihui Liu arxiv

As large language models (LLMs) continue to grow in size, their abilities to tackle complex tasks have significantly improved. However, issues such as hallucination and the lack of up-to-date knowledge largely remain unr…

Knowledge Graphs