What Actually Makes Embedding Model Inference Fast?
This entry summarizes a January 2026 blog post by Filip Makraduli:
- Original source: https://filipmakraduli.substack.com/p/what-actually-makes-embedding-model
- Category: Embedding models
- The post investigates what actually drives fast inference for embedding models in large-scale search, recommendation, and personalization systems, where efficiency, scalability, and intent understanding must be balanced.
- The surrounding analysis frames the problem in the LLM era: classic search stacks use a funnel of recall → ranking → generation, while modern agentic systems add inference budget and action space (whether to retrieve, how many retrieval steps, which tools to call).
- Datasets: MS MARCO, BEIR, Natural Questions, domain corpora, public recommendation sets.
- Metrics: nDCG@10, MRR, Recall@k, Hit@k, human preference, task success rate, latency and token cost.
- Baselines: BM25, dense retrieval, cross-encoder reranking, retrieval-free LLMs, commercial search APIs.
- The Scandinavian Embedding Benchmarks: Comprehensive Assessment of Multilingual Embeddings
- A Universal Framework for Compressing Embeddings in CTR Prediction (arXiv 2502.15355)
- Arctic-Embed 2.0: Multilingual Retrieval Without Compromise (arXiv 2412.04506)
- BGE M3-Embedding: Multi-Lingual, Multi-Functionality, Multi-Granularity (arXiv 2402.03216)
- BGE-en-ICL / BGE-ICL: Making Text Embedders Few-Shot Learners (arXiv 2409.15700)
- Beyond Benchmarks: Evaluating Embedding Model Similarity for Retrieval (arXiv 2407.08275)
Key points
Typical system pipeline
The general methodological pattern described is: problem formalization → model/system design → training or construction → inference pipeline.
1. Input & representation: encode queries, documents, and user context into dense or sparse representations, or structured prompts. 2. Core modules: retrievers, rerankers, planners, memory modules, and tool interfaces, chained or combined per task. 3. Learning strategies: supervised fine-tuning, contrastive learning, distillation, reinforcement learning (including process rewards), and bootstrapped data synthesis. 4. Inference strategies: single-pass retrieval, iterative retrieval, parallel sub-queries, early stopping, and budget control.
Evaluation landscape
Insights for search / recommendation / personalization
1. Architecture: cascaded retrieval + rerank + generation remains mainstream, but agentic paradigms are making retrieval count and policy themselves learnable. 2. Data: high-quality instruction data and click/session logs are equally critical; synthetic data must avoid knowledge leakage and distribution shift. 3. Evaluation: the gap between offline metrics and online satisfaction is widening; LLM-as-judge should be cross-validated with human assessment. 4. Production: latency, cost, explainability, and safety are hard constraints for industrial deployment—not just academic benchmark scores.
Engineering checklist
| Item | Question | Suggestion | |------|----------|------------| | Data | PII in training/index? Version management? | Partitioned indexes, sanitization, rollback-capable embedding versions | | Latency | p99 budget? Number of retrieval steps? | Cascade + early stop, cache hot queries, async reranking | | Quality | Do offline gains translate to online CTR/satisfaction? | Interleaving experiments, human audits, citation checks | | Safety | Poisoning/bias from open retrieval? | Source whitelists, adversarial detection, output filtering | | Cost | Per-query tokens and GPU usage? | Route to small models, distillation, hybrid sparse+dense |
Limitations & open questions
Experiment scale is often GPU-budget constrained; benchmarks may mismatch real user distributions; English-centric data leaves cross-lingual generalization uncertain; and agentic systems carry safety risks on the open web. Future directions include more efficient test-time compute allocation, deeper integration with knowledge graphs/structured databases, and causal/fairness constraints for recommendation.
Related entries
Glossary
| Term | Meaning | |------|---------| | IR | Information Retrieval | | RAG | Retrieval-Augmented Generation | | LTR | Learning to Rank | | nDCG | Normalized Discounted Cumulative Gain, a ranking-quality metric | | Agentic Search | Modeling search as sequential decision-making and tool invocation | | Gen-IR | Generative Information Retrieval |
> Note: Quantitative results should be verified against the original blog post; this summary is based on available metadata and surrounding analysis.