Why a Newton step may need rescuing
Newton’s method uses local curvature to propose a parameter update. In logistic regression, this can be an efficient way to move toward a likelihood maximum, but the calculation is local: a step that looks appropriate near the current estimate may travel too far for the likelihood to keep increasing. Step-halving addresses this by keeping the proposed direction and testing progressively shorter moves.
The focus here is a concrete rescue. We will calculate a logistic-regression Newton direction, evaluate the likelihood after the full step, and halve the step size until the update meets a stated acceptance rule. The central distinction is between choosing a direction and choosing how far to travel along it.
Logistic likelihood and the step-halving rule
For independent Bernoulli responses \(Y_i\in\{0,1\}\) with fixed predictor vectors \(x_i\), logistic regression specifies \(P(Y_i=1)=p_i\), where \(p_i=\exp(\eta_i)/(1+\exp(\eta_i))\) and \(\eta_i=x_i^\mathsf{T}\beta\). The log-likelihood, score, and observed information are
where \(X\) has rows \(x_i^\mathsf{T}\), \(p\) has entries \(p_i\), and \(W\) is diagonal with entries \(p_i(1-p_i)\). If \(I(\beta)\) is invertible, the Newton ascent direction is \(d=I(\beta)^{-1}U(\beta)\). The full Newton proposal is \(\beta+d\); a damped proposal is \(\beta+\alpha d\), with \(0<\alpha\leq 1\).
This acceptance rule asks only that the likelihood not decrease. It does not require a particular size of improvement. More stringent sufficient-increase rules are also used, but the examples here use nondecrease so that each decision can be checked directly.
Worked rescue in a balanced logistic model
Worked Example: A Full Step That Overshoots
Take two independent Bernoulli observations, \(y_1=1\) and \(y_2=0\), with an intercept-only model. The common linear predictor is \(\eta\), and \(p=\exp(\eta)/(1+\exp(\eta))\). Start at \(\eta=3\).
The log-likelihood and its first two derivatives are
At \(\eta=3\), \(p=20.0855/(1+20.0855)\approx0.952574\). Thus \(U(3)\approx-0.905148\), \(I(3)\approx0.090353\), and the Newton direction is
The current log-likelihood is \(\ell(3)=3-2\log(1+\exp(3))\approx-3.0972\). A full step gives \(\eta_{\mathrm{trial}}=3-10.0179=-7.0179\), for which \(\ell(-7.0179)\approx-7.0197\). Since \(-7.0197<-3.0972\), reject the full step.
Halve the step size to \(\alpha=1/2\). The trial parameter is \(3+(1/2)(-10.0179)=-2.00895\), and
Because \(-2.2608>-3.0972\), accept this half-step. The accepted parameter is \(-2.00895\); it is not the maximizer, and the next iteration must calculate a fresh Newton direction there.
The calculations show why the word “Newton” does not by itself guarantee likelihood improvement. The direction is computed from the local score and curvature at \(\eta=3\). The full move is so long that it lands on the other side of the maximum, far enough away to have a worse likelihood. Halving changes the distance traveled without changing that proposed direction.
A longer halving sequence
Worked Example: Testing Full, Half, Quarter, and Eighth Steps
Now observe one binomial count \(Y=3\) out of \(m=10\) trials, with an intercept-only logistic model and starting value \(\eta_0=\log(99)\). Here \(p_0=0.99\). Including the binomial coefficient, the log-likelihood is
The score is \(3-10p\), and the information is \(10p(1-p)\). At the starting value, the score is \(3-9.9=-6.9\), and the information is \(10(0.99)(0.01)=0.099\). Therefore the Newton direction is
The starting log-likelihood is \(\ell(\log 99)=\log(120)+3\log(99)-10\log(100)\approx-27.4789\). Testing \(\alpha=1,1/2,1/4,1/8\) gives the following values. Each trial parameter is \(\eta_0+\alpha d\), and each displayed likelihood is evaluated using the formula above.
| Step size \(\alpha\) | Trial parameter | Trial log-likelihood (approx.) | Decision |
|---|---|---|---|
| 1 | -65.1019 | -190.518 | Reject: likelihood decreases |
| 1/2 | -30.2534 | -85.972 | Reject: likelihood decreases |
| 1/4 | -12.8291 | -33.700 | Reject: likelihood decreases |
| 1/8 | -4.1170 | -7.725 | Accept: likelihood increases |
For example, at the accepted eighth-step, \(\exp(-4.1170)\approx0.0163\), so the log-likelihood is approximately \(\log(120)+3(-4.1170)-10\log(1.0163)\approx-7.725\). This exceeds the starting value \(-27.4789\). The first three trials all fail the same explicit comparison; the fourth passes it.
The accepted eighth-step is still only an update, not a declaration of convergence. Its role is to make progress while retaining the Newton direction. The score and curvature at the updated parameter may then imply a quite different direction and a different useful step size.
Why a sufficiently short ascent step can work
Step-halving is especially useful when the proposed direction is an ascent direction. The following result explains why, under a local smoothness condition, repeatedly halving such a direction will eventually find a likelihood-increasing trial.
Proof. Differentiability at \(\beta\) gives, as \(\alpha\) tends to zero,
Write \(c=\nabla\ell(\beta)^\mathsf{T}d>0\). By the limit, for all sufficiently small positive \(\alpha\), \(|r(\alpha)|/\alpha<c/2\). For these values, \(\ell(\beta+\alpha d)-\ell(\beta)>\alpha c-\alpha c/2=\alpha c/2>0\). The sequence \(2^{-k}\) tends to zero, so some tested step is sufficiently small. This proves the claim. \(\square\)
For a Newton direction \(d=I(\beta)^{-1}U(\beta)\), if the observed information \(I(\beta)\) is positive definite and \(U(\beta)\ne0\), then
The strict inequality follows because the inverse of a positive-definite matrix is positive definite. Thus the Newton direction is an ascent direction under these conditions, and the theorem applies. If the information is singular or the direction is not an ascent direction, this argument does not establish that halving will find an improving step.
What the acceptance rule does—and does not—establish
If each accepted update satisfies \(\ell(\beta_{\mathrm{new}})\geq\ell(\beta_{\mathrm{old}})\), then the sequence of accepted likelihood values is nondecreasing. This follows directly at every iteration from the acceptance test; applying the inequality successively gives \(\ell(\beta_k)\geq\ell(\beta_0)\) for each accepted iteration \(k\). The parameters themselves need not move monotonically in any coordinate, and this fact alone does not prove that they converge to a finite estimate or to a maximizer.
The logistic log-likelihood is concave in the coefficients, but concavity does not mean that every full Newton step increases it. Concavity describes the shape of the objective; it does not prevent a locally computed update from overshooting. The balanced example makes this concrete: the log-likelihood is concave, yet the full step from \(3\) lowers its value.
A common mistake is to calculate a Newton direction and accept it automatically because it is called an ascent direction. The direction may indeed have a positive directional derivative, while the full finite move decreases the likelihood. The correction is to distinguish the local derivative from the actual likelihood difference: calculate \(\ell(\beta+\alpha d)\), compare it with \(\ell(\beta)\), and shorten the step when the chosen acceptance rule fails.
In practical computation, keep track of the current likelihood, the proposed direction, each tested step size, and each trial likelihood. Accept the first trial that meets the stated rule, then recompute at the accepted point. This makes the rescue reproducible and prevents a rejected trial from silently becoming the new iterate.
Check Your Understanding
Use the likelihood calculations and conditions in this tutorial to answer these questions.
- In the balanced two-observation example, why does the full Newton step fail the likelihood-based acceptance rule?
- For the grouped-binomial example, which step sizes are rejected, and what calculation supports accepting the eighth-step?
- State the condition on the directional derivative that ensures sufficiently short steps increase a differentiable log-likelihood.
- Why does a nondecreasing sequence of accepted likelihood values not, by itself, prove that the coefficient estimates converge?
- What should be recomputed after a halved step is accepted?