Cross-Encoder
Category: NLP / Language Processing
A model architecture that jointly encodes a pair of texts (query and document) together, producing a relevance score through full cross-attention between them.
Full Explanation
A cross-encoder processes a query-document pair as a single concatenated input through a transformer, allowing full bidirectional attention between all tokens of both texts. This rich interaction enables the model to capture fine-grained relevance signals that are impossible with independent encoding. Cross-encoders produce highly accurate relevance scores but are computationally expensive because each query-document pair requires a separate forward pass. They cannot pre-compute document representations, making them impractical as first-stage retrievers for large collections. Instead, cross-encoders are used as rerankers on a small set of candidates retrieved by faster methods. Training typically uses labeled relevance data or distillation from larger models. Cross-encoders consistently outperform bi-encoders on relevance judgments and are essential components in high-quality retrieval systems.
Related Terms
More in NLP / Language Processing
Explore More
- AI Tools Library — Discover AI tools related to Cross-Encoder
- AI Education — Courses to learn about NLP / Language Processing
- AI News — Latest news and updates