Skip to main content
QUICK REVIEW

[Paper Review] Projection onto the probability simplex: An efficient algorithm with a simple proof, and an application

Weiran Wang, Miguel Á. Carreira-Perpiñán|arXiv (Cornell University)|Sep 6, 2013
Bayesian Methods and Mixture ModelsComputer Science10 references215 citations
TL;DR

This paper presents a simple, non-iterative O(D log D) algorithm for Euclidean projection onto the probability simplex, proven via elementary KKT conditions. The method efficiently computes optimal soft cluster assignments in Laplacian K-modes clustering by projecting affinity vectors onto the simplex, enabling fast out-of-sample inference and training via gradient projection.

ABSTRACT

We provide an elementary proof of a simple, efficient algorithm for computing the Euclidean projection of a point onto the probability simplex. We also show an application in Laplacian K-modes clustering.

Motivation & Objective

  • To provide a simple, efficient algorithm for projecting a vector onto the probability simplex.
  • To offer a concise, elementary proof of correctness using only the KKT conditions.
  • To demonstrate the algorithm's utility in Laplacian K-modes clustering for both training and out-of-sample assignment.
  • To show that the projection step in gradient-based optimization for LASS (Laplacian Assignment model) can be solved exactly and efficiently.

Proposed method

  • The algorithm sorts the input vector components in descending order to identify the active set.
  • It computes the threshold index ρ as the largest j for which u_j + (1 - Σ_{i=1}^j u_i)/j > 0.
  • It sets λ = (1 - Σ_{i=1}^ρ u_i)/ρ to satisfy the sum-to-one constraint.
  • The final solution is x_i = max(y_i + λ, 0), which projects the vector onto the simplex.
  • The method leverages the KKT conditions to prove that ρ corresponds exactly to the number of positive components in the solution.
  • The algorithm is applied in Laplacian K-modes clustering to compute soft assignments via projection onto the simplex during both training and out-of-sample mapping.

Experimental results

Research questions

  • RQ1Can a simple, non-iterative algorithm be devised for Euclidean projection onto the probability simplex with a minimal proof?
  • RQ2What is the exact relationship between the threshold index ρ and the active set of non-zero components in the solution?
  • RQ3How can this projection step be efficiently integrated into large-scale clustering algorithms like Laplacian K-modes?
  • RQ4Can the same projection mechanism be reused for both training and out-of-sample inference in a clustering model?

Key findings

  • The proposed algorithm computes the projection in O(D log D) time, dominated by sorting, and is non-iterative with exact active set identification.
  • The proof relies solely on the KKT conditions, showing that the threshold index ρ is the largest j such that u_j + (1 - Σ_{i=1}^j u_i)/j > 0.
  • The method ensures that the solution x_i = max(y_i + λ, 0) satisfies both the sum-to-one and non-negativity constraints.
  • The algorithm is applied to Laplacian K-modes clustering, where it enables efficient optimization via gradient projection and out-of-sample assignment.
  • In both training and out-of-sample settings, the core optimization reduces to projecting a K-dimensional vector onto the probability simplex.
  • The projection step is computationally lightweight and enables scalable inference in the Laplacian Assignment model (LASS).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.