Tutorials › Statistical Learning (Graduate) › Non-Nested Families And Complexity Indexing

Sieve and Structural Risk Minimization · Tutorial 234 of 989

Non-Nested Families And Complexity Indexing

Learn how to penalize non-nested candidate classes according to both their within-class complexity and the cost of searching across classes.

Intermediate 11 min read

What You'll Learn

  • Define non-nested candidate classes and distinguish class complexity from index complexity
  • Build class-specific penalties from finite-class deviation bounds and summable weights
  • Prove a simultaneous high-probability risk bound across all indexed classes
  • Derive the oracle guarantee for penalized empirical risk minimization
  • Compare non-nested selection with the corresponding bound over nested sieves
  • Identify why equal penalties can be inappropriate when classes have unequal search costs

Why Non-Nested Classes Need Their Own Complexity Accounting

Structural risk minimization (SRM) balances empirical fit against the cost of using a more complex candidate. A familiar setting has a nested sequence: every function in one class also belongs to the next. But useful candidate collections need not have that structure. A class of linear rules using one group of features, for example, may have little or no overlap with a class using a different group. There need not be a meaningful ordering by inclusion.

The selection principle still works. What changes is how complexity is recorded: each candidate class needs a bound on estimation error within that class, and the search across classes needs its own accounting. The result is an oracle comparison with every candidate class, without requiring that one class contain another.

Definition: An indexed family \(\{\mathcal F_j:j\in\mathcal J\}\) is non-nested if its classes are not ordered by set inclusion; in particular, there can be indices \(j,k\) for which neither \(\mathcal F_j\subseteq\mathcal F_k\) nor \(\mathcal F_k\subseteq\mathcal F_j\). A class-specific complexity bound controls the empirical-to-population risk deviation within \(\mathcal F_j\). An index weight \(w_j>0\) allocates part of a total probability budget to class \(j\), with \(\sum_{j\in\mathcal J}w_j\leq 1\).

For precision, suppose the observations \(Z_1,\ldots,Z_n\) are independent and identically distributed, the loss \(\ell(f,Z)\) is measurable and lies in \([0,1]\), and \(R(f)=E[\ell(f,Z)]\) and \(\widehat R_n(f)=n^{-1}\sum_{i=1}^n\ell(f,Z_i)\). In the finite-class construction below, assume \(\mathcal J\) is finite or countable and every \(\mathcal F_j\) is finite and nonempty. Write \(M_j=|\mathcal F_j|\). These assumptions make the selector and the probability bounds explicit; more general classes can use other valid uniform deviation bounds in place of the finite-class bound.

Constructing the Penalty

Within a finite class, a larger \(M_j\) requires a stronger uniform deviation allowance because more functions are being compared. Across classes, a small weight \(w_j\) means a small share of the overall error probability, and therefore a larger allowance for that class. For a chosen error probability \(\delta\in(0,1)\), define

$$ r_j(n,\delta) = \sqrt{\frac{\log\!\bigl(2M_j/(\delta w_j)\bigr)}{2n}}. $$

The logarithm contains two distinct costs: \(\log M_j\) for searching within class \(j\), and \(\log(1/w_j)\) for searching across the indexed collection. The penalty is not determined by whether classes are nested. It is determined by the deviation control available for each class and the chosen allocation of probability across indices.

Worked Example: Two Crossed Candidate Classes

There are two observed cases, with binary outcomes \(0\) and \(1\). A prediction rule is represented by the pair of predictions it makes on those cases, and the loss is the fraction of incorrect predictions. Let \(\mathcal F_1=\{(0,0),(1,1)\}\) and \(\mathcal F_2=\{(0,1),(1,0)\}\). The classes have equal size, but neither contains the other: they are disjoint. The observed outcome pair is \((0,1)\).

In \(\mathcal F_1\), each rule makes one error, so the minimum empirical risk is \(1/2\). In \(\mathcal F_2\), the rule \((0,1)\) makes no errors, so the minimum empirical risk is \(0\). Thus the empirical winner comes from \(\mathcal F_2\), despite there being no nesting or refinement relationship between the classes.

