Introduction
Large Language Models (LLMs) like GPT-4 have revolutionized general-purpose AI, yet they often falter in Task-Oriented Dialogue (TOD). In professional settings—such as medical consultations or legal advice—an AI must do more than just answer questions; it must proactively lead the conversation, gather necessary information, and adhere to specific protocols. Standard LLMs are primarily reactive, waiting for user input and often losing the thread of complex, multi-step tasks.
DiagGPT addresses this "proactivity gap" by introducing a multi-agent framework that shifts the LLM from a passive answer-machine to an active consultant. By utilizing an automated Topic Manager and a dedicated Topic Stack, DiagGPT navigates complex dialogues with greater efficiency and flexibility than standalone models.
System Architecture
The core of DiagGPT is a modular multi-agent system where specialized LLM-powered agents collaborate to manage the dialogue flow. Unlike traditional systems that rely on rigid flowcharts, DiagGPT uses a dynamic approach to topic management.
Key Components:
- Topic Manager: Acting as the system's executive, the Topic Manager analyzes user queries and selects the next logical step from a predefined Action List. Actions include creating new topics, finishing current ones, or jumping back to previous points of discussion.
- Topic Stack: This data structure explicitly tracks the dialogue state. While it typically follows a checklist (FIFO logic), it allows for non-linear transitions. If a user introduces a tangent, the system "pushes" the new topic onto the stack, addresses it, and then "pops" back to the original task once resolved.
- Topic Enricher: This module transforms high-level topic labels (e.g., "Medical History") into detailed prompts. This ensures the Chat Agent has the specific context needed to extract or provide the right information.
- Chat Agent: The final interface that generates the user-facing response based on the enriched topic and the broader conversation context.
Evaluation and Results
To test DiagGPT, the researchers developed LLM-TOD, a new benchmark comprising 20 diverse scenarios including clinical, legal, and banking tasks. Each scenario features a goal and a six-item checklist required for completion.
The results demonstrate a significant performance leap over standard models:
- Efficiency: DiagGPT completed tasks in an average of 7.0 rounds, outperforming GPT-4 (7.7 rounds) and GPT-3.5 (9.0 rounds).
- Reliability: DiagGPT achieved a 100% task completion and success rate. In contrast, GPT-3.5 managed only a 40% success rate in human trials.
- User Preference: In head-to-head human evaluations, DiagGPT was preferred 3:1 over standard GPT-4. Participants noted that the system felt significantly more professional, likening it to a "real doctor."
Discussion and Key Insights
The success of DiagGPT highlights the importance of explicit state management. By externalizing the dialogue state into a Topic Stack rather than relying on the LLM's internal attention mechanism, the system avoids "forgetting" primary goals during long or diverted conversations.
Furthermore, the system demonstrates that proactivity is essential for professional AI. By knowing what information is missing and asking targeted questions, DiagGPT simulates the behavior of a human expert.
Limitations
Despite its strengths, DiagGPT faces common LLM challenges:
- Hallucination: The risk of generating incorrect factual information remains, which is critical in high-stakes domains like medicine.
- Overhead: The multi-agent approach involves multiple internal LLM calls per user query, increasing both latency and operational costs.
- Prompt Engineering: The system is highly sensitive to the prompts used for the Topic Manager; any misinterpretation of the dialogue state can lead to stack corruption.
Conclusion
DiagGPT represents a significant step toward more capable, task-oriented AI. By wrapping LLMs in a structured management framework, it overcomes the inherent passivity of standard models, providing a blueprint for the next generation of professional AI consultants.
Summary updated