Machine learning
The dial that did nothing
In a July experiment I changed an optimizer’s error tolerance by a factor of a hundred. The training runs followed the same path, down to the bits. It was an unusually legible answer to a question I had taken too long to ask. When did the controller actually intervene?
An optimizer adjusts a model in small steps. My version could compare estimates of a step and decide how far to go next. It also cost several gradient evaluations to take one step. Giving my method and ordinary Adam the same number of steps would quietly grant mine a larger budget. I counted gradient evaluations instead. Under that comparison, the first version lost on training loss. Its error estimate kept telling it to grow, and its step size sat against the ceiling almost the entire time.
After I changed how the error was measured and let the controller reject a bad step, one full-batch experiment reached roughly forty times lower training loss than tuned Adam. That is a big enough number to put in a headline. It is also a number about fitting examples the model has already seen. The advantage was sensitive to the starting step size and did not produce a corresponding win on held-out examples.
The plot I now want beside any adaptive algorithm is a plain record of the decisions it took. How often did the controller shorten a step? When did it reject one? Looking at the final score alone, I could have spent another week tuning a dial that was effectively disconnected.