Tutorials › Statistical Learning (Graduate) › Argmin Consistency for Empirical Quantizers

Clustering Risk and Consistency · Tutorial 648 of 989

Argmin Consistency for Empirical Quantizers

Learn how uniform risk convergence and a positive separation gap turn empirical risk minimization into consistency for the full set of population-optimal quantizers.

Advanced 12 min read

What You'll Learn

  • Define the population and empirical distortion risks for a fixed number of centers.
  • State the compactness and uniform-convergence conditions used in the consistency argument.
  • Prove that population risk separates the minimizing set from codebooks a fixed distance away.
  • Derive convergence in probability of empirical minimizers to the population minimizing set.
  • Show that the population excess distortion of an empirical minimizer vanishes.
  • Distinguish set-valued consistency from convergence to one particular codebook.

Why Empirical Minimizers Need a Set-Valued Guarantee

A clustering algorithm minimizes distortion on the observed sample, while the statistical target is to minimize expected distortion under the data distribution. The key question is whether minimizing the sample objective also brings a codebook close to the population optimum. Uniform convergence of the two risks answers this question when the population risk has a positive separation gap away from its minimizing set.

The conclusion is deliberately set-valued. The population risk may have several minimizers, so consistency means approaching the set of all optimal codebooks, not necessarily converging to one preselected codebook. No uniqueness assumption is needed.

Population and Empirical Quantization Risk

Let \(X\) be an \(\mathbb{R}^d\)-valued random vector with distribution \(P\), supported on a compact set \(\mathcal X\). Fix a positive integer \(K\), and take the codebook space to be \(\mathcal C=\mathcal X^K\). A codebook is \(c=(c_1,\ldots,c_K)\). For \(x\in\mathcal X\), its squared quantization distortion is the squared distance to its nearest center:

$$ q_c(x)=\min_{1\le j\le K}\|x-c_j\|^2. $$

The population risk is \(R(c)=E[q_c(X)]\). For independent observations \(X_1,\ldots,X_n\) drawn from \(P\), the empirical risk is \(R_n(c)=n^{-1}\sum_{i=1}^n q_c(X_i)\). Write \(R^*=\min_{c\in\mathcal C}R(c)\) and \(\mathcal M=\{c\in\mathcal C:R(c)=R^*\}\). For a codebook \(c\), define its distance to this set by \(d(c,\mathcal M)=\inf_{m\in\mathcal M}\|c-m\|_{\max}\), where \(\|c-m\|_{\max}=\max_{1\le j\le K}\|c_j-m_j\|\).

Definition: A measurable codebook \(\hat c_n\) is an empirical minimizer if \(R_n(\hat c_n)=\min_{c\in\mathcal C}R_n(c)\). Its population excess distortion is \(R(\hat c_n)-R^*\), and its distance to the population minimizing set is \(d(\hat c_n,\mathcal M)\).

Compact support gives a compact codebook space and bounded distortions. The earlier result on uniform convergence of bounded-support quantization risks supplies the condition used below:

$$ \sup_{c\in\mathcal C}|R_n(c)-R(c)|\xrightarrow{p}0. $$

