Online-LOCAL Model for Graph Algorithms
- The Online-LOCAL model is a framework where vertices are revealed sequentially and decisions are made based on a bounded-radius local view.
- It enables sharp separations in complexity, such as achieving O(log n) locality for 3-coloring in bipartite graphs compared to higher bounds in other models.
- The model supports transferring lower bounds and classifying deterministic and randomized LCLs across various graph families, highlighting its theoretical significance.
The Online-LOCAL model is a locality model for graph algorithms in which the vertices of an input graph are revealed one by one in an adversarial order, and the algorithm must irrevocably choose the output of each arriving vertex after inspecting only a bounded-radius neighborhood of the already revealed region. In the graph-theoretic literature, it was introduced as part of a unified treatment of locality in distributed, sequential, dynamic, and online computation, and it is used primarily for locally checkable labeling problems (LCLs), separations between models, and transfer of lower bounds across settings (Akbari et al., 2021).
1. Formal definition
Let be an undirected graph of size , and let be the locality radius. For any node , the radius- neighborhood is written
The adversary chooses an ordering of the nodes. When node arrives, the algorithm is told the induced subgraph
together with any fixed input labels. The algorithm maintains a partial output labeling and, upon seeing 0 and 1, must irrevocably choose 2 so that after all 3 nodes have arrived, the final labeling 4 is feasible. A problem 5 has Online-LOCAL complexity 6 if there is an Online-LOCAL algorithm of radius 7 that always produces a valid solution, and no smaller radius suffices (Akbari et al., 2021).
A later formulation for lower-bound work emphasizes that the algorithm may use all labels and outputs in 8, i.e., it has global memory over the revealed region, while locality is still measured only by the radius 9 of the exposed neighborhoods (Chang et al., 2023). This combination of adversarial revelation, irrevocable output, and bounded-radius visibility is the distinctive feature of the model.
2. Position in the locality hierarchy
The Online-LOCAL model is studied alongside three other locality models. In the LOCAL model, each node learns its radius-0 neighborhood in 1 synchronous rounds and outputs based only on that view. In SLOCAL, nodes are processed sequentially in an adversarial order, and when a node is processed it learns the current labels and local memories of all nodes in its radius-2 neighborhood. In dynamic-LOCAL, the adversary updates the graph one edge or node at a time, and only nodes within distance 3 of the update may revise their outputs. For every problem 4 and radius 5, these models satisfy
6
and each inclusion is strict (Akbari et al., 2021).
This hierarchy is not merely definitional. The strictness is witnessed by concrete problems: the foundational separation is 3-coloring of bipartite graphs, which has locality 7 in Online-LOCAL, but much larger locality in weaker models. The model is therefore stronger than classical distributed locality, yet it remains constrained enough to support meaningful lower bounds and complexity classifications. A plausible implication is that Online-LOCAL is best viewed not as a replacement for LOCAL, but as a calibrated strengthening that isolates the algorithmic benefit of adversarial sequential revelation.
3. Deterministic complexity theory for LCLs
An LCL problem is locally checkable of radius 8 if feasibility can be verified by checking that, for every node, the labeled radius-9 ball belongs to some finite set of allowed patterns, with finite input and output alphabets and bounded degree. For deterministic Online-LOCAL, the basic structural results are strongest on graph families where the LOCAL model is already well understood (Akbari et al., 2021).
On paths and cycles, every LCL has complexity in one of three classes in each of the four models LOCAL, SLOCAL, dynamic-LOCAL, and Online-LOCAL:
- 0,
- 1,
- 2.
Moreover, the class is the same in all four models. On rooted regular trees without input labels, the corresponding trichotomy is
- 3,
- 4,
- 5,
again identical across the same four models (Akbari et al., 2021).
These results show that the extra power of Online-LOCAL is not uniform across graph families. On paths, cycles, and rooted regular trees, deterministic Online-LOCAL does not create new broad complexity classes for LCLs. This is precisely why lower bounds from the LOCAL model can often be transferred to Online-LOCAL on such families.
4. Separations on general graphs
The principal positive result for deterministic Online-LOCAL is the 6-locality algorithm for proper 3-coloring of bipartite graphs. The algorithm maintains the revealed subgraph as connected “blobs,” each properly 2-colored by colors 7 and equipped with a nonnegative border-count 8, while color 9 is reserved for barrier layers. When a new node arrives, it either starts a new blob, extends one blob, or, if it touches at least two blobs of incompatible parity, the algorithm surrounds the blob with smaller 0 by a ring of color-1 neighbors, increments 2, flips parity, and merges. A simple induction shows 3, and setting 4 suffices (Akbari et al., 2021).
This yields a sharp separation from weaker models already in the original framework: 3-coloring bipartite graphs has locality 5 in Online-LOCAL, but locality 6 in LOCAL and 7 in SLOCAL (Akbari et al., 2021). Hence Online-LOCAL is strictly stronger in general graphs, even for a standard LCL.
Subsequent work converted this example into a precise lower-bound theory. For deterministic algorithms, 3-coloring simple 8 grids requires locality 9, which matches the known 0 upper bound inherited from bipartite graphs. The same work proves a tight 1 lower bound for cylindrical and toroidal grids, and an 2 lower bound for 3-coloring general 4-partite graphs for fixed 5. It also generalizes the 6 upper bound to 7-coloring of 8-partite graphs that admit a locally inferable unique coloring, including triangular grids, 9-trees, and bipartite graphs (Chang et al., 2023).
A further refinement shows that a globally consistent north/east/south/west orientation of the grid does not reduce the deterministic or randomized Online-LOCAL complexity of 3-coloring: even on oriented grids, locality 0 is necessary (Boudier et al., 26 Sep 2025). A common misconception is therefore that added geometric structure removes the logarithmic barrier. The established lower bounds show that it does not.
5. Randomized variants and stronger hierarchies
A randomized online-LOCAL line of work studies variants with an oblivious adversary and randomized labels. One formulation gives each node an independent private random string and reveals the induced subgraph 1 when 2 arrives; another uses global shared randomness. In this randomized setting, the model is used as an upper envelope for several locality notions:
3
Moreover, any LCL solvable by a non-signaling outcome with locality 4 and success probability at least 5 can be solved by a randomized online-LOCAL algorithm with locality 6 and failure probability at most 7 (Akbari et al., 2024).
On rooted trees, this randomized framework yields strong collapse results. If an LCL on rooted trees admits a randomized online-LOCAL algorithm of locality 8, then it also admits a deterministic LOCAL algorithm of locality 9. One corollary is that, on rooted trees, there is no problem with complexity between 0 and 1 across deterministic and randomized LOCAL, quantum LOCAL, bounded-dependence, non-signaling, SLOCAL, dynamic-LOCAL, and online-LOCAL (Akbari et al., 2024).
A later classification refines this picture for regular trees. For rooted regular trees, every LCL falls into one of four classes:
- 2 in LOCAL and randomized online-LOCAL,
- 3 in LOCAL and 4 in randomized online-LOCAL,
- 5 in LOCAL and randomized online-LOCAL,
- 6 in LOCAL and randomized online-LOCAL for some integer 7.
For unrooted regular trees, the super-logarithmic region is fully classified, and for general trees, problems that are global in deterministic LOCAL remain global also in randomized online-LOCAL (Dhar et al., 2024). These results delimit the range of any advantage coming from sequential revelation and randomness: it can be large on general graphs, but it disappears or sharply contracts on trees.
6. Conceptual significance and recurring themes
The Online-LOCAL model has become a focal point for understanding which locality barriers are artifacts of simultaneous distributed symmetry breaking and which persist even when the algorithm is given an adversarial reveal order and access to the revealed region as a whole. The original theory shows that all four deterministic models are distinct in general, yet often equivalent on paths, cycles, and rooted regular trees (Akbari et al., 2021). Later results show that even stronger randomized variants remain tightly constrained on trees, while retaining nontrivial additional power on general graph classes (Akbari et al., 2024).
Two technical themes recur throughout the literature. The first is parity management under sequential merging, exemplified by the blob-and-barrier algorithm for bipartite 3-coloring. The second is potential-based lower bounds, especially the 8-value arguments used for grids and the gadget constructions used for 9-partite lower bounds. These methods show that Online-LOCAL is neither an unrestricted centralized model nor a minor perturbation of LOCAL; it is a distinct locality regime with its own upper-bound mechanisms and obstruction techniques (Chang et al., 2023).
This suggests a general interpretation of the model. Its additional power is substantial when irrevocable commitments can be organized around the revealed structure of connected components, but much weaker when locality is controlled by tree-like decomposition or by invariants that survive sequential exposure. That combination of strength and limitation is what makes Online-LOCAL central in the current locality theory of graph algorithms.