Techniquecore
Hybrid recommender
Also called hybrid recommendation.
Combines collaborative and content-based signals, by weighting, switching, cascading or feature combination, to offset each one's weaknesses.
A hybrid recommender combines two or more recommendation methods, most often collaborative filtering and content-based filtering, so that the strong points of one cover the weak points of the other. Collaborative methods capture taste that no feature describes but know nothing about new items; content methods handle new items but tend to recommend more of the same. Burke (2002) sorts the ways to combine them into seven methods, from a weighted sum of scores to models that use the output of one method as the input of another.
In plain words
One adviser knows what people like you enjoyed. Another adviser knows what each product is. Each one makes mistakes the other would not make. A hybrid asks both and combines their answers, or lets one adviser go first and the other refine the result, or simply asks the second adviser when the first has no opinion.
The combination can be simple, like an average of two scores, or it can be one model that learns from ratings and descriptions at the same time.
When it applies
- Both kinds of data exist. There are interactions and also item or user features.
- Cold start matters. New items or new users arrive often, see the cold-start problem, and a purely collaborative method would ignore them.
- One method alone has a known gap. For example, the content method gives lists with no variety, or the collaborative method gives noisy results for items with few ratings.
- Several good models exist. Even among collaborative models alone, a blend of different methods can make smaller errors than each one, which is the idea of ensemble learning.
The template
- Choose the components. For example, a collaborative predictor and a content predictor , each trained as on its own page.
- Choose the way to combine them, one of the seven methods of Burke (2002):
- Weighted. , or a learned combination of several scores.
- Switching. Use one component when a condition holds, for example the collaborative one when the item has at least ratings, and the other otherwise.
- Mixed. Show the lists of both components side by side, or merge them.
- Feature combination. Give one learner both kinds of data, for example a model that takes the ratings of other users as extra features next to the content features.
- Cascade. Let one component produce a coarse ranking and the second break ties or reorder only the candidates of the first.
- Feature augmentation. Let one component compute a feature, such as a predicted rating or a category, that becomes input of the other.
- Meta-level. Let one component learn a model, such as a content profile of each user, and give that model, not the raw data, to the other, for example to compare users by their profiles.
- Fit the combination on held out data. Learn , the switching condition or the second stage on data that the components did not train on, so that the combination does not favor the component that overfits most.
- Evaluate with the measures of the recommendation problem, and separately on new users and new items.
Classic examples
On the toy matrix of this group, take the item features of the content-based filtering page: , , , , and a new item that nobody has rated. As a content predictor, use a neighbor method on the features: predict plus the average of over the items that rated, with the cosine of the feature vectors of and as weights. User has the mean and rated , and .
| open pair | collaborative (user-based) | content | weighted, | switching |
|---|---|---|---|---|
| about 3.934 | about 4.174 | about 3.934 | ||
| none, no ratings of | 1 | none | 1 |
For the weights are for , 1 for and 0 for , which gives . For only has a nonzero weight, so the prediction is the rating 1 that gave to the comedy . A plain weighted hybrid has no answer for , because one of its parts has none; the switching hybrid, with the rule "use the collaborative score when the item has ratings", answers both pairs.
Other examples:
- Blends of collaborative models. The leading teams of the Netflix Prize combined many neighborhood and factor models with learned weights, a weighted hybrid in which all components are collaborative.
- Side information in the factor model. Koren, Bell and Volinsky (2009) add user attributes and implicit feedback to the factor vector of a user, a feature combination inside one model; SVD++ is the implicit feedback part of this.
- Factorization machines. A factorization machine takes one feature vector that holds the user, the item and any content or context features, and learns factors for all of them at once.
Variations
- Learned blending. Replace the fixed by a model, such as linear regression or gradient boosting, that takes the component scores and also counts such as the number of ratings of the user and item. This is stacking.
- Confidence-based weighting. Let grow with the number of ratings of the item, so that the collaborative score takes over as data arrives.
- Two-stage systems. A fast candidate stage, often content or embedding based, and an accurate ranking stage, often trained by learning to rank, form a cascade.
Pitfalls
- Scales that differ. A rating prediction and a cosine score are not on the same scale. Normalize them before a weighted sum.
- Leakage in the blend. If the weights are fit on the same data the components trained on, the blend trusts the component that memorized the training data.
- Cost. Every component must be trained, stored and served, and a cascade adds latency.
- Hiding a gap. A hybrid that is good on average can still be poor for new users; measure the cold-start cases on their own.
- Explanations. A blended score is harder to explain than the output of one method.
Exercises
- On the example, find such that the weighted hybrid gives 4 for . Hint: solve .
- For each of the seven methods of Burke (2002), say whether it can recommend a new item that has features but no ratings, when one component is collaborative and the other content-based.
- Design a switching rule on the number of ratings of the item, and explain how to choose its threshold on held out data.
- Explain why the weighted sum of two predictors with errors that are not correlated can have a smaller mean squared error than both. Hint: expand the square of .
References
- Robin Burke, Hybrid recommender systems, survey and experiments, User Modeling and User-Adapted Interaction 12(4), 331-370, 2002, the classes of recommendation techniques and the seven hybridization methods (weighted, switching, mixed, feature combination, cascade, feature augmentation, meta-level)
- Charu C. Aggarwal, Recommender Systems, The Textbook, Springer, 2016, Chapter 6 (ensemble-based and hybrid recommender systems)
- Yehuda Koren, Robert Bell and Chris Volinsky, Matrix factorization techniques for recommender systems, IEEE Computer 42(8), 30-37, 2009, sections Recommender system strategies (the weak and strong points of content filtering and collaborative filtering) and Additional input sources (user attributes and implicit feedback added to the factor model)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag EGNDGE Edit this page History Report an error Markdown