Advanced Topic Modelling and Recommender Systems
Module 1: Fundamentals of Learning from User-Generated Data
User-generated data encompasses both explicitly created content (such as text, audio, images, and video) and implicitly created metadata (like system interactions, sensor data, and viewing behaviour). The core task of recommender systems (RS) is filtering this vast amount of data to satisfy specific user information needs. This contrasts with Information Retrieval (IR), where the user has a specific query, and Browsing, where the user has an undirected need. A recommender system proactively searches for and ranks relevant items based on a user's characteristics or past interactions.
Module 2: Collaborative Filtering (CF)
Collaborative filtering leverages historical user-item interactions to predict missing ratings, operating on the assumption that users with similar past preferences will share future preferences.
Memory-Based CF
Memory-based methods store all item ratings and compute predictions on the fly using a -nearest neighbor approach.
User-Based CF: Finds similar users to a target user using Pearson's correlation, which normalizes for user rating biases by subtracting the mean rating :
The final rating is predicted as a weighted average of the neighbours' deviations from their mean.
Item-Based CF: Finds similar items based on rating vectors across users. It generally scales better and employs the Adjusted Cosine Similarity to account for user rating biases.
Model-Based CF (Matrix Factorization)
Model-based approaches map users and items into a shared latent factor space of dimensionality . A user is represented by a vector , and an item by . The predicted rating is the inner product:
Singular Value Decomposition (SVD):
The rating matrix can be factorized into three matrices:
Objective Function & Gradient Descent:
To focus only on known ratings and avoid imputing missing values, the objective function minimizes the regularized squared error:
The partial derivative for optimizing weight using gradient descent is computed as:
Incorporating Biases:
Pure interactions cannot explain full rating variance, so a global average , item bias , and user bias are added to the prediction: . The regularized objective function becomes:
Module 3: Evaluation Metrics
Evaluating RS performance can be conducted via offline testing, online A/B testing, and user studies.
Accuracy Metrics
Mean Absolute Error (MAE): Treats small and large errors equally.
Root Mean Squared Error (RMSE): Disproportionately penalizes large prediction errors by squaring them.
Rank-Aware Metrics
Mean Reciprocal Rank (MRR): The inverse of the position of the first relevant item.
Mean Average Precision (MAP): The arithmetic mean of the Average Precision (AP) values over all users .
Beyond-Accuracy Metrics
Novelty (Global): The inverse of overall item popularity in a result list of size .
Item Coverage: The fraction of the catalog that the system retrieves or recommends.
Intra-List Diversity: The average pairwise distance between all items in the recommendation list.
Module 4: Content-Based Filtering & Text Mining
Content-based filtering relies on computational features extracted from item content (e.g., text, audio, images) rather than interaction matrices.
Vector Space Model (VSM)
Documents are modeled as a Bag of Words (BoW) ignoring sequence but utilizing tokenization, stemming, and stop-word removal. Weights are often calculated using Term Frequency-Inverse Document Frequency (TF-IDF). The variant is mathematically defined as:
Similarity between documents and is typically calculated using Cosine Similarity:
Advanced Topic Modeling
Latent Semantic Analysis (LSA):
Employs SVD directly on the term-document matrix of dimensions to uncover latent concepts. The matrix is decomposed into , and the most important dimensions are retained for a minimum noise approximation:
Probabilistic Latent Semantic Analysis (pLSA):
Models terms and documents as mixtures of probabilistic latent topics . The model maximizes the log-likelihood via Expectation-Maximization (EM):
Latent Dirichlet Allocation (LDA):
A generative probabilistic model where documents are modeled as Dirichlet/multinomial distributions over latent topics, and topics are distributions over vocabulary words . The probability model is:
Module 5: Graph, Hybrid, & Context-Aware Recommenders
Graph-Based Networks
Data is mapped into vertices and edges represented via an adjacency matrix .
Triadic Closure (Clustering Coefficient): Approximated via the 3rd moment of eigenvalues:
Katz Centrality: A radial, volume-based measure modeling diffusion:
Closeness Centrality: A length-based metric calculating average shortest distance :
Hybrid Recommenders
Combinations of different RS paradigms defined by Burke into three structural categories:
Parallelized Design: Separate recommenders output scores which are mixed, switched, or combined via a weighted sum subject to .
Monolithic Design: A single system integrates multiple features in an early-fusion step (Feature Augmentation or Feature Combination). Content-Boosted CF creates a dense pseudo-ratings matrix using a harmonic mean self-weighting factor based on the number of ratings :
Pipelined Design: Output of one model cascades into the next, refining or re-ranking candidate items.
Context-Aware and Psychology-Informed RS
Context dimensions include temporal/spatial environments and physiological states. Biases generated by these algorithms (like popularity bias) can be evaluated via delta popularity metrics:
Psychology-informed architectures incorporate models like OCEAN (Big Five) to capture user cognition, affect, and trait data directly into the mapping space.