ICJ-Graph: a layered ICJ corpus and a 199-decision citation benchmark
The value of ICJ-Graph is not its size but its separation of the Court's reasoning from the parties' submissions, plus citation edges that can be checked against source text; its benchmark measures citation direction, not case outcomes, and cannot prove a model never saw the answer during pretraining.
On this page
A team has 6,396 International Court of Justice documents on disk, but the real question is which of them the Court will actually cite in its next judgment. The usual advice is to index everything and let similarity search decide, so that the closest old case wins. That advice breaks for a simple reason. A judgment is the Court speaking, while a written pleading is a party arguing; blend the two and your nearest neighbour may be the losing side's memorial rather than the bench's reasoning. ICJ-Graph is built around that distinction [1].
What is inside: three document layers, provisions and resolutions
The corpus is split into three document layers, and the split is the whole point. The decision layer holds judgments, orders and advisory opinions, together with the separate and dissenting opinions that individual judges append. The pleadings layer holds what parties file, such as memorials and applications. The oral layer holds verbatim hearing transcripts. Same court, different speakers, and mixing them contaminates retrieval [1].
The headline counts are worth stating plainly: 6,396 ICJ documents plus 505 documents from other courts and adjudicative bodies; 370 legal instruments cut into 12,375 provisions; and 20,291 UN resolutions, of which 17,463 are General Assembly resolutions and 2,828 are Security Council resolutions. After segmentation the release carries 1,206,400 document chunks and 169,617 resolution chunks, each with an embedding attached.
| Document layer | Cases covered | Documents | Chunks | Pages |
|---|---|---|---|---|
| decision | 199 | 2,407 | 121,438 | 34,526 |
| pleadings | 194 | 2,114 | 682,547 | 336,059 |
| oral | 163 | 1,875 | 291,669 | 118,346 |
One counting caveat matters for anyone auditing a delivery. The Court's case pages list 1,852 pleadings and 1,189 oral records across the 199 cases that have decisions, while the released tables report 2,114 and 1,875. The paper states that document counts refer to individual PDFs, so a single listing can expand into several files.
Vectors come from Qwen3-Embedding-8B at 4096 dimensions, self-hosted on a single Nvidia V100 32GB card through vLLM. Embeddings live in Parquet tables alongside text and metadata, a vector-free Neo4j dump preserves the graph structure, and the runtime either imports stored vectors by application identifier or regenerates them from a configurable endpoint. The release is licensed CC BY 4.0.
How the graph is built: nine node types and a rule that prefers missing edges
The corpus is represented as one graph with nine node types. Case is a proceeding identified by court and case identifier, using the General List number for ICJ proceedings. Document is one published PDF carrying a layer label of decision, pleadings or oral. Chunk is a passage with an embedding, Provision is an article of a legal instrument, Instrument is that provision's parent text, Resolution is a UN resolution keyed by canonical symbol, ResChunk is an ordered resolution passage, and Judge and Country capture the bench and the parties. Six edge types connect them: in_case, cites_case, cites, part_of, sat_on, and applicant or respondent, with party and bench relations attached to Document nodes.
Construction re-parsed 2,285 historical documents from CD-ICJ into paragraphs and embedded each one, then gathered 122 decisions issued after that corpus's cutoff directly from the Court's site. Text extraction uses PyMuPDF with OCR for scanned pages or unusable text layers. Legacy scans with no detectable structure fall back to fixed-window chunking with an empty label, which covers 24% of pleadings chunks and 17% of oral chunks.
- Case citation resolution starts with a year gate, keeping candidates whose active span contains the cited year within a tolerance of plus or minus one year
- Two name forms are tried in order: subject plus parties first, then subject alone
- Each form attempts an exact normalized-name match before falling back to fuzzy matching
- A fuzzy match links at 0.90 or above, but abstains when the runner-up also clears 0.90 and sits within 0.07 of the best score
- An ambiguous form yields to the next one, and if neither resolves cleanly no citation edge is created
- Provision citations skip this pipeline entirely and use deterministic regular expressions, mapping references such as Article 36 or Chapter VII to the provision of the instrument named alongside them
The edge audit deserves its own paragraph. A random sample of 250 edges, half document-to-case and half document-to-provision, was read against the citing sentence; 234 verified. The remaining 16 used ambiguous references such as the 1996 Judgment with no case name, and counting all 16 as errors gives a precision of 0.94 with a 95% confidence interval of 0.90 to 0.96. Broken down, all 125 provision edges held and 109 of the 125 case edges did.
The 199-decision citation benchmark and its temporal gate
The benchmark uses 199 decisions as prediction targets. For each target, a model receives only case information available before the decision date, while the graph hides the target itself, same-day material, later documents and undated documents. That single design choice determines what the benchmark actually measures.
Three conditions are compared: answering without tools, using general graph queries plus text search, and using tools built for citation research. Five models each run three repetitions, and scoring is split three ways across case citations, provision citations and UN resolution citations rather than pooled into one number.
The task framing is easy to miss. It asks which cases, provisions and resolutions a decision will cite, not who wins and not what the outcome is, so it sits closer to retrieval and evidence selection than to legal outcome prediction.
Results: task-specific tools beat no tools on all five models, but the numbers stop short of recomputation
The reported direction is clean: across case, provision and resolution citations, tools designed for citation research raise citation-prediction F1 above the no-tools condition for all five models [1]. Because the direction holds across every model tested, the gain is more plausibly attributable to tool design than to one model having a good run.
The abstract and the excerpted body, however, do not give absolute F1 values per condition, nor per-model breakdowns. Anyone wanting to recompute must run the released pipeline on the 199 decisions themselves. That is the thing I most wanted and did not get, and it sets how precisely I can cite this work.
Limits: when this resource does not apply
- Temporal gating does not remove pretraining exposure; hiding a document from the retrieval pool does not mean the model never saw it during training
- The precision audit covers sampled case and provision edges only; it measures no recall and does not validate UN resolution edges
- Outcome fields are not evaluated here, so using the graph for winner prediction is out of scope
- Coverage of other courts and adjudicative bodies is 505 documents, partial and driven by what ICJ documents happen to cite
- Unstructured legacy scans fall back to fixed-window chunking at 24% of pleadings chunks and 17% of oral chunks, so those passage boundaries do not track argument boundaries
The approach fails when you need outcome prediction, when you need broad cross-jurisdiction coverage, or when you need a recall guarantee on the citation set. It does not apply when your downstream metric is recall rather than precision: a 0.94 precision figure cannot stand in for a recall number. It is also out of scope for anyone who needs validated resolution edges, since those were never audited.
Three questions are worth asking before buying. First, are the citation types you care about covered by the audit, and UN resolution edges currently are not. Second, does your downstream task depend on recall, because 0.94 precision says nothing about what is missing. Third, could your model have seen the target decisions during pretraining, in which case benchmark scores are an upper bound rather than an estimate.
