Prompt
I'm building a feed ranking system and need help choosing a recommender approach
Latest observation
Sure — for a feed ranking system, the “best” recommender approach depends heavily on your constraints and goals. In practice, the strongest systems are usually multi-stage, not a single model.
Quick recommendation
If you're starting out, a solid path is:
- Candidate generation: retrieve a few hundred to a few thousand potentially relevant items.
- Ranking model: score those candidates with a learning-to-rank / CTR / engagement model.
- Re-ranking / business rules: add diversity, freshness, safety, deduping, and exploration.
Common recommender approaches
1) Collaborative filtering
Best for: strong user-item interaction data
Pros: simple, effective, good personalization
Cons: cold start, sparse data, less flexible for context
Examples:
- Matrix factorization
- Item-item similarity
- User-user similarity
Use this if:
- You have lots of historical clicks/likes/views
- Items/users are relatively stable
- You need a baseline quickly
2) Content-based recommendation
Best for: item metadata or text/image features
Pros: handles cold start better, interpretable
Cons: can over-specialize, weaker on pure collaborative signals
Examples:
- TF-IDF / embeddings over titles, descriptions
- Category/topic similarity
- Multimodal embeddings
Use this if:
- New items appear frequently
- You have rich content features
- User history is limited
3) Learning-to-rank / supervised ranking
Best for: feed ranking with clear labels like click, dwell time, like, share
Pros: strong performance, supports many features
Cons: needs good logging, careful bias handling
Examples:
- Logistic regression
- Gradient boosted trees (XGBoost/LightGBM/CatBoost)
- Neural rankers
This is often the best choice for the final feed ranker.
Good features:
- User activity history
- Item metadata
- User-item interaction features
- Recency/freshness
- Creator affinity
- Popularity signals
- Session context
4) Deep recommendation models
Best for: large-scale systems with rich behavior data
Pros: expressive, handles complex interactions
Cons: harder to train/debug/serve
Examples:
- Two-tower retrieval models
- Wide & Deep
- DeepFM
- Transformer-based sequential models
Use this if:
- You have a lot of traffic and data
- You need session-aware or sequence-aware personalization
- You can support more complex ML infrastructure
5) Hybrid recommenders
Best for: most real-world feed systems
Combine:
- collaborative signals
- content features
- popularity/trending
- personalization
- business constraints
This is usually the most practical and robust approach.
What I’d choose by stage
If you’re early-stage
Start with:
- Popularity + freshness + simple personalization
- Content-based retrieval
- GBDT ranking model
This gives you a strong baseline without overengineering.
If you have more data
Move to:
- Two-tower retrieval
- GBDT or neural ranker
- Re-ranking layer for diversity/exploration
If your feed is highly behavioral
Consider:
- Sequential/session-based models
- Learning-to-rank with contextual features
- Bandits or exploration strategies
Important feed-specific concerns
Feed ranking is not just relevance. You’ll likely need to optimize for:
- Click-through rate
- Dwell time / watch time
- Likes/shares/comments
- User retention
- Diversity and novelty
- Freshness / recency
- Creator fairness / exposure constraints
Also watch out for:
- Position bias
- Popularity bias
- Feedback loops
- Cold start
- Objective mismatch
(e.g. optimizing clicks may hurt long-term satisfaction)
A practical architecture
A common production design:
Stage 1: Retrieval
- Two-tower model or item similarity
- Return ~500–5000 candidates
Stage 2: Ranking
- LightGBM/XGBoost or neural ranker
- Predict engagement score
Stage 3: Re-ranking
- Diversity
- Freshness
- Rules
- Exploration
My default suggestion
If you want one answer:
Use a hybrid multi-stage recommender with a two-tower retrieval model and a gradient-boosted ranking model, then re-rank for business constraints.
That’s usually the best balance of performance, scalability, and maintainability.
If you want, I can help you choose more precisely based on:
- your data size,
- type of feed,
- latency budget,
- and the metrics you care about.