Abstract
In this paper, we propose an online algorithm to compute matrix factorizations. Proposed algorithm updates the dictionary matrix and associated coefficients using a single observation at each time. The algorithm performs low-rank updates to dictionary matrix. We derive the algorithm by defining a simple objective function to minimize whenever an observation is arrived. We extend the algorithm further for handling missing data. We also provide a mini-batch extension which enables to compute the matrix factorization on big datasets. We demonstrate the efficiency of our algorithm on a real dataset and give comparisons with well-known algorithms such as stochastic gradient matrix factorization and nonnegative matrix factorization (NMF).
TL;DR
This paper introduces OMF-B, an online algorithm for matrix factorization that uses low-rank Broyden updates to adapt to new data on the fly. Unlike standard stochastic gradient methods that require tedious hyperparameter tuning, OMF-B is easy to implement, handles missing data gracefully, and achieves high accuracy with significantly fewer passes over the dataset.
What Problem Does This Paper Address?
Matrix Factorization (MF) is a cornerstone of machine learning, used for everything from image denoising to recommender systems. The goal is to break a large data matrix $Y$ into two smaller factors: a "dictionary" $C$ and "coefficients" $X$.
However, traditional "batch" algorithms require the entire dataset to be in memory at once. This is impossible for streaming data (like a live video feed) or massive datasets (like millions of user ratings). While "online" versions exist, they often rely on Stochastic Gradient Descent (SGD), which is notoriously sensitive to "step-size" parameters—if you pick the wrong learning rate, the model fails to converge. The author seeks a more robust, efficient, and "tune-free" way to update these factors as new observations arrive.
Methods
The author proposes Online Matrix Factorization via Broyden Updates (OMF-B). The core idea is to solve a local optimization problem every time a new data column $y_t$ arrives.
- The Objective: Minimize the error of the current observation while ensuring the dictionary $C$ doesn't change too drastically from the previous step (controlled by a regularization parameter $\lambda$).
- Alternating Updates:
- First, it calculates the best coefficients $x_t$ for the new data point using a standard least-squares approach.
- Second, it updates the dictionary $C$. The author derives an update rule that is mathematically equivalent to Broyden’s rule (a famous "quasi-Newton" method in optimization).
- The "Broyden" Advantage: The update to the dictionary is a "rank-one" update. Instead of recomputing the whole matrix, you just add a simple correction term based on the current error.
- Extensions: The paper provides mathematical frameworks to handle mini-batches (processing multiple columns at once) and missing data (using a mask to ignore unknown entries during the update).
Datasets
The algorithm was evaluated using the Olivetti faces dataset, which contains 400 grayscale images ($64 \times 64$ pixels) of human faces. This is a classic benchmark for testing how well an algorithm can learn "parts" of a face (the dictionary) and reconstruct the original images.
Key Insights and Ideas
- Connection to Quasi-Newton Methods: The most elegant insight is that the optimal update for the dictionary matrix, under a specific cost function, naturally takes the form of a Broyden update. This bridges the gap between matrix factorization and classical optimization theory.
- Hyperparameter Simplicity: Unlike SGD-based methods that require tuning learning rates and decay schedules, OMF-B essentially has only one main parameter ($\lambda$) to tune.
- Efficiency via Sub-iterations: The author found that performing just two inner iterations (updating $x$, then $C$, then repeating once) per observation is enough to achieve excellent results, making it computationally very "cheap."
- Data Efficiency: The model learns more from each data point than SGD does. It reaches a lower error rate faster because it uses a more sophisticated second-order approximation of the problem space.
Key Results
Efficiency vs. SGMF
OMF-B demonstrates superior sample efficiency compared to Stochastic Gradient Matrix Factorization (SGMF). While SGMF may be faster per iteration in terms of raw wall-clock time, OMF-B achieves a much lower error rate for the same amount of data processed (mini-batches).
Handling Missing Data
In an experiment where 25% of the pixels were randomly removed, OMF-B reconstructed the faces with a Signal-to-Noise Ratio (SNR) of 11.57 after only 30 passes over the data. For comparison, standard Non-negative Matrix Factorization (NMF) required 1000 passes to reach a similar SNR (12.13).
Limitations and Future Work
- Non-negativity: The current OMF-B does not strictly enforce non-negativity, which is often desired in parts-based representation. The author notes this can be added but didn't implement it here.
- Temporal Structure: The model assumes observations are independent. Future work could involve adding a temporal component to model data that changes over time (like moving objects in a video).
- Probabilistic Extensions: The author suggests that OMF-B could be extended into a fully probabilistic framework, allowing the model to express uncertainty about its dictionary estimates.
Summary updated