NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Speaker Identification and Dataset Construction Using LLMs: A Case Study on Japanese Narratives

Seiji Gobara, Hidetaka Kamigaito, Taro Watanabe2025

Abstract

Speaker identification in narrative analysis is a challenging task due to complex dialogues, diverse utterance patterns, and ambiguous character references. Costly and time-intensive manual annotation limits the scalability of high-quality dataset creation. This study demonstrates a cost-efficient approach to constructing speaker identification datasets by combining small-scale manual annotation with LLM-based labeling. A subset of data is manually annotated and used to guide LLM predictions with a few-shot approach, followed by refinement through minimal human corrections. Our results show that LLMs achieve approximately 90% accuracy on challenging narratives, such as the "Three Kingdoms" dataset, underscoring the importance of targeted human corrections. This approach proves effective for constructing scalable and cost-efficient datasets for Japanese and complex narratives.

Introduction

Identifying speakers in literary narratives is a fundamental task for computational literary analysis, yet it remains a significant challenge due to the inherent ambiguity of character references and complex dialogue structures. In Japanese literature, this challenge is compounded by a scarcity of annotated datasets. Traditional manual annotation is prohibitively time-consuming and expensive. This study introduces a collaborative framework that leverages Large Language Models (LLMs) alongside human-in-the-loop refinement to construct high-quality speaker identification datasets efficiently.

The proposed framework integrates LLMs and human oversight to facilitate narrative analysis and dataset construction.

Methodology: The Three-Step Pipeline

The core of the proposed approach is a three-step pipeline designed to maximize accuracy while minimizing human labor.

The three-step pipeline: Dialogue Extraction, LLM-based Speaker Labeling, and Manual Correction.
  1. Dialogue Extraction: Dialogue lines are extracted with a 1,024-token context window (preceding and following text). This window provides the necessary narrative context for the model to identify speakers who may not be explicitly named in the immediate vicinity of the quote.
  2. Speaker Labeling: The LLaMA-3-70B-Instruct model is employed in a few-shot setting. By providing the model with a few examples of context-based inference, it can predict the speaker for each extracted line.
  3. Manual Correction: Human annotators review and correct the LLM's predictions. The study found that verifying an existing label is significantly faster than generating one from scratch, leading to a 65% reduction in total annotation time.

Datasets and Evaluation

The framework was applied to two primary datasets:

  • Romance of the Three Kingdoms: A large-scale Japanese dataset containing 15,412 instances across 10 volumes.
  • Bilingual Narrative Dataset: A smaller set of 14 stories (e.g., Momotaro, Rashomon) in both Japanese and English to test cross-linguistic generalizability.

Evaluation utilized "Candidate Sets" and "Substring Match Ratios" to account for character aliases (e.g., titles vs. names), providing a more realistic measure of performance than simple exact matching.

Key Results and Insights

  • High Performance: Top-tier models like LLaMA-3-70B-Instruct achieved approximately 90% accuracy on the Three Kingdoms dataset even before final human correction.
  • Efficiency Gains: The hybrid approach reduced manual labor from 10 hours to 3.5 hours for a 1,500-instance subset, representing a 65% reduction in labor costs.
  • Context Sensitivity: Accuracy improves as context length increases but plateaus between 512 and 1,024 tokens. For smaller models (e.g., 8B parameters), providing too much context can introduce noise and degrade performance.
  • Linguistic Observations: Models achieved higher accuracy on Japanese datasets than English ones in this study. This is attributed to English narratives having more variations in referring terms (e.g., switching between "Mother," "Woman," and "She"), whereas the Japanese texts studied were more consistent in naming.

Conclusion

This study demonstrates that combining LLMs with targeted human correction is a viable and cost-effective strategy for building large-scale, high-quality datasets for narrative analysis. Future work will expand this pipeline to include addressee identification and the classification of quote types, further enriching the tools available for computational Japanese literary studies.

Summary updated

BibTeX
@misc{gobara2025speaker,
  author = {Seiji Gobara and Hidetaka Kamigaito and Taro Watanabe},
  title = {{Speaker Identification and Dataset Construction Using LLMs: A Case Study on Japanese Narratives}},
  year = {2025},
  doi = {10.18653/v1/2025.wnu-1.17},
}
Figure