Dialogue-Based Multi-Dimensional Relationship Extraction from Novels

Yuchen Yan, Hanjie Zhao, Senbin Zhu, Hongde Liu, Zhihong Zhang, Yuxiang Jia

Abstract

Relation extraction is a crucial task in natural language processing, with broad applications in knowledge graph construction and literary analysis. However, the complex context and implicit expressions in novel texts pose significant challenges for automatic character relationship extraction. This study focuses on relation extraction in the novel domain and proposes a method based on Large Language Models (LLMs). By incorporating relationship dimension separation, dialogue data construction, and contextual learning strategies, the proposed method enhances extraction performance. Leveraging dialogue structure information, it improves the model's ability to understand implicit relationships and demonstrates strong adaptability in complex contexts. Additionally, we construct a high-quality Chinese novel relation extraction dataset to address the lack of labeled resources and support future research. Experimental results show that our method outperforms traditional baselines across multiple evaluation metrics and successfully facilitates the automated construction of character relationship networks in novels.

Introduction

While Natural Language Processing (NLP) has become proficient at extracting relationships from structured sources like news articles or Wikipedia, literary fiction remains a significant challenge for Relation Extraction (RE). Novels are characterized by implicit meanings, metaphors, and long-range dependencies. A character's relationship may evolve significantly over time, often expressed through subtle dialogue rather than explicit statements.

Existing datasets and models often struggle with this complexity because they rely on "flat" labels (e.g., just "friend" or "enemy") and fail to capture the structural nuances of dialogue—specifically, the interaction context between speakers.

The CREDI Framework

To address these challenges, we developed CREDI (Character Relationship Extraction with Dialogue Information), built on the LLaMA 3.1 architecture. The framework introduces several key innovations designed to handle the intricacies of literary text.

Figure 1: Dialogue structure and multi-dimensional relationship extraction.

Multi-Dimensional Labeling

Instead of a single label, CREDI utilizes three parallel dimensions to categorize relationships:

  • Relationship Polarity: Emotional stance (Positive, Neutral, Negative).
  • Relationship Type: Social nature (Kinship, Affiliative/Workplace, etc.).
  • Generational Hierarchy: Relative status (Senior, Peer, Junior).

Technical Architecture

The system employs an "Expanded Dialogue" strategy, preprocessing novel text to explicitly identify speakers and listeners, thereby clarifying the interaction structure. The overall architecture includes:

  1. Retrieval-Based In-Context Learning: Using multilingual BERT and FAISS, the system retrieves relevant labeled examples to serve as prompts for the LLM.
  2. Parameter-Efficient Fine-Tuning (PEFT): Utilizing LoRA (Low-Rank Adaptation) to fine-tune the LLaMA model for specific linguistic styles, such as those found in martial arts novels.
Figure 4: The CREDI framework architecture, including example retrieval and prompt tuning data construction.

Datasets and Evaluation

We introduced a new benchmark: NCRE (Novel Character Relationship Extraction), based on Jin Yong’s The Legend of the Condor Heroes. It includes 100 characters and over 10,000 labels across 3,591 relationship instances. CREDI was also evaluated on public datasets including FiRe, DialogRE, and CRECIL.

Results and Insights

CREDI demonstrated superior performance across multiple metrics:

  • NCRE Dataset: Achieved a Weighted-F1 score of 0.79 for Relationship Polarity, outperforming GPT-3.5 (0.69) and fine-tuned T5 (0.64).
  • Public Benchmarks: On the DialogRE dataset, CREDI achieved an F1 of 0.80, surpassing the previous state-of-the-art (SOTA) of 0.79.

Key insights from the study suggest that dialogue structure is critical; explicitly defining "who" is talking to "whom" significantly reduces ambiguity. Furthermore, the multi-dimensional approach effectively addresses "label overlap," allowing for more precise independent judgments.

Conclusion and Future Work

While CREDI excels at static relationship snapshots, future work will focus on dynamic evolution—tracking how connections change chronologically throughout a narrative. Additionally, we plan to expand the framework's application to a broader range of literary genres beyond martial arts fiction to ensure universal applicability.

Summary updated

BibTeX
@misc{yan2025dialogue,
  author = {Yuchen Yan and Hanjie Zhao and Senbin Zhu and Hongde Liu and Zhihong Zhang and Yuxiang Jia},
  title = {{Dialogue-Based Multi-Dimensional Relationship Extraction from Novels}},
  year = {2025},
  eprint = {2507.04852},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.04852},
}
Figure