Cassette: Case-to-Case Structural Distillation for Efficient Legal Case Retrieval

Legal case retrieval (LCR) is an essential tool for not only assisting legal practitioners to efficiently retrieve precedents, but also enabling ordinary individuals to find valuable legal case information without relying on expensive professional legal service. Our previous work CaseLink [51] demonstrated the effectiveness of using case to case graph structures to improve retrieval accuracy. However, its high computational cost during inference on large scale legal databases limits its practical use in real world settings. The main inefficiency comes from constructing test time graphs and computing pairwise term frequency similarities of cases. This process has \(O(n^{2})\) complexity for \(n\) legal cases, making the runtime prohibitive as the number of candidates grows. For example, the retrieval time for one query on a database (COLIEE2022 [21]) with 1,563 candidate cases is more than 500 milliseconds , while the runtime would increase drastically to more than 3,500 seconds for a database (LeCaRDv2 [25]) with 55,192 candidate cases . To further enhance the retrieval performance while achieving a significant speed-up, in this extension paper, Cassette framework is proposed with a distillation strategy involving ranking objective and eigen-matching objective for an effective transfer of knowledge from a powerful and well-trained heavy teacher retriever to a lightweight and efficient hybrid student dual encoder. Specifically, the student query encoder is implemented as a multilayer perceptron model designed for fast online processing, whereas the student candidate encoder adopts a GNN architecture, suitable for an offline manner within the case database. Extensive experiments are conducted on three benchmark datasets and the results verify the effectiveness of the ranking distillation while achieving high efficiency. The code has been released on https://github.com/yanran-tang/Cassette/.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Information Systems
Published
2026-05-21
DOI
https://doi.org/10.1145/3816732
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cassette: Case-to-Case Structural Distillation for Efficient Legal Case Retrieval

Ruihong Qiu, Yanran Tang, Zi Huang, Hongzhi Yin et al.
ACM Transactions on Information Systems
Artificial Intelligence in Law
article

Cassette: Case-to-Case Structural Distillation for Efficient Legal Case Retrieval

Ruihong Qiu, Yanran Tang, Zi Huang, Hongzhi Yin, Xue Li
article en

Abstract

Legal case retrieval (LCR) is an essential tool for not only assisting legal practitioners to efficiently retrieve precedents, but also enabling ordinary individuals to find valuable legal case information without relying on expensive professional legal service. Our previous work CaseLink [51] demonstrated the effectiveness of using case to case graph structures to improve retrieval accuracy. However, its high computational cost during inference on large scale legal databases limits its practical use in real world settings. The main inefficiency comes from constructing test time graphs and computing pairwise term frequency similarities of cases. This process has \(O(n^{2})\) complexity for \(n\) legal cases, making the runtime prohibitive as the number of candidates grows. For example, the retrieval time for one query on a database (COLIEE2022 [21]) with 1,563 candidate cases is more than 500 milliseconds , while the runtime would increase drastically to more than 3,500 seconds for a database (LeCaRDv2 [25]) with 55,192 candidate cases . To further enhance the retrieval performance while achieving a significant speed-up, in this extension paper, Cassette framework is proposed with a distillation strategy involving ranking objective and eigen-matching objective for an effective transfer of knowledge from a powerful and well-trained heavy teacher retriever to a lightweight and efficient hybrid student dual encoder. Specifically, the student query encoder is implemented as a multilayer perceptron model designed for fast online processing, whereas the student candidate encoder adopts a GNN architecture, suitable for an offline manner within the case database. Extensive experiments are conducted on three benchmark datasets and the results verify the effectiveness of the ranking distillation while achieving high efficiency. The code has been released on https://github.com/yanran-tang/Cassette/.

ACM Transactions on Information Systems
The University of Queensland (AU)
Peace, Justice and strong institutions
Openalex Percentile: Top 3%
Artificial Intelligence in Law
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.