LegalSearchLM: Rethinking Legal Case Retrieval as Legal Elements Generation
Chaeeun Kim, Jinu Lee, Wonseok Hwang
TL;DR
This paper tackles limitations in legal case retrieval (LCR) by introducing LEGAR BENCH, the first large-scale Korean LCR benchmark spanning 411 crime types over 1.2M candidate cases, and by reframing retrieval as generation of legal elements with LegalSearchLM. LegalSearchLM uses constrained decoding grounded by an FM-index to generate key legal elements from a query and retrieve target cases, addressing information loss from fixed embeddings and noise from purely lexical matching. Experiments show state-of-the-art performance on LEGAR BENCH (Standard and Stricter) and strong generalization to unseen crime types, outperforming naive in-domain generative baselines by about 15%. Together, LEGAR BENCH and LegalSearchLM offer a scalable, domain-specific resource and method that advance practical LCR for legal professionals and support robust, element-level reasoning in retrieval.
Abstract
Legal Case Retrieval (LCR), which retrieves relevant cases from a query case, is a fundamental task for legal professionals in research and decision-making. However, existing studies on LCR face two major limitations. First, they are evaluated on relatively small-scale retrieval corpora (e.g., 100-55K cases) and use a narrow range of criminal query types, which cannot sufficiently reflect the complexity of real-world legal retrieval scenarios. Second, their reliance on embedding-based or lexical matching methods often results in limited representations and legally irrelevant matches. To address these issues, we present: (1) LEGAR BENCH, the first large-scale Korean LCR benchmark, covering 411 diverse crime types in queries over 1.2M candidate cases; and (2) LegalSearchLM, a retrieval model that performs legal element reasoning over the query case and directly generates content containing those elements, grounded in the target cases through constrained decoding. Experimental results show that LegalSearchLM outperforms baselines by 6-20% on LEGAR BENCH, achieving state-of-the-art performance. It also demonstrates strong generalization to out-of-domain cases, outperforming naive generative models trained on in-domain data by 15%.
