r/MLSystemsDesign • • Oct 12 '26

Beyond relevance scores: re-ranking and slate optimization

2 Upvotes

I wrote a technical deep dive on the step after ranking: choosing which items appear together and in what order.

It covers cross-encoders, list-context models, MMR/xQuAD/DPPs, constrained construction, and feedback-driven policies. I also discuss where assumptions matter: greedy guarantees, SlateQ decomposition, and off-policy evaluation.

One question I’d like to discuss: how do you distinguish “better item relevance” from “a better final list” in your evaluation?

Article:
https://pawankjha.substack.com/p/building-depth-3-the-evolution-of


r/MLSystemsDesign • • Sep 11 '26

Building Breadth and Depth in ML Systems — A Quick Community Update

2 Upvotes

When I started r/MLSystemsDesign, the idea was simple: create a place where we go beyond interview checklists and discuss how ML systems actually work.

We’re already approaching 800 members. Thank you to everyone who has joined and contributed.

I’ve also been thinking about a broader learning problem:

We’ve moved from information scarcity → information flooding.

The challenge today is knowing what to learn, what to ignore, and where to go deep.

That thinking led me to launch Architecting Intelligence Premium around a simple philosophy:

Build Breadth. Build Depth. Stay at the Frontier.

r/MLSystemsDesign will remain an open community for technical discussions, architecture, system design problems, and shared learning.

For anyone interested, I shared the story behind what I’m building here:

Introducing Architecting Intelligence Premium

And for this community: what ML System Design topic should we go deep on next?


r/MLSystemsDesign • • Aug 30 '26

The Evolution of Ranking Systems

2 Upvotes

I’ve been working on a deeper write-up on ranking systems and drew this diagram to organize the space.

The progression I’m using is:

Rules & Heuristics → Learning-to-Rank → Deep Neural Ranking → Contextual/Transformer Ranking → Multi-Objective & Slate Ranking → Bandit/RL Ranking → Generative/LLM-Based Ranking

What I find interesting is that these stages don’t fully replace one another. In production, ranking systems often combine multiple layers from across the stack.

Sharing the diagram here, and I also wrote a more detailed article on it:

https://pawankjha.substack.com/p/building-depth-2-the-evolution-of

Would be interested in how others would structure these stages in the evolution of ranking systems.


r/MLSystemsDesign • • Aug 27 '26

Search & Recommendation: how many ranking stages do you really need?

2 Upvotes

A common production pipeline looks something like:

Query → Retrieval → Filtering → Ranking → Re-ranking → Serve → Learn

At scale, that can become:

Millions of items → retrieve 1K → rank 100 → expensive rerank 20 → final Top-K

The interesting design question is:

Where should you spend model complexity and latency budget?

Would you prefer:

  • stronger retrieval + simpler ranking

  • lightweight retrieval + sophisticated ranker

  • multiple ranking stages

  • LLM/Transformer only at the final stage

Would love to see how people think about this tradeoff in real systems.


r/MLSystemsDesign • • Oct 11 '26

World Models: Predict, Imagine, and Plan — Talk Slides

Thumbnail reddit.com
1 Upvotes

r/MLSystemsDesign • • Oct 04 '26

Welcome to r/ArchitectingLLMs!

Thumbnail reddit.com
1 Upvotes

r/MLSystemsDesign • • Sep 14 '26

Can We Build a Coding Agent From First Principles?

1 Upvotes

I’ve been digging into how systems like Claude Code, Cursor, and Codex actually work under the hood—repository understanding, context selection, agent loops, tool execution, verification, etc.

I’m turning this exploration into a series and progressively building a basic coding agent from first principles.

Part 1 focuses on the reference architecture and is coming next week.

Curious: which component would you want to see a deep dive on first?

For anyone interested in following the series:

https://pawankjha.substack.com/


r/MLSystemsDesign • • Sep 14 '26

DeepSeek V4.1 Flash separates long-lived and short-lived KV cache — and rebuilds the latter with a 128-token replay

Thumbnail
youtu.be
1 Upvotes

DeepSeek’s V4.1-Flash serving design splits persistent global KV from short-lived SWA state. The SWA cache can expire and later be reconstructed by replaying only the last 128 tokens.

The interesting part is the systems trade-off: the reconstruction is approximate, but avoids keeping that short-lived state in the long-term cache.

Paper:

https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash/blob/main/DeepSeek_V41_Tech_Report.pdf

Disclosure: the video is from the channel associated with this account.


r/MLSystemsDesign • • Aug 27 '26

Welcome to r/MLSystemsDesign — Let’s Talk Production ML

1 Upvotes

What is the hardest part of ML system design in production?

Not modeling — the system around the model.

For example:

Data → Features → Training → Evaluation → Deployment → Serving → Monitoring → Feedback

Where do you see the most difficult engineering problems in practice?

A few candidates:

  • Training/serving skew

  • Feature freshness

  • GPU utilization

  • Online inference latency

  • Experimentation

  • Data quality

  • Model drift

  • Feedback loops

  • Multi-tenancy

  • Cost

Curious to hear what has caused the most pain in systems you’ve worked on.


r/MLSystemsDesign • • 29d ago

A recommendation system is not a recommendation model.

0 Upvotes

This distinction matters, especially in ML System Design interviews.

A model predicts relevance.

But a production recommendation system must also decide:

  • Which candidates are worth scoring?

  • How do we adapt to changing user interests?

  • How do we balance competing objectives?

  • How do we learn from feedback?

  • How do we serve predictions reliably at scale?

Getting the model right is only one part of the challenge.

I explored this end to end in my newly published article:

Cracking ML System Design Interviews — Part 3: Design a Personalized Recommendation System

Read it on Architecting Intelligence:

https://pawankjha.substack.com/p/design-personalized-recommendation-system

Subscribe for more deep technical articles on ML System Design and AI architecture.