NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Backtracking Where the Two Directions Disagree

A transition-based dependency parser builds a sentence's grammatical tree by reading words in order and taking one irreversible action at a time, such as "push this word onto a stack" or "attach this word to that one." When it reads left to right, it often has to commit to an attachment before it has seen the word that settles the question. The result is a known, measured asymmetry. Bidirectional Transition-Based Dependency Parsing showed that left-to-right parsers make most of their errors in the last 30% of a sentence, while right-to-left parsers make most of theirs in the first 30%. This holds even when both parsers sit on a bidirectional LSTM encoder that already sees the whole sentence. That paper fixes the problem by having the two parsers repeatedly re-decode toward agreement. The fix works: unlabeled attachment score (UAS, the fraction of words assigned the correct head) on the Penn Treebank rises from 93.54% to 94.60%. It also costs about four full decoding iterations of two parsers. The more principled alternative, dual decomposition, fails to converge within 100 iterations.

This proposal asks a narrower question: where should a parser spend extra computation? The places where the forward and reverse parsers disagree are an almost free signal of where the forward parser went wrong. We propose disagreement-guided backtracking. The method runs both parsers greedily once. It then jumps back only to the forward-parser decisions that committed to an arc the reverse parser contests, and re-parses forward from there under a fixed budget of extra predictions. The second half of the contribution is methodological, and it answers the "lack of empirical validation" theme directly. Bidirectional reconciliation methods have been compared mostly on accuracy, with compute reported unevenly or not at all. We compare all of them on accuracy-versus-compute curves under one implementation, one encoder and one tuning budget. That includes dual decomposition, which comes with theoretical guarantees, and the dynamic-oracle and voting heuristics, which do not.

Core Claim

At an equal budget of model predictions per sentence, backtracking to bidirectional disagreement points recovers most of the accuracy gain of iterative dynamic-oracle consensus at a small fraction of its cost. It also beats margin-based backtracking, which picks the choice point by the forward parser's own confidence. The claim rests on two observations that have not been put together. The first is that directional errors are positionally mirrored, so the reverse parser is reliable exactly where the forward parser is not. The second comes from Transition-Based Dependency Parsing with Heuristic Backtracking: a single, well-chosen backtrack recovers nearly all of beam search's gain (93.30% versus 93.32% UAS) with 198 rather than 542 predictions per sentence. That paper chose the choice point using the forward parser's own decision margin, and a parser's confidence is poorly calibrated in exactly the late-sentence region where it fails. We replace self-confidence with cross-directional disagreement. If the claim is wrong, the curves will show it, because margin-guided and disagreement-guided backtracking can be run at identical budgets.

Research Program

We first reimplement the setting of Bidirectional Transition-Based Dependency Parsing: two arc-hybrid transition parsers, one reading left to right and one right to left, each on a two-layer bidirectional LSTM encoder in the style of Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations. From that paper we reuse the representation, and from the bidirectional paper the dynamic oracle.

The decoder works in four steps. First, both parsers decode greedily, and we collect the set of words whose predicted heads differ. Second, for each contested word we locate the earliest forward transition after which the reverse parser's proposed arc became unreachable. The arc-hybrid dynamic oracle computes this cheaply: it is the same reachability test the oracle already uses, run with the reverse tree as the reference. Third, we rank these points, earliest first or by reverse-parser margin, and backtrack to the top one. There we force the action that keeps the reverse arc reachable, then continue greedily. Fourth, we repeat until the budget of $B$ extra predictions per sentence is spent or no disagreement remains. Among the candidate trees produced, we return the one with the highest summed score under both models.

There are no iterations to converge. Cost is bounded by construction at two greedy passes plus $B$, which is the property the iterative methods lack.

The analysis has three parts. The first measures how good disagreement is as an error detector: the precision and recall with which contested words coincide with forward-parser errors, broken down by normalized sentence position and dependency length. The second traces accuracy against predictions per sentence and wall-clock time for every method, with $B$ swept from zero upward. The third is typological. Reverse Revision and Linear Tree Combination for Dependency Parsing found that right-to-left parsing beats left-to-right for Czech and Italian, while the reverse holds for English. The early two-way-automaton work, such as Two-Way Finite Automata and Dependency Grammar: A Parsing Method for Inflectional Free Word Order Languages, motivated bidirectionality with free-word-order, richly inflected languages. We test whether the better base direction, and the value of disagreement-guided repair, track head-direction and word-order freedom across Universal Dependencies languages. If they do, the base direction can be chosen per language before any backtracking.

Baselines

The naive reference point is a single greedy left-to-right parser. The bidirectional paper reports 93.54% UAS for it on the Penn Treebank. The greedy Stack-LSTM figure of 93.04% on Stanford Dependencies, from the backtracking paper, uses a different conversion and is not directly comparable, so we rerun both baselines ourselves.

The strongest existing method is dynamic-oracle guided joint decoding from Bidirectional Transition-Based Dependency Parsing, reported at 94.60% UAS on the Penn Treebank and 83.02% UAS on UD 2.2 German (from 81.62%), after four consensus iterations. It is the strongest competitor because it uses exactly the same two parsers and the same directional signal. The only difference is how computation is spent. We run it on our own trained parsers and record predictions and wall-clock time per iteration. That turns it into a curve, from one to four iterations, rather than a single point. Beating it means matching its UAS within seed variance at a lower prediction count, or exceeding it at an equal count.

Margin-based heuristic backtracking from Transition-Based Dependency Parsing with Heuristic Backtracking runs on the same forward parser. It is reported at 93.30% UAS with 198 predictions and 93.27% with 108 when its early-cutoff classifier is added. It is the ablation that isolates our key ingredient: the backtracking machinery is held fixed, and only the choice-point signal changes. To make the comparison fair, it receives the reverse parser's prediction budget as extra backtracking budget.

Linear voting combination from Reverse Revision and Linear Tree Combination for Dependency Parsing combines the two greedy trees in linear time. That paper reports 11.2 seconds on the CoNLL-X test set against 92.5 seconds for spanning-tree combination. It is the cheapest way to use both directions, and our method must beat it at zero or small $B$ to justify itself. Dual decomposition gets the same per-iteration accounting.

We add one further ablation: a second left-to-right parser trained from a different random seed replaces the reverse parser. It tests whether disagreement helps because of directional complementarity or merely because any second model provides error diversity.

All systems share the encoder, the training data, five seeds, and an identical hyperparameter search budget. We report the mean and spread across the seeds.

Why not just…?

Why not just use a graph-based parser on the same bidirectional encoder? A graph-based parser scores all head choices globally and has no reading direction, so it plausibly has no positional bias at all. This is the most serious threat. Simple and Accurate Dependency Parsing Using Bidirectional LSTM Feature Representations reports 93.9% UAS on the Penn Treebank for its BiLSTM parser. That is between the greedy transition baseline and the dynamic-oracle consensus result, but the file does not cleanly separate the transition and graph variants under identical conditions. We therefore include a first-order graph-based parser on our encoder as a reference curve, with quadratic decoding time measured. If it dominates our method on both accuracy and wall-clock time, the honest conclusion is that directional repair of transition parsers is not worth pursuing. That conclusion would itself be a validation result the literature lacks. Transition parsers keep their incremental, linear-time decoding, so the comparison that matters is on long sentences, where the quadratic cost becomes visible.

Why not just use beam search? The backtracking paper already shows beam search spending 542 predictions per sentence for an accuracy that a single targeted backtrack nearly matches. A forward beam also keeps the forward model's blind spot: every hypothesis in the beam is scored by the same model that cannot see which late attachments are wrong. We include beam widths matched to our prediction budgets, so the curves show this directly. If beam search wins at equal budget, the disagreement signal adds nothing.

Why not just run dynamic-oracle consensus for one iteration? Truncating the existing method is the obvious cheap variant, and it may close much of the gap. Our iteration-indexed curve tests exactly this. Our method differs in spending its budget only at contested decisions instead of re-decoding whole sentences. If one-iteration consensus matches disagreement-guided backtracking at equal predictions, we will report that the targeting does not matter.

Why not just combine the two greedy trees by voting? Voting is nearly free, but it can only choose between arcs the two parsers already proposed. Backtracking lets the forward parser re-derive the downstream structure after a corrected early decision, so it can fix cascades that neither tree contains. The comparison at $B=0$ versus small $B$ measures how much of the gain comes from re-derivation.

Proposed Experiments

The main experiments use the Penn Treebank, the Chinese Treebank, and UD 2.2. For UD we take German, where the dynamic-oracle numbers exist, together with Czech and Italian, where right-to-left parsing was reported to win, and further head-final and free-word-order treebanks for the typology analysis. For out-of-domain robustness we use the Google Web Treebank. Dependency Parsing with LSTMs: An Empirical Evaluation evaluated on it, though the file reports no breakdown numbers for it, so all of these will be new measurements. Metrics are UAS and labeled attachment score, model predictions per sentence, and wall-clock seconds on fixed hardware. Results are stratified by sentence position and dependency length.

Three checks decide the outcome. The first: at a budget equal to one extra greedy pass, does disagreement-guided backtracking come within seed variance of four-iteration dynamic-oracle consensus? The second: at every budget, does it beat margin-guided backtracking and same-direction disagreement? If directional disagreement does no better than seed disagreement, the core claim fails. The third: does the accuracy gain concentrate in the final third of sentences, where forward-parser errors were reported to cluster, and does it shift across languages in the direction the typology analysis predicts? A positive answer on all three, with the graph-based reference curve reported alongside, would show a cheap, convergence-free way to use bidirectionality in transition parsing, together with the first compute-matched comparison of the methods for doing so.