R²-CoD: Understanding Text-Graph Complementarity in Relational Reasoning via Knowledge Co-Distillation

Zhen Wu, Ritam Dutt, Luke M. Breitfeller, Armineh Nourbakhsh, Siddharth Parekh, Carolyn Rose · DOI

TL;DR

This paper introduces R²-CoD, a framework for analyzing how text and graph representations interact during relational reasoning tasks. By using knowledge co-distillation, they reveal a spectrum of representation behaviors, from complementary to aligned, and show how task characteristics influence this interplay, offering practical insights for building better hybrid NLP models.

What Problem Does This Paper Address?

Many challenging NLP tasks, like relation extraction and knowledge base question answering, benefit from combining information from both text and structured knowledge graphs. While hybrid models that leverage both modalities often achieve better performance, there's a significant gap in our understanding of how these text and graph representations actually complement each other during the learning process. Do they learn similar things, or do they specialize? When is this integration most effective, and why? This paper aims to systematically investigate this text-graph interplay across various relational reasoning tasks.

Methods

The core of the paper is the R²-CoD framework, which uses a unified architecture to analyze text and graph representations. Key components include:

  • Unified Architecture: A general framework that can handle text and graph inputs for various relational reasoning tasks.
  • Knowledge Co-Distillation (CoD): A technique that encourages mutual learning between text and graph representations. Essentially, one representation acts as a "teacher" to the other, pushing them to align or complement each other. This is crucial for observing how information is transferred and how representations evolve.
  • Representation Analysis: To understand the learned representations, the authors project them into a shared latent space using modality-specific MLP projection heads. They then employ Principal Component Analysis (PCA) for visualization and use cosine similarity and distance metrics to quantitatively measure alignment and divergence.

Datasets

The authors evaluate their framework on five diverse relational reasoning tasks, utilizing the following datasets:

  • Event Temporal Relation Extraction (ETRE): TimeBank-Dense (TB-Dense), TDDiscourse-Auto (TDDAuto), and TDDiscourse-Manual (TDDMan).
  • Multilingual Relation Extraction (MLRE): REDfm (covering multiple languages).
  • Reasoning Pattern Prediction (RPP): WebQSP.
  • KBQA Entity-Ranking: WebQSP.
  • Form Understanding (FU): SROIE, FUNSD, and CORD.

Key Insights and Ideas

  • A Spectrum of Representation Relationships: The paper demonstrates that text and graph representations don't just align or stay separate; they exist on a spectrum from complementarity (distinct signals) to partial alignment (some overlap) to complete alignment (converged representations).
  • Task Characteristics Drive Representation Behavior: The nature of the task significantly influences how text and graph representations interact. For instance, tasks where the graph explicitly encodes the target relation tend to show more alignment.
  • Token-Node Correspondence Matters: A direct one-to-one mapping between graph nodes and text tokens (as in FU and KBQA) strongly encourages representation alignment, especially when reinforced by CoD.
  • CoD Preserves Complementarity: CoD doesn't just force alignment; it can also help preserve distinct, complementary signals when that's beneficial for the task (e.g., in ETRE).
  • Hybrid Models Outperform Baselines: Integrating text and graph representations, especially with CoD, consistently improves performance over text-only or graph-only models.

Key Results

  • Performance Gains: Hybrid models with CoD consistently outperformed text-only and graph-only baselines across most tasks. For example, in ETRE, CoD improved performance significantly, and in RPP, it showed consistent gains.
  • Qualitative Analysis: PCA visualizations and distance metrics revealed distinct patterns for each task:
  • ETRE: Showed strong complementarity, with text and graph representations remaining well-separated.
  • MLRE & RPP: Exhibited partial alignment, with representations moving closer but staying largely separable.
  • FU & KBQA: Demonstrated complete alignment, with representations converging into overlapping clusters.
  • CoD's Generality: Table 8 shows that CoD's benefits are consistent across different text and graph encoder architectures, highlighting its general applicability.

Limitations and Future Work

  • Task Coverage: While the five tasks cover a broad spectrum, extending the analysis to more tasks could reveal additional representational behaviors.
  • Analysis Metrics: The reliance on PCA and distance metrics provides interpretability but might miss finer-grained or non-linear interactions. Future work could explore advanced probing or disentanglement techniques.
  • Bias Propagation: The framework inherits biases from pre-trained encoders, which could be amplified. Addressing this is an important ethical consideration.

Summary updated

BibTeX
@misc{wu2025r,
  author = {Zhen Wu and Ritam Dutt and Luke M. Breitfeller and Armineh Nourbakhsh and Siddharth Parekh and Carolyn Rose},
  title = {{R²-CoD: Understanding Text-Graph Complementarity in Relational Reasoning via Knowledge Co-Distillation}},
  year = {2025},
  eprint = {2508.01475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01475},
}
Figure