Introduction
In the pursuit of developing helpful AI agents that minimize hallucinations, researchers have increasingly relied on external knowledge sources to ground dialogue. However, a fundamental architectural question persists: is it more effective to represent this knowledge as a structured Knowledge Graph (KG) or as an unstructured Sequence of Text? A recent study from the Beijing Institute of Technology, titled "Graph vs. Sequence: An Empirical Study on Knowledge Forms for Knowledge-Grounded Dialogue," provides a rigorous empirical comparison of these two paradigms across various model architectures and datasets.
Methodology and Experimental Setup
The study evaluates three representative Transformer-based architectures to determine their efficacy in handling different knowledge forms:
- Decoder-Only (e.g., GPT-2): Treats knowledge, conversation history, and the response as a single continuous sequence.
- Encoder-Decoder (e.g., BART): Utilizes an encoder for knowledge input while the history serves as a prompt for the decoder.
- Dual-Encoders: Employs separate encoders for knowledge and history, fusing the representations via cross-attention within the decoder.
To ensure a "fair fight," the researchers "sequenceized" Knowledge Graphs by converting triples into a text format using specialized tokens (e.g., [triple], [entity], and [relation]). This allowed standard language models to process structured data without specialized graph-processing layers. The evaluation spanned three major benchmarks: Wizard of Wikipedia (WoW), FaithDial, and OpenDialKG.
Comparative Analysis of Knowledge Forms
The core of the study lies in the performance trade-offs between structured graphs and raw text.
The "Information Filter" Effect
On the WoW dataset, which often contains dense and noisy source text, models frequently performed better when the text was distilled into a Knowledge Graph. The KG acts as a natural filter, removing irrelevant linguistic noise and allowing the model to focus on core factual triples.
Metric Bias and Factual Consistency
Interestingly, text sequences often yielded higher scores on factual consistency metrics like Natural Language Inference (NLI). The authors posit that this may reflect a metric bias: since these metrics are themselves text-based, they inherently favor models that maintain high lexical overlap with the original text sequence.
Architectural Robustness: The Dual-Encoder Advantage
One of the most significant findings is the superior stability of the Dual-Encoder architecture. While Decoder-Only and Encoder-Decoder models showed significant performance fluctuations depending on the knowledge form, the Dual-Encoder consistently delivered high-quality responses regardless of whether it was fed a graph or a sequence.
Key Results and Insights
- Generalizability: Models trained on Knowledge Graphs demonstrated significantly better performance on "unseen" topics, suggesting that structured data aids in learning more transferable reasoning patterns.
- Human Preference: Despite the reasoning advantages of graphs, human evaluators preferred responses from sequence-based models in 60-84% of cases on FaithDial and WoW. This suggests that raw text helps models maintain a more natural, conversational flow that structured triples can sometimes disrupt.
- The Role of Pre-training: Pre-training is a critical factor, especially for sequence-based knowledge. The performance gap between pre-trained and non-pre-trained models was substantially larger for text than for graphs, indicating that language models rely heavily on their pre-trained priors to parse unstructured information.
- Few-Shot Dynamics: In low-data regimes (100–200 examples), architectures resembling standard pre-training objectives (like Encoder-Decoder) are preferable. Complex, task-specific architectures like Dual-Encoders require at least 500+ examples to realize their full potential.
Conclusion and Future Directions
The study concludes that while Knowledge Graphs excel in generalizability and noise reduction, text sequences are vital for maintaining conversational naturalness. The Dual-Encoder architecture emerges as the most robust choice for developers seeking to balance these forms. Future research is needed to explore how these findings scale with massive models and how model size interacts with knowledge granularity.
Summary updated