What recommendation diversity is
A recommender optimised for accuracy alone always converges on the same outcome: showing the
shopper whatever most closely resembles what they have already viewed. That is logical, and it is a
problem. The shopper enters a bubble of uniform products that stop being interesting.
Diversity is the antidote. It measures how unlike each other the items in a recommendation list are.
Two ways of measuring it:
– Inter-list diversity — how unlike each other the items inside a single recommendation block are
– Intra-user diversity — how far the recommendations step outside the shopper’s own interaction
history (closely related to novelty)
How diversity is measured
The standard metric is intra-list diversity (ILD):
ILD = mean pairwise distance between items in the list
ILD = Sum dist(i, j) / [n x (n-1) / 2]
Here dist(i, j) is the cosine distance between the item embeddings. ILD runs from 0 (identical
items) to 1 (maximally different).
Adjacent metrics:
– Coverage — the share of unique catalogue positions that appear in recommendations at least
once. Low coverage means concentration on bestsellers and a tail that never works.
– Serendipity — the unexpectedness of a recommendation, a subjective measure of discovery.
The trade-off: accuracy versus variety
This is the classic compromise in recommender systems. There is no correct value for diversity; it
depends on what the block is for:
| Block type | Diversity needed | Reasoning |
|---|---|---|
| Similar items | Low to moderate | The goal is alternatives, not other categories |
| You may also like | High | The goal is discovery, widening the horizon |
| Frequently bought together | Mandatory | The block complements rather than repeats |
| Trending products | Moderate | It reflects the breadth of audience interest |
Tools for steering diversity
Maximal marginal relevance (MMR) is a post-processing algorithm. When adding the next position
to a list, it selects the item that best balances relevance against dissimilarity from the items
already selected.
Merchandising rules are the simple, transparent manual lever:
– No more than 2 items from the same brand in a block
– No more than 3 items from the same category
– Exclude items already viewed
Blending algorithms — combine collaborative filtering (accuracy) with content-based filtering
(diversity) in a fixed proportion.
Tip: do not optimise diversity through an A/B test on CTR alone — clicks are not sales. Use
attributed revenue and repeat visit rate, the metrics that reflect the long-term effect of variety
in recommendations.