An Intent Taxonomy of Legal Case Retrieval

Yunqiu Shao, Haitao Li, Yueyue Wu, Yiqun Liu, Qingyao Ai, Jiaxin Mao, Yixiao Ma, Shaoping Ma

TL;DR

Researchers have developed the first hierarchical intent taxonomy for legal case retrieval, moving beyond simple text similarity to understand why legal practitioners search. By categorizing intents into five distinct types—Particular Case, Characterization, Penalty, Procedure, and Interest—the authors demonstrate that "intent-aware" systems significantly outperform traditional models in both ranking results and predicting user satisfaction.

What Problem Does This Paper Address?

In the world of web search, we’ve long understood that a user might be looking for a specific site (navigational), information (informational), or a product (transactional). However, legal case retrieval (LCR) has largely been treated as a "black box" of document similarity: if Case A looks like Case B, it must be relevant.

The authors argue this is a fundamental misunderstanding of legal work. A lawyer searching for a specific case they vaguely remember has different needs than a judge trying to determine the appropriate sentencing range for a new crime. Existing legal taxonomies (like Westlaw’s Key Number System) focus on topics, not the user's goal. This paper fills that gap by defining a systematic framework for user intent in LCR.

Methods

The authors employed a rigorous, multi-stage "Establishment and Verification" approach:

  1. Taxonomy Construction: They analyzed literature, conducted a user survey of 110 legal professionals, and examined 600 real-world query sessions.
  2. Expert Refinement: They conducted semi-structured interviews with experienced lawyers, prosecutors, and judges to refine the categories.
  3. Validation: Three legal experts annotated query logs to ensure the taxonomy was reproducible and covered real-world scenarios.
  4. Laboratory User Study: 36 law students and lawyers performed 12 specific search tasks. The researchers logged every click, hover, and "dwell time" (how long they stayed on a page) to see how behavior changed based on intent.
  5. Application: They built "intent-aware" models for two downstream tasks: Satisfaction Prediction (using CatBoost) and Result Ranking (using Learning-to-Rank algorithms like LambdaMART).

Datasets

  • User Survey Data: 110 valid responses from legal practitioners across various roles (judges, lawyers, researchers).
  • Commercial Query Logs: 600 search sessions sampled from a major Chinese legal search engine.
  • Behavioral Dataset: A newly collected dataset from the lab study containing 108 sessions and 843 queries, including rich interaction data (hovers, timestamps) and explicit satisfaction labels. The authors plan to open-source this dataset.

Key Insights and Ideas

  • The "Characterization" Dominance: Roughly 50% of all legal searches fall under "Characterization"—determining how the law applies to specific facts (e.g., "Is this specific act considered fraud?").
  • Interaction is a Positive Signal: Unlike general web search, where a long dwell time might mean a user is lost, in LCR, more clicks and longer dwell times correlate positively with satisfaction. Legal documents are long and complex; users expect to spend time "learning" from them.
  • The "Penalty" Effort: Users searching for sentencing or penalty ranges (the "Penalty" intent) exert the most effort, issuing more queries and browsing more pages than any other group.
  • The "Procedure" Gap: Searches regarding procedural law (e.g., jurisdiction, time-barring) are the hardest to satisfy. Users reported the lowest satisfaction in this category, suggesting current LCR systems are poorly optimized for procedural queries.
  • Beyond Relevance: While "relevance" is always the top priority, users with "Learning" intents value inspiration (finding new ways to frame an argument) and diversity of opinions much more than those looking for a "Particular Case."

Key Results

The paper proves that knowing why a user is searching makes the system better:

  • Satisfaction Prediction: By adding the "intent" category as a feature, the model's ability to predict if a user was satisfied (measured by AUC) improved from 0.6728 to 0.7020.
  • Ranking Performance: "Intent-aware" ranking models consistently beat "intent-agnostic" ones, even when the intent-aware models were trained on less data. For the AdaRank algorithm, NDCG@5 (a measure of ranking quality) improved by a staggering 16.6%.
  • Behavioral Variance: The study confirmed that search depth and click patterns vary significantly across intents, proving that a "one-size-fits-all" ranking algorithm is suboptimal for the legal domain.

Limitations and Future Work

The primary limitation is that the study was conducted within the context of the Chinese legal system (a statutory law system). While the authors argue the underlying logic of substantive vs. procedural law is universal, the taxonomy may need adjustments for common law jurisdictions (like the US or UK).

Additionally, the "Interest" intent (searching out of curiosity) was difficult to simulate in a controlled lab environment and remains under-explored. Future work aims to develop more sophisticated, automated intent-detection mechanisms and create larger-scale benchmarks that incorporate these intent categories.

Summary updated

BibTeX
@article{shao2024intent,
  author = {Yunqiu Shao and Haitao Li and Yueyue Wu and Yiqun Liu and Qingyao Ai and Jiaxin Mao and Yixiao Ma and Shaoping Ma},
  title = {{An Intent Taxonomy of Legal Case Retrieval}},
  journal = {ACM Trans. Information Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=HM2D8WDv5B},
}
Figure