Authors: Bhavya Yajush Awasthi, Amit KhapardearXiv 2612.01130

Benchmarking Small Language Models for Legal Retrieval-Augmented Generation: Structural Validity, Citation Compliance, and Inference Efficiency was submitted to arXiv on 2026-12-01 by Bhavya Yajush Awasthi, Amit Khaparde. Read it on arXiv or as a PDF.

Key findings

The main takeaway. For these five local SLMs over all 50 FIRE 2019 AILA queries, structural usability, retrieved-document citation behavior, and inference efficiency varied independently. Citation matching remained an initial diagnostic and did not establish legal correctness or claim-level support.

The abstract, as written

Retrieval-augmented generation (RAG) can condition language-model responses on external evidence, but its usefulness in legal settings depends on more than fluent text generation. This study benchmarks five small language models (SLMs) in a local legal RAG pipeline using BM25 retrieval over the FIRE 2019 Artificial Intelligence for Legal Assistance (AILA) corpus and inference through llama$.$cpp. For each query, the system retrieves prior case documents, constructs a constrained prompt, and evaluates the generated response for structural usability, citation behaviour, and inference efficiency. Citation-grounded response rate is defined as the proportion of queries for which a structurally usable response contains at least one citation to a retrieved document; citation precision separately measures the proportion of extracted citations that refer to retrieved documents. Neither measure verifies whether a cited case substantively supports a legal claim. Qwen2.5-1.5B achieved a structural usability rate of 1.00 but a citation-grounded response rate of 0.16. Llama-3.2-1B achieved a structural usability rate of 0.92 and the highest mean end-to-end throughput (6.21 tokens/s), while Phi-3 Mini Q4 had the highest citation-grounded response rate (0.38) but the greatest mean time to first token (69.11 s). These results show that structural usability, citation behaviour, and inference efficiency are distinct properties of local SLM-based legal RAG. The study provides a controlled comparison under a shared retrieval and generation protocol and highlights the need to evaluate citation behaviour separately from fluency and latency.

Key terms

From the paper

The paper defines its two citation measures and states what they leave untested.

Citation-grounded response rate is defined as the proportion of queries for which a structurally usable response contains at least one citation to a retrieved document; citation precision separately measures the proportion of extracted citations that refer to retrieved documents. Neither measure verifies whether a cited case substantively supports a legal claim.

The headline results show different strengths across three of the evaluated models.

Qwen2.5-1.5B achieved a structural usability rate of 1.00 but a citation-grounded response rate of 0.16. Llama-3.2-1B achieved a structural usability rate of 0.92 and the highest mean end-to-end throughput (6.21 tokens/s), while Phi-3 Mini Q4 had the highest citation-grounded response rate (0.38) but the greatest mean time to first token (69.11 s).

The discussion explains why matching citations to retrieved documents cannot establish answer quality.

A response may cite only retrieved cases while misinterpreting them, omitting a controlling precedent, or reaching an unsupported legal conclusion.

The paper limits the interpretation of its generation results to a full-query-set experiment.

All 50 AILA queries were included in the generation experiment, rather than using only the benchmark’s 40-query test split. The reported generation figures should therefore not be interpreted as official test-split results.

Figures from the paper

Compare the normalized metrics across all five SLMs, while reading higher time to first token and output-limit rate as less favorable outcomes.

Figure 2: Normalized comparison of the five evaluated SLMs across response-quality and inference metrics. Each metric is

Figure from the paper, arXiv:2612.01130, by its authors. Caption as written: Figure 2: Normalized comparison of the five evaluated SLMs across response-quality and inference metrics. Each metric is scaled relative to its maximum observed value. Higher values do not uniformly indicate better performance: higher TTFT indicates greater latency, while a higher output-limit rate indicates more frequent generation truncation.

What the authors say it means

What to do with it

  1. Measure structural usability and citation-grounded response rate separately when auditing these five SLMs under the shared FIRE 2019 AILA setup. Supported by: Qwen2.5-1.5B-Instruct had a structural usability rate of 1.00 across 50 queries and a citation-grounded response rate of 0.16.
  2. Review cited cases for relevance, interpretation, and claim-level support after performing identifier-based citation matching. Supported by: Phi-3 Mini Q4 had the highest citation-grounded response rate at 0.38, while the paper states that this metric does not verify whether a cited case substantively supports a legal claim.
  3. Report latency results with the tested hardware, software, token counts, and quantization formats. Supported by: On the reported Windows 10 machine, Llama-3.2-1B reached 6.21 tokens/s mean end-to-end throughput, while Phi-3 Mini Q4 had a mean time to first token of 69.11 seconds; the authors describe these measurements as machine-specific.
  4. Label results from this experiment as full-query-set findings rather than official FIRE 2019 AILA test-split results. Supported by: The generation experiment used all 50 AILA queries, including the 10 training queries and 40 test queries.
  5. Track prompt-processing latency separately when reproducing the five-model local benchmark. Supported by: Time to first token accounted for approximately 75–83% of mean generation time across the five evaluated models.

Caveat. The experiment used all 50 FIRE 2019 AILA queries, one fixed prompt and generation configuration, a 160-token output limit, and one Windows 10 machine with 16 GB of RAM and no GPU. It measured citation identifiers against retrieved documents without evaluating factual accuracy, legal correctness, relevance, interpretation, or substantive support.

In short

Across five locally run SLMs and all 50 FIRE 2019 AILA queries, readable structure, retrieved-document citations, and speed did not move together. Qwen2.5-1.5B-Instruct had the highest structural usability, Phi-3 Mini Q4 had the highest citation-grounded response rate, and Llama-3.2-1B had the highest observed mean end-to-end throughput under the reported setup.

Read the paper on arXiv →

Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.