Nemotron Lightning Rerank Probe (research-only)
A feasibility test: can a single linear layer on the frozen hidden states of Nemotron 3.5 Lightning 30B-A3B rerank retrieved documents?
Short answer:
- On BEIR-style passages, yes. It beats BM25 and the model's own zero-shot yes/no score.
- On long enterprise documents, no. On EnterpriseRAG-Bench it falls below zero-shot and well below dedicated rerankers.
Research-only / non-commercial. The probe is trained on MS MARCO, whose terms restrict use to non-commercial research. The license is CC-BY-NC-4.0. For a commercial reranker use Nemotron-3.5-Rerank-8B or llama-nemotron-rerank-1b-v2.
How it works
- Build the prompt. The user turn is
Document:\n{document}, formatted with Lightning's chat template (add_generation_prompt=True). Then append the suffix:\n\nQuery: {query}\nQuestion: Does the document above help answer the query? Answer yes or no.\nAnswer:The document comes first, so a document's prefill could be cached and reused across queries. - Prefill once. Read the residual stream (pre-norm) after decoder block 36 at the last token
(vLLM
extract_hidden_statesaux id 36, or HFhidden_states[36]). - Score.
score = w · ((h − μ) / σ) + b, and rank documents by score.
Files: default/probe.safetensors (weight, bias, standardization; 32 KB), default/config.json, default/probe.py.
Training
- Data: MS MARCO passage hard negatives (
triplet-50): 15k queries × (1 positive + 7 negatives), 114k pairs for training plus 6k pairs held out for validation.- The 7 negatives are the 3 hardest mined negatives plus 4 random ones from the top 50.
- Documents are capped at 2,048 tokens.
- Head: linear scorer trained with listwise softmax cross-entropy over each query's group of 8 (AdamW, 6 epochs).
- Layer and position were chosen by val MRR across 6 layers × {suffix, content-mean}. The suffix position wins.
- Mid-to-late layers (31–36) were best.
- A 2-layer MLP head overfit and was dropped.
- Reader: Lightning NVFP4, frozen. Features come from vLLM 0.32
extract_hidden_stateson one DGX Spark.
Evaluation (NDCG@10)
| Set | First stage | No rerank | Zero-shot P(yes) | Probe | llama-nemotron-rerank-1b-v2 | Nemotron-3.5-Rerank-8B |
|---|---|---|---|---|---|---|
| SciFact (300 q) | BM25 top-100 | 68.6 | 65.5 | 75.7 | – | – |
| NFCorpus (323 q) | BM25 top-100 | 32.1 | 35.3 | 35.6 | – | – |
| EnterpriseRAG-Bench (470 q) | BM25 + Nemotron-3-Embed-1B hybrid, top-20 | 62.4 | 68.3 | 62.9 | 75.4 | 76.9 |
- BM25 is
bm25swith English stemming. - The EnterpriseRAG-Bench baselines were run with the same harness, candidates and 8k-character document budget.
Reading the results:
- The probe learns relevance on short passages: +7 NDCG over BM25 on SciFact and +10 over zero-shot.
- It does not transfer to long, multi-source enterprise documents (email threads, tickets, code). It is ~0.5 above no reranking and 5 below the zero-shot yes/no score. This matches the known short-to-long-context failure of activation probes.
- Dedicated rerankers remain much better on enterprise data. Training data with long documents (and a commercial license) is the obvious next step.
Limitations
- License: research-only (MS MARCO).
- Precision: fit on NVFP4 features; other precisions shift the features.
- Scope: pointwise, English, text-only. BEIR numbers use our own BM25 runs.
- Missing baselines: no BEIR runs of the dedicated rerankers with our candidates.