Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: cross-encoder-architecture

Cross-Encoder Architecture

Cross-Encoder 交叉重排架构
🎯Core Definition
Cross-Encoder is a second-stage re-ranking architecture that concatenates query qq and candidate document dd into a single combined sequence (e.g., `[CLS] query [SEP] doc [SEP]`) fed into a deep Transformer encoder; unlike isolated Bi-Encoders, Cross-Encoder executes Full Cross-Attention between all query and document tokens across every layer, outputting a precise calibrated scalar relevance score [0,1][0, 1] via the `[CLS]` classification head.
💡Use Cases
Second-stage precision re-ranking of Top-50 to Top-100 candidates retrieved by first-stage coarse search, filtering down to top 3-5 chunks for LLM context.
Key Problems Solved
Bi-Encoders lose fine-grained lexical and syntactic alignment during independent embedding compression; Cross-Encoder enables exhaustive token-to-token cross-attention interactions, eliminating representation compression loss and boosting MRR@10 / NDCG@10 by 15%-30%.
🎯5 High-Frequency Exam Points
1
Contrast computational complexity between Bi-Encoder and Cross-Encoder: why can Cross-Encoder not build offline ANN indices?
2
Why must production RAG pipelines enforce a two-stage 'Bi-Encoder coarse recall + Cross-Encoder fine rerank' architecture?
3
How to batch and optimize Cross-Encoder quadratic attention overhead when candidate chunks span up to 1024 tokens?
4
Evaluate out-of-domain generalization performance of fine-tuned Cross-Encoder models (e.g., ms-marco-MiniLM)?
5
How does knowledge distillation transfer Cross-Encoder teacher ranking capabilities into compact Bi-Encoder student models?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Cross-Encoder Architecture"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardRRF Reciprocal Rank FusionNext CardBGE-Reranker Series

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationScalar Quantization (SQ8/SQ4)Product Quantization (PQ)ADC Asymmetric Distance Computation