The Sample Complexity of Pattern Classification with Neural Networks: The Size of the Weights is More Important than the Size of the Network III: Sigmoid Networks with Small Weights GeneralizeResearch Paper
Motivation
A classifier built from a neural network produces a real score and predicts a binary label from its sign. A network can have many hidden units, so a guarantee based only on the number of parameters can be uninformative even when its output weights are small. Bartlett's 1998 paper asks whether a classifier's margin on training examples and the total magnitude of its weights can control its probability of error without fixing the number of units. Its Theorem 28 gives such a statement for two-layer networks whose activation is bounded and nondecreasing. The paper also discusses why this parameter-magnitude view supports weight decay and early stopping as learning heuristics, while leaving their algorithmic behavior outside the theorem's scope (Bartlett 1998, pp. 526, 534–535).
The theorem combines two results in the same paper. Theorem 2 turns the fat-shattering dimension of a real-valued function class into a margin generalization bound. Corollary 24 controls that dimension for finite combinations of affine-input units when the sum of the absolute combination weights is bounded. Lemmas 19, 22, and 23 supply covering estimates along that path. These are the milestones of this mission, with the source statements preserved in the milestone record (Bartlett 1998, pp. 527, 532–534).
Setting
An input is a vector , represented in Lean as Fin n → ℝ. A label is ; Lean's Bool is converted by pm, where true means . A probability distribution lives on labeled inputs. From an independent sample , the empirical margin error at scale is the fraction of indices with . The population error is the probability that , where . The inequality in the empirical error is strict, as in the paper's definition (Bartlett 1998, p. 526).
Fix a bounded nondecreasing activation . The first-layer class contains every , with an arbitrary weight vector and bias. The network class contains all finite sums with and . Thus bounds the output layer's total weight magnitude, while can vary without an imposed width limit. The bias is part of every unit. For a class , records the largest length of an input sequence whose every sign pattern can be realized with separation at least around one vector of thresholds (Bartlett 1998, pp. 526, 533–534).
Formalization targets
Two-layer generalization
For , , , and an independent sample of length , the goal is one universal such that, with probability at least , every satisfies
The paper prints in this display. That term vanishes at , although the class can then contain halfspace classifiers with nonzero sample complexity. The proof obtains a positive factor at that corner through Corollary 24 at scale , giving . The goal states this correction and records the printed statement separately in the moderation notes. The constant precedes all network, distribution, margin, confidence, and sample parameters in Lean; it cannot be selected after observing the instance (Bartlett 1998, pp. 533–534).
Capacity and margin milestones
Corollary 24 bounds by a constant multiple of when the activation has range . Theorem 2 then converts a finite fat dimension at scale into a simultaneous bound on population error for all members of . The three covering lemmas track how shattering, pseudodimension, and an weight budget affect covers in sample , , and distances. Each bound retains the scale and explicit constants printed by the paper, subject to the stated corrections to undefined or false boundary cases (Bartlett 1998, pp. 527, 532–533).
Significance
The goal gives a width-independent generalization guarantee for a chosen network when its empirical margin error and total output weight are small. It applies to the entire class at once, so choosing a network after inspecting the sample does not turn the bound into a claim about only one fixed predictor. It does not assert that a learning algorithm finds such a network or that the displayed constants are optimal. Bartlett notes that later work had improved a logarithmic factor, and that empirical agreement with neural-network performance remained an open experimental question at the time (Bartlett 1998, pp. 534–535).
The paper proves the mathematical result. This mission asks for a machine-checked proof of its corrected formal statement and the stated supporting results; the draft theorem files currently contain proof obligations. A completed development would also make the fat dimension and strict external sample-cover definitions available for other margin analyses. Those objects differ from the platform's fixed-architecture neural networks and closed-ball covering numbers, so they are defined here with the conventions of this paper.
Difficulty
Counting hidden units gives no finite width-independent capacity bound, because permits arbitrarily many terms. Bounding each unit separately also does not control the full combination class: different small contributions can produce distinct values on a sample. The challenging step is relating covers of the base class to covers of all finite combinations under the total absolute-weight constraint, and then relating those covers back to fat-shattering. Even once a finite capacity estimate is available, the probability statement must hold simultaneously for every , including a network selected after sampling (Bartlett 1998, pp. 532–534).
Formalization scope
Lean uses for fat dimensions and covering numbers, so an unbounded class cannot acquire a spurious dimension zero. Covers are external finite sets of real functions and use the strict distance of Definition 3. Sample and distances are normalized by . Pseudodimension is the supremum of positive-scale fat dimensions, matching the paper's right limit. Theorems assume , and sample indices are zero-based. The network class is generated from its weights rather than supplied as an arbitrary set satisfying the desired bound.
The paper says it ignores measurability issues and assumes all sets considered are measurable (Bartlett 1998, p. 526). The goal makes the event of a violating network measurable. Its individual network functions are measurable from monotonicity of and finite sums; the restated Theorem 2 has explicit hypotheses for measurable class members, the violating event, and the double-sample event in its proof. Theorem 2 additionally restricts to , where its printed logarithmic bound remains valid. Corollary 24 uses because a zero-dimensional input still permits a biased constant unit. Lemma 23 uses and in place of the printed : at or , or for , the printed strict inequality fails, while on the rest of the printed range it is kept. These are recorded as corrections rather than attributed to the printed wording.
The deeper-network part of Theorem 28 is outside this proposal. Its printed chain through Corollary 27 has an unresolved range issue when the input box bound is smaller than the activation range, and the displayed factor also vanishes at . This mission's goal is Part 1 and uses none of those claims. Contributions that establish the corrected covering lemmas, the capacity corollary, or the simultaneous margin bound fit the present proof frontier (Bartlett 1998, pp. 533–534).
Selected references
- P. L. Bartlett, The Sample Complexity of Pattern Classification with Neural Networks: The Size of the Weights is More Important than the Size of the Network, IEEE Transactions on Information Theory 44(2), 525–536, 1998. DOI.