RoCar: A Relationship Network-based Evaluation Method for Large Language Models

Ming Wang, Wen‐Fang Wu, Chongyun Gao, Daling Wang, Shi Feng, Yifei Zhang · DOI

Abstract

Large language models (LLMs) have received increasing attention. However, due to the complexity of its capabilities, how to rationally evaluate the capabilities of LLMs is still a task to be solved. We propose the RoCar method, which utilizes the defined basic schemas to randomly construct a task graph and generates natural language evaluation tasks based on the task graph to evaluate the reasoning and memory abilities of LLMs respectively. Due to the very large randomness of the task construction process, it is possible to ensure that none of the LLMs to be tested has directly learned the evaluation tasks, guaranteeing the fairness of the evaluation method.

Introduction

As Large Language Models (LLMs) continue to advance, establishing fair and robust evaluation benchmarks has become a significant challenge. Traditional benchmarks often rely on static datasets derived from public exams or existing NLP tasks. However, because LLMs are trained on vast swaths of the internet, there is a high risk of data contamination—where the model has already seen the test questions during its training phase. This makes it difficult to discern whether a model is truly reasoning or simply retrieving memorized answers.

To address this, we introduce RoCar (Rocking Car), a novel evaluation framework that dynamically generates social relationship graphs to test the reasoning and memory of LLMs. By using procedural generation, RoCar ensures that every evaluation task is unique and statistically unlikely to have appeared in any training set.

Methodology

The RoCar framework follows a structured three-step pipeline to transform abstract relationship concepts into natural language evaluation tasks.

1. Abstracting the Basic Graph Schema

The foundation of RoCar lies in a set of 27 core "first-order" relationship schemas (e.g., father, son, colleague) distilled from over 1,100 real-world relationship types. Each schema is defined by attributes including gender, directionality, and order (e.g., "third son").

2. Randomized Task Graph Generation

These schemas are then used to build complex networks. The system randomly selects relationships and "splices" them together using four primary linking methods: Head-to-Head, Head-to-Tail, Tail-to-Head, and Tail-to-Tail. This process creates a unique social "web" for each evaluation run.

The process of constructing a task graph by linking basic relationship schemas.

3. Evaluation Task Construction

Finally, the abstract graph is converted into natural language. Nodes are assigned surrogate names (e.g., Jack, Ivy, Amy), and the edges are translated into descriptive prompts (e.g., "Ivy is Jack's sister").

An example of a generated social relationship task graph used for evaluation.

Evaluation Framework

The evaluation is divided into two distinct tracks:

  • Reasoning: Models are provided with a set of facts and must infer the relationship between two individuals separated by multiple "hops" (distances of 2 to 5) within the graph.
  • Memory: Information about the graph is fed to the model in multiple steps, after which the model is asked to recall specific facts.

The scoring system distinguishes between a model that gets the right answer by accident and one that provides the correct result with the correct logic. For reasoning tasks, difficulty is weighted by the logical "distance" between nodes.

Results and Discussion

We evaluated five prominent LLMs: ChatGPT, ChatGLM, Ernie-Bot, Spark-Desk, and Claude. The results revealed significant performance disparities:

  • Reasoning: Spark-Desk achieved a perfect score (100.00), while ChatGPT performed unexpectedly poorly (7.14). This suggests that ChatGPT may struggle with specific cultural nuances or the complex logic required by these synthetic social structures.
  • Memory: Claude led with a score of 88.33, followed by ChatGPT at 68.33. ChatGLM showed significant weakness in memory, scoring only 8.33.
  • Overall: Claude provided the most balanced performance across both reasoning and memory domains.

Conclusion and Future Work

RoCar demonstrates that high-entropy randomness is an effective proxy for fairness in LLM evaluation. By forcing models to navigate novel logical structures, we can better assess their true cognitive capabilities. Future work will focus on expanding the sample size for greater statistical significance and broadening the cultural scope to include multilingual task graphs and more complex relationship types.

Summary updated

BibTeX
@misc{wang2023rocar,
  author = {Ming Wang and Wen‐Fang Wu and Chongyun Gao and Daling Wang and Shi Feng and Yifei Zhang},
  title = {{RoCar: A Relationship Network-based Evaluation Method for Large Language Models}},
  year = {2023},
  eprint = {2307.15997},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.15997},
}
Figure