TL;DR
This paper presents the first text-based conversational agent specifically designed for the Vietnamese language, functioning as a robust backup for a Question Answering (QA) system. By utilizing a hierarchical context-based architecture powered by the FrameScript language, the system successfully navigates complex university academic regulations with a 79.4% accuracy rate.
What Problem Does This Paper Address?
Building effective conversational agents (CAs) for non-English languages often lags behind due to a lack of specialized tools and linguistic resources. In the context of Question Answering systems, a common failure point occurs when a user's query is too ambiguous or falls outside the system's direct retrieval capabilities.
The authors address this by creating a Vietnamese-specific CA that acts as a "safety net." When the primary QA system fails to find a direct answer, the conversational agent steps in to interact with the user, clarify intent, and provide related information through a structured dialogue. They specifically tackle the challenge of managing conversational flow within the complex domain of university academic regulations.
Methods
The system architecture integrates a Vietnamese QA system (similar to VnQAS) with a conversational agent built using FrameScript, a scripting language that supports rule-based programming and frame representations.
The core methodology involves a two-step process for building conversational logic:
- Determining Separate Contexts: The authors identify all possible topics (contexts) and the potential transitions between them. Each context is defined by a "trigger" (keywords or patterns) and a set of rules in the format
pattern ==> response. - Identifying Hierarchical Contexts: To handle unexpected or broad inputs, contexts are organized into a hierarchy. A "super-context" acts as a general topic, while "sub-contexts" handle specific nuances.
A critical technical detail highlighted is rule ordering. To ensure the agent doesn't default to a general answer too quickly, rules for specific sub-contexts must be placed before the broader super-context rules in the script. The agent uses #goto commands to transition between these states based on user feedback (e.g., moving from a general "subject" context to a specific "prerequisite subject" context).
Datasets
The authors developed a custom dataset based on a chapter of the academic regulations of the Vietnam National University, Hanoi.
- Scope: 16 distinct conversational contexts.
- Evaluation Data: The system was tested by 30 students, resulting in 417 total interactions. On average, each student engaged in 14 interactions per session to retrieve the desired information.
Key Insights and Ideas
- The "Backup" Strategy: Instead of viewing QA and CA as competing technologies, the authors treat the CA as a specialized component that handles the "long tail" of queries where the QA system lacks confidence.
- Contextual Precedence: The paper emphasizes that in hierarchical rule-based systems, the order of operations is everything. If a super-context rule matches a broad keyword before a sub-context rule can catch a specific phrase, the user experience breaks.
- Semantic Knowledge Acquisition: The authors suggest that the difficulty of manually designing these hierarchies can be mitigated by using scripts to automatically detect noun phrases and semantic constraints in Vietnamese, effectively automating the generation of pattern expressions.
Key Results
The system's performance was evaluated both quantitatively and qualitatively:
- Accuracy: The agent achieved an accuracy of 79.4%, successfully satisfying the user's requirement in 331 out of 417 interactions.
- User Satisfaction: On a scale of 1 (bad) to 5 (excellent), the majority of the 30 students rated the system a 3 (13 students) or 4 (9 students), indicating a generally positive reception for its practical utility.
- Error Analysis: Out of the 86 failed interactions, the vast majority (75) were due to inappropriate pattern construction, while only 11 were due to flaws in the hierarchical organization.
The following table illustrates how the system manages transitions between different academic topics:
Limitations and Future Work
The primary limitation is the manual effort required to construct rules and identify hierarchies, which can be difficult to scale to larger, more diverse knowledge domains. The authors also noted that the system's performance is highly sensitive to the specific patterns defined in the scripts.
Future directions include: * Extending the agent to automatically extract necessary information from an ontology knowledge base to resolve string-based ambiguities. * Improving the "semantic knowledge acquisition" phase to simplify the design of hierarchical contexts. * Enhancing the natural language interface to handle more diverse user utterances beyond simple keyword matching.
Summary updated