Abstract
Standard conversational models often struggle in inquiry-based dialogues, such as medical consultations or legal hearings, where the logical progression of topics (focuses) is paramount. We present Focus-aware Response Generation (FRG), a framework designed to maintain rationality in these structured conversations. FRG employs a multi-level encoder to capture hierarchical context and a bank of specialized focal decoders managed by a ranking module. Our evaluations on court hearing and medical consultation datasets demonstrate that FRG significantly outperforms existing state-of-the-art models in both fluency and logical consistency.
Introduction: The Challenge of Inquiry Conversations
Unlike casual chit-chat, inquiry conversations are goal-oriented and follow a professional, logical sequence. In a legal setting, a judge must establish facts about a loan's principal before discussing interest or liquidated damages. Similarly, a doctor must identify symptoms before prescribing medication.
Current generative models often fail in these scenarios because they lack an explicit understanding of the "latent sequential focus." They may repeat established facts or jump to premature conclusions, leading to a breakdown in professional rationality.
The FRG Framework
To address these challenges, the FRG framework introduces a modular architecture designed to track and respond to shifting conversational focuses.
1. Multi-level Encoder
The encoder processes dialogue history across multiple levels: tokens ($h^t$), utterances ($h^u$), and blocks ($h^b$). A "block" consists of consecutive utterances sharing a single focus. Specialized attention mechanisms—Speaker-level ($h^s$) and Block-level ($h^{b'}$) attention—allow the model to weight the importance of different participants and identify topic transitions, culminating in a final conversation-level representation ($h^f$).
2. Focal Decoders
Instead of a single generic decoder, FRG utilizes a bank of "focal decoders." Each decoder is fine-tuned to generate responses for a specific predefined focus (e.g., "Symptom" in medical or "Interest" in legal). This specialization prevents the model from producing "averaged," vague responses that fail to move the investigation forward.
3. Focus Ranking Module
This module serves as the system's conductor. It analyzes the encoded context to predict the most likely next focus. It then ranks the candidate responses generated by the focal decoders, selecting the one that best aligns with the predicted logical progression of the inquiry.
Experimental Evaluation
The model was tested on two large-scale datasets from distinct domains:
- Court Hearing (CH): 240,000 samples across 7 legal focuses (e.g., Principal, Interest).
- Medical Consultation (MC): 100,000 samples across 5 medical focuses (e.g., Symptom, Medicine).
A two-stage training paradigm was employed: an initial "warm-up" on unlabeled data followed by fine-tuning on a smaller set of manually annotated focus labels (7,000 for CH and 5,000 for MC).
Key Results
FRG demonstrated superior performance across both quantitative and qualitative metrics:
- Quantitative Performance: On the CH dataset, FRG achieved a ROUGE-L score of 29.4, nearly doubling the scores of standard GPT-2 (14.6) and T5 (14.4).
- Human Evaluation: Human judges rated FRG significantly higher on "Rationality" (3.78/5.0) compared to the strongest baseline, TAS2S (3.45/5.0).
- Efficiency: The model showed high performance even with limited labeled data, requiring as few as 250 samples per focus to achieve significant gains over baselines.
Conclusion and Future Work
FRG represents a significant step toward more rational and professional conversational AI. By explicitly modeling the sequence of focuses and using specialized decoders, it avoids the common pitfalls of generic generative models in inquiry settings. Future work will focus on integrating external knowledge bases to handle specific factual queries (e.g., legal statutes or drug names) and exploring reinforcement learning to further refine the focus ranking process.
Summary updated