GuRE:Generative Query REwriter for Legal Passage Retrieval

Daehee Kim, Deokhyung Kang, Jonghwi Kim, Sangwon Ryu, Gary Geunbae Lee
5/19/2025
cs.CL

No official code found. Best implementation: daehuikim/GuRE (13 stars, Apache-2.0, last commit 2025-11-03).

Abstract

Legal Passage Retrieval (LPR) systems are crucial as they help practitioners save time when drafting legal arguments. However, it remains an underexplored avenue. One primary reason is the significant vocabulary mismatch between the query and the target passage. To address this, we propose a simple yet effective method, the Generative query REwriter (GuRE). We leverage the generative capabilities of Large Language Models (LLMs) by training the LLM for query rewriting. "Rewritten queries" help retrievers to retrieve target passages by mitigating vocabulary mismatch. Experimental results show that GuRE significantly improves performance in a retriever-agnostic manner, outperforming all baseline methods. Further analysis reveals that different training objectives lead to distinct retrieval behaviors, making GuRE more suitable than direct retriever fine-tuning for real-world applications. Codes are avaiable at github.com/daehuikim/GuRE.

View on arXivView PDF

Code Implementations(1)

daehuikim/GuRECommunity100%
Apache-2.0

Official Repository for paper "GuRE:Generative Query REwriter for Legal Passage Retrieval".

130Shell, PythonMay 19, 202511 months agoApache-2.0

Similar Papers

Cite this paper

@article{kim2025guregenerative,
  title  = {GuRE:Generative Query REwriter for Legal Passage Retrieval},
  author = {Daehee Kim and Deokhyung Kang and Jonghwi Kim and Sangwon Ryu and Gary Geunbae Lee},
  year   = {2025},
  eprint = {2505.12950},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.12950v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.12950.svg)](https://codeofpaper.com/paper/2505.12950)

Discussion