Abstract
While pre-trained language models (PLMs) like T5 excel at free-form text generation, they often struggle to produce structured outputs like graphs, frequently resulting in disconnected or illogical structures. This paper presents a contrastive learning framework that utilizes "graph perturbations"—deliberately flawed synthetic graphs—to train models on the structural and semantic constraints of explanation graphs. This methodology yields significant improvements in both logical coherence and structural accuracy across common-sense and temporal reasoning tasks.
Introduction: The Challenge of Structured Reasoning
In complex reasoning tasks, providing a transparent explanation is as important as the final answer. Explanation graphs serve this purpose by linking concepts through directed edges (e.g., [Salads] -> [part of] -> [Vegetables]).
However, generating these graphs is inherently difficult for standard PLMs. Unlike linear text, graphs must adhere to strict structural constraints (connectivity and acyclicity) and semantic constraints (logical relationships). Standard models like T5 frequently "hallucinate" structure, creating disconnected components or nonsensical relationships. This challenge is compounded by the scarcity of high-quality, human-annotated explanation graphs required for training.
Methodology
The authors propose a multi-pronged approach to improve graph generation without requiring massive new human-annotated datasets:
1. Graph Perturbations
The core innovation involves creating "synthetic" training data by taking gold-standard graphs and introducing specific flaws to serve as negative examples:
- Structural Negatives (SySt): Randomly removing edges to cause disconnection or adding edges to create cycles.
- Semantic Negatives (SySe): Swapping valid relationship labels with incorrect ones.
- Positive Perturbations: Replacing non-essential nodes with synonyms to teach the model that the underlying logic remains invariant to minor lexical changes.
2. Contrastive Learning Frameworks
Instead of relying solely on standard next-token prediction, the model is trained using these perturbed graphs within two loss frameworks:
- Max-Margin Loss: Encourages the model to assign a higher probability to the correct graph than to a "broken" negative graph.
- InfoNCE Loss: A contrastive framework that aligns the representation of the "gold" graph with its positive perturbations while distancing it from negative versions.
3. HuSe-Gen
To address subtle logical errors, the authors developed HuSe-Gen, a method to automatically generate "human-like" semantic errors. By training a model to imitate the mistakes humans make during graph refinement, they provide a more challenging and realistic training signal than random label swaps.
Experimental Results
The framework was evaluated on the ExplaGraphs dataset and a Temporal Graph Generation dataset using Structural Correctness Accuracy (StCA) and Semantic Correctness Accuracy (SeCA).
- Baseline Performance: A standard T5-Large model achieved 51.0% StCA and 34.7% SeCA.
- Contrastive Boost: The proposed contrastive model improved structural accuracy to 60.5% and significantly enhanced semantic accuracy.
- Human Evaluation: In head-to-head comparisons, human evaluators preferred the graphs from the contrastive Max-Margin model 13% more often than those from the T5 baseline.
- Generalization: The methods proved effective across different architectures (e.g., BART) and generalized well to temporal reasoning, suggesting that "learning by breaking" is a robust strategy for structured NLP.
Discussion and Limitations
Despite these advancements, several challenges remain. Models still tend to favor simpler "linear" graphs over the complex, branching structures often found in human reasoning. Additionally, while semantic accuracy improved, a significant gap remains between machine performance (~43% SeCA) and the human upper bound (~83%). Future research should focus on generating more diverse and structurally complex positive graph examples to further bridge this gap.
Summary updated