projects / proj-la-003
Next task →
Projects/Linear Algebra/Matrix completion by softImpute on MovieLens-100K — sparse-signal recovery
Level 1 · foundational · ~6 h

Matrix completion by softImpute on MovieLens-100K — sparse-signal recovery

Predict held-out ratings from 100k MovieLens ratings using nuclear-norm-regularized matrix completion and compare with neighborhood baselines. Sweep sparsity 1% to 20% and record the phase-transition boundary where recovery collapses.
Add to portfolio →

Problem statement

  • 01Predict held-out ratings from 100k MovieLens ratings using nuclear-norm-regularized matrix completion and compare with neighborhood baselines. Sweep sparsity 1% to 20% and record the phase-transition boundary where recovery collapses.

Real-world motivation

  • 01The nuclear norm is the convex envelope of rank and gives a principled collaborative filtering objective. The sparse-signal recovery setting forces concrete choices about data, scale and evaluation.

Learning objectives

  • 01Implement softImpute with alternating SVD
  • 02Tune the regularization path
  • 03Compare with k-NN baselines
  • 04Report support recovery F1 score alongside the baseline metrics.

Technical architecture

  • 01sparse rating matrix in COO
  • 02soft-thresholded SVD iteration
  • 03validation split by user

Mathematical foundations

  • 01$\min_X\tfrac12\lVert P_\Omega(X-R)\rVert_F^2+\lambda\lVert X\rVert_*$
  • 02softImpute update $X=S_\lambda(P_\Omega(X)+P_\Omega(R))$

Dataset and sources

  • 01synthetic Bernoulli-Gaussian sparse vectors
  • 02MNIST 8x8 patch dictionary

Step-by-step tasks

  • 01Frame the task and freeze the sparse-signal recovery evaluation protocol with a fixed random seed.
  • 02Implementation 1: Implement the SVT shrink operator
  • 03Implementation 2: Warm-start along a lambda path
  • 04Implementation 3: Evaluate RMSE on a masked test set
  • 05Verification 1: Check rank decreases monotonically with lambda
  • 06Verification 2: Verify observed entries are fitted
  • 07Run the ablation grid and report support recovery F1 score over three independent trials.

Implementation requirements

  • 01Implement the SVT shrink operator
  • 02Warm-start along a lambda path
  • 03Evaluate RMSE on a masked test set
  • 04Log all hyperparameters and the random seed for the sparse-signal recovery run.

Testing requirements

  • 01Check rank decreases monotonically with lambda
  • 02Verify observed entries are fitted
  • 03Measure support recovery F1 score over at least three seeds.

Evaluation metrics

  • 01RMSE
  • 02MAE
  • 03rank of solution
  • 04support recovery F1 score

Expected outputs

  • 01lambda-path plot
  • 02top-N recommendation table

Common failure modes

  • 01severe sparsity makes the solution degenerate
  • 02test leakage through temporal duplicates
  • 03coherent dictionaries break the restricted isometry property

Stretch goals

  • 01add bias terms for users and items
  • 02compare with implicit ALS
  • 03plot the Donoho-Tanner style phase transition

Research extensions

  • 01study sample complexity under non-uniform missingness
  • 02add side information to the nuclear norm objective

GitHub submission requirements

  • 01A repository whose README states the sparse-signal recovery protocol and the exact command to reproduce it.
  • 02Source for the scratch implementation, a test file, and a results table with uncertainty estimates.
  • 03A two-page report explaining failures on synthetic Bernoulli-Gaussian sparse vectors and what the ablation revealed.

Completion rubric

  • 01SVT correct
  • 02validation protocol sound
  • 03baseline comparison included
  • 04Extra credit: plot the Donoho-Tanner style phase transition

Submit when every rubric item is satisfied and your repository contains runnable code plus a reproduction command.