This is uniform convergence in probability: with probability tending to one, the empirical risk is close to the population risk simultaneously over every codebook. The proof below also uses continuity of \(R\). To see it here, suppose \(\|x\|\le B\) and all codebook centers have norm at most \(B\). For any centers \(a,b\) in the support, \(|\|x-a\|^2-\|x-b\|^2|\le(\|x-a\|+\|x-b\|)\|a-b\|\le4B\|a-b\|\). Taking minima over corresponding centers gives \(|q_c(x)-q_{c'}(x)|\le4B\|c-c'\|_{\max}\), and taking expectations gives the same bound for \(|R(c)-R(c')|\). Thus \(R\) is continuous. Compactness then ensures that \(\mathcal M\) is nonempty and compact.

Worked Example: A One-Center Quantizer for a Two-Point Distribution

Let \(X=2\) with probability \(1/4\) and \(X=0\) with probability \(3/4\), and use one center \(c\in[0,2]\). The population risk is \(R(c)=\frac34c^2+\frac14(2-c)^2\). Expanding and completing the square, \(R(c)=c^2-c+1=(c-\frac12)^2+\frac34\). Therefore \(R^*=\frac34\), and the unique minimizer is \(c^*=\frac12=E[X]\).

For a sample, let \(\bar X_n=n^{-1}\sum_{i=1}^nX_i\). Expanding the sample sum of squared deviations shows that \(R_n(c)\) is minimized at \(\hat c_n=\bar X_n\). Substituting into the population risk gives the exact excess distortion \(R(\hat c_n)-R^*=(\bar X_n-\frac12)^2\). Since \(\operatorname{Var}(X)=3/4\), independence gives \(\operatorname{Var}(\bar X_n)=3/(4n)\). Hence, for every \(\epsilon>0\), Chebyshev's inequality yields \(P(|\hat c_n-c^*|\ge\epsilon)\le 3/(4n\epsilon^2)\). The center approaches the population minimizer, and its excess distortion approaches zero.

Separation of the Population Minimizing Set

Continuity and compactness imply a strict risk gap outside any fixed neighborhood of \(\mathcal M\). This deterministic fact is the bridge from uniform risk approximation to consistency of minimizers.

Lemma (Separation): For every \(\epsilon>0\) such that \(A_\epsilon=\{c\in\mathcal C:d(c,\mathcal M)\ge\epsilon\}\) is nonempty, there is a number \(\Delta_\epsilon>0\) such that \(R(c)-R^*\ge\Delta_\epsilon\) for every \(c\in A_\epsilon\).

Proof. The distance to a nonempty set is continuous, so \(A_\epsilon\) is closed in the compact space \(\mathcal C\) and is therefore compact. The continuous function \(R(c)-R^*\) attains a minimum on \(A_\epsilon\). If that minimum were zero, some \(c\in A_\epsilon\) would satisfy \(R(c)=R^*\), hence \(c\in\mathcal M\). But then \(d(c,\mathcal M)=0\), contradicting \(d(c,\mathcal M)\ge\epsilon\). The attained minimum is therefore strictly positive; call it \(\Delta_\epsilon\). \(\square\)

Worked Example: Computing a Separation Gap

Suppose \(X=0\) with probability one, \(K=1\), and the allowed center space is \([-1,1]\). Then \(R(c)=c^2\), \(R^*=0\), and \(\mathcal M=\{0\}\). For \(\epsilon=0.4\), the set of centers at least \(0.4\) from \(\mathcal M\) is \([-1,-0.4]\cup[0.4,1]\). On this set, \(R(c)\ge(0.4)^2=0.16\), so \(\Delta_{0.4}=0.16\).

More generally, suppose an empirical risk differs from \(R\) by at most \(\delta\) uniformly and \(\hat c\) minimizes that empirical risk. Comparing \(\hat c\) with the population minimizer \(0\) gives \(R(\hat c)\le R_n(\hat c)+\delta\le R_n(0)+\delta\le R(0)+2\delta=2\delta\). Thus if \(\delta<0.08\), then \(R(\hat c)<0.16\), which rules out every center at distance at least \(0.4\). The empirical minimizer must lie within \(0.4\) of the population minimizing set.

Argmin Consistency Theorem

Theorem: Suppose \(\mathcal C\) is compact, \(R\) is continuous, \(\mathcal M=\arg\min_{c\in\mathcal C}R(c)\) is nonempty, and \(\sup_{c\in\mathcal C}|R_n(c)-R(c)|\xrightarrow{p}0\). For any measurable empirical minimizer \(\hat c_n\), \(d(\hat c_n,\mathcal M)\xrightarrow{p}0\), and \(R(\hat c_n)-R^*\xrightarrow{p}0\).

Proof of minimizing-set consistency. Fix \(\epsilon>0\). If \(A_\epsilon\) is empty, then every codebook is within \(\epsilon\) of \(\mathcal M\), so \(P(d(\hat c_n,\mathcal M)\ge\epsilon)=0\). Otherwise, let \(\Delta_\epsilon>0\) be the separation gap from the lemma and define \(\delta_n=\sup_{c\in\mathcal C}|R_n(c)-R(c)|\). Choose any \(m^*\in\mathcal M\). If \(\hat c_n\in A_\epsilon\), then

$$ R(\hat c_n)\ge R^*+\Delta_\epsilon, \qquad R(\hat c_n)\le R_n(\hat c_n)+\delta_n \le R_n(m^*)+\delta_n \le R^*+2\delta_n. $$

These inequalities cannot both hold when \(2\delta_n<\Delta_\epsilon\). Therefore \(P(d(\hat c_n,\mathcal M)\ge\epsilon)\le P(\delta_n\ge\Delta_\epsilon/2)\to0\). This holds for every \(\epsilon>0\), proving \(d(\hat c_n,\mathcal M)\xrightarrow{p}0\).

Proof of vanishing excess distortion. The excess is nonnegative because \(R^*\) is the minimum population risk. Again take any \(m^*\in\mathcal M\). By empirical optimality,

$$ 0\le R(\hat c_n)-R^* \le |R(\hat c_n)-R_n(\hat c_n)| +|R_n(m^*)-R(m^*)| \le 2\delta_n. $$

Since \(\delta_n\xrightarrow{p}0\), the nonnegative excess distortion also converges to zero in probability. \(\square\)

Worked Example: Multiple Population Minimizers

Let \(X\) equal \(-1\) or \(1\), each with probability \(1/2\), and take \(K=2\) with centers restricted to \([-1,1]\). A codebook containing both \(-1\) and \(1\) has population risk zero. Conversely, a codebook with risk zero must represent both possible values exactly, so the population minimizing set consists of the codebooks containing those two centers.

The empirical risk is also zero whenever both observed values occur. On that event, any empirical minimizer must contain both values: omitting either one would give positive distortion to observations at that value. Therefore, on this event the empirical minimizer belongs to \(\mathcal M\), and both its distance to \(\mathcal M\) and its excess distortion are zero.

The probability that the sample contains only \(1\) is \(2^{-n}\), and the probability that it contains only \(-1\) is also \(2^{-n}\). These events are disjoint for \(n\ge1\), so the probability that the sample fails to contain both values is \(2^{1-n}\). Thus, for every \(\epsilon>0\), \(P(d(\hat c_n,\mathcal M)>\epsilon)\le2^{1-n}\to0\). The conclusion concerns the minimizing set; it does not require choosing one particular population-optimal codebook.

Common Pitfall and Interpretation

A tempting but incorrect argument is: “The empirical risk converges to the population risk at each fixed codebook, so the empirical minimizer must converge to a population minimizer.” Pointwise convergence alone does not control the risk at a codebook that changes with the sample; a sample-dependent minimizer could exploit a location where the empirical risk is unusually low. The correction is to use uniform convergence, which bounds the discrepancy at every codebook at once, and then use separation to rule out codebooks a fixed distance from the population minimizing set.

The theorem establishes consistency of the optimizing set and vanishing population excess distortion. It does not require a unique population optimum, nor does it assert convergence to a particular representative when several optima exist. Compactness, continuity, and uniform convergence each have a distinct role: they ensure an optimum exists, create a positive gap away from its set, and make the empirical objective uniformly close enough to preserve that gap.

Check Your Understanding

Use the definitions and argument above to answer the following.

  1. Why does compactness of the codebook space help establish that the population minimizing set is nonempty?
  2. In the separation lemma, where is continuity of the population risk used?
  3. Explain why pointwise convergence of empirical risks does not directly control a sample-dependent empirical minimizer.
  4. What inequality bounds the population excess distortion of an empirical minimizer in terms of the uniform risk discrepancy?
  5. Why does the theorem give convergence to a set rather than necessarily to one codebook?
Clinical Biostats