Introduction to Maximum Marginal Relevance (MMR)
Maximum Marginal Relevance is a retrieval-ranking technique that balances relevance to a query with diversity among selected results.
It helps reduce the problem of retrieving multiple highly similar chunks that contain largely duplicated information.
Core concepts and architecture
Understand query relevance, candidate similarity, redundancy, diversity, and the MMR selection objective.
Study the relevance-diversity balance controlled by a weighting parameter and how the algorithm iteratively selects candidates.
Learn how MMR differs from ordinary nearest-neighbour retrieval, which may return many closely related passages.
Practical implementation
Retrieve an initial candidate set using vector similarity.
Apply MMR to select chunks that remain relevant to the query while reducing similarity between already selected results.
Compare ordinary top-K retrieval with MMR using document diversity, answer completeness, and context efficiency.
Challenges and trade-offs
Excessive diversity can reduce the relevance of selected passages.
MMR requires additional similarity calculations and may increase retrieval latency.
The balance between relevance and diversity depends on the query, candidate set, and chosen weighting parameter.
Interview preparation
Explain Maximum Marginal Relevance and why it is used in retrieval systems.
Describe how MMR balances query relevance and result diversity.
Compare MMR with ordinary top-K similarity retrieval and discuss its benefits and limitations.
Key takeaways
- Understand the purpose and main concepts of Maximum Marginal Relevance (MMR).
- Understand how Maximum Marginal Relevance (MMR) works and how its components interact.
- Be prepared to explain practical implementation and real-world use cases.
- Understand common challenges, limitations, and design trade-offs.
- Practise explaining Maximum Marginal Relevance (MMR) clearly in a technical interview.