ICJ-Graph: A Citation Graph and a Layered Document Corpus of the International Court of Justice

Jirameth Wannasiwaporn, Pawitsapak Akarajaradwong, Chompakorn ChaksangchaichotarXiv 2026 · arXiv

TL;DR

The authors introduce ICJ-Graph, a massive, machine-readable citation graph that connects over 6,000 International Court of Justice (ICJ) documents to cited cases, legal provisions, and UN resolutions. By organizing the data into distinct layers—separating the Court’s reasoning from the parties’ submissions—and providing a citation-prediction benchmark, the researchers offer a powerful new resource for empirical legal scholarship and legal AI development.

What Problem Does This Paper Address?

Empirical research into international law is often hampered by the "PDF problem." While the ICJ makes its records public, they are largely unstructured documents. Existing datasets like the Corpus of Decisions of the ICJ (CD-ICJ) focus primarily on final judgments, ignoring the rich context found in written pleadings and oral transcripts where parties actually build their arguments.

Furthermore, legal reasoning doesn't exist in a vacuum; it relies on a web of citations to previous cases, treaties (legal provisions), and United Nations resolutions. Manually tracing these connections across thousands of documents is nearly impossible. ICJ-Graph addresses this by unifying these disparate materials into a single, structured graph, enabling researchers to analyze the "layered" nature of legal proceedings.

Methods

The construction of ICJ-Graph involved a sophisticated data pipeline:

  1. Layered Extraction: The team parsed 6,396 ICJ documents, categorizing them into three layers: Decision (judgments/orders), Pleadings (memorials), and Oral (hearing transcripts).
  2. Structural Segmentation: Using a two-pass pipeline (OCR with semantic tags followed by a line classifier), they broke documents into "Chunks." For decisions, they specifically isolated the dispositif (the operative part of the judgment) from the reasoning.
  3. Citation Resolution: This is the core technical challenge. The authors developed a pipeline (illustrated in Figure 2) that uses "hints" (case names, years) and a "year gate" to resolve citations. They employed fuzzy matching with a high threshold (0.90) and a strict ambiguity check to ensure high precision.
  4. Semantic Embedding: Every document chunk (1.2 million in total) was embedded into a 4096-dimensional vector using the Qwen3-Embedding-8B model, allowing for semantic retrieval alongside traditional graph queries.
Figure 2. Resolving one case-to-case citation. A hint names its case in two forms, tried in order; each runs the same test and a form that fails either guard yields to the next. Thresholds: link at 0.90; abstain when the runner-up also clears 0.90 within 0.07.

Datasets

The paper introduces the ICJ-Graph dataset and a corresponding Citation-Prediction Benchmark:

  • ICJ-Graph: Contains 1,416,857 nodes and nearly 1.5 million relationships. It includes 6,396 ICJ documents, 505 documents from other courts, 12,375 legal provisions, and 20,291 UN resolutions.
  • Benchmark: A set of 199 target decisions. The task is to predict which authorities (cases, provisions, resolutions) the Court will cite, using only information available before the decision date.
Figure 3. Coverage of ICJ documents across the three layers: Decision, Pleadings, and Oral.

Key Insights and Ideas

  • The Power of Specialized Tools: One of the most significant findings is that LLMs perform much better when given task-specific tools (e.g., list_cases, get_provision) rather than raw access to the graph via Cypher queries. This suggests that for complex domains like law, the interface design for AI agents is as important as the data itself.
  • Temporal Gating is Crucial: To avoid "data leakage," the authors implemented a temporal graph contract. When a model predicts citations for a 1974 case, the graph automatically hides all documents and citations created after that date.
  • Layering Preserves Intent: By maintaining the distinction between pleadings and decisions, the graph allows researchers to see which party arguments actually "stuck" and made it into the final judgment.

Key Results

The authors evaluated five models (including GPT-4o and DeepSeek variants) across three access conditions: Parametric (no tools), Cypher + Semantic, and Designed Tools.

  • High Precision: The automated citation extraction achieved a precision of 0.94 in manual audits.
  • Tool Advantage: For every model tested, the "Designed Tools" configuration yielded the highest F1 scores for case-citation prediction.
  • Top Performers: muse-spark-1.3 achieved the highest case-citation F1 (0.415) using Designed Tools. For legal provisions, deepseek-v4.1-flash led with an F1 of 0.371.
  • Baseline Comparison: All models significantly outperformed query-independent baselines (which simply predict the most frequently cited authorities), proving that the models are actually utilizing the specific context of each case.

Limitations and Future Work

  • Pre-training Exposure: While the graph is temporally gated, the LLMs themselves may have seen these famous historical cases during their initial training, which could inflate performance.
  • Partial Coverage: While the ICJ coverage is comprehensive, the inclusion of "other adjudicative bodies" and treaties is currently partial and driven by what the ICJ documents themselves cite.
  • Outcome Prediction: The current benchmark focuses on citations. The authors note that predicting the actual legal outcome (e.g., who won) requires a more complex, defensible scoring rule that hasn't been established yet.
  • OCR Challenges: About 3% of the documents required full re-OCR due to poor quality, and legacy scans still present structural challenges for automated parsing.

Summary updated

Abstract

We present ICJ-Graph, a machine-readable resource connecting documents of the International Court of Justice (ICJ) to cited cases, legal provisions and United Nations resolutions. Court decisions, written pleadings and oral records form distinct document layers, preserving the distinction between the Court's reasoning and the parties' submissions. The collection contains 6,396 ICJ documents and 505 documents from other courts and legal bodies, together with 12,375 provisions and 20,291 UN resolutions. The data files contain text, metadata and embeddings. The accompanying pipeline lets users load the graph and generate embeddings for use in their own retrieval systems. To illustrate the resource's use, we evaluate five models on citation prediction for 199 decisions using documents available before each decision. Tools designed for citation research improve citation-prediction F1 over answering without tools for all five models across case, provision and resolution citations.
BibTeX
@misc{wannasiwaporn2026icj,
  author = {Jirameth Wannasiwaporn and Pawitsapak Akarajaradwong and Chompakorn Chaksangchaichot},
  title = {{ICJ-Graph: A Citation Graph and a Layered Document Corpus of the International Court of Justice}},
  year = {2026},
  eprint = {2611.02630},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.02630},
}
Figure