Table of Contents
Fetching ...

DialogAgent: An Auto-engagement Agent for Code Question Answering Data Production

Xiaoyun Liang, Jingyi Ren, Jiayi Qi, Chao Peng, Bo Jiang

TL;DR

DialogAgent tackles the privacy- and data-scarcity challenges of training code-focused LLMs by automating the generation of high-fidelity synthetic Q&A data that mimics real IDE interactions. It combines a QA-DBA behavior analysis, a chat-configuration synthesis, and UI automation with a multi-model response generation and GPT-4o-based judgment to produce training-ready data. Experimental results show dramatic efficiency gains (approximately 4.8x) over manual annotation and a 33% improvement in acceptance rates for in-house code QA systems, demonstrating practical value for private, domain-specific assistants. The approach offers a scalable, privacy-preserving pathway for continuous improvement of programming assistants in real-world development environments.

Abstract

Large Language Models (LLMs) have become increasingly integral to enhancing developer productivity, particularly in code generation, comprehension, and repair tasks. However, fine-tuning these models with high-quality, real-world data is challenging due to privacy concerns and the lack of accessible, labeled datasets. In this paper, we present DialogAgent, an automated tool for generating synthetic training data that closely mimics real developer interactions within Integrated Development Environments (IDEs). DialogAgent enables the production of diverse, high-fidelity query-response pairs by simulating multi-turn dialogues and contextual behaviors observed in real-world programming scenarios. The tool significantly reduces the reliance on manual data generation, increasing efficiency by 4.8 times compared to traditional methods. Our experiments and online deployment demonstrate substantial improvements in model performance for code-related question-answering tasks: the acceptance rate of responses generated by our in-house model is improved by 33%, after training on synthesized data generated by DialogAgent.

DialogAgent: An Auto-engagement Agent for Code Question Answering Data Production

TL;DR

DialogAgent tackles the privacy- and data-scarcity challenges of training code-focused LLMs by automating the generation of high-fidelity synthetic Q&A data that mimics real IDE interactions. It combines a QA-DBA behavior analysis, a chat-configuration synthesis, and UI automation with a multi-model response generation and GPT-4o-based judgment to produce training-ready data. Experimental results show dramatic efficiency gains (approximately 4.8x) over manual annotation and a 33% improvement in acceptance rates for in-house code QA systems, demonstrating practical value for private, domain-specific assistants. The approach offers a scalable, privacy-preserving pathway for continuous improvement of programming assistants in real-world development environments.

Abstract

Large Language Models (LLMs) have become increasingly integral to enhancing developer productivity, particularly in code generation, comprehension, and repair tasks. However, fine-tuning these models with high-quality, real-world data is challenging due to privacy concerns and the lack of accessible, labeled datasets. In this paper, we present DialogAgent, an automated tool for generating synthetic training data that closely mimics real developer interactions within Integrated Development Environments (IDEs). DialogAgent enables the production of diverse, high-fidelity query-response pairs by simulating multi-turn dialogues and contextual behaviors observed in real-world programming scenarios. The tool significantly reduces the reliance on manual data generation, increasing efficiency by 4.8 times compared to traditional methods. Our experiments and online deployment demonstrate substantial improvements in model performance for code-related question-answering tasks: the acceptance rate of responses generated by our in-house model is improved by 33%, after training on synthesized data generated by DialogAgent.

Paper Structure

This paper contains 19 sections, 1 equation, 10 figures, 15 tables, 1 algorithm.

Figures (10)

  • Figure 1: Workflow of DialogAgent
  • Figure 2: Process of QA-DBA
  • Figure 3: Prompt for Behavior Judgment.
  • Figure 4: Prompt for Data Production Planning.
  • Figure 5: Prompt used by the query-generating.
  • ...and 5 more figures