šŸš€NEW COURSEVibe Coding AI Apps with Claude Code šŸ¤–āœØEnroll now
Retrieval Ā· Reasoning

Retrieval-Augmented Reasoning with Lean Language Models

Free while signed in. Answers cite the passages they came from.

First page
Retrieval-Augmented Reasoning with Lean Language Models
The curator’s take

A domain-tuned pipeline that fuses RAG and reasoning into a single small-footprint model. The team distills reasoning traces from a frontier model into Qwen2.5 variants, uses summarization to keep context small, and shows that a 32B local model approaches frontier accuracy on an NHS A‑to‑Z clinical QA task.

Key points
01

Method in one picture. The system marries a dense retriever (Sentence‑Transformers + Chroma/FAISS) with Qwen2.5‑Instruct models; retrieval can be invoked as a tool inside a conversational agent.

02

Lean + private by design. Built to run in secure or air‑gapped settings using open models; integrates reasoning with retrieval to reduce hallucinations while keeping data on‑prem.

03

Data and compression. On ~1k NHS condition pages, the team generates synthetic queries, retrieves full documents, then summarizes them to shrink input by 85% (avg trace length from ~74,641 to ~7,544 tokens) before fine‑tuning.

04

Retriever wins, then reasoner adds. Summaries beat full pages for retrieval (p@5: 0.76 vs 0.68). With k=5 retrieved docs, condition accuracy caps at 0.76 upstream; within that cap, Qwen2.5‑32B jumps from 0.38 to 0.54 with RAG, and to 0.56 after reasoning distillation. Frontier baselines with RAG land around 0.56–0.57.

05

Small models, big gains. Distilled ā€œt0ā€ models from 1.5B–32B retain strong condition accuracy with k=5 (e.g., 1.5B at 0.53; 32B at 0.56), narrowing the gap to frontier models while fitting in 3–64 GB GPU memory. The study highlights that reasoning distillation especially lifts the smallest models.

06

Practicality. Training reused s1‑style SFT with long context on accessible hardware (e.g., 16ƗA100 80 GB; ~80 GPU‑hours for the 32B run), and ships a simple Svelte frontend with hidden ā€œreasoning traceā€ toggles for auditability.

Every Monday
Get next week’s papers.

The same picks and the same summaries, in your inbox. Free, and 176 issues deep.

Subscribe on Substack