AI Glossary Term

What does “Cross-Encoder” mean?

Definition

A model that scores a query and document together in one pass for high-accuracy relevance judgments.

How Cross-Encoder works

Diagram for Cross-Encoder comparing Bi-encoder (Query and document embedded separately, Fast, precomputed) versus Cross-encoder (Query and document read together, Slower, more accurate).Bi-encoderQuery and documentembedded separatelyFast, precomputedCross-encoderQuery and documentread togetherSlower, moreaccuratevs

Example

A cross-encoder reads 'how do I reset my password' together with a help article and outputs a single relevance score. Because it sees both at once, it can pick up on subtle matches.

Why it matters

Cross-encoders are a standard choice for reranking. They are too slow to run on an entire collection.

Common questions

Why more accurate?

It can compare words in the query with words in the document directly.

Why slower?

Each query-document pair needs its own pass, so nothing can be precomputed.

Where is it used?

Reranking search results and judging relevance.

Learn more in our free guides

Test yourself

See also