What to do when your mixed model will not converge
Today let's work out what an lme4 convergence warning is actually telling you, and the fix that matches each one.
Picture a driving school with 6 instructors and 72 learner drivers, 12 per instructor. Each driver logs some hours of supervised practice before their test, somewhere between 5 and 40, and then passes or fails on the first attempt.
The natural model for this kind of data gives each instructor their own starting pass rate on top of the hours effect: glmer(pass ~ hours + (1 | instructor), family = binomial). Fit models like this often enough, and sooner or later lme4 prints a warning instead of a clean result.
There are only four real reasons that happens, and the same four steps get you from a warning to a fix every time.
That is the order this lesson follows: one cause at a time, each one's own warning, and the fix that matches it.
Why a mixed model's fit can fail to settle
glmer() and lmer() do not solve for an intercept and a set of variances in one shot. They search for the parameters that fit the data best, nudging the current guess a little at each round, checking whether that helped, and stopping once another nudge barely changes anything.
That kind of search behaves exactly the way any iterative search can. Slide the learning rate below and watch a ball search for the bottom of a loss curve the same way.
A learning rate set too small makes the ball crawl down so slowly it barely moves in a reasonable number of steps. One set correctly makes it settle cleanly at the bottom. One set too large makes it overshoot and bounce from side to side before settling. And one set far too large sends it further from the bottom on every step instead of closer.
lme4's own search behaves the same way, just with no slider to drag. A convergence warning means that search did not settle the way the correctly sized step did: it stopped either right on the edge of what it is allowed to estimate, or somewhere its own checks flag as unreliable. There are four distinct reasons that happens, each with its own signature in the printed warning and its own fix.