CRAwLeR -- Cross-Reference Aware Legal Retrieval
Pith reviewed 2026-06-26 12:35 UTC · model grok-4.3
The pith
A pipeline builds legal retrieval benchmarks where queries require cross-reference context, exposing that current models top out at 55-59% recall.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
CRAwLeR operationalizes cross-reference-aware context utilization for chunk retrieval in legal documents through a pipeline that detects cross-references, identifies query candidates, links target chunks to relevant context, generates context-demanding queries with an LLM, and filters via adversarial non-contextual baseline and assurance prompts. The resulting CRAwLeR-DK and CRAwLeR-PL datasets achieve approximately 80% validity on manual review, yet best Recall@10 reaches only 55% and 59% respectively. Ablation shows the gap stems from the contextualising LLM, not the retriever, and labelled context chunks routinely outrank the target even when it is retrieved.
What carries the argument
The CRAwLeR pipeline that detects legal cross-references, generates LLM queries, and applies adversarial non-contextual filtering plus assurance prompts to ensure queries require the labelled context.
If this is right
- The benchmarks remain unsolved at 55-59% Recall@10 despite a strong contextualization baseline.
- Performance gaps are attributable to the contextualising LLM rather than the underlying retriever.
- Even when the target chunk is retrieved in the top ten, labelled context chunks routinely rank higher.
- Failures follow systematic and named patterns that can be inspected for targeted fixes.
Where Pith is reading between the lines
- The same cross-reference detection and adversarial filtering steps could be reused to create analogous benchmarks in other document domains that rely on internal references.
- Future work could test whether replacing the contextualising LLM with a more capable model closes the observed gap without changes to the retriever.
- The named failure patterns provide a concrete starting point for improving query generation or context handling in legal retrieval systems.
Load-bearing premise
The filtered LLM-generated queries genuinely require the labelled context chunks rather than being answerable from the target alone.
What would settle it
A fresh manual review of the released queries finding substantially below 80% validity, or a retrieval system that reaches high recall without using the provided context chunks.
Figures
read the original abstract
Existing benchmarks for context-aware chunk retrieval rely heavily on repurposed task items and rarely demonstrate that their queries genuinely require context, making score interpretation difficult. We focus on a specific kind of context dependence, legal cross-references, and introduce CRAwLeR, an operationalization of a narrow, well-defined phenomenon: cross-reference-aware context utilization for chunk retrieval in legal documents. Our pipeline detects legal cross-references, identifies query candidates, links target chunks to their relevant context, generates context-demanding queries with an LLM, and filters them through both an adversarial non-contextual baseline and an assurance prompt. We release CRAwLeR-DK and CRAwLeR-PL, Danish and Polish datasets built with this pipeline, alongside a strong Anthropic-style contextualization baseline. Manual analysis finds that approximately 80% of randomly sampled queries genuinely target the labelled target chunk and require context, with failures following systematic and named patterns. The benchmarks are hard but not solved: best Recall@10 reaches 55% on CRAwLeR-DK and 59% on CRAwLeR-PL. Ablation and failure analysis attribute the remaining gap to the contextualising LLM, not the retriever. Even when the target is retrieved in the top ten, labelled context chunks routinely outrank it. We are the first dataset for context-aware chunk retrieval to carefully consider construct validity and inspect our results in the light of such a narrow, well-defined phenomenon.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript introduces CRAwLeR, a pipeline for constructing datasets that operationalize context-aware chunk retrieval for legal cross-references. It detects cross-references, generates LLM queries intended to require context, applies adversarial filtering and assurance prompts, and releases CRAwLeR-DK and CRAwLeR-PL (Danish and Polish). Manual analysis is reported to find ~80% validity; benchmarks show Recall@10 of 55% (DK) and 59% (PL), with ablations attributing the gap to the contextualizing LLM rather than the retriever. The work positions itself as the first to carefully address construct validity for this narrow phenomenon.
Significance. If the manual validation holds, the paper contributes new datasets and empirical measurements on a well-defined legal IR task, including concrete Recall@10 figures, a strong baseline, and ablations that isolate the contextualizer as the bottleneck. The emphasis on construct validity and systematic failure patterns is a positive step beyond repurposed benchmarks.
major comments (1)
- [Abstract] Abstract: the central claim that the queries 'genuinely require context' (and thus that the datasets demonstrate careful construct validity) rests on the ~80% manual validity rate, yet no sample size, annotation criteria for 'requiring context', blinding procedures, or inter-annotator agreement are provided. Without these, the reliability of the 80% figure cannot be assessed and systematic biases in the validation cannot be ruled out.
minor comments (1)
- The abstract mentions 'failures following systematic and named patterns' but does not name them; expanding this in the main text would aid interpretability of the failure analysis.
Simulated Author's Rebuttal
We thank the referee for the constructive comment on the transparency of our manual validation. We address it point by point below and will revise the manuscript to incorporate the requested details.
read point-by-point responses
-
Referee: [Abstract] Abstract: the central claim that the queries 'genuinely require context' (and thus that the datasets demonstrate careful construct validity) rests on the ~80% manual validity rate, yet no sample size, annotation criteria for 'requiring context', blinding procedures, or inter-annotator agreement are provided. Without these, the reliability of the 80% figure cannot be assessed and systematic biases in the validation cannot be ruled out.
Authors: We agree that the manuscript does not currently report the sample size, annotation criteria, blinding procedures, or inter-annotator agreement for the manual validation. The abstract summarizes the ~80% figure and notes systematic failure patterns, but the full methodological details are absent. We will add a dedicated subsection in the revised manuscript that specifies: the exact sample size drawn for manual review, the annotation guidelines used to determine whether a query 'genuinely requires context' (i.e., cannot be answered from the target chunk alone), whether annotators were blinded to query provenance, and any inter-annotator agreement metrics. This will allow readers to evaluate reliability and potential biases directly. revision: yes
Circularity Check
No circularity; empirical dataset and benchmark construction
full rationale
The paper describes an empirical pipeline for generating legal cross-reference datasets (CRAwLeR-DK, CRAwLeR-PL) via LLM query generation followed by adversarial filtering and manual validation (~80% validity). No equations, fitted parameters renamed as predictions, self-citations as load-bearing premises, or derivations that reduce to inputs by construction appear in the abstract or described process. The central claims are the release of new datasets and retrieval performance measurements on them, which stand as independent empirical results rather than tautological outputs of prior self-referential steps.
Axiom & Free-Parameter Ledger
axioms (1)
- domain assumption LLM-generated queries after filtering can be made to require specific cross-reference context
Reference graph
Works this paper leans on
-
[1]
In Gim, Guojun Chen, Seung seob Lee, Nikhil Sarda, Anurag Khandelwal, and Lin Zhong
Cost-effective synthetic data generation for post-training using QWICK. In Gim, Guojun Chen, Seung seob Lee, Nikhil Sarda, Anurag Khandelwal, and Lin Zhong. 2024. Prompt cache: Modular attention reuse for low-latency infer- ence.Preprint, arXiv:2311.04934. Omer Goldman, Alon Jacovi, Aviv Slobodkin, Aviya Maimon, Ido Dagan, and Reut Tsarfaty. 2025. Is it r...
-
[2]
everyone wants to do the model work, not the data work
“everyone wants to do the model work, not the data work”: Data cascades in high-stakes ai. In Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems, CHI ’21, New York, NY , USA. Association for Computing Machinery. Nicolas Sannier, Morayo Adedjouma, Mehrdad Sabet- zadeh, and Lionel Briand. 2016. Automated classi- fication of legal c...
-
[3]
InFindings of the Associa- tion for Computational Linguistics: ACL 2025, pages 8063–8075, Vienna, Austria
Document segmentation matters for retrieval- augmented generation. InFindings of the Associa- tion for Computational Linguistics: ACL 2025, pages 8063–8075, Vienna, Austria. Association for Compu- tational Linguistics. Junjie Wu, Jiangnan Li, Yuqing Li, Lemao Liu, Liyan Xu, Jiwei Li, Dit-Yan Yeung, Jie Zhou, and Mo Yu
2025
-
[4]
Sitemb-v1.5: Improved context-aware dense retrieval for semantic association and long story com- prehension.Preprint, arXiv:2508.01959. Liyan Xu, Jiangnan Li, Mo Yu, and Jie Zhou. 2024a. Fine-grained modeling of narrative context: A co- herence perspective via retrospective questions. In Proceedings of the 62nd Annual Meeting of the As- sociation for Comp...
work page internal anchor Pith review Pith/arXiv arXiv 2026
-
[5]
• The query should not target any statement that is made in the context chunks or neighboring chunks
Targets the target chunk— The answer to the query is a piece of information established in the target chunk, that is dependent on some context chunks. • The query should not target any statement that is made in the context chunks or neighboring chunks
-
[6]
The target chunk will not be retrieved based on its own content alone
However, the retriever requires context chunks- for the target chunk to be selected as positive, at least one of the context chunks is required. The target chunk will not be retrieved based on its own content alone. • This means that the query should contain information that is only found in the context chunks, and that is required to understand the targe...
-
[7]
Article 5 para- graph 2 point 3 letter a
The query must not contain explicit references to the context chunks- the point is that if you are crafting a query, that contains the relationship between the target chunk and context chunks, refer to the substance of the context chunk, not simply place its identifier like "Article 5 para- graph 2 point 3 letter a". This totally misses the point
-
[8]
No multiple questions hidden in the query: create a query poiting to a SINGLE statement made in the target chunk
-
[9]
Use of the Target Implicit Context Chunks: They might be helpful to understand the target chunk
-
[10]
This is to ensure that the retriever is not just matching keywords, but actually understanding the content
Avoid unnecessary lexical overlap: The query should not simply repeat the same words as the target chunk, but rather use different wording to express the same meaning. This is to ensure that the retriever is not just matching keywords, but actually understanding the content. However, ensure that the words that are crucial, especially domain-specific terms...
-
[11]
Multiple statement in the target chunk- If the target chunk contains multiple statements, the query should be about only one such statement, which is dependent on some context chunks
-
[12]
art. 45 ust. 2 pkt 1 ustawy
Pinpoint citations may be abbreviated: A target chunk may cite a context chunk in full (e.g., "art. 45 ust. 2 pkt 1 ustawy") or in abbreviated form when the context is nearby (e.g., "ust. 2 pkt 1", or even just "pkt 1"). Context chunks are themselves prefixed with their own (sometimes shorter) identifier. All context chunks provided have been explicitly r...
-
[16]
ust. 2 pkt 1
od 0,03 do 0,05 najni˙zszego uposa˙zenia - za ka˙zdy dzie´ n wykonywania zada´ n w strefie działa´ n wojennych w warunkach zwi ˛ azanych z bezpo´srednim udziałem w akcjach o charakterze bojowym, akcjach zapobiegania aktom terroryzmu lub ich skutkom albo pełnieniem słu˙zby patrolowej, ochronnej lub z udziałem w konwojach. No neighboring chunks. Good query:...
-
[17]
In Danish: Target chunk: § 10. Stk. 2. For ansatte omfattet af § 2, nr. 3, finder stk. 1, nr. 2, ikke anvendelse. Context chunks: § 2. Ydelser efter denne bekendtgørelse tilkommer ansatte, der er udsendt til tjeneste uden for landet: 3) for at sikre driften af en offentlig institution i dens tjenesteområde. § 10. Stk. 1. Særtillægget udgør: 4) 300 kr. pr....
-
[18]
Do ˙zołnierzy, o których mowa w § 2 pkt 2 lit
In Polish: Target chunk: 2. Do ˙zołnierzy, o których mowa w § 2 pkt 2 lit. e, nie stosuje si˛ e ust. 1 pkt 2. Context chunks: § 2. Nale˙zno´sci pieni˛ e˙zne okre´slone przepisami niniejszego rozporz ˛ adzenia przyznaje si˛ e˙zołnierzom zawodowym:
-
[19]
skierowanym do pełnienia zawodowej słu˙zby wojskowej poza granicami pa´ nstwa: e) w celu zabezpieczenia funkcjonowania jednostki wojskowej u˙zytej zgodnie z przepisami ustawy z dnia 17 grudnia 1998 r. o zasadach u ˙zycia lub pobytu Sił Zbrojnych Rzeczypospolitej Polskiej poza granicami pa´ nstwa, w rejonie jej działania albo zapewnienia organizacji, funkc...
1998
-
[20]
No neighboring chunks
od 0,03 do 0,05 najni˙zszego uposa˙zenia - za ka˙zdy dzie´ n wykonywania zada´ n w strefie działa´ n wojennych w warunkach zwi ˛ azanych z bezpo´srednim udziałem w akcjach o charakterze bojowym, akcjach zapobiegania aktom terroryzmu lub ich skutkom albo pełnieniem słu˙zby patrolowej, ochronnej lub z udziałem w konwojach. No neighboring chunks. Good query:...
-
[21]
Minister
podmiot wła´sciwy do przeprowadzania bada´ n, o których mowa w ust. 1, Implicit context (containing the noun “Minister”): Art. 124z. Minister wła ´sciwy do spraw wewn˛ etrznych okre´sli, w drodze roz- porz ˛ adzenia:. . . Figure 19: Original Polish version of Figure 6 Query (obligationtodefend_2223): Czy Rada Ministrów okre ´sla, które organy administracj...
-
[22]
Figure 20: Original Polish version of Figure 7 Generated context (financingeducation_688): Art
Terenowe organy administracji rz ˛ adowej [...] mog ˛ a by´ c zobowi ˛ azane do odpłatnego wykonania zada´ n mobilizacyjnych na rzecz Sił Zbrojnych. Figure 20: Original Polish version of Figure 7 Generated context (financingeducation_688): Art. 66 okre ´sla, ˙ze w szkołach prowadzonych przez jednostki samorz ˛ adu terytorialnego zadania i kompetencje orga...
-
[23]
1, jest przekazywana w terminie od dnia 6 maja do dnia 15 pa´ zdziernika
Dotacja celowa, o której mowa w ust. 1, jest przekazywana w terminie od dnia 6 maja do dnia 15 pa´ zdziernika. Utilized context chunk: Art. 62. 1. Na sfinansowanie kosztu zakupu podr˛ eczników, materiałów edukacyjnych lub materiałów ´ cwiczeniowych w zakre- sie, o którym mowa w art. 55 ust. 1, pub- liczne szkoły artystyczne realizuj ˛ ace kształce- nie og...
2026
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.