Models

NLPAI Lab releases LEAN weights for efficient RAG context compression

Two compact ModernBERT-based models select relevant sentences before a language model reads retrieved passages, with a focus on efficiency.

Open Model Weights published2 Dec 2026
Primary sourceNLPAI Lab
Source published2026-12-02
FOLLOW OUR COVERAGE

Follow Open Model Weights on Google See more of our open-weight AI reporting in Google Search.

Add as a Preferred Source on Google
Multiple document streams compressed into a compact selection of illuminated evidence tiles.
Original vector editorial illustration — LEAN.

NLPAI Lab released LEAN-base and LEAN-large on December 2, 2026. The two downloadable models are designed for extractive context compression in retrieval-augmented generation systems. Instead of asking a large language model to rewrite retrieved evidence, LEAN selects or discards complete sentences, preserving the original wording of the retained text. Primary source ↗

The base checkpoint contains 149 million parameters and is initialized from ModernBERT-base. The large version contains 395 million parameters and uses ModernBERT-large. Both encode the question and sentences of a passage together, producing sentence-level selection decisions from a single encoder pass. The model cards specify an input limit of 512 tokens for each question-passage pair. The training recipe combines supervised support-fact learning with optimization based on the answers of a frozen reader model.

The authors report a compression latency of 20 milliseconds per query for LEAN-base with 20 retrieved passages and a composite efficiency score of 0.968 in their evaluation setup. Their comparison covers five question-answering benchmarks and seven other compressors. The composite score combines answer-quality retention, compression and latency rather than directly measuring factual correctness. The large checkpoint follows the same recipe, but the reported paper results are attributed to the base model. Independent end-to-end testing is still needed.

Each inspected ungated repository contains one Safetensors file and two additional PyTorch parameter artifacts for the classifier and pooling components. MIT is declared in the model cards, which reference the project's license; no standalone root license file was observed in either weight repository. The ModernBERT encoders have separate Apache 2.0 terms. The model requires the project-specific class rather than a standard standalone text-generation interface.

OMW REGISTRY WATCH

What this changes for the evidence layer

Notable candidates for retrieval infrastructure. Independently test evidence omission, answer accuracy, compression, latency and hardware requirements; keep the two model variants separate.

PRIMARY SOURCE

NLPAI Lab

This brief is based on the cited primary source. Performance, benchmark and comparative claims remain attributed unless Open Model Weights publishes an independent measurement.

Open source article ↗