Generative Chinese Statute Retrieval

Yiteng Tu, Zitao Su, Weihang Su, Xuanyi Chen, Yueyue Wu, Yiqun Liu, Min Zhang, Qingyao AiarXiv 2026

TL;DR

The paper introduces GCSR (Generative Chinese Statute Retrieval), a novel framework that treats legal document retrieval as an end-to-end sequence generation task. By designing a highly structured, multi-granularity document identifier (docid) that captures legal hierarchies and training the model with a multi-task strategy, GCSR successfully bridges the massive semantic gap between colloquial user queries and formal statutory language, setting a new state-of-the-art on Chinese legal search benchmarks.

What Problem Does This Paper Address?

When everyday citizens look for legal help, they describe their problems in colloquial, narrative language (e.g., "My boss didn't pay me for working late"). However, statutory laws are written in highly condensed, technical, and abstract terminology (e.g., "overtime compensation regimes"). This creates a severe "semantic chasm."

Traditional legal search engines rely on a retrieve-then-rerank pipeline. First-stage retrievers (like BM25 or dense embedding models) often miss the correct statute entirely because they fail to map informal narratives to precise legal concepts. If the right law is missed in the first stage, subsequent rerankers cannot recover it. Furthermore, these standard pipelines treat documents as isolated items, failing to exploit the rich, hierarchical structure inherent in legal codes (such as chapters, sections, and cross-references).

Methods

Instead of using traditional dual-encoder architectures that match query and document embeddings, the authors adopt the Generative Retrieval (GR) paradigm. GCSR internalizes the entire legal corpus directly into the parameters of a generative language model (mT5-base), transforming retrieval into a sequence-to-sequence problem: Query $\rightarrow$ Document Identifier (Docid).

The core innovations lie in how these docids are designed and how the model is trained:

  1. Multi-granularity Structured Docid: Rather than using arbitrary database IDs or simple titles, GCSR constructs a semantic "path" for each statutory article. As shown in the structured docid components, the identifier concatenates seven distinct fields: $$\text{docid}(d) = [B \oplus C \oplus T \oplus L \oplus O \oplus A \oplus S]$$ Where $B$ & $C$ are the legal branch and sub-category, $T$ is the provision type (e.g., punishment vs. procedural), $L$ is the legislation level, $O$ represents involved objects, $A$ is an abbreviated title, and $S$ is an LLM-generated core summary.

  2. Multi-Task Training Strategy: To turn the model into both a reliable indexer and an agile retriever, it is trained on three complementary tasks using a unified auto-regressive objective:

  3. Statute Indexing Task (SIT): Maps the raw text of a statute directly to its structured docid, forcing the model to memorize the corpus.
  4. Pseudo-query Augmentation Task (PAT): Uses Qwen2.5-14B to generate 10 diverse, informal pseudo-queries for each statute, teaching the model how laypeople might describe that specific law.
  5. Supervised Retrieval Task (SRT): Fine-tunes the model on real-world, noisy query-statute pairs to sharpen its final decision boundaries.

During inference, GCSR uses constrained beam search via a prefix tree (Trie) to ensure that the model only decodes valid, existing statutory docids.

Examples of raw statutory text mapped to the proposed multi-granularity structured docids.

Datasets

The framework was evaluated on STARD, the first Chinese statute retrieval benchmark derived from real-world public legal consultations.

  • Queries: 1,543 non-professional user queries.
  • Corpus: A comprehensive set of 55,348 candidate statutory articles and judicial interpretations from official Chinese legal sources.

Key Insights and Ideas

  • The Power of Semantic Paths: Traditional generative retrieval often struggles with "docid collisions" when titles or text are highly similar. Forcing the model to decode a structured legal hierarchy acts as a strong semantic constraint, guiding the autoregressive decoding process and drastically reducing ambiguity.
  • Keywords Still Matter: Interestingly, the authors found that traditional sparse retrievers (BM25) often outperform zero-shot dense models (like RoBERTa). This is because statutory articles contain highly specific legal keywords that general-domain dense models fail to prioritize. GCSR overcomes this by explicitly embedding these legal taxonomies into the target docid space.
  • Retrieval is Nothing Without Augmentation: Ablation studies revealed that training on the static corpus alone (SIT) is insufficient. The pseudo-query generation (PAT) and supervised retrieval tasks (SRT) are absolutely vital; removing them causes a catastrophic drop in retrieval accuracy.

Key Results

GCSR consistently and significantly outperformed all baseline paradigms, including traditional sparse retrievers, strong pre-trained dense embedders (BGE), legal-domain models (SAILER, Lawformer), and a fine-tuned dense dual-encoder.

As shown in the performance comparison, GCSR achieved a Hits@3 of 0.522 and Hits@5 of 0.536, representing a substantial absolute improvement over the fine-tuned dense baseline (Hits@3 of 0.468). This makes it highly effective for real-world legal assistance applications where users typically only look at the top few results.

Retrieval performance comparison showing GCSR outperforming sparse, dense, and legal-specific baselines.

Limitations and Future Work

While the underlying framework is jurisdiction-agnostic, the current evaluation is strictly limited to Chinese statutes and the Chinese legal system's specific taxonomy. The authors plan to adapt and test GCSR on other legal systems and languages in future work. Additionally, they highlight the potential of integrating this generative retriever as a robust foundational component for downstream legal AI tasks, such as automated legal question answering, regulatory compliance checking, and judicial decision support systems.

Summary updated

BibTeX
@misc{tu2026generative,
  author = {Yiteng Tu and Zitao Su and Weihang Su and Xuanyi Chen and Yueyue Wu and Yiqun Liu and Min Zhang and Qingyao Ai},
  title = {{Generative Chinese Statute Retrieval}},
  year = {2026},
  eprint = {2607.11109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.11109},
}
Figure