Large Language Models Fall Short: Understanding Complex Relationships in Detective Narratives

Runcong Zhao, Qinglin Zhu, Hainiu Xu, Jiazheng Li, Yuxiang Zhou, Yulan He, Lin Gui

Abstract

While Large Language Models (LLMs) demonstrate impressive capabilities in creative writing and role-playing, their ability to parse complex, multi-layered social dynamics remains a significant challenge. This paper introduces Conan, a novel benchmark based on detective narratives designed to evaluate relationship extraction in long-form, multi-perspective contexts. Our findings reveal that even state-of-the-art models like GPT-4 struggle with "secret" and "inferred" relationships, suffering from the "lost in the middle" phenomenon and the "reversal curse." The study highlights a substantial gap between human reasoning and current AI performance in synthesizing conflicting information across long contexts.

Introduction

As LLMs are increasingly integrated into narrative generation and interactive fiction, the depth of their "understanding" is under scrutiny. Most existing narrative datasets are either too simplistic—such as children's stories—or based on famous literary works that likely appeared in the models' training data, leading to data leakage.

Real-world social dynamics, particularly those found in detective plots, are rarely straightforward. They involve a hierarchy of information:

  1. Public Relations: Information known to all characters (e.g., professional colleagues).
  2. Secret Relations: Information known only to a specific subset of characters (e.g., a hidden affair).
  3. Inferred Relations: Dynamics not explicitly stated but deducible by synthesizing clues from multiple, often conflicting, perspectives.

If an LLM cannot track who knows what, or identify when a character is lying about their identity, it cannot effectively reason through complex human scenarios. This paper addresses this gap through the Conan benchmark.

The Conan Benchmark

Conan is a challenging new benchmark derived from 100 high-quality murder mystery game scripts. These narratives are significantly more complex than standard benchmarks, with an average length of approximately 27,700 tokens. Unlike linear stories, Conan narratives are told from multiple character perspectives, which may be conflicting or intentionally misleading.

To evaluate model performance, the researchers developed a massive hierarchical taxonomy consisting of 163 fine-grained relationships (e.g., "Biological Father," "Secret Admirer," "Crime Partner") nested within 54 intermediate and 5 top-level categories. Human experts and fans of detective fiction manually annotated 24 of these narratives to create nearly 8,000 gold-standard relationship triplets, while the remainder were processed through a high-effort GPT-4 pipeline.

Methodology

The study explored three distinct prompting strategies to extract relationship graphs from the text:

  • AllTogether: The model is prompted to extract the entire relationship graph in a single pass.
  • DirRelation: A two-step process where the model first identifies all characters and subsequently determines their relationships.
  • PairRelation: An exhaustive approach where the model is queried about every possible pair of characters individually.

Additionally, a self-correction feedback loop was implemented. Models were asked to review their own JSON outputs to rectify formatting errors or "corrupted" data, a step that proved particularly useful for smaller models like Llama2.

Key Insights and Experimental Results

The Performance Gap

GPT-4 consistently outperformed GPT-3.5 and Llama2-70b, yet its performance remained surprisingly low. GPT-4’s best F1-score for relationship extraction was approximately 0.276 when dealing with single perspectives. When tasked with synthesizing a "ground truth" from all character perspectives—requiring the model to resolve lies and conflicting accounts—the score dropped to 0.125. Humans significantly outperformed all models, particularly in identifying "secret" and "inferred" relationships where models often accepted "public" relationships at face value.

Cognitive Hurdles: "Lost in the Middle" and the "Reversal Curse"

The study identified two major cognitive failures in LLMs:

  1. Lost in the Middle: Models tend to recall information from the beginning and end of a long story but frequently forget crucial clues buried in the middle. In a 30,000-token detective story, this leads to a failure in logical synthesis.
  2. The Reversal Curse: Models often struggle with reciprocal logic. For instance, if a text states "A is B’s father," the model may fail to infer that "B is A’s child" unless that specific directionality is explicitly stated in the text.

Strategy Trade-offs

While the PairRelation strategy (checking every pair) appears thorough, it significantly increased "hallucinations." The models often invented relationships that did not exist simply because they were prompted to find one. Furthermore, this method is computationally expensive, following an $O(k^3)$ complexity relative to the number of characters.

Limitations and Future Work

Several hurdles remain for LLM-based narrative reasoning. Subjectivity in human annotation (e.g., the nuance between "acquaintance" and "friend") introduces noise. Additionally, the cost of processing 30,000-token contexts via high-end APIs is substantial. The researchers also noted that OpenAI’s safety filters are stricter for English-translated content involving "murder," which occasionally hindered the models' ability to process the detective plots effectively.

Future research should explore Retrieval-Augmented Generation (RAG) or advanced long-context management techniques, such as cosine similarity filtering, to help models focus on relevant clues without becoming overwhelmed by the narrative's length.

Conclusion

The Conan benchmark reveals that current LLMs, including GPT-4, possess only a superficial understanding of complex social narratives. Their inability to handle multi-perspective synthesis and long-form context suggests that significant architectural or prompting improvements are required before these models can truly master the art of the detective story.

Summary updated

BibTeX
@inproceedings{zhao2024large,
  author = {Runcong Zhao and Qinglin Zhu and Hainiu Xu and Jiazheng Li and Yuxiang Zhou and Yulan He and Lin Gui},
  title = {{Large Language Models Fall Short: Understanding Complex Relationships in Detective Narratives}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.454},
}
Figure