NVIDIA’s Fine-Tuned Nemotron Models Enhance Legal Research Retrieval
Home
Latest reporting
News
NVIDIA’s fine-tuned Nemotron 3.5 models improve legal case retrieval by 12.7% recall and 13.6% NDCG, outperforming OpenAI’s text-embedding-3-large.
NVIDIA, in collaboration with Trajectory, has fine-tuned its Nemotron 3.5 Embed 8B and Nemotron 3.5 Rerank 8B models to improve retrieval performance for legal research tasks. The models were trained on synthetic research questions using NVIDIA’s open synthetic data and fine-tuning recipe, yielding significant performance gains in retrieving relevant legal cases and generating citation-based answers.
Performance Gains in Legal Case Retrieval
The fine-tuned models demonstrated a 12.7% improvement in recall and a 13.6% increase in NDCG (Normalized Discounted Cumulative Gain) on a US Case Law dataset, outperforming OpenAI’s text-embedding-3-large model. These enhancements enable the retrieval of more relevant cases, with the fine-tuned embedder contributing most to recall gains and the reranker improving NDCG by elevating relevant cases in ranking.
For example, on the question “When does the business judgment rule apply to controller squeeze-out mergers?”, the fine-tuned models moved the three most relevant cases from 8th, 11th, and 15th positions to within the top 7, raising NDCG@10 from 0.089 to 0.548. This improvement reduces the need for agents to process irrelevant cases, optimizing token efficiency.
Broader Applicability Across Legal Corpora
The fine-tuning recipe also proved effective on the Massive Legal Embedding Benchmark (MLEB), a dataset spanning six jurisdictions. Here, the fine-tuned embedder improved held-out NDCG@10 by 4.6%, demonstrating the recipe’s adaptability to diverse legal retrieval tasks.
Impact on Citation-Based Answers
Using the fine-tuned models, an agent cited over 30% more relevant cases than the baseline across all token budgets tested. This improvement ensures more accurate and cost-effective citation-based answers, critical for legal professionals navigating extensive case law databases.
Technical Details of Fine-Tuning
The fine-tuning process involved Nemotron 3 Ultra generating and validating 1,000 research questions, with a seeded set of 10 questions serving as style examples. The embedding model, Nemotron 3.5 Embed 8B, was trained using a rank-16 LoRA with contrastive loss and a KL penalty to maintain proximity to the base model’s embeddings. The reranker, Nemotron 3.5 Rerank 8B, was fine-tuned with a pairwise loss, leveraging both hard negatives and random negatives for improved relevance scoring.
The models were evaluated on a Delaware subset of US case law, consisting of 32,468 opinions split into 166,537 chunks. Fine-tuning raised recall@32K tokens from 48.0% to 54.1% and NDCG@10 from 0.317 to 0.360, underscoring the effectiveness of the approach.
Presentation and Future Implications
NVIDIA showcased this work at GTC DC, highlighting its potential to enhance enterprise agents’ knowledge foundations. By improving retrieval quality, these advancements pave the way for more reliable and efficient legal research tools, benefiting professionals across jurisdictions.
