← All setups

Two-Tap Logistic Gradient Descent

Descriptions may be stale. Consult the linked Lean sources.

Two-Tap Logistic Gradient Descent

We study strict separation by a two-tap model with weights in Rd+2, where d≥3 is the feature dimension. The positive example is the all-ones vector, and the negative example differs from it by a small increase in one hidden coordinate. Gradient descent on their nonconvex logistic loss starts from a normalized Gaussian vector scaled to a prescribed radius and keeps the current iterate once it separates both examples. For each selected example, the oracle returns its signed margin and margin gradient at the query point. Both output margins must be strictly positive with probability at least 1−ρ, where 0<ρ<1 is the failure tolerance.

Write the weights as x=(a1,a2,w) with a1,a2∈R and w∈Rd, equipped jointly with the Euclidean norm. Let S denote the cyclic shift (Sb)j=b(j−1)modd, with coordinates indexed from 0 to d−1. For a feature vector b carrying its label as a sign, its margin is mb(x)=a1⟨b,w⟩+a2⟨Sb,w⟩.

Our assumptions:

Assumption 1 (Signed examples and initialization radius). Let i∈{0,…,d−1} be the hidden coordinate. With 1 the all-ones vector and ei the ith coordinate vector, the signed examples are b+=1,b−=−(1+μei). The perturbation size μ and initialization radius r satisfy 0<μ≤110,0<r≤ρμρ224d2.

The algorithm receives d,μ,r,ρ, while i is fixed and hidden. Set ms=mbs for s∈{+,−} and ℓ(t)=log⁡(1+exp⁡(−t)). The empirical logistic objective and its optimization problem are Fi(x)=12(ℓ(m+(x))+ℓ(m−(x))),infx∈Rd+2Fi(x). A query (s,x) returns (ms(x),∇ms(x)), where the margin gradient has components ∂a1ms(x)=⟨bs,w⟩,∂a2ms(x)=⟨Sbs,w⟩,∇wms(x)=a1bs+a2Sbs.

We analyze full-batch gradient descent with a fixed step size η>0. Let G be a measurable Gaussian draw with law N(0,Id+2), where Id+2 is the identity matrix. Set x0=rG/∥G∥ for G≠0 and x0=0 otherwise. At each iterate xk, the method queries + first and − second at the same point. With qk=min{m+(xk),m−(xk)} and σ(t)=(1+exp⁡(−t))−1, the update after the pair of replies is hk=12∑s∈{+,−}σ(−ms(xk))∇ms(xk),xk+1={xk,qk>0,xk+ηhk,qk≤0. After N≥0 oracle calls, the output is x¯=x⌊N/2⌋, since a single reply from an unfinished pair leaves the point unchanged. For every hidden coordinate i, the required accuracy is P(min{m+(x¯),m−(x¯)}≤0)≤ρ, where the probability is over the Gaussian initialization.

Results

The labeled samples are (1d,+1) and (1d+μei,−1), with hidden i, d≥3 and 0<μ≤1/10. Each query returns one signed score and its gradient with respect to the two filter taps and the d readout weights. The setup requires fixed-step, full-batch logistic gradient descent (GD) from a uniformly random direction at radius 0<r≤2−24μρ3/2/d2, where 0<ρ<1. GD freezes at the first strict separator. For every i, the returned weights must give two positive signed scores with probability at least 1−ρ.

Strict separation by logistic gradient descent in the finite two-tap convolutional model. Upper bounds count individual sample queries.
Result Oracle complexity Novelty Limitations
(1) FiniteLogisticTwoTapGradientDescent (Ours) (⋆⋆) (review) O(dμlog⁡1r) sample queries, two per step, with η=2−40/d.
(2) Noisy quadratic perceptron (Tyurin 2026), Thm. 5.1 O(dμAlog(dμA)) sample queries, at most two per step. (1): for fixed μ,ρ and admissible r≍d−2, logistic GD uses O(dlog⁡d) without projection-tuned noise. At q≍d−1/2, (2) gives O(dlog3⁡d). (1) excludes moderate radii (including r=1) and has iteration prefactor 253. (2) allows any radius and fixed direction with q>0.
(3) Derived bound on the data of (Tyurin 2026), Eq. (5), with unrestricted queries O(1): two sample queries suffice deterministically. (1): No established improvement for unrestricted separation. (1) has a growing budget. In (3), a query pair at filter (1,0) and zero readout reveals i, which determines a separator.
(4) Large-radius logistic GD (Tyurin 2026), Thm. 2.1 No separation budget. As r→∞, normalized GD iterates converge to normalized batch quadratic-perceptron iterates. (1) bounds the queries to strict separation at small finite r. (4) fixes a direction with nonzero initial margins and holds for almost every 0<η<1/maxj∥Hj∥.
(5) Early gradient flow (Kumar and Haupt 2024), Thm. 5.1 No separation budget. From a sufficiently small nonbranching start, the flow approximately aligns with a stationary direction of the correlation objective or shrinks toward zero. (1) bounds discrete GD queries until the signed scores are positive. (1) covers one two-sample family. (5) treats general two-homogeneous networks.
(6) Gradient flow after escape (Kumar and Haupt 2025), Thm. 4 No separation budget. From sufficiently small starts in the basin of a positive, nondegenerate correlation maximum, the time-shifted flow tracks a limiting path on bounded time intervals. (1) gives a finite GD separation budget from a random direction. (6) describes the path after escape from the origin. (1) is specific to the two-tap model. (6) allows other two-homogeneous networks with locally Lipschitz gradients.

Abbr: Hj is the Hessian of sample j’s signed score. For the initial weights θ0 in (2), q=|⟨θ0,vμ,+⟩|/∥θ0∥, where vμ,+ is the unit eigenvector of the negative-label score Hessian with eigenvalue +μ. A=(1+log⁡(1/(ρ3q2)))log⁡(d/(μq2)).

Kumar, Akshay, and Jarvis Haupt. 2024. “Directional Convergence Near Small Initializations and Saddles in Two-Homogeneous Neural Networks.” Transactions on Machine Learning Research, June. https://openreview.net/forum?id=hfrPag75Y0.
Kumar, Akshay, and Jarvis Haupt. 2025. “Towards Understanding Gradient Flow Dynamics of Homogeneous Neural Networks Beyond the Origin.” Journal of Machine Learning Research 26 (269): 1–83. https://jmlr.org/papers/v26/25-1089.html.
Tyurin, Alexander. 2026. “Gradient Descent as a Perceptron Algorithm: Understanding Dynamics and Implicit Acceleration.” Proceedings of the 43rd International Conference on Machine Learning, Proceedings of machine learning research, vol. 306: 122808–75. https://proceedings.mlr.press/v306/tyurin26a.html.

Lean setup