If both index weights are \(1/2\), then \(M_1=M_2=2\) and the penalties are identical: \(r_1=r_2=\sqrt{\log(8/\delta)/(2n)}\). Adding the same penalty to both empirical risks does not change the selection. This example illustrates what non-nestedness does and does not change: it removes an inclusion ordering, but it does not prevent a well-defined penalized comparison.

A Simultaneous Deviation Bound

The penalty is justified by controlling every function in every class at once. The finite-class result below uses Hoeffding's inequality for a bounded loss and a union bound. No inclusion relationship between the classes is needed.

Theorem: Suppose the observations are independent and identically distributed, the loss takes values in \([0,1]\), the indexed classes are finite, and the weights satisfy \(w_j>0\) and \(\sum_jw_j\leq1\). Then, with probability at least \(1-\delta\), for every \(j\) and every \(f\in\mathcal F_j\), \(\left|\widehat R_n(f)-R(f)\right|\leq r_j(n,\delta)\).

Proof. Fix a class \(j\) and a function \(f\in\mathcal F_j\). The \(n\) losses are independent and bounded in \([0,1]\), so Hoeffding's inequality gives \(P(|\widehat R_n(f)-R(f)|>r_j)\leq 2\exp(-2nr_j^2)\). Substituting the definition of \(r_j\) yields \(2\exp[-\log(2M_j/(\delta w_j))]=\delta w_j/M_j\). There are \(M_j\) functions in \(\mathcal F_j\), so the union bound makes the probability of any violation in class \(j\) at most \(\delta w_j\). Applying the union bound across the indices gives a total probability at most \(\sum_j\delta w_j\leq\delta\). Therefore the asserted simultaneous event has probability at least \(1-\delta\). \(\square\)

The weights are the step that pays for searching across classes. For \(J\) classes, equal weights \(w_j=1/J\) are valid and put a \(\log J\) term into each penalty. For a countable family, equal positive weights cannot sum to at most one; one must use a summable allocation, such as weights that decrease with the index. Assigning a very small weight to a class increases its penalty, as it should when that class receives a smaller share of the probability budget.

The Penalized Selector and Its Oracle Guarantee

Choose a function and index by minimizing empirical risk plus the class-specific penalty: \(\widehat f\in\mathcal F_{\widehat j}\), where \((\widehat j,\widehat f)\) minimizes \(\widehat R_n(f)+r_j(n,\delta)\) over all indexed candidates. For finite index sets and finite classes, a minimizer exists. For countable collections, a minimizing sequence can instead be used, with an arbitrarily small optimization tolerance.

Theorem: Under the assumptions of the simultaneous deviation theorem, the penalized selector satisfies, with probability at least \(1-\delta\), \[ R(\widehat f) \leq \inf_{j\in\mathcal J} \left\{ \inf_{f\in\mathcal F_j}R(f)+2r_j(n,\delta) \right\}. \] If the penalized objective is minimized only to within \(\varepsilon>0\), add \(\varepsilon\) to the right-hand side.

Proof. Work on the simultaneous event from the preceding theorem. For any \(j\) and \(f\in\mathcal F_j\), the deviation bound for the selected function gives \(R(\widehat f)\leq\widehat R_n(\widehat f)+r_{\widehat j}\). By the definition of the selector, \(\widehat R_n(\widehat f)+r_{\widehat j}\leq\widehat R_n(f)+r_j\). The deviation bound for \(f\) then gives \(\widehat R_n(f)\leq R(f)+r_j\). Combining these inequalities yields \(R(\widehat f)\leq R(f)+2r_j\). This holds for every \(j\) and every \(f\in\mathcal F_j\), so taking the infimum over \(f\) and then over \(j\) proves the claim. If the selector's objective is within \(\varepsilon\) of its infimum, the selection inequality gains an additive \(\varepsilon\), which carries through unchanged. \(\square\)

This is an oracle inequality: its right-hand side compares the selected rule with the best population-risk rule available in each candidate class, while charging that class for its complexity. The statement is about the risk of the selected rule, not about identifying a uniquely correct class. The minimum over classes need not be attained for the inequality to be meaningful.

Worked Example: Class Size and Index Weight Both Affect the Price

Consider three finite candidate classes with sizes \(M_1=1\), \(M_2=2\), and \(M_3=4\). Give them weights \(w_1=1/2\), \(w_2=1/4\), and \(w_3=1/4\), which sum to \(1\). Let \(n=100\) and \(\delta=0.1\). The respective penalties are \(r_j=\sqrt{\log(2M_j/(0.1w_j))/200}\).

For class 1, the logarithm is \(\log(40)\), so \(r_1=\sqrt{3.6889/200}\approx0.136\). For class 2, it is \(\log(160)\), so \(r_2=\sqrt{5.0752/200}\approx0.159\). For class 3, it is \(\log(320)\), so \(r_3=\sqrt{5.7683/200}\approx0.170\). Both the number of candidates within a class and its allocated weight affect the result. In this particular allocation, the increasing class sizes drive the penalties upward. If the classes were unrelated in their contents, the calculation would be exactly the same: the penalty requires their sizes and weights, not an ordering by inclusion.

How This Relates to Nested Sieves

A nested sieve is a special case of an indexed family: its classes happen to satisfy \(\mathcal F_1\subseteq\mathcal F_2\subseteq\cdots\). The finite-class guarantee above still applies, with penalties calibrated to the sizes or other deviation bounds of those classes and weights for the indices. Nesting can help describe how approximation opportunities change as classes grow, but it is not needed for the selection proof.

For non-nested classes, the same oracle form remains available, but it is important not to mistake an index for a universal scale. Index 3 need not mean “more complex” than index 2 unless the analyst has established that interpretation. The complexity assigned to each candidate should reflect its own deviation control; the weights should reflect the cost of searching the chosen collection. A large or hard-to-control class can receive a larger penalty, while a class with a strong bound can remain competitive even if it is not part of a nested sequence.

Worked Example: Comparing Penalized Empirical Risks

Suppose two non-nested classes have sizes \(M_1=2\) and \(M_2=8\), with equal weights \(w_1=w_2=1/2\). Let \(n=200\) and \(\delta=0.05\). The penalties are \(r_1=\sqrt{\log(160)/400}\approx0.113\) and \(r_2=\sqrt{\log(640)/400}\approx0.127\). Suppose their minimum empirical risks are \(0.18\) and \(0.14\), respectively.

The penalized values are \(0.18+0.113=0.293\) for class 1 and \(0.14+0.127=0.267\) for class 2. The selector chooses class 2. Its empirical advantage, \(0.04\), exceeds its extra penalty, approximately \(0.014\). On the simultaneous event, the oracle guarantee also says its risk is at most the best risk in class 1 plus \(2(0.113)\), and at most the best risk in class 2 plus \(2(0.127)\). The guarantee does not assert that class 2 is better in population; it bounds the selected risk relative to both options.

Common Mistakes and Practical Interpretation

  • Assuming an inclusion order is necessary. The proof compares each candidate directly through its empirical objective and deviation allowance. At no point does it require one class to contain another.
  • Using only within-class complexity. A bound for each class separately does not automatically cover selecting among many classes. The index weights (or an equivalent search-cost term) are what make the simultaneous statement valid.
  • Giving every class the same penalty without justification. Equal penalties can ignore differences in class size or deviation behavior. They are justified only when the available bounds support them.
  • Reading the oracle inequality as class recovery. It controls risk relative to candidate classes; it does not guarantee that the selected index is the best index in population or that it identifies a true model.
Key takeaway: SRM does not depend on nestedness. Construct a valid deviation allowance for each class, allocate probability across indices with summable weights, and minimize empirical risk plus the resulting class-specific penalty. The resulting oracle comparison covers every candidate class in the collection.

Check Your Understanding

Use the definitions and inequalities above to answer the following questions.

  1. What two distinct search costs appear in the finite-class penalty \(r_j(n,\delta)\)?
  2. Why must index weights sum to at most one when the classes are countable?
  3. In the oracle proof, where is the assumption that the classes are nested used?
  4. If a class's weight is reduced while its size and all other quantities stay fixed, what happens to its penalty, and why?
  5. What additional term appears in the oracle inequality if the penalized objective is minimized only to within \(\varepsilon\)?
Clinical Biostats