Abstract
Flowchart-grounded dialog systems often struggle with maintaining logical consistency and interpreting indirect user responses. We present SA-FLONET (Structure-Aware Flowchart Grounded Dialog Response Generation), a model that incorporates structural constraints and Natural Language Inference (NLI) to improve response generation. By treating flowcharts as graphs and leveraging NLI for conversational nuance, SA-FLONET achieves significant improvements in success rates, particularly in zero-shot scenarios.
Introduction
Task-oriented dialog systems, such as technical support bots, frequently rely on flowcharts to guide troubleshooting. Conventional Retrieval-Augmented Generation (RAG) frameworks often treat flowchart nodes as an unstructured "bag of documents," leading to two primary issues:
- Structural Blindness: Models may generate responses grounded in logically unreachable nodes, resulting in "random jumps."
- The Polarity Problem: Flowcharts typically use polar (Yes/No) questions, but users often provide indirect responses (e.g., describing a symptom instead of saying "No").
Methodology: SA-FLONET
To address these challenges, we propose SA-FLONET, which augments RAG architectures with a Structure-Aware Scorer (SAS) and an NLI-based understanding component.
Belief Tracking and Structural Constraints
The model maintains a belief distribution over flowchart nodes, tracking the current state of the conversation. By utilizing the flowchart's edge connectivity, the SAS predicts the most logical next node, effectively constraining the retriever to valid paths.
NLI for Language Understanding
Rather than relying on keyword matching, SA-FLONET employs SemBERT to evaluate the relationship between the system's question (premise) and the user's response (hypothesis). This allows the model to map conversational nuances to flowchart branches:
- Entailment corresponds to a "YES" branch.
- Contradiction corresponds to a "NO" branch.
- Neutral indicates a digression, prompting the system to consult an FAQ corpus.
The final retrieval is determined by a hybrid score combining content-based matching and structural logic.
Experimental Setup and Results
We evaluated SA-FLONET on the FLODIAL benchmark, which includes troubleshooting dialogs for cars and laptops. The model was also fine-tuned on the Circa dataset to enhance its handling of indirect polar responses.
Performance Metrics
The primary metric is the Success Rate (SR), defined as the percentage of dialogs where the system correctly retrieves the flowchart node for every turn.
| Scenario | Baseline (FLONET) | SA-FLONET | Improvement |
|---|---|---|---|
| Seen Flowcharts (S-Flo) | 31.8% | 53.5% | +68% |
| Unseen Flowcharts (U-Flo) | 13.3% | 29.7% | +123% |
Qualitative analysis confirms that SA-FLONET significantly reduces "sibling errors" (wrong branch selection) and "random jumps" (logical inconsistencies).
Discussion and Limitations
While SA-FLONET demonstrates robust zero-shot generalization due to its domain-agnostic structural and NLI logic, some limitations remain. The current NLI logic is optimized for binary branches and does not yet support multi-choice or open-ended nodes. Additionally, the content-based scorer still faces challenges with initial utterances and FAQ retrieval. Human evaluations also noted a slight trade-off between logical grounding and grammatical variety compared to baseline models.
Conclusion
SA-FLONET represents a significant step forward in flowchart-grounded dialog generation by integrating graph-based structural priors and NLI-driven response interpretation. These innovations lead to more logical, context-aware troubleshooting agents capable of handling the complexities of natural human conversation.
Summary updated