Optimal Online Discrepancy Minimization in Linear Time
Abstract
We provide an online algorithm with the following guarantee: for any fixed sequence of vectors v1,…,vT ∈ Rd with \|vi\|2 1, the algorithm assigns each arriving vector vt a random sign t such that every prefix sum Σi=1t i vi can be written as the sum of three coupled standard Gaussian vectors. Our algorithm runs in O(dT) time and achieves the optimal prefix discrepancy bound \[ 1 t T\| Σi=1t i vi \|∞ = O( T ), \] with high probability. This recovers the optimal bound of Kulkarni, Reis, and Rothvoss, whose algorithm runs in time exponential in T and d. The algorithm and main proof were discovered in a GPT-5.5 Pro Extended conversation prompted by the author.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.