Online Estimation of Similarity Matrices with Incomplete Data

Fangchen Yu, Yicheng Zeng, Jianfeng Mao, Wenye LiUAI 2023

Abstract

The similarity matrix measures pairwise similarities between a set of data points and is an essential concept in data processing, routinely used in practical applications. Obtaining a similarity matrix is typically straightforward when data points are completely observed. However, incomplete observations can make it challenging to obtain a high-quality similarity matrix, which becomes even more complex in online data. To address this challenge, we propose matrix correction algorithms that leverage the positive semi-definiteness (PSD) of the similarity matrix to improve similarity estimation in both offline and online scenarios. Our approaches have a solid theoretical guarantee of performance and excellent potential for parallel execution on large-scale data. Empirical evaluations demonstrate their high effectiveness and efficiency with significantly improved results over classical imputation-based methods, benefiting downstream applications with superior performance.

Introduction

Similarity matrices are fundamental to many machine learning algorithms, including clustering, dimensionality reduction, and Support Vector Machines (SVMs). In real-world scenarios, data often arrives sequentially (online) and is frequently incomplete. When data is missing, the resulting similarity matrix typically loses the essential mathematical property of Positive Semi-Definiteness (PSD), which can cause downstream tools to fail or produce unreliable results.

Traditional solutions rely on data imputation—estimating missing values before calculating similarities. However, imputation is computationally expensive, requires strong distributional assumptions, and often fails to scale for high-speed online data streams. This paper proposes a shift from fixing the data to fixing the matrix itself via matrix correction.

Methodology: Matrix Correction

The core strategy involves taking an initial "broken" similarity matrix calculated from incomplete data and mathematically projecting it onto the space of valid PSD matrices.

  1. Initial Approximation: A rough similarity matrix ($S^o$) is calculated using only observed features, re-scaled to account for missing dimensions.
  2. Offline Correction (OffMC): Dykstra’s alternating projection algorithm finds the matrix $\hat{S}$ closest to $S^o$ that satisfies PSD and boundary constraints.
  3. Online Sequential Correction (OnMC-S): For streaming data, the Schur complement transforms the matrix optimization into a simpler vector optimization problem, allowing for near-instant updates via bisection search.
  4. Online Batch & Large-Scale (OnMC-B/L): To handle massive datasets, the authors introduce parallel processing and Randomized Singular Value Decomposition (RSVD). By splitting the matrix into blocks, they can correct similarities for thousands of points in parallel.
Blocking parallel strategy for large-scale matrix correction.

The "Closer is Guaranteed" theorem (Theorem 1) proves that projecting a non-PSD estimate onto the PSD space guarantees the new matrix is closer to the ground truth in terms of Frobenius norm, regardless of why the data is missing.

Empirical Evaluation

The researchers evaluated their methods on four diverse benchmark datasets: MNIST, CIFAR-10, PROTEIN, and RCV1, under various "missingness" ratios ranging from 20% to 80%.

Key Results

  • Superior Accuracy: Across all datasets and missingness levels, the OnMC methods consistently achieved lower Relative-Mean-Square Error (RMSE) than standard imputation baselines like kNN and Mean imputation, as well as advanced matrix completion methods like GROUSE or KFMC.
  • Massive Speedups: In scenarios with streaming data, OnMC-B was up to 15x faster than sequential versions and significantly outperformed KFMC in efficiency. OnMC-L successfully handled matrices of size 10,000 x 10,000 in under 10 minutes.
  • Downstream Success: When used for nearest-neighbor classification, the corrected matrices led to higher accuracy compared to matrices derived from imputed data.
RMSE performance across different missing ratios.

Conclusion

Matrix correction offers a robust, geometric alternative to data imputation for estimating similarity matrices from incomplete data. While the method assumes the underlying similarity should be PSD (e.g., Gaussian kernel or Cosine similarity), it provides a theoretically grounded and computationally efficient framework for both offline and real-time online applications. Future work includes integrating these corrected matrices into deep learning architectures for streaming data.

Summary updated

BibTeX
@inproceedings{yu2023online,
  author = {Fangchen Yu and Yicheng Zeng and Jianfeng Mao and Wenye Li},
  title = {{Online Estimation of Similarity Matrices with Incomplete Data}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=Tz-S4nQW2Vm},
}
Figure