SOMBRERO: Measuring and Steering Boundary Placement in End-to-End Hierarchical Sequence Models
Pit Neitemeier, Alessio Serra, Jiaze Li, Sascha Wirges, Lukas Balles, Jan Hendrik Metzen
TL;DR
This work tackles efficient boundary placement in end-to-end tokenizer-free hierarchical sequence models by introducing a router-agnostic boundary quality metric, boundary enrichment $B$, which gauges whether chunk starts occur at positions with high next-byte surprisal. It then proposes Sombrero, a Hierarchical Autoregressive Transformer variant that steers boundary placement toward predictive difficulty using a confidence-alignment boundary (CAB) loss and stabilizes learning with byte-level smoothing, rather than chunk-level smoothing. Empirically, on 1B-scale UTF-8 data spanning English, German, code, and math, Sombrero improves the accuracy–efficiency trade-off and yields boundaries that better align compute with hard-to-predict positions, with substantial gains in boundary enrichment and robust target compression across settings. The results support tokenizer-free hierarchical modeling as a practical alternative to fixed-tokenization schemes and provide concrete diagnostics and training levers for steering where expensive backbone compute is spent, while outlining directions for scaling, deeper hierarchies, and hardware-aware optimizations.
Abstract
Hierarchical sequence models replace fixed tokenization with learned segmentations that compress long byte sequences for efficient autoregressive modeling. While recent end-to-end methods can learn meaningful boundaries from the language-modeling objective alone, it remains difficult to quantitatively assess and systematically steer where compute is spent. We introduce a router-agnostic metric of boundary quality, boundary enrichment B, which measures how strongly chunk starts concentrate on positions with high next-byte surprisal. Guided by this metric, we propose Sombrero, which steers boundary placement toward predictive difficulty via a confidence-alignment boundary loss and stabilizes boundary learning by applying confidence-weighted smoothing at the input level rather than on realized chunks. On 1B scale, across UTF-8 corpora covering English and German text as well as code and mathematical content, Sombrero improves the accuracy-efficiency trade-off and yields boundaries that more consistently align compute with hard-to-predict positions.
