arXiv:2611.00939cs.CLOct 2026

Manuscript Offprint

arXiv:2611.00939

Reformulation and Equivalence of Bock's Algorithm for Exact Dependency Parsing

Yuxi Wang, Jungyeul Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Bock's algorithm provides a matrix-based alternative to Chu–Liu/Edmonds (CL/E) for exact dependency parsing. We present a reformulation that retains original node and arc identities through component labels, column adjustments, and star-and-bar transfers. In exact arithmetic, we prove operational equivalence to original Bock under matching scan and tie rules, and establish correspondence with corrected Tarjan under a prescribed component schedule. A separate analysis establishes optimal-value equivalence with Dozat-derived CL/E under the stated score and single-root conventions. We integrate reformulated Bock into a biaffine dependency parser and evaluate decoding and structured training on the Penn Treebank and Chinese Treebank. These results establish Bock as an alternative exact oracle for dependency parsing and structured training, while distinguishing equality of optimal values from identity of returned trees and training trajectories.

1 Introduction

Exact arborescence inference is a standard component of graph-based dependency parsing. Given scores for individual head–dependent arcs, the decoder selects a highest-scoring tree subject to the required structural constraints (McDonald et al., 2005). The Chu–Liu/Edmonds (CL/E) algorithm provides the classical basis for this computation (Chu and Liu, 1965; Edmonds, 1967). Neural parsers retain this separation between learned arc scores and exact tree inference, including parsers using biaffine scoring (Dozat and Manning, 2017). CL/E resolves directed circuits among provisionally selected arcs through contraction and recovers original arcs through expansion. Recent comparisons of implementations of Edmonds' algo-

rithm show that practical performance depends on graph structure and the data structures used (Böther et al., 2023).

Frederick C. Bock's 1971 algorithm (Bock, 1971) solves the rooted arborescence problem through a matrix-based representation. It retains the original matrix and node indices, represents contracted components by shared labels, and selects entering arcs using column adjustments. Starred predecessors record provisional links, while barred references guide the transfers that replace them. These operations are interleaved in the original Algol procedure through label-directed control flow. Their interaction requires a precise account to establish that a modern implementation preserves the original computation.¹

We give an executable reformulation that separates candidate search, column adjustment, backward tracing, contraction, and star-and-bar transfer while preserving their dependencies and assignment order. In exact arithmetic, we prove its operational correspondence with Bock's original procedure under matching input conventions, scan order, and tie resolution. Corresponding maintained states yield the same candidate choices, component partitions, and final original arcs.

We also establish the relationship between the reformulation and CL/E. Under a prescribed component schedule and a common ordering of original arcs for resolving ties, we prove correspondence with Tarjan's implementation of Edmonds' method (Tarjan, 1977), using the corrected value and recovery rules (Camerini et al., 1979). This correspondence aligns component formation, ad-

¹Both Chu–Liu and Bock minimize the cost of a rooted arborescence (Chu and Liu, 1965; Bock, 1971). Edmonds develops a maximum-weight branching algorithm and gives reductions for both minimum- and maximum-weight rooted arborescences (Edmonds, 1967). The CL/E parser used here maximizes tree scores. Negating arc scores aligns these objectives when the admissible arcs and root constraints agree.

*Corresponding author.

justed selection values, and recovered arc sets, including when the optimum is nonunique. A separate analysis establishes optimal-value equivalence with the Dozat-derived CL/E implementation used in Stanza (Qi et al., 2020) under the stated score conventions and exactly-one-root-child constraint. These results distinguish correspondence between coupled executions from equality of optimal values and identity of native returned trees.

We integrate reformulated Bock into Stanza for prediction and loss-augmented inference. Experiments on dependency conversions of the Penn Treebank (PTB) (Marcus et al., 1993; de Marneffe et al., 2006; Schuster and Manning, 2016) and Chinese Treebank (CTB) (Xue et al., 2005; Xue, 2007) compare local cross-entropy with CL/E-and Bock-based structured-hinge training under shared architecture, features, and optimization settings. Each condition uses its corresponding decoder for development selection and final prediction. On identical scores from the selected PTB and CTB local-CE models, CL/E, original Bock, and reformulated Bock return identical development and test parses and objective values. These results establish Bock as an alternative exact oracle for dependency parsing and structured training.

References (33)