Manuscript Psy01-A@1 · Psy01-A.tex · 94477fa3
Psy01-A Phased Magnitude Pruning in Task-Gated ReLU Networks: Cue Certificates, Stability, and Conditional Selectivity–Fragility Trade-offs
Specifies version 1 of an analytic framework for the task-gated ReLU architecture of the 067A phased-pruning model. thm:cueobstruction gives conflicting-task and ambiguous-cue bounds. thm:cuecertificate is a margin certificate for cue changes. thm:nothreshold exhibits a sparse member with perfect endpoint switching at a ten-percent target, so a universal cue-loss threshold near twenty percent density is false for the architecture class. thm:nesting shows that fixed-weight nested magnitude pruning agrees with one-shot pruning at the same integer retention counts. Schedule dependence requires learning, re-ranking, or a changed allocation rule. prop:harddiscontinuity shows that hard finite-width pruning does not generally define a Lipschitz density surface. thm:comparisontradeoff and prop:maximizer give a conditional non-monotonic selectivity-fragility trade-off and an increasing maximizing curve on an exactly solved affine-Gaussian comparison model. prop:equaldensity shows that identical masks and identical clean outputs need not determine identical stress tolerance. Quantum landmark results are not identified with these neural-network theorems. Em06-A, Em06-B, VII-H, VII-I, and VII-J are not premises. Psy02-A is a different project and is not an input. No empirical density threshold, biological pruning mechanism, or treatment recommendation is asserted. This is not metric reconstruction, not Einstein dynamics, not holographic identification, not a Page curve, and not spacetime emergence. It does not repair XI-G. It does not close O.1. O.1 stays NOT_CLOSED. The series Route B is not discharged. XVI-N is not discharged. XV-B is not opened. XVI-P is registered and is not a premise. H2, I3, and J2 stay unresolved. Full spacetime emergence is not constructed. No quantum coefficient is admitted. No compilation is asserted. Numerical execution is not asserted. Independent execution is not asserted.
Front matter
abstractAbstractFront matter · lines 97–125
Open as its own pagePhased pruning simulations suggest that late connection removal can alter resistance to cue interference and vulnerability to internal noise. Turning these observations into mathematics requires distinguishing statements about a particular trained network from universal statements about an architecture class. We provide a self-contained analytic framework for the task-gated ReLU architecture used in the 067A model. We prove cue-utilization bounds, an indistinguishability obstruction for conflicting tasks, parameter perturbation estimates, Gaussian stress certificates, exact identities for nested magnitude pruning, and conditional concentration bounds. An explicit sparse construction disproves a universal cue-loss threshold near twenty percent density. Fixed-weight nested pruning is shown to agree with one-shot pruning at the same integer retention counts; schedule dependence instead requires learning, re-ranking, or a change of allocation rule. Hard finite-width pruning does not generally define a Lipschitz density surface. A differentiable relaxation and an exactly solved affine-Gaussian comparison model provide valid replacements, including a conditional, non-monotonic selectivity–fragility trade-off and an increasing maximizing curve. We also establish that identical masks and identical clean outputs need not determine identical stress tolerance. Cheung's landmark manuscripts inform the separation of construction, fluctuation, observation, and causal claims, but their quantum results are not identified with neural-network theorems. A source-code audit supplies exact-count pruning and random-stream repairs. No empirical density threshold, biological pruning mechanism, or treatment recommendation is asserted as a mathematical consequence.
sectionFront matterFront matter · lines 125–131
Open as its own pageKeywords: magnitude pruning; task cues; ReLU networks; Gaussian perturbations; margin certificates; developmental models; concentration; causal interpretation.
Introduction and proof boundary
sectionIntroduction and proof boundaryIntroduction and proof boundary · lines 133–188
Open as its own pageCheung's phased-pruning study introduces a task-gated multilayer perceptron with early density manipulation, subsequent magnitude pruning, cue diagnostics, and hidden-activation noise CheungPruning. The supplied implementation
067a_code_sub_v2.pyand accompanying manuscriptCombined 067A Num v3 (1).docxare the specific objects audited here CheungSupplied067A.The mathematical question is not whether one can attach theorem labels to the reported numerical tables. It is which conclusions follow from explicitly stated assumptions, which require a checkpoint-specific certificate, and which are false for the architecture class.
Probabilistic pruning theory already provides approximation results under specified weight laws QianKlabjan. Recent one-shot magnitude-pruning analysis likewise uses explicitly restricted models Koyuncu. These works do not establish a universal task-cue threshold or a developmental trade-off for the trained 067A network. The lottery-ticket literature also distinguishes pruning, initialization, and subsequent optimization FrankleCarbin.
principal corrections. The following distinctions organize this paper.
Density is a connection-count control, not a sufficient statistic for cue use or noise sensitivity.
A magnitude mask is an orthogonal coordinate projection in parameter space. It is not generally an orthogonal projection of hidden representations.
Fixed masks commute. Fixed-weight nested magnitude pruning also has an exact nesting identity.
Learning between pruning operations can change rankings and therefore invalidate that identity.
Accuracy is a discontinuous decision functional. Lipschitz control of logits does not, without a margin assumption, give Lipschitz control of accuracy.
A smooth surrogate pruning surface is a changed mathematical object, not the finite hard-pruning surface.
An ambiguous cue has no intrinsically preferred task. Accuracy against visual labels measures visual-rule retention, not task-neutral ambiguity resolution.
of the results. All propositions and theorems below are proved either directly or by an explicitly identified standard concentration inequality. The affine-Gaussian phase diagram is an exactly solved comparison model. Its applicability to a saved ReLU network is conditional on a stated approximation certificate. The supplied numerical values are treated as reported observations, not independently reproduced results.
Definitions and exact pruning operators
sectionArchitecture and stochastic forward mapDefinitions and exact pruning operators › Architecture and stochastic forward map · Psy01-A@1#eq:forwardhidden, Psy01-A@1#eq:forwardoutput · lines 192–238
Open as its own pageLet
The input is , with and . For layer , let
and let be an unpruned bias.
For independent standard Gaussian vectors , define
Here . A deterministic tie convention, such as choosing the smallest maximizing class index, is fixed once and for all:
Equation (eq:forwardhidden) matches the supplied code: noise is added after each hidden ReLU, including during evaluation. The perturbed hidden state can therefore have negative coordinates.
The weight matrices contain
entries. There are bias parameters, so the total parameter count is .
definitionDefinition: Structural and numerical densityDefinitions and exact pruning operators › Architecture and stochastic forward map · lines 239–248
Open as its own pageThe structural density is
Numerical density counts nonzero stored parameters, possibly including biases. It is a different quantity. An active mask position can contain a numerically zero weight.
sectionCommon latent task distributionDefinitions and exact pruning operators › Common latent task distribution · lines 250–280
Open as its own pageLet be uniform on , and let
where
Define the fixed-point-free permutation
Thus is the identity and .
The visual task has label , whereas the voice task has label . Their input distributions are identical. For theoretical comparisons it is useful to evaluate both rules on the same latent sample , even though the supplied implementation generates separate visual and voice test datasets.
The cues are
sectionObservablesDefinitions and exact pruning operators › Observables · lines 281–300
Open as its own pageAll probabilities below are fractions in , not percentages. Unless stated otherwise, cue diagnostics use . Define
We abbreviate .
remarkRemark: TerminologyDefinitions and exact pruning operators › Observables · lines 301–309
Open as its own pageThe name “ambiguity tolerance” is retained for correspondence with the simulation. Mathematically is visual-reference accuracy under a midpoint cue. Interpreting it as selectivity requires successful endpoint performance and an explicit task interpretation. It is not, by itself, a measure of cognitive flexibility or clinical resistance to distraction.
sectionInteger retention countsDefinitions and exact pruning operators › Integer retention counts · Psy01-A@1#eq:integercounts, Psy01-A@1#eq:densityrounding · lines 311–341
Open as its own pageFor each matrix, order its eligible positions by descending absolute weight, breaking ties by increasing flattened index. Let retain exactly the first eligible positions. Eligibility is restricted to the current mask, so deleted positions cannot be reactivated.
For an early target , use
Removing a fraction of the surviving positions means
Consequently,
with equality zero possible at integer-aligned targets.
Thus is the continuous target law. The exact finite-network density is determined by the integer counts.
sectionTraining as part of the stateDefinitions and exact pruning operators › Training as part of the state · Psy01-A@1#eq:fullschedule · lines 342–370
Open as its own pageWrite for an augmented training state containing weights, masks, optimizer variables, and any required random-generator states. A specified training procedure is a map
where records the minibatch order and other exogenous choices.
The supplied training function creates a fresh Adam optimizer at each invocation. Hence its fine-tuning map includes an optimizer reset. Results for this map must not silently be transferred to a procedure that retains Adam moments.
A phased experiment has the form
The notation or suppresses the baseline, training procedure, and random inputs. These hidden arguments matter.
Cue utilization: valid certificates and a false threshold
theoremTheorem: Conflicting-task and ambiguous-cue boundsCue utilization: valid certificates and a false threshold › An information obstruction · Psy01-A@1#thm:cueobstruction, Psy01-A@1#eq:cueaccuracybound, Psy01-A@1#eq:balancedambiguous · proof attached · lines 376–432
Open as its own pageFor the task distribution above:
If the classifier is cue invariant on the test distribution, then
If it is also invariant under cue removal, then .
At the midpoint cue, the task-balanced accuracy satisfies
The same bounds hold for a randomized classifier if its randomization does not reveal the intended task.
Proof. For every realization of , the two events
are disjoint because . Their indicator sum is at most one. Taking expectations proves , and rearrangement gives
If the predictions under and agree almost surely, then , so , and the same disjointness argument gives . Agreement with the zero-cue prediction gives .
At the midpoint cue a single prediction can equal at most one of and . Multiplying the corresponding indicator sum by proves (eq:balancedambiguous). Conditioning on the classifier's randomization proves the last assertion.
corollaryCorollary: Successful endpoint switching requires cue influenceCue utilization: valid certificates and a false threshold › An information obstruction · lines 434–445
Open as its own pageIf
then
sectionAn information obstructionCue utilization: valid certificates and a false threshold › An information obstruction · lines 445–449
Open as its own pageThis is a certificate of cue-dependent rule use, not a theorem that a particular density must produce it.
sectionA quantitative cue boundCue utilization: valid certificates and a false threshold › A quantitative cue bound · Psy01-A@1#eq:marginlip · lines 450–475
Open as its own pageFor logits and true label , define the signed margin
The margin is -Lipschitz in the logit sup norm:
Split the first-layer matrix as
with . Put
theoremTheorem: Cue-sensitivity certificateCue utilization: valid certificates and a false threshold › A quantitative cue bound · Psy01-A@1#thm:cuecertificate, Psy01-A@1#eq:cuecertificate · proof attached · lines 476–509
Open as its own pageFor the unstressed network,
Let . Then
In particular, this bounds both and by using and , respectively.
Proof. ReLU is -Lipschitz in Euclidean norm. The first-layer difference is at most , and propagation through the remaining layers gives the logit bound.
If the absolute signed margin exceeds , (eq:marginlip) prevents a change in the sign of the margin. Correctness therefore cannot change. Ties are included in the exceptional event. Taking expectations proves (eq:cuecertificate).
remarkRemark: Endpoint equality is not zero-cue equalityCue utilization: valid certificates and a false threshold › A quantitative cue bound · lines 511–518
Open as its own pageThe condition makes the two endpoint representations equal, but need not make them equal to the zero-cue representation. The stronger condition eliminates all first-layer cue dependence. Downstream cancellation can also eliminate functional cue influence without eliminating cue weights.
theoremTheorem: No universal twenty-percent cue-loss thresholdCue utilization: valid certificates and a false threshold › A sparse counterexample · Psy01-A@1#thm:nothreshold, Psy01-A@1#eq:sparsecuebound, Psy01-A@1#eq:sparseconstruction · proof attached · lines 522–608
Open as its own pageThere is a member of the stated architecture class, obtainable by layer-wise magnitude pruning to ten percent target density, with perfect endpoint switching on the noiseless cluster centers. For Gaussian cluster noise , the same construction satisfies
In particular, cue use does not follow from density alone, and a universal bound at all densities below a threshold near is false as .
Proof. Write with , and put . Use eight first-layer units indexed by and :
At and , exactly the matching unit has value ; every other unit has value zero.
Relay these eight nonnegative coordinates through eight identity connections in each of the next two hidden layers. The head sends to visual label and to voice label . There are essential nonzero weights.
Now let . On
the matching unit remains positive and every other unit remains zero. Thus both tasks are correctly classified on .
For independent , the variables and are independent variables, and
Therefore . We have , and Theorem thm:cueobstruction gives .
It remains to realize the prescribed layer-wise counts. At ten percent density the counts are
Pad the essential connections with weights of magnitude in dormant units. First-layer dormant units have sufficiently negative biases to vanish on the compact set around all four centers. In the next two layers, place padding connections inside dormant-to-dormant blocks and keep their biases negative. In the head, padding uses dormant columns. The available block sizes exceed all required padding counts.
Give every position intended for deletion a magnitude strictly below . Essential magnitudes are at least one. Layer-wise magnitude pruning therefore retains all essential connections and exactly the required padding. Padding contributes nothing on . On noiseless centers, and . As , , disproving the proposed asymptotic upper bound.
remarkRemark: What the reported transition can meanCue utilization: valid certificates and a false threshold › A sparse counterexample · lines 610–617
Open as its own pageThe supplied table reports impaired voice performance at ten percent and successful endpoint switching at twenty percent. This identifies a transition between those tested settings for that run. It does not establish a universal threshold, and the proposed inequality for all is already inconsistent with the reported successful twenty-percent network.
remarkRemark: Random masks do not justify cue-column erasureCue utilization: valid certificates and a false threshold › A sparse counterexample · lines 619–629
Open as its own pageFor an independent Bernoulli retention mask with probability , and a first-layer cue block containing nonzero entries, the probability that the entire block is deleted is
This calculation does not apply to trained magnitude masks, but it demonstrates why independent-mask concentration is not a proof that ten-percent density removes all cue channels.
Stress certificates and a conditional trade-off
sectionStress certificates and a conditional trade-offStress certificates and a conditional trade-off · lines 632–640
Open as its own pageMargin-based robustness arguments are standard Tsuzuku. Gaussian randomized smoothing also has a rigorous literature Cohen. The observable here is different: is ordinary accuracy averaged over hidden perturbations, not the certified adversarial accuracy of a smoothed classifier.
sectionA global Gaussian certificateStress certificates and a conditional trade-off › A global Gaussian certificate · lines 641–649
Open as its own pagePut
with the usual empty-product convention.
theoremTheorem: Global stress lower boundStress certificates and a conditional trade-off › A global Gaussian certificate · Psy01-A@1#thm:globalstress, Psy01-A@1#eq:stresspathbound, Psy01-A@1#eq:globalstress · proof attached · lines 650–693
Open as its own pageFor any input and Gaussian realization,
Let , let , and define
Then
The right side may be truncated below at zero.
Proof. Apply the -Lipschitz property of ReLU recursively. The noise introduced at hidden layer is propagated through the downstream operator norms, giving (eq:stresspathbound).
For a standard scalar Gaussian , . A union bound over the hidden-noise coordinates shows that all coordinates have magnitude at most with probability at least . On that event,
If the clean true-label margin exceeds , equation (eq:marginlip) preserves correct classification. Subtracting the probability of the exceptional noise event proves (eq:globalstress).
sectionA global Gaussian certificateStress certificates and a conditional trade-off › A global Gaussian certificate · lines 693–697
Open as its own pageThis bound is conservative but applies to the full nonlinear network without assuming fixed activation gates.
sectionA local affine Gaussian responseStress certificates and a conditional trade-off › A local affine Gaussian response · Psy01-A@1#eq:frozengaussian, Psy01-A@1#eq:gateerror · lines 698–748
Open as its own pageFor a fixed input , let
where is the clean forward pass. Freeze these gates and define
Let
Then
where is standard Gaussian.
For , define
Assume the deterministic preactivations at these gates are nonzero. Define
where a summand is zero if .
theoremTheorem: Frozen-gate response with an explicit exit errorStress certificates and a conditional trade-off › A local affine Gaussian response · Psy01-A@1#thm:frozengates, Psy01-A@1#eq:stresslower, Psy01-A@1#eq:stressupper · proof attached · lines 749–813
Open as its own pageFor , the noisy ReLU network and (eq:frozengaussian) agree with probability at least .
For true label , let
and put
For zero variance use . Assume no zero-variance pair has ; otherwise its deterministic tie is handled directly. Conditional stressed accuracy satisfies
Proof. The first hidden gate is unaffected by hidden noise because its input is deterministic. At a later layer, the frozen preactivation at coordinate has mean and variance . Its sign differs from the clean sign with the probability appearing in (eq:gateerror).
If none of the frozen preactivation signs differs, induction over the layers shows that the actual and frozen networks coincide. A union bound proves the claimed agreement probability.
Each frozen pairwise margin is Gaussian:
Its probability of being positive is . Correct classification requires all three pairwise margins to be positive. A union bound gives the lower bound , and containment in each pairwise event gives the upper bound . Changing from the frozen to the actual network costs at most . Truncation gives the displayed bounds.
sectionA local affine Gaussian responseStress certificates and a conditional trade-off › A local affine Gaussian response · lines 813–819
Open as its own pageAveraging these bounds over yields population stress certificates. Crucially, a smaller lower bound is not proof of a smaller actual accuracy. A strict comparison needs an upper bound for one network and a lower bound for the other.
corollaryCorollary: Certified stress orderingStress certificates and a conditional trade-off › A local affine Gaussian response · Psy01-A@1#cor:stressordering · lines 820–830
Open as its own pageLet be an averaged lower bound for , and let be an averaged upper bound for , obtained from Theorem thm:frozengates or another valid certificate. If , then
propositionProposition: Same clean function, different stress toleranceStress certificates and a conditional trade-off › Equal density does not determine fluctuation sensitivity · Psy01-A@1#prop:equaldensity · proof attached · lines 834–866
Open as its own pageThere are networks with identical masks and identical clean logits for every input, but different stressed accuracies at every fixed .
Proof. Disconnect the first two hidden layers from a selected third-layer unit by setting its incoming weights to zero. Give that unit bias , so its clean activation is and its stressed activation is . Set its weight to output class equal to . Let the other class logits be , using output biases.
For every input, the clean logits are
For a test distribution with label , stressed correctness is equivalent to
and hence
All masks and all nonzero-position counts are unchanged as varies. Upstream noise cannot influence this output. The clean function is unchanged, but the stressed accuracy is strictly increasing in .
sectionEqual density does not determine fluctuation sensitivityStress certificates and a conditional trade-off › Equal density does not determine fluctuation sensitivity · lines 866–871
Open as its own pageThe counterexample uses a simple test law to disprove a universal density-only assertion. It is not presented as a fit to the four-cluster experiment.
propositionProposition: Positive rescaling and stress calibrationStress certificates and a conditional trade-off › Equal density does not determine fluctuation sensitivity · Psy01-A@1#prop:rescaling · proof attached · lines 872–901
Open as its own pageLet be positive diagonal matrices, with . Transform a clean ReLU network by
The clean logits are unchanged.
Under the same isotropic noise intensity in the transformed coordinates, its stressed logits equal those of the original network with hidden noises
Thus preserving the clean function does not preserve a fixed-coordinate isotropic stress experiment.
Proof. For positive diagonal , . Induction gives in the clean network and identical head logits. With noise, write and apply the same induction.
remarkRemark: Magnitude rankings are representation dependentStress certificates and a conditional trade-off › Equal density does not determine fluctuation sensitivity · lines 903–908
Open as its own pagePositive rescaling also changes weight magnitudes and can change the selected pruning mask while preserving the original clean function. A magnitude-pruning theorem therefore needs a specified parameterization, not just a specified input–output function.
sectionAn exactly solved selectivity–fragility comparison modelStress certificates and a conditional trade-off › An exactly solved selectivity–fragility comparison model · Psy01-A@1#eq:comparisonparameters, Psy01-A@1#eq:comparisonmargin, Psy01-A@1#eq:comparisonobservables · lines 911–952
Open as its own pageThe following model is a deliberately declared affine-Gaussian comparison. It is not a differentiable rewriting of the actual finite magnitude mask.
Let , , , and set
where and . For two conflicting rules, take the visual-versus-voice logit difference to be
where are independent standard Gaussians and . The visual label is selected when .
At zero stress,
For the correct visual cue,
assumptionAssumption: Comparison-model parameter conditionsStress certificates and a conditional trade-off › An exactly solved selectivity–fragility comparison model · Psy01-A@1#ass:comparison, Psy01-A@1#eq:cuepreservation · lines 953–966
Open as its own pageAssume
and
theoremTheorem: Conditional non-monotonic trade-off and maximizing curveStress certificates and a conditional trade-off › An exactly solved selectivity–fragility comparison model · Psy01-A@1#thm:comparisontradeoff, Psy01-A@1#eq:explicitpeak, Psy01-A@1#eq:comparisoncue · proof attached · lines 968–1062
Open as its own pageUnder Assumption ass:comparison:
For , is maximized at .
For , its unique maximizer is
This curve is strictly increasing.
For ,
whenever
The ambiguity surface is non-monotonic in , with its peak at (eq:explicitpeak).
For every fixed , is strictly decreasing in . It is also strictly decreasing as increases along the maximizing curve , .
Endpoint cue use remains nonzero. More precisely, if
then the zero-stress cue drop satisfies
The bound can be made arbitrarily close to one by increasing the separation .
Proof. Because is strictly increasing, maximizing is equivalent to maximizing
Its derivative is , and its second derivative is . For , the maximum is at zero. For , the stationary point is (eq:explicitpeak), and the first parameter condition puts it inside . Also,
which proves the strict-gain interval.
Put
Condition (eq:cuepreservation) gives . Furthermore,
Therefore , proving the fixed- stress ordering.
Along the maximizing curve,
The denominator is strictly increasing. The ratio, and consequently , is strictly decreasing along that curve.
Finally, the two endpoint probabilities against the visual reference are
The first is at least , and the second is at most . Their difference proves (eq:comparisoncue).
exampleExample: A nonempty parameter classStress certificates and a conditional trade-off › An exactly solved selectivity–fragility comparison model · lines 1064–1077
Open as its own pageTake
Then
so the assumptions hold. Increasing strengthens endpoint cue use without changing the maximizing curve.
remarkRemark: The threshold is assumed through a declared mechanismStress certificates and a conditional trade-off › An exactly solved selectivity–fragility comparison model · lines 1079–1087
Open as its own pageThe number is a parameter of the comparison model. Theorem thm:comparisontradeoff does not estimate a threshold for the trained 067A architecture. The term explicitly encodes an initial interference reduction followed by excessive-loss damage. The theorem proves the consequences of that mechanism rather than deriving it from magnitude ranking.
theoremTheorem: Strict trade-off transferStress certificates and a conditional trade-off › Transfer to a ReLU checkpoint · Psy01-A@1#thm:transfer · proof attached · lines 1091–1130
Open as its own pageFor two specified ReLU checkpoints , suppose a declared comparison model gives observables , and valid error certificates give
If
and
then
Proof. Subtract the two accuracy inequalities:
Apply the same argument to .
sectionTransfer to a ReLU checkpointStress certificates and a conditional trade-off › Transfer to a ReLU checkpoint · lines 1130–1136
Open as its own pageThe errors must include activation-gate exits, approximation of the input distribution, and any reduction of a four-class decision to a single competing margin. A binary Gaussian formula alone is not a certificate for a four-class nonlinear network.
Stability, hard-mask discontinuity, and schedule dependence
sectionLogit perturbationStability, hard-mask discontinuity, and schedule dependence › Logit perturbation · lines 1140–1152
Open as its own pageConsider two networks , evaluated on the same input and the same hidden Gaussian vectors. Define
theoremTheorem: Parameter-to-logit stabilityStability, hard-mask discontinuity, and schedule dependence › Logit perturbation · Psy01-A@1#thm:parameterstability, Psy01-A@1#eq:parameterstability · proof attached · lines 1153–1188
Open as its own pageFor common stress intensity ,
The expectation of the right side is finite for the stated Gaussian task distribution and fixed finite parameters.
Proof. For hidden layers, common additive noise cancels when the two states are subtracted. Hence
The same inequality, without ReLU, holds at the head. Starting from equal inputs and iterating proves (eq:parameterstability).
The Gaussian input has finite first moment. Recursively,
so all hidden first moments are finite.
remarkRemark: A spectral norm need not decrease after maskingStability, hard-mask discontinuity, and schedule dependence › Logit perturbation · lines 1190–1204
Open as its own pageFor example,
have operator norms and , respectively. Thus a universal bound using only the unpruned operator norm is not justified by masking. The always valid bound is weaker.
sectionLogit perturbationStability, hard-mask discontinuity, and schedule dependence › Logit perturbation · lines 1204–1216
Open as its own pageIf entries of magnitude at most are removed from a frozen matrix, then
This provides a deterministic pruning-error input for Theorem thm:parameterstability, in the spirit of network approximation bounds QianKlabjan.
theoremTheorem: Accuracy and surrogate stabilityStability, hard-mask discontinuity, and schedule dependence › Accuracy needs a margin assumption · Psy01-A@1#thm:accuracystability, Psy01-A@1#eq:accuracyexpectation, Psy01-A@1#eq:accuracyuniform, Psy01-A@1#eq:surrogatestability · proof attached · lines 1219–1289
Open as its own pageLet
under the common input/noise coupling, and let denote the corresponding accuracy. For every ,
If almost surely, then
If
then (eq:accuracyexpectation) yields a modulus after optimizing . Under the uniform bound and , accuracy is Lipschitz in the certified logit perturbation.
For the bounded ramp
one has the unconditional estimate
Proof. Correctness can change only when . This event is contained in
Markov's inequality gives (eq:accuracyexpectation). The uniform version is immediate. Substitution of and minimization over gives the stated modulus.
The ramp has Lipschitz constant . Equation (eq:marginlip) gives
Taking expectations proves (eq:surrogatestability).
propositionProposition: Finite hard pruning is not generally continuousStability, hard-mask discontinuity, and schedule dependence › Why hard density is not a Lipschitz control · Psy01-A@1#prop:harddiscontinuity · proof attached · lines 1293–1318
Open as its own pageWith frozen weights and exact retention counts, the hard-pruning map is a step function of the requested density. It can have nonzero jumps in logits and accuracy. Consequently a general Lipschitz theorem for is false without further assumptions.
Proof. The count is locally constant between its integer thresholds and changes by one at a threshold. Retaining or deleting a nonzero weight therefore gives a parameter jump.
For an accuracy jump, consider a constant ReLU feature equal to one and two output logits
Retaining the positive output weight gives class ; deleting it gives class . Extra inactive units and output classes embed the example in the stated architecture. For a class- test law, accuracy jumps from one to zero. Thus continuity, and hence a global Lipschitz bound, fails.
sectionWhy hard density is not a Lipschitz controlStability, hard-mask discontinuity, and schedule dependence › Why hard density is not a Lipschitz control · lines 1318–1325
Open as its own pageOn a region containing no count transition, frozen hard pruning is constant, so a local Lipschitz statement there is trivial. Fine-tuning does not restore a general continuity theorem: its dependence on masks, rankings, and training inputs must also be controlled.
sectionA valid differentiable relaxationStability, hard-mask discontinuity, and schedule dependence › A valid differentiable relaxation · Psy01-A@1#eq:softcount · lines 1326–1342
Open as its own pageFor fixed weights and temperature , define
Choose by
The left side is continuous, strictly decreasing from one to zero, so exists uniquely. Define .
propositionProposition: Smooth soft-density controlStability, hard-mask discontinuity, and schedule dependence › A valid differentiable relaxation · Psy01-A@1#prop:softdensity, Psy01-A@1#eq:softderivative · proof attached · lines 1343–1378
Open as its own pageOn a compact parameter set with bounded away from zero and one, define
Then has a positive minimum, and
Moreover,
The ramp observables in Theorem thm:accuracystability are Lipschitz in on such compact sets, with constants obtained from (eq:parameterstability), (eq:surrogatestability), and (eq:softderivative).
Proof. Implicit differentiation of (eq:softcount) gives the formula for . Each summand is positive, and continuity on a compact interval gives a positive minimum for . Differentiating the sigmoid and using proves (eq:softderivative). The stability estimates then give the stated Lipschitz bound.
sectionA valid differentiable relaxationStability, hard-mask discontinuity, and schedule dependence › A valid differentiable relaxation · lines 1378–1382
Open as its own pageThe parameter here is an average soft gate, not a count of nonzero connections. This distinction is part of the theorem.
theoremTheorem: Fixed-weight nesting and fixed-mask commutationStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · Psy01-A@1#thm:nesting, Psy01-A@1#eq:nesting, Psy01-A@1#eq:fixedmaskcommutation · proof attached · lines 1385–1412
Open as its own pageFor fixed weights, consistent tie breaking, and ,
The statement holds layer by layer. Therefore early pruning followed by late pruning, with no intervening weight update, agrees with one-shot pruning to the same final integer counts.
For fixed masks , their parameter projections satisfy
Proof. The top positions in a fixed ranking are a subset of the top positions. Ranking the eligible survivors therefore selects exactly the original top . If some selected values are zero, the resulting weight vector still satisfies (eq:nesting). Equation (eq:fixedmaskcommutation) follows coordinatewise from multiplication of zeros and ones.
sectionNested pruning and a quantitative learning-induced defectStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · lines 1412–1417
Open as its own pageThe target product must not replace the integer counts in this identity: independent rounding conventions can produce a one-shot count different from the nested count.
theoremTheorem: Ranking stability after an updateStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · Psy01-A@1#thm:ranking, Psy01-A@1#eq:rankingstable, Psy01-A@1#eq:rankingcoarse · proof attached · lines 1418–1460
Open as its own pageLet , let be an update that respects the early mask, and let . If the eligible magnitude gap at the late cutoff is
and
then the selected late support is unchanged and
Without a gap assumption, the always valid estimate is
Proof. For an originally retained position and an originally excluded position, the magnitude ordering can change by at most . The gap condition preserves every cross-cutoff ordering. On the common support the difference is the projection of , proving (eq:rankingstable).
For the second inequality, is a best -term Euclidean approximation among eligible coordinates, so
Use the triangle inequality between .
exampleExample: An intervening update changes the final supportStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · lines 1462–1479
Open as its own pageLet . Early retention of two coordinates gives . One gradient step of size one for
gives . Late retention of one coordinate gives
whereas one-shot pruning of the original vector gives
Their Euclidean distance is . This is learning-induced re-ranking, not noncommutation of fixed masks.
propositionProposition: A projection–gradient commutator boundStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · Psy01-A@1#prop:gradientcommutator, Psy01-A@1#eq:gradientcommutator · proof attached · lines 1481–1506
Open as its own pageLet be a fixed parameter-coordinate projection and let
If is -Lipschitz on the relevant segment, then
Proof. Direct calculation gives
Add and subtract , then use the Lipschitz and triangle inequalities.
sectionNested pruning and a quantitative learning-induced defectStability, hard-mask discontinuity, and schedule dependence › Nested pruning and a quantitative learning-induced defect · lines 1506–1512
Open as its own pageEquation (eq:gradientcommutator) is a bound for the specified smooth gradient step. Adam and ReLU optimization require their own augmented-state assumptions; the formula is not an unproved Adam stability theorem.
propositionProposition: Existence and a conditional maximizing branchStability, hard-mask discontinuity, and schedule dependence › Maximizers of a general smooth surface · Psy01-A@1#prop:maximizer, Psy01-A@1#eq:implicitpeak, Psy01-A@1#eq:stressalongpeak · proof attached · lines 1515–1551
Open as its own pageLet be continuous on a compact rectangle. For each , at least one maximizing exists.
Suppose, near , that is , is the unique interior global maximizer,
Then, after restricting to a neighborhood of , the maximizer is a branch satisfying
An increasing branch therefore requires a sign condition on . For a smooth stress surface , stress decreases along this branch exactly when
The condition alone does not imply (eq:stressalongpeak).
Proof. Existence is the extreme-value theorem. The implicit-function theorem applied to gives the local branch and (eq:implicitpeak). Negative second derivative preserves a local maximum. Uniqueness of the original global maximum, compactness outside a small neighborhood, and continuity preserve its global status for nearby . Equation (eq:stressalongpeak) is the chain rule.
sectionMaximizers of a general smooth surfaceStability, hard-mask discontinuity, and schedule dependence › Maximizers of a general smooth surface · lines 1551–1555
Open as its own pageHard finite pruning need not have a unique maximizing curve: it can have plateaus, multiple maximizers, and jumps.
Concentration: what survivor counts do and do not imply
sectionAn independent-mask comparisonConcentration: what survivor counts do and do not imply › An independent-mask comparison · lines 1559–1565
Open as its own pageThe matrix theorem below is a direct specialization of the rectangular matrix Bernstein inequality Tropp. It is not a theorem about the trained deterministic magnitude masks.
theoremTheorem: Bernoulli-mask matrix concentrationConcentration: what survivor counts do and do not imply › An independent-mask comparison · Psy01-A@1#thm:maskbernstein, Psy01-A@1#eq:matrixbernstein, Psy01-A@1#eq:frobeniusvariance · proof attached · lines 1566–1618
Open as its own pageLet be fixed, and let the entries of be independent Bernoulli variables with retention probability . Define
and
For , in the nondegenerate case,
Furthermore,
Proof. Write
The summands are independent, mean zero, and have norm at most . The two matrix variance sums are diagonal:
Their maximal operator norm is . The rectangular matrix Bernstein inequality gives (eq:matrixbernstein). Taking the expectation of the sum of squared entries gives (eq:frobeniusvariance).
remarkRemark: Why a count is insufficientConcentration: what survivor counts do and do not imply › An independent-mask comparison · lines 1620–1627
Open as its own pageThe expected survivor count is , but the variance parameter also depends on the row and column energy distribution. Two matrices can have the same survivor count and very different , downstream amplification, and classification margins. A count-only observable concentration claim requires additional normalization and influence bounds.
theoremTheorem: Observable concentration under bounded edge influenceConcentration: what survivor counts do and do not imply › A classical residual-influence theorem · Psy01-A@1#thm:edgeconcentration, Psy01-A@1#eq:efronsteinmask, Psy01-A@1#eq:mcdiarmidmask · proof attached · lines 1631–1666
Open as its own pageLet be independent Bernoulli mask variables, with probabilities . Let be a bounded scalar observable, and suppose replacing coordinate can change by at most , uniformly over the other coordinates. Then
If and , then
Proof. Let replace by an independent copy. The Efron–Stein inequality EfronStein gives
The two Bernoulli values differ with probability , and the squared difference is at most , proving (eq:efronsteinmask). The bounded-differences inequality McDiarmid gives (eq:mcdiarmidmask). Substitute for the last claim.
sectionA classical residual-influence theoremConcentration: what survivor counts do and do not imply › A classical residual-influence theorem · lines 1666–1673
Open as its own pageThe assumptions are substantive. A discontinuous accuracy functional can have large , and retraining can propagate the influence of one deleted edge. Neither independence nor bounded influence follows from a residual weight count.
theoremTheorem: Conditional evaluation concentrationConcentration: what survivor counts do and do not imply › Held-out evaluation uncertainty · Psy01-A@1#thm:evaluation, Psy01-A@1#eq:hoeffdingacc, Psy01-A@1#eq:simultaneousradius, Psy01-A@1#eq:paireddifference · proof attached · lines 1676–1711
Open as its own pageCondition on a fixed trained network independent of the held-out sample. For independent test outcomes, let estimate an accuracy . Then
For prespecified observables evaluated on the same independent examples, their simultaneous accuracy radius at confidence is
For a paired difference of two correctness indicators, including a cue drop or a pruning-arm difference,
Proof. Correctness indicators lie in , so Hoeffding's inequality Hoeffding gives (eq:hoeffdingacc). A union bound over observables gives (eq:simultaneousradius). A paired difference lies in , an interval of length two. The same inequality gives (eq:paireddifference).
sectionHeld-out evaluation uncertaintyConcentration: what survivor counts do and do not imply › Held-out evaluation uncertainty · lines 1711–1724
Open as its own pageFor repeated stress draws on the same held-out inputs, a radius based on independent noise outcomes controls Monte Carlo error conditional on those inputs. It does not turn reused inputs into independent population examples.
Selecting a preferred density after viewing test results requires accounting for the selection, for example through a simultaneous bound or a separate validation set. Variation across density settings is not a confidence interval for variation across independent training seeds.
Landmark components: justified incorporation and boundaries
sectionLandmark components: justified incorporation and boundariesLandmark components: justified incorporation and boundaries · lines 1726–1734
Open as its own pageThe supplied landmark material is useful principally for proof discipline: name the object, state its domain, separate its mean from its fluctuations, specify its observation, and do not infer influence from a scheduled dependency. These principles can be implemented without identifying quantum fields with network weights.
sectionEm06-A and Em06-B: means, fluctuations, and control inputsLandmark components: justified incorporation and boundaries › Em06-A and Em06-B: means, fluctuations, and control inputs · lines 1735–1764
Open as its own pageCheung's Em06-A treats a scalar-only coherent limit with a classical metric input, rather than an unrestricted joint metric–scalar quantum construction CheungEm06A. The supplied Em06-B excerpt retains ordered Weyl correlations and an explicit state-dependent concentration bound CheungEm06B.
The present paper incorporates the analogous separation of questions, not the same theorem:
concentration of an empirical accuracy is established by Theorem thm:evaluation;
concentration of an independently masked matrix is established by Theorem thm:maskbernstein;
concentration of an observable under independent masks requires the influence assumptions of Theorem thm:edgeconcentration;
equal connection counts do not fix fluctuation sensitivity, as Proposition prop:equaldensity proves directly;
input-control stability is proved for logits and smooth observables, and for accuracy only with a margin condition.
A bosonic residual number expectation is not a surviving-edge count. The CCR parameter is not a pruning density. No Fock space, Weyl relation, or quantum state is an assumption of the neural-network results.
sectionVII-H: a finite observation certificate, not contact termsLandmark components: justified incorporation and boundaries › VII-H: a finite observation certificate, not contact terms · lines 1765–1775
Open as its own pageCheung's VII-H constructs a specified free Wick-square response, classifies its permitted normalization ambiguity, and then constructs an invariant observation CheungVIIH. Its contact distributions are not task-cue interference terms.
A useful finite-dimensional counterpart can nevertheless be proved independently.
propositionProposition: Finite-bank nuisance separationLandmark components: justified incorporation and boundaries › VII-H: a finite observation certificate, not contact terms · Psy01-A@1#prop:bank · proof attached · lines 1776–1805
Open as its own pageLet a declared response bank be , and let the complete permitted nuisance class be
A linear readout is invariant under every permitted nuisance exactly when
There exists such a readout with nonzero response if and only if
Proof. Invariance means for every , which is equivalent to . The orthogonal complement of is . If is outside the range, choose ; then . If is in the range, every invariant readout annihilates it.
sectionVII-H: a finite observation certificate, not contact termsLandmark components: justified incorporation and boundaries › VII-H: a finite observation certificate, not contact terms · lines 1805–1810
Open as its own pageThe nuisance class must actually be declared and complete for the question being asked. Accuracy is nonlinear and does not automatically inherit this linear invariant.
sectionVII-I: finite-width products are not network-layer productsLandmark components: justified incorporation and boundaries › VII-I: finite-width products are not network-layer products · lines 1811–1823
Open as its own pageVII-I concerns finite-width free polynomial products and sharp-prescription incompatibility CheungVIII. The three hidden layers here are compositions of ordinary finite-dimensional maps. They are not a free quantum algebra. Their fixed parameter masks obey the commuting identity (eq:fixedmaskcommutation).
The legitimate incorporation is therefore to retain representation and operation boundaries, not to transfer a quantum incompatibility theorem to pruning masks.
sectionVII-J: schedule, influence, and biological causalityLandmark components: justified incorporation and boundaries › VII-J: schedule, influence, and biological causality · lines 1824–1830
Open as its own pageThe supplied VII-J example uses two successive SWAP operations to show that a scheduled cross-register path need not survive as actual influence CheungVIIJ. The same distinction is important here.
definitionDefinition: Three levels of causal statementLandmark components: justified incorporation and boundaries › VII-J: schedule, influence, and biological causality · lines 1831–1844
Open as its own pageScheduled dependency: the experimental program applies an early operation before a late operation.
Within-model influence: changing an operation while holding specified exogenous inputs fixed changes a named network observable.
Biological causal relation: the mathematical control corresponds to a mechanism in a biological population. This correspondence requires independent empirical justification.
sectionVII-J: schedule, influence, and biological causalityLandmark components: justified incorporation and boundaries › VII-J: schedule, influence, and biological causality · Psy01-A@1#eq:causalcontrast · lines 1844–1862
Open as its own pageFor a specified exogenous training input and test/noise input , define a potential outcome
A within-model intervention contrast is
The expectation is defined only after the exogenous law has been supplied and the operations have been specified. Paired random streams implement a controlled comparison; the existence of a program arrow does not establish a nonzero contrast.
sectionHidden stress is not merely readout noiseLandmark components: justified incorporation and boundaries › Hidden stress is not merely readout noise · lines 1863–1887
Open as its own pageLet be the classical probability kernel of logits generated by hidden stress. It depends on the network dynamics. An additional, independent output measurement error would be another kernel , giving the observed law
These are different operations.
The noise in (eq:forwardhidden) changes the internal computation before the classifier head. Calling it an extrinsic measurement POVM would misidentify the supplied experiment. No quantum measurement model is required or claimed here.
Even Gaussian noise does not universally decrease accuracy: for a binary Gaussian margin with negative mean , increases toward as increases. Noise-induced degradation therefore requires a specified correct-margin regime or a direct certificate.
Comparison with the supplied observations and code audit
sectionReported observations are not theorem premisesComparison with the supplied observations and code audit › Reported observations are not theorem premises · Psy01-A@1#tab:reported · lines 1891–1959
Open as its own pageThe following values are taken from the supplied manuscript, not from a new computation.
reported observations and their admissible interpretation.
Setting Reported quantity Interpretation retained here Early density 10\%Visual 99.9\%, voice50.1\%, cue drop50.3\%Partial loss of successful task switching in this run; not complete mathematical cue invariance. Early density 20\%Both tasks approximately 100\%; cue drop approximately99.9\%Successful endpoint cue use; contradicts an asserted low-cue bound applying to all densities at or below twenty percent. Early density 90\%, late removal50\%Continuous-sweep ambiguity 98.9\%; discrete-arm ambiguity53.8\%The same nominal controls do not identify the same trained checkpoint. The discrepancy requires a training/provenance audit. Continuous peak locations At early 40,70,90\%, late peaks at10,60,50\%The reported peaks are not globally increasing across these three settings. They do not prove an increasing maximizer curve. The midpoint-cue evaluation is deterministic for fixed weights and fixed test inputs because it uses zero stress. Consequently, the two reported ambiguity values at cannot be different Monte Carlo estimates of the same fixed-checkpoint midpoint accuracy. They can arise from different fine-tuning trajectories, checkpoints, or evaluation inputs.
The supplied code permits such a training-trajectory difference: the continuous sweep and the discrete branches consume a shared global random stream at different points.
At , the continuous sweep still performs ten additional fine-tuning epochs. Its zero-pruning entry is therefore not the saved early-stage checkpoint. It is a further-trained comparison baseline.
sectionStatic implementation findingsComparison with the supplied observations and code audit › Static implementation findings · lines 1960–2033
Open as its own page• Quantile ties and endpoint counts. The rule
does not enforce an exact retention count when magnitudes tie. At , it retains the largest-magnitude entries instead of deleting every entry. Exact top-count selection with a declared tie rule is required for the identities in Section sec:definitions.
• Possible mask reactivation. Recomputing a density mask over already masked weights can produce a zero threshold. The rule then marks deleted zero positions active. The default early-stage call starts from the dense baseline, so this is not asserted to have corrupted the supplied tables. It is a defect of the general pruning interface. The repair rejects an attempted increase in active count.
• Fractional pruning does not use its computed count. The original function computes but subsequently uses a quantile rather than deleting exactly that many positions. Quantile rounding and ties can therefore disagree with the stated removal count.
• Ignored allocation flag. The fractional-pruning function accepts
per_layerbut always performs layer-wise pruning. A repaired implementation must implement the global branch or explicitly reject it.• Two density conventions. The pruning manager reports weight-mask density. The comprehensive evaluation counts all numerically nonzero parameters, including unpruned biases. The two denominators must not be interchanged.
• Random-cue probe is a shared random vector. The original call
torch.rand_like(correct_cue)creates one two-coordinate vector and repeats it for all test examples. Its coordinates need not sum to one. It is neither an independent per-example cue probe nor a normalized ambiguous-cue sweep.• Zero-cue ablation is out of the training cue set. The zero vector differs from both one-hot cues and from their convex combinations. Zero-cue invariance alone does not prove endpoint cue neglect. Endpoint switching, wrong-cue behavior, and cue removal must be reported separately.
• The probe is not a trained decoder. The supplied cue-ablation function evaluates accuracy under changed cues. It does not train or evaluate a representation decoder. “Decoder probe” should be reserved for an actual decoding procedure.
• Evaluation consumes training randomness. Stress, blended-input sampling, random cue generation, and model construction use the global Torch random stream. Adding an evaluation or changing branch order can therefore change later minibatch orders. Dedicated generators and branch replay are needed.
• Reproducibility has an environment boundary. A fixed seed is not a guarantee of bitwise identity across PyTorch versions or platforms PyTorchReproducibility. The software versions, hardware, generator states, and determinism settings must be recorded.
sectionStatic implementation findingsComparison with the supplied observations and code audit › Static implementation findings · lines 2033–2051
Open as its own page• Input blending is a corruption test. The input blend combines independently selected samples and retains the original visual label. It need not preserve cluster identity. Its accuracy is a valid specified corruption observable, but not automatically a measure of biological multisensory integration.
• Printed interpretations are partly hard-coded. Statements about insufficient capacity, overfitting, thresholds, or superior pruning trajectories appear as fixed prose in the supplied analysis routine. Such statements must be generated from validated results or removed. Standard deviations across densities describe heterogeneity across settings, not independent-seed uncertainty.
sectionA minimal certification protocolComparison with the supplied observations and code audit › A minimal certification protocol · lines 2052–2074
Open as its own pageFor a checkpoint-specific mathematical claim, retain:
the exact baseline and early-stage checkpoints;
binary masks and integer counts for every layer;
the optimizer-reset convention and training schedule;
independent recorded training and evaluation streams;
common latent test examples for both task labels;
clean endpoint accuracies and unclamped cue differences;
midpoint accuracy for each reference task separately;
repeated stress estimates and their conditional Monte Carlo uncertainty;
margin distributions and the constants in Theorems thm:parameterstability, thm:globalstress, and thm:frozengates;
an independent validation or simultaneous-testing procedure for selecting a pruning peak.
The numerical table then becomes evidence to be certified, not a replacement for the theorem's assumptions.
Biological interpretation and limitations
sectionBiological interpretation and limitationsBiological interpretation and limitations · lines 2076–2128
Open as its own pageSynaptic-pruning mechanisms are relevant to neurodevelopmental research, but the direction, anatomical setting, and developmental stage of an observed change are essential. Tang and colleagues link impaired mTOR-dependent autophagy to pruning deficits in their studied human tissue and animal models Tang. Adult PET findings concern an in-vivo synaptic-marker measure Matuskey, whereas longitudinal cortical-thickness measurements concern a different, macroscopic observable Zielinski. These observations must not be identified with one another or with a neural network's weight-mask density.
Cheung's pruning study provides the direct computational motivation CheungPruning. His polygenic-dissection preprint provides a proposed pathway-level comparison between ASD and ADHD CheungPolygenic; it is not an assumption or validation of the network theorems. His developmental pharmacology hypothesis CheungTiming motivates attention to timing, but the present mathematical model cannot establish its therapeutic claims. The separate pruning-cliff simulation is likewise computational motivation, not biological proof CheungCliff.
The labels “moderate” and “heavy” pruning are sufficient for the mathematical experiment. Calling the branches “Normal” and “ASD-like” is an illustrative convention, not a causal identification. In particular,
No drug, age-specific intervention, diagnosis, or individual developmental prediction follows from the proofs.
There are also mathematical limitations. The architecture is finite and feed-forward; training is not characterized by a proven optimization law; magnitude rankings are coordinate dependent; the Gaussian comparison surface is conditional; and stress certificates can be conservative when many activation gates lie near zero. The existing reported data do not supply all quantities required for the checkpoint-specific certificates.
The useful conclusion is narrower: phased training and pruning can be studied rigorously once connection counts, weight geometry, margins, noise covariance, and observation semantics are kept separate. Some proposed universal claims are false, while several conditional claims admit explicit proofs and verifiable sufficient conditions.
Conclusion: the mathematical release
theoremTheorem: Psy01-A releaseConclusion: the mathematical release · Psy01-A@1#thm:release · proof attached · lines 2132–2174
Open as its own pageFor the objects and assumptions explicitly defined in this paper:
conflicting-task performance and cue influence obey Theorems thm:cueobstruction and thm:cuecertificate;
a universal low-density cue-loss threshold near twenty percent is excluded by Theorem thm:nothreshold;
Gaussian stress admits global and frozen-gate certificates with explicit errors;
identical density and identical clean outputs do not determine stress tolerance;
fixed-weight nested magnitude pruning equals one-shot pruning at the same final integer counts, while learning can change the late ranking;
logit and smooth-observable stability are quantitative, but accuracy stability needs a margin hypothesis and hard density control need not be continuous;
the declared affine-Gaussian comparison has a proved conditional, non-monotonic trade-off and an increasing maximizer curve;
transfer of that trade-off to a ReLU checkpoint requires the strict error inequalities of Theorem thm:transfer;
concentration statements require their stated independence, bounded-influence, or held-out-evaluation conditions.
No universal architecture-specific density threshold, unconditional pruning phase diagram, biological causal identification, or treatment conclusion is established.
Proof. Items (i)–(ix) are precisely the results proved in the cited sections. The counterexamples exclude strengthening them to the stated universal assertions. The biological identifications and intervention effects are not assumptions of any theorem and have not been supplied by an independent empirical correspondence.
Declarations
sectionDeclarationsDeclarations · lines 2176–2206
Open as its own page. No specific funding is declared.
interests. None declared.
. No human or animal participants are involved in the mathematical analysis.
and code availability. The original computational project is available from the repository identified in CheungRepository. The present paper analyzes the specific source and numerical manuscript supplied in CheungSupplied067A; it does not assert that a mutable repository is identical to that supplied snapshot. The analytic results require no external datasets. The implementation repairs below are included in this source.
and verification provenance. This paper contains analytic arguments and a static source-code audit, not newly executed simulations. The proposed repairs have not been presented as an independently executed reproduction. Numerical reproduction, {} compilation, formal proof checking, and independent mathematical review are separate activities.
Exact-count pruning repairs
sectionExact-count pruning repairsExact-count pruning repairs · lines 2208–2220
Open as its own pageThe following functions replace the three pruning methods of the supplied
TaskGatedPruningManager. They keep the existing manager's masks and training interface, preserve biases, prohibit mask regrowth, and explicitly reject the unimplemented global-allocation option.The integer convention uses decimal-rational conversion to avoid an unintended binary-floating-point rounding change at an integer count. Stable sorting implements the declared tie rule PyTorchArgsort.
listingListing: ListingExact-count pruning repairs · lines 2221–2374
Open as its own pageimport math from fractions import Fraction import torch def _fraction01(value, name): value = float(value) if not math.isfinite(value) or not 0.0 <= value <= 1.0: raise ValueError(f"{name} must be finite and in [0, 1]") return Fraction(str(value)) def _ceil_fraction(q): return (q.numerator + q.denominator - 1) // q.denominator @torch.no_grad() def _install_exact_counts(manager, counts): # Validate every layer before changing any mask. for name, k in counts.items(): p = manager.model.get_parameter(name) old = manager.masks[name].reshape(-1).bool() n_active = int(old.sum().item()) if not 0 <= int(k) <= n_active: raise ValueError( f"{name}: target count {k} exceeds active " f"count {n_active}; mask regrowth is forbidden" ) if not bool(torch.isfinite(p).all()): raise ValueError(f"{name}: non-finite weights") stats = {} for name, k in counts.items(): p = manager.model.get_parameter(name) old = manager.masks[name].reshape(-1).bool() # nonzero returns positions in ascending flattened order. eligible = torch.nonzero(old, as_tuple=False).flatten() magnitudes = p.detach().reshape(-1)[eligible].abs() order = torch.argsort( magnitudes, descending=True, stable=True ) new = torch.zeros_like(old) if int(k) > 0: new[eligible[order[:int(k)]]] = True n_before = int(old.sum().item()) n_after = int(new.sum().item()) assert n_after == int(k) assert not bool((new & ~old).any()) manager.masks[name] = new.reshape_as(p).to(p.dtype) p.mul_(manager.masks[name]) stats[name] = { "kept": n_after, "total": p.numel(), "actual_sparsity": 1.0 - n_after / p.numel(), "removed": n_before - n_after, "remaining": n_after, "fraction": ( (n_before - n_after) / n_before if n_before else 0.0 ), } return stats def prune_to_density_exact(self, target_density, per_layer=True): if not per_layer: raise NotImplementedError( "This patch implements layer-wise allocation only." ) d = _fraction01(target_density, "target_density") counts = { name: _ceil_fraction(d * mask.numel()) for name, mask in self.masks.items() } stats = _install_exact_counts(self, counts) self.history.append(("exact_density", float(d), stats)) return stats def prune_by_magnitude_exact(self, sparsity, per_layer=True): s = _fraction01(sparsity, "sparsity") return prune_to_density_exact( self, float(1 - s), per_layer=per_layer ) def prune_fraction_of_remaining_exact( self, fraction_to_remove, per_layer=True ): if not per_layer: raise NotImplementedError( "This patch implements layer-wise allocation only." ) f = _fraction01(fraction_to_remove, "fraction_to_remove") counts = {} for name, mask in self.masks.items(): n = int(mask.bool().sum().item()) q = f * n removed = q.numerator // q.denominator counts[name] = n - removed stats = _install_exact_counts(self, counts) self.history.append(("exact_fraction", float(f), stats)) return stats # Install after defining the original manager class. TaskGatedPruningManager.prune_to_density = ( prune_to_density_exact ) TaskGatedPruningManager.prune_by_magnitude = ( prune_by_magnitude_exact ) TaskGatedPruningManager.prune_fraction_of_remaining = ( prune_fraction_of_remaining_exact ) def structural_density(manager): kept = sum( int(mask.bool().sum().item()) for mask in manager.masks.values() ) total = sum(mask.numel() for mask in manager.masks.values()) return kept / total if total else 0.0 def test_exact_pruning_patch(): # The original constructor accepts this simple nn.Module # when prune_head=True: all matrix weights are eligible. model = torch.nn.Linear(4, 1, bias=False) with torch.no_grad(): model.weight.copy_( torch.tensor([[3.0, 3.0, 1.0, 0.0]]) ) mgr = TaskGatedPruningManager(model) mgr.prune_to_density(0.5) assert int(mgr.masks["weight"].sum().item()) == 2 # Stable tie break retains flattened index zero. mgr.prune_fraction_of_remaining(0.5) expected = torch.tensor([[1.0, 0.0, 0.0, 0.0]]) assert torch.equal(mgr.masks["weight"], expected) try: mgr.prune_to_density(0.75) except ValueError: pass else: raise AssertionError("Mask regrowth was not rejected") # Endpoint behavior: remove every active position. mgr.prune_fraction_of_remaining(1.0) assert structural_density(mgr) == 0.0 assert int(torch.count_nonzero(model.weight).item()) == 0sectionExact-count pruning repairsExact-count pruning repairs · lines 2374–2382
Open as its own pageThe existing post-optimizer
apply_masks()call remains necessary. Masking gradients is optional for this fixed-support interface; it does not replace reapplying the parameter masks. If regrowth is later introduced, optimizer-state handling must also be specified.In both data generators, replace the seed test by
listingListing: ListingExact-count pruning repairs · lines 2383–2389
Open as its own pagerng = ( np.random.RandomState(seed) if seed is not None else np.random.RandomState() )sectionExact-count pruning repairsExact-count pruning repairs · lines 2389–2391
Open as its own pageso that seed zero is not treated as an unspecified seed.
Independent evaluation streams and paired branch replay
sectionIndependent evaluation streams and paired branch replayIndependent evaluation streams and paired branch replay · lines 2393–2399
Open as its own pageThe next evaluator implements the supplied forward equation directly, using an explicit generator. It does not mutate the model's
stress_leveland does not consume the global Torch random stream.listingListing: ListingIndependent evaluation streams and paired branch replay · lines 2400–2545
Open as its own pageimport math import torch from torch.utils.data import DataLoader @torch.no_grad() def forward_explicit_noise(model, x, cue, sigma, generator): if sigma < 0: raise ValueError("sigma must be nonnegative") h = torch.cat([x, cue], dim=1) for layer in (model.fc1, model.fc2, model.fc3): h = torch.relu(layer(h)) if sigma > 0: noise = torch.randn( h.shape, dtype=h.dtype, device=h.device, generator=generator, ) h = h + sigma * noise return model.head(h) @torch.no_grad() def paired_cue_probe(model, x, y, seed=10001, batch_size=1000): if len(x) == 0: raise ValueError("Empty test set") was_training = model.training model.eval() generator = torch.Generator(device=x.device) generator.manual_seed(int(seed)) permutation = torch.tensor( [2, 3, 0, 1], device=y.device, dtype=torch.long ) counts = { "correct_visual": 0, "wrong_visual": 0, "correct_voice": 0, "zero_visual": 0, "midpoint_visual": 0, "midpoint_voice": 0, "random_visual": 0, } try: for start in range(0, len(x), batch_size): xb = x[start:start + batch_size] yb = y[start:start + batch_size] y_voice = permutation[yb] n = len(xb) cv = xb.new_tensor([1.0, 0.0]).expand(n, 2) ca = xb.new_tensor([0.0, 1.0]).expand(n, 2) cz = xb.new_zeros((n, 2)) cm = xb.new_full((n, 2), 0.5) # Independent, normalized per-example random cue. alpha = torch.rand( (n, 1), dtype=xb.dtype, device=xb.device, generator=generator, ) cr = torch.cat([alpha, 1.0 - alpha], dim=1) def predict(cue): return forward_explicit_noise( model, xb, cue, 0.0, generator ).argmax(dim=1) pv = predict(cv) pa = predict(ca) pz = predict(cz) pm = predict(cm) pr = predict(cr) counts["correct_visual"] += int((pv == yb).sum()) counts["wrong_visual"] += int((pa == yb).sum()) counts["correct_voice"] += int( (pa == y_voice).sum() ) counts["zero_visual"] += int((pz == yb).sum()) counts["midpoint_visual"] += int((pm == yb).sum()) counts["midpoint_voice"] += int( (pm == y_voice).sum() ) counts["random_visual"] += int((pr == yb).sum()) finally: model.train(was_training) result = {key: value / len(x) for key, value in counts.items()} result["cue_drop"] = ( result["correct_visual"] - result["wrong_visual"] ) result["zero_cue_drop"] = ( result["correct_visual"] - result["zero_visual"] ) result["balanced_midpoint"] = 0.5 * ( result["midpoint_visual"] + result["midpoint_voice"] ) assert result["balanced_midpoint"] <= 0.5 + 1e-12 return result @torch.no_grad() def stress_mc( model, x, y, sigma, seeds, batch_size=1000, delta=0.05 ): seeds = list(seeds) if len(x) == 0 or len(seeds) == 0: raise ValueError("Nonempty inputs and seeds are required") if not 0.0 < delta < 1.0: raise ValueError("delta must lie in (0, 1)") was_training = model.training model.eval() replicate_means = [] try: for seed in seeds: generator = torch.Generator(device=x.device) generator.manual_seed(int(seed)) correct = 0 for start in range(0, len(x), batch_size): xb = x[start:start + batch_size] yb = y[start:start + batch_size] cue = xb.new_tensor([1.0, 0.0]).expand(len(xb), 2) pred = forward_explicit_noise( model, xb, cue, sigma, generator ).argmax(dim=1) correct += int((pred == yb).sum()) replicate_means.append(correct / len(x)) finally: model.train(was_training) n_noise_outcomes = len(x) * len(seeds) radius = math.sqrt( math.log(2.0 / delta) / (2.0 * n_noise_outcomes) ) return { "mean": sum(replicate_means) / len(replicate_means), "replicate_means": replicate_means, # Conditional on this fixed held-out input set. "conditional_mc_hoeffding_radius": radius, }sectionIndependent evaluation streams and paired branch replayIndependent evaluation streams and paired branch replay · lines 2545–2556
Open as its own pageUse the same stress seed bank for compared checkpoints when a paired comparison is intended. Common randomness defines the pairing; variance reduction is not guaranteed without a favorable covariance structure.
The following CPU helper gives repeated calls at the same early checkpoint and late fraction the same training stream. It reconstructs the shuffled training loaders with dedicated generators.
listingListing: ListingIndependent evaluation streams and paired branch replay · lines 2557–2604
Open as its own pagedef replay_late_branch( early_state, early_masks, loaders, late_fraction, training_seed, epochs, learning_rate ): # CPU implementation matching the supplied DEVICE. with torch.random.fork_rng(devices=[]): torch.manual_seed(int(training_seed)) model = TaskGatedNetwork().to("cpu") model.load_state_dict(early_state) manager = TaskGatedPruningManager(model) manager.masks = { name: mask.clone().to("cpu") for name, mask in early_masks.items() } manager.apply_masks() manager.prune_fraction_of_remaining(late_fraction) local_loaders = dict(loaders) for offset, task in enumerate(("visual", "voice"), start=1): source = loaders[f"{task}_train"] generator = torch.Generator(device="cpu") generator.manual_seed(int(training_seed) + offset) local_loaders[f"{task}_train"] = DataLoader( source.dataset, batch_size=source.batch_size, shuffle=True, num_workers=0, generator=generator, ) # Construction consumed global random numbers; # reset the local training stream explicitly. torch.manual_seed(int(training_seed)) train_taskgated_with_curves( model, local_loaders, epochs=epochs, lr=learning_rate, pruning_manager=manager, verbose=False, track_test_accuracy=False, ) return model, managersectionIndependent evaluation streams and paired branch replayIndependent evaluation streams and paired branch replay · lines 2604–2612
Open as its own pageThis helper isolates branch-order effects in the current CPU pipeline. A full reproducibility record should additionally pin software versions, save checkpoints and generator states, and state determinism settings PyTorchReproducibility. It does not guarantee identical results across environments.
Claim-to-certificate ledger
sectionClaim-to-certificate ledgerClaim-to-certificate ledger · Psy01-A@1#tab:ledger · lines 2614–2689
Open as its own pagestatus of the proposed theorem candidates. Proposed claim Status Valid replacement Proposed claim Status Valid replacement Universal cue-loss threshold near False for the architecture class Information obstruction, cue-sensitivity certificate, and a checkpoint-specific diagnostic. High-density pruning necessarily increases selectivity and decreases stress tolerance Not implied by density or magnitude ranking Strict comparison using stress bounds and Theorem thm:transfer; solved conditional comparison model. Hard-pruning accuracy surface is Lipschitz away from an empirical threshold False without additional qualifications Parameter-to-logit stability; margin-conditioned accuracy control; soft-density surrogate. Early and late masks do not commute False for fixed masks; fixed-weight nested rankings agree Learning-induced ranking defect and the projection–gradient bound. A unique increasing optimal late-pruning curve always exists Not established; hard paths can have plateaus or jumps Compact existence, an implicit branch under regularity assumptions, and an explicit comparison-model curve. Surviving connection count controls observable variance Insufficient on its own Independent-mask matrix variance and bounded edge-influence concentration. Same final density implies the same fragility False Noise sensitivity depends on margins, geometry, parameterization, and noise covariance. Quantum landmark results directly prove neural pruning claims Not a valid model identification Independent classical proofs retaining the landmarks' construction, fluctuation, observation, and causal boundaries. bibliographyReferencesClaim-to-certificate ledger · lines 2690–2913
Open as its own pageCheungPruning
N. Cheung, Phased pruning in neural networks recapitulates selectivity–fragility trade-offs in brain development. Scientific Reports (2026). Published online 13 July 2026.
https://doi.org/10.1038/s41598-026-62244-5.CheungSupplied067A
N. Cheung, 067a_code_sub_v2.py and Combined 067A Num v3 (1).docx. Source code, version 9.3, and numerical manuscript supplied for the present analysis, undated. These supplied snapshots, rather than an unspecified later repository version, define the static audit.
CheungRepository
N. Cheung, Phased-Pruning-in-Neural-Networks-in-Brain-Development. Public project repository.
https://github.com/cheungngo/Phased-Pruning-in-Neural-Networks-in-Brain-Development. A mutable repository; no unexamined revision is identified with the supplied source snapshot.CheungPolygenic
N. Cheung, Polygenic dissection of synaptic pruning and glutamatergic signaling: contrasting mechanisms in ASD and ADHD. Preprints.org, version 1, posted 9 January 2026. Not peer reviewed.
https://doi.org/10.20944/preprints202601.0692.v1.CheungTiming
N. Cheung, Timing is everything: why the Cheung glutamatergic regimen is contraindicated in young children with autism but promising after puberty. Preprints.org, version 1, posted 2 December 2025. Hypothesis manuscript; not peer reviewed.
https://doi.org/10.20944/preprints202512.0074.v1. Cited as developmental motivation, not as therapeutic evidence established by this paper.CheungCliff
N. Cheung, The synaptic pruning cliff: threshold-like network fragility under internal stress and efficient recovery in a computational model of depression. Preprints.org, version 1, posted 13 January 2026. Not peer reviewed.
https://doi.org/10.20944/preprints202601.0805.v1.CheungEm06A
N. Cheung, One declared classical-limit package for a relational observable, and the stops it does not close: Em06-A, a scalar-only coherent limit of the first plateau coefficient. Manuscript
Em06-A-v1.tex, version 1, undated. Enter Calculus Companion.https://enter.grok.me/browse/Em06-A. Documentary and methodological comparison; not a premise of the neural-network theorems.CheungEm06B
N. Cheung, Manuscript Em06-B.
Em06-B-v1.tex, version 1, undated. Supplied excerpt: “Ordered Weyl expectations and their classical limit,”thm:ordered,eq:ordered-general,eq:ordered-bound, andeq:ordered-vacuum, lines 991–1045. The quoted quantum result is not identified with a surviving-edge theorem. No unexamined version is assumed.CheungVIIH
N. Cheung, Landmark VII-H: Normalization-independent connected quantum responses: complete ambiguity, observable descent, and a nonzero free-field benchmark. Manuscript
VII-H.tex, version 1, undated. Enter Calculus Companion.https://enter.grok.me/browse/VII-H. A separate free Wick-square benchmark, not a network cue-interference model.CheungVIII
N. Cheung, Landmark VII-I: Finite-time harmonic-coordinate insertions: three repair routes, finite-width free products, and sharp-prescription incompatibility. Manuscript
VII-I.tex, version 1, undated. Enter Calculus Companion.https://enter.grok.me/browse/VII-I.CheungVIIJ
N. Cheung, Manuscript VII-J.
VII-J.tex, version 1, undated. Supplied excerpt: “The complete timed dependency network—scheduled ancestors,” example “A scheduled path with no surviving signal,” lines 541–547. Cited for the distinction between scheduled reachability and actual influence, not for an unprovided pruning theorem.QianKlabjan
X. Qian and D. Klabjan, A probabilistic approach to neural network pruning. In Proceedings of the 38th International Conference on Machine Learning, Proceedings of Machine Learning Research 139 (2021), 8640–8649.
https://proceedings.mlr.press/v139/qian21a.html.Koyuncu
E. Koyuncu, Theoretical guarantees for one-shot magnitude pruning and compute-adaptive early exit. In Proceedings of the 43rd International Conference on Machine Learning, Proceedings of Machine Learning Research 306 (2026), 60904–60947.
https://proceedings.mlr.press/v306/koyuncu26a.html.FrankleCarbin
J. Frankle and M. Carbin, The lottery ticket hypothesis: finding sparse, trainable neural networks. International Conference on Learning Representations (2019).
https://openreview.net/forum?id=rJl-b3RcF7.Tropp
J. A. Tropp, User-friendly tail bounds for sums of random matrices. Foundations of Computational Mathematics 12 (2012), 389–434.
https://doi.org/10.1007/s10208-011-9099-z.Tsuzuku
Y. Tsuzuku, I. Sato, and M. Sugiyama, Lipschitz-margin training: scalable certification of perturbation invariance for deep neural networks. Advances in Neural Information Processing Systems 31 (2018).
https://arxiv.org/abs/1802.04034.Cohen
J. Cohen, E. Rosenfeld, and J. Z. Kolter, Certified adversarial robustness via randomized smoothing. In Proceedings of the 36th International Conference on Machine Learning, Proceedings of Machine Learning Research 97 (2019), 1310–1320.
https://proceedings.mlr.press/v97/cohen19c.html.Hoeffding
W. Hoeffding, Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association 58, no. 301 (1963), 13–30.
EfronStein
B. Efron and C. Stein, The jackknife estimate of variance. The Annals of Statistics 9, no. 3 (1981), 586–596.
McDiarmid
C. McDiarmid, On the method of bounded differences. In J. Siemons, ed., Surveys in Combinatorics, 1989, London Mathematical Society Lecture Note Series 141, Cambridge University Press (1989), 148–188.
Tang
G. Tang et al., Loss of mTOR-dependent macroautophagy causes autistic-like synaptic pruning deficits. Neuron 83 (2014), 1131–1143.
https://doi.org/10.1016/j.neuron.2014.07.040.Matuskey
D. Matuskey et al., -UCB-J PET imaging is consistent with lower synaptic density in autistic adults. Molecular Psychiatry 30 (2025), 1610–1616. First published online 4 October 2024.
https://doi.org/10.1038/s41380-024-02776-2.Zielinski
B. A. Zielinski et al., Longitudinal changes in cortical thickness in autism and typical development. Brain 137 (2014), 1799–1812.
https://doi.org/10.1093/brain/awu083.PyTorchReproducibility
PyTorch Contributors, Reproducibility. Official PyTorch documentation.
https://docs.pytorch.org/docs/main/notes/randomness.html. Software documentation; reproducibility claims remain version- and environment-specific.PyTorchArgsort
PyTorch Contributors, torch.argsort. Official PyTorch documentation.
https://docs.pytorch.org/docs/main/generated/torch.argsort.html. Thestable=Trueoption preserves the order of equal values.