Utility and Interaction Matrices
A utility or interaction matrix places users in rows, items in columns, and observed ratings or events in cells. It is the core data object behind collaborative filtering, matrix factorization, and most sparse recommendation examples.
The utility matrix
Let and be the observed user-item pairs. Explicit-feedback systems store values such as . Implicit feedback systems often store event counts and transform them into preference and confidence. Sparsity is
The symbol matters because missing entries are unknown, not automatically negative.
Worked example
Four observed events produce a sparse utility matrix:
| User | Item 0 | Item 1 | Item 2 | Item 3 |
|---|---|---|---|---|
| 0 | 5 | missing | 1 | missing |
| 1 | missing | 4 | missing | missing |
| 2 | missing | missing | 5 | missing |
There are 4 observed entries out of 12 cells, so sparsity is . User 0’s observed row is rating 5 for item 0 and rating 1 for item 2; the missing cells are unknown, not dislikes. Treating missing cells as real negative ratings would create the problem explained in sparse utility matrices and SVD.
Caveats
The matrix hides time, position, device, and whether an item was even eligible for exposure. Aggregating logs into one cell can erase recency and session intent. Keep raw event logs for offline versus online evaluation, even when models consume a matrix view.
References
- Adomavicius and Tuzhilin, 2005, Toward the Next Generation of Recommender Systems
- Hu, Koren, and Volinsky, 2008, Collaborative Filtering for Implicit Feedback Datasets
Nav