Reranker depth raises private-search latency roughly with candidates scored, although batching, sequence length, model architecture, and hardware make the curve nonlinear.
A first-stage retriever may return 20, 100, or 500 candidate chunks before a cross-encoder or local LLM reorders them. Deeper reranking gives the relevant passage more chances to survive weak initial ordering, but every candidate adds tokenization and inference work. Once the relevant-document recall plateaus, additional depth mostly consumes compute and can lengthen the slowest interactive queries.
Depth Is the Candidate Count Entering Stage Two
Reranker depth differs from final top-k. A pipeline may score one hundred candidates and return five, so latency is driven by one hundred query-document comparisons even though the language model sees only a few. Candidate text length determines tokens processed per comparison.
Elastic’s reranking depth experiment measures retrieval quality as reranking depth changes and provides model-specific guidance. The results show that useful depth depends on the first-stage retriever and reranker rather than one fixed number. This effect should remain measurable under the intended home-server workload.
A weak first stage may require greater depth to include the answer, while a strong hybrid retriever can present good candidates earlier. Reranker depth therefore cannot compensate for candidates that were never retrieved. The distinction matters when several pipeline stages share the same storage and memory budget.
Inference Cost Scales With Candidates and Their Tokens
Cross-encoders jointly process the query and each candidate, so doubling depth approximately doubles scored pairs before batching effects. Larger batches can improve accelerator utilization, but they also require memory and may delay the first completed result until a batch finishes.
A study of pairwise reranking reports large latency reductions from limiting the reranked set, choosing smaller models, lowering precision, and controlling output work. It demonstrates that depth is one of several multiplicative serving choices. That boundary must be tested with representative household data rather than assumed.
CPU reranking can show a near-linear curve, while GPU curves may contain efficient plateaus followed by memory or queueing cliffs. Tail latency also grows when candidate lengths vary because long chunks dominate batch work. This effect should remain measurable under the intended home-server workload.
Quality Gains Plateau Before Cost Does
Increasing depth helps only while relevant evidence exists below the current cutoff and the reranker can identify it. After first-stage recall saturates, more candidates add distractors and cost, sometimes reducing ranking stability for ambiguous queries.
A controlled end-to-end evaluation evaluation compares retriever-reranker configurations using effectiveness, generation quality, cost, and latency. This supports choosing depth from an end-to-end frontier rather than optimizing ranking scores in isolation. The distinction matters when several pipeline stages share the same storage and memory budget.
The failure boundary is a depth chosen from average latency on warm, uniform queries. Cold models, long chunks, concurrent users, and NAS reads can move the p95 or p99 far beyond the median even when mean relevance improves slightly.
FAQ About Reranker Candidate Depth
Is reranking 100 candidates twice as slow as 50?
It may approach twice the scoring work, but wall time can be less or more depending on batch utilization, token lengths, memory limits, and queueing. Measure the deployed model rather than assuming a perfectly linear ratio.
Does a larger final top-k require greater reranker depth?
Usually the candidate pool should exceed the final result count, but the necessary multiplier depends on first-stage recall and result diversity. Returning more passages does not automatically justify scoring hundreds of weak candidates. That boundary must be tested with representative household data rather than assumed.
Can cached reranker scores reduce latency?
Caching helps repeated query-candidate pairs or stable normalized queries, but private search often contains unique wording and changing documents. Cache invalidation must follow document versions and model changes to avoid stale ordering. This effect should remain measurable under the intended home-server workload.
Find the Smallest Depth on the Quality Plateau
Build a labeled query set with exact terms, paraphrases, ambiguous names, and hard negatives. Sweep reranker depths such as 10, 25, 50, 100, and 200 while measuring first-stage recall, final nDCG or MRR, citation coverage, CPU or GPU time, memory, and p50, p95, and p99 latency.
Compare the curve with the decision factors in reranker decision factors. Hold first-stage candidate generation, chunk length, reranker model, final top-k, concurrency, and cache state constant so depth is the only changed variable. The distinction matters when several pipeline stages share the same storage and memory budget.
Select the smallest depth whose quality is statistically indistinguishable from the plateau and whose tail latency meets the interactive objective. Route background research to a deeper profile only when extra recall has measured value. That boundary must be tested with representative household data rather than assumed.
Tech & AI HUB
More to Read

Can a Local LLM Resume Generation After Its Process Restarts?
A mechanism-first explanation of llm generation resume, its shared-resource tradeoffs, three query-fanout FAQs, and a practical verification protocol.

Can a Home Server Run Embeddings and Video Transcoding on the Same Integrated GPU?
A mechanism-first explanation of shared igpu embeddings and transcoding, its shared-resource tradeoffs, three query-fanout FAQs, and a practical verification.

How Does Access-Token Lifetime Affect Security and Household Friction?
A mechanism-first explanation of access-token lifetime, its shared-resource tradeoffs, three query-fanout FAQs, and a practical verification protocol.

