Many writing systems, including Chinese, Japanese, and Thai, put no spaces between words, so a program has to decide where words begin and end. The strongest unsupervised approach trains a segmental language model, a character-level model that scores a sentence by summing over every possible way of cutting it into words. That sum is computed with dynamic programming, a table-filling algorithm that reuses shared partial results. These models have two practical problems. Training often settles into a bad solution: the model cuts everything into single characters, memorizes whole phrases, or splits words into morphemes. And the full dynamic program is slow, so the models have only been tested on small benchmarks.
This note proposes one mechanism aimed at both problems, borrowed from constraint solving. Search solvers decide the order in which to fix variables while they run, and fixing the most certain variables first makes the rest of the problem smaller and better constrained. We apply the same move during training. At each round we fix, or "clamp," the word boundaries the model is currently most sure about, and we sum only over segmentations consistent with those clamps. The set is recomputed every round and shrinks to nothing by the end of training. A clamped boundary also cuts the sentence into pieces that the dynamic program can handle independently, so the same mechanism that steers optimization also reduces computation.
Core Claim
Treat each gap between adjacent characters as a binary variable $b_i$ that is 1 if a word boundary falls there. Let $q_i = p_\theta(b_i = 1 \mid x)$ be the model's current probability of a boundary at gap $i$ in sentence $x$, computed by the standard forward-backward pass. The binary entropy $h(q_i)$ measures how unsure the model is about that gap.
At training round $r$, we clamp the fraction $\rho_r$ of gaps with the lowest $h(q_i)$ to their most likely values. We then maximize the likelihood restricted to segmentations $s$ that agree with the clamped set $C_r$:
$$\mathcal{L}_r(\theta) = \log \sum_{s \,:\, s \text{ agrees with } C_r} p_\theta(x, s),$$
The schedule $\rho_r$ starts at a value like 0.5 and decreases to 0, so the final model is trained on the ordinary, unrestricted objective.
We claim three things. First, clamping in certain-first order makes training land in good solutions far more reliably across random seeds than the unrestricted objective does. We expect this to raise the median F1 and to shrink the fraction of seeds that collapse into degenerate segmentations. Second, the benefit comes from which gaps get clamped, the ordering, not merely from restricting the lattice or annealing it uniformly. Third, because each clamped boundary splits the lattice, early-training cost drops roughly in proportion to $\rho_r$. That saving is what makes it feasible to train on corpora much larger than the SIGHAN benchmarks.
Why This Intersection, and What Is Already Done
The ordering idea comes from search. Variable and Value Ordering for MPE Search finds the most probable joint assignment in a graphical model, and it branches on low-entropy variables first so that it obtains tight bounds early. Online Bayesian Moment Matching based SAT Solver Heuristics branches on SAT variables whose estimated marginals are closest to 0 or 1. Both use the ordering at inference time, inside a single search. We use it across training rounds, where it shapes which parts of the lattice the gradients come from.
The decomposition view comes from Recursive Decomposition for Nonconvex Optimization, known as RDIS. RDIS assigns values to a small set of continuous variables so that the remaining objective splits into independent pieces, and it escapes the local minima that trap gradient descent with restarts on structure-from-motion and protein-energy problems. RDIS works on explicit algebraic energy functions and chooses its cut variables by graph partitioning. We choose ours by model certainty, on a latent segmentation.
The segmentation side supplies both the problem and the base models. Unsupervised Neural Word Segmentation for Chinese via Segmental Language Modeling introduced the recurrent segmental language model, trained by full dynamic programming with a hard maximum word length $K$. Small $K$ causes over-splitting, and large $K$ causes merged words. A Masked Segmental Language Model for Unsupervised Natural Language Segmentation moved the idea to transformers and reports median F1 over runs, which already signals seed variance. It also found that length penalties gave no gains. Unsupervised Word Discovery with Segmental Neural Language Models needed an expected-length penalty to stop the model from memorizing long strings, and it still splits words into morphemes. These three papers motivate the proposal. Unrestricted training has bad basins, and the standard remedy, a length penalty, does not transfer reliably across architectures.
Sequence Modeling via Segmentations constrains the design on the cost side. Its exact marginalization runs about 5× slower than CTC, and its authors leave large-scale data as an open problem.
The closest existing idea is continuation, meaning gradually smoothing then sharpening the objective. A Theoretical Analysis of Optimization by Gaussian Continuation bounds the quality of solutions found by Gaussian smoothing in continuous spaces. Our schedule is also a continuation, but a discrete and selective one. It restricts particular variables rather than blurring the whole landscape. Whether that selectivity matters is the central empirical question, and a uniform-annealing baseline tests it directly.
Finally, Unsupervised Segmentation of Chinese Text by Use of Branching Entropy places boundaries where character-level uncertainty spikes. On People's Daily it reaches 88% precision and 79% recall. Its precision stays near 90% from 10 KB to 200 MB of training text, while recall grows only with the log of corpus size. This supplies our initial clamps before the model has any posteriors. It also suggests an asymmetry worth exploiting: a small set of high-precision boundaries is cheap to obtain, while completing the segmentation is the hard part.
Research Program
The build has three parts.
The first is a clamped forward-backward routine for both the recurrent and the masked-transformer segmental models. When a boundary is clamped to 1, the routine processes the chunks on either side as separate short lattices, which batch well. When a boundary is clamped to 0, the routine removes every segmentation that cuts there. The routine counts lattice cells visited, so compute savings can be reported independently of hardware.
The second is the ordering policy. For the first epoch, the clamp scores come from branching entropy. After that, the model's own $h(q_i)$ is recomputed with a full unclamped pass every few epochs. This periodic pass is the "backtracking" step. It lets a clamp that the model has come to doubt be released rather than locked in.
The third is a small set of schedules for $\rho_r$ (linear, step, and cosine decay to zero), chosen on a held-out development split.
The analysis asks where each seed ends up. For every run we record the final segmentation's mean word length, its fraction of single-character words, and its fraction of sentence-length memorized spans. We then plot the full distribution of F1 across 20 seeds, not only the median, so that entrapment is observed directly rather than inferred.
Baselines
The do-nothing reference is the unrestricted segmental model trained exactly as published. We run the recurrent model of Sun & Deng and the masked transformer model of Downey et al. with the same encoders, the same $K$, 20 seeds, and the same number of training steps as our method.
The strongest reported unsupervised neural result in the file is 79.2 F1 on PKU for the recurrent segmental model, from Sun & Deng. Downey et al. report a median of 59.4 for their reimplementation of that recurrent model and 62.9 for the masked transformer on PKU. On PTB with spaces removed, they report 75.7 for the recurrent model and 69.3 for the transformer. The gap between 79.2 and 59.4 almost certainly reflects different evaluation and preprocessing protocols. We will therefore re-run every baseline under one protocol and report both conventions. Beating the baseline means a higher median F1 and a lower collapse rate than the best re-run baseline on PKU and MSR, with non-overlapping bootstrap intervals, at equal or lower total compute.
For the phonemic Brent corpus, the reference is SNLM at 79.3 F1. We run it with its length regularizer tuned on the same development budget as our schedule.
Three ablations isolate the key ingredient.
- Random clamping clamps the same fraction $\rho_r$ of gaps, but chooses them at random. This separates the effect of ordering from the effect of simply restricting the lattice.
- Static clamping fixes the branching-entropy boundaries once and never updates them from the model. This separates dynamic ordering from simply injecting a heuristic.
- Uncertain-first clamping clamps the highest-entropy gaps first, which is the literal fail-first choice. This tests which direction of ordering helps when the goal is guiding a learner rather than proving a dead end.
Every variant gets the same hyperparameter search budget and the same GPU-hours.
Why not just…?
Why not just use branching-entropy boundaries as pseudo-labels? This is the most serious threat. Sun & Deng show that 1,024 gold segmented sentences lift PKU F1 from 79.2 to 87.5, and branching entropy gives about 88% precision for free. A static pseudo-label run could capture most of our gain. The static-clamping ablation is exactly this alternative, run inside the same model. If it matches the dynamic version, then the contribution is really "cheap weak supervision," and we would report it that way and drop the ordering claim. Our reason to expect a difference is the 79% recall figure. Static labels leave about a fifth of boundaries unaddressed and wrongly fix about a tenth, whereas the dynamic policy can release wrong clamps and extend coverage as the model improves.
Why not just anneal the posterior temperature uniformly? Deterministic annealing is the textbook discrete continuation. It is also what Gaussian continuation amounts to once transplanted to this setting. We include it with a tuned schedule. The distinction we test is whether flattening all gaps equally helps as much as committing the confident ones. If uniform annealing matches our method on the seed-F1 distribution, the compute saving is our only remaining advantage, and we would say so.
Why not just run many seeds and keep the one with the best likelihood? Restarts are cheap to describe. RDIS found that restarts lose to structured decomposition in continuous problems, but that evidence comes from a different domain. We run best-of-$k$ selection by development likelihood at matched total compute. This also tests whether likelihood even ranks good segmentations first. The mismatch between bits-per-character and F1 reported by Downey et al. on PTB suggests it may not.
Why not just split sentences at punctuation to save compute? Punctuation cuts are a free, fixed version of clamping. We include them as the speed baseline and measure lattice cells visited and wall-clock time against our method at equal F1.
Proposed Experiments
The main benchmarks are PKU, MSR, AS, and CityU from SIGHAN 2005, scored with word-level F1. Brent phonemic and PTB with spaces removed test whether the effect carries over to alphabetic, phoneme-like input, where Downey et al. found the recurrent model ahead of the transformer.
For the scale experiment, we train on unsegmented Chinese text at 10 KB, 1 MB, 10 MB, and the largest pool we can assemble, targeting the roughly 200 MB regime of Jin & Tanaka-Ishii. We evaluate on the fixed SIGHAN test sets, reporting precision and recall separately so that the results can be compared with their observation that precision stays flat while recall grows.
Three outcomes are decisive. First, across 20 seeds, dynamic certain-first clamping should shift the whole F1 distribution upward and cut the collapse rate relative to unrestricted training, random clamping, and uniform annealing. Second, it should beat static clamping, or else the ordering claim fails. Third, on the largest corpus, clamped training should reach the baseline's F1 with substantially fewer lattice cells, and the gap should widen with scale. If the second outcome fails, the method is still useful as a scaling device. If the first fails, the entrapment hypothesis is wrong for these models and the proposal reduces to an efficiency trick.
References
- Variable and Value Ordering for MPE Search
- Online Bayesian Moment Matching based SAT Solver Heuristics
- Recursive Decomposition for Nonconvex Optimization - IJCAI-15 Distinguished Paper
- Unsupervised Neural Word Segmentation for Chinese via Segmental Language Modeling
- A Masked Segmental Language Model for Unsupervised Natural Language Segmentation
- Learning to Discover, Ground and Use Words with Segmental Neural Language Models
- Sequence Modeling via Segmentations
- A Theoretical Analysis of Optimization by Gaussian Continuation
- Unsupervised Segmentation of Chinese Text by Use of Branching Entropy