Top Accuracy and Fast Dependency Parsing is not a Contradiction
Paper · 2010 · Bernd Bohnet
Summary
A parser can make good syntactic decisions and still be too slow to use comfortably. Bernd Bohnet’s paper examines that problem by asking where a strong dependency parser actually spends its time. The answer changes the engineering priority. In the system studied, searching for a dependency tree was much cheaper than preparing the scores that guided the search. Much of that preparation time went into a dictionary that connected features with their learned weights. Removing this intermediate lookup produced a substantial speed improvement without requiring a simpler parsing algorithm.
The starting system combined Carreras’s higher-order projective parser, a procedure for introducing non-projective dependencies, and passive-aggressive learning. A dependency tree represents grammatical relationships as directed links between words; the links also carry labels identifying the relationships. Higher-order scoring considers combinations of links instead of judging every link completely on its own. Such scoring can improve decisions, but it also requires many feature evaluations. On the English data, the projective search took 12.5 ms per sentence, whereas feature extraction required 1223 ms. An experiment that omitted the feature dictionary reduced extraction time to 88 ms. The dictionary operation accounted for 93% of extraction time and 91% of the complete parsing time.
Bohnet replaced the dictionary with a Hash Kernel: a hash function sends a feature directly to a position in the weight array. Different features can reach the same position, so this representation introduces collisions. Nonetheless, sufficiently large arrays maintained strong attachment scores. The change also allowed training to use features arising from incorrect predicted structures, which the baseline had filtered out to control storage. The resulting parser improved on the baseline’s labeled attachment score across the languages in the final comparison. Its reported average was 86.33, compared with 85.10 for the baseline and 85.77 for the collection of best CoNLL 2009 results.
The paper then distributes feature scoring and parsing work across CPU threads. Direct hashing improves the effectiveness of this parallel execution by reducing pressure on memory transfers. For the English test set, the complete implementation reached an average of 77 ms per sentence; the paper reports an overall speed improvement of 16 times relative to its conventional implementation. This does not establish that its parser was the best individual system for every language: Catalan, Chinese, and Japanese remained below their strongest shared-task results. It does establish that careful representation and implementation choices can improve speed while preserving, and here improving, syntactic accuracy. The parser and Hash Kernel were released as open-source components of mate-tools.
Interesting ideas
Profile the complete decision process. An algorithm’s formal complexity can direct attention toward the wrong component. Bohnet measures feature preparation, score construction, tree search, and subsequent tree modification separately. The expensive search procedure turns out to occupy a relatively small part of elapsed time. The reusable idea is to measure the boundaries between stages before deciding which algorithm needs replacement. It applies wherever a compact decision procedure depends on a large amount of preparatory work.
Remove an expensive intermediate representation. The original feature dictionary did more than identify stored features: it also tested whether newly generated features belonged to the retained inventory. Direct hashing removes that entire mediation step. The broader lesson is that a representation maintained for exactness or convenience may cost more than the computation it supports. Replacing it with a controlled approximation can be useful when the approximation is measurable and the downstream quality criterion remains explicit.
Learn from the alternatives the system actually considers. The baseline retained features associated with reference structures but rejected other features generated during prediction. The Hash Kernel gave those additional features somewhere to store a weight. This changes the learning opportunity as well as the implementation. In other structured prediction tasks, an incorrect candidate may contain useful evidence about what the learner should suppress. A storage policy should therefore be assessed for its effect on the learner’s available distinctions.
Reduce memory traffic before adding threads. Parallel execution helps less when workers repeatedly compete for data from main memory. The feature dictionary required scattered accesses across several arrays; hashing directly into weights reduced that burden. This suggests a practical order for optimization: understand data movement, simplify access patterns, and then distribute independent computation. The paper’s timing results support that sequence for its parser, rather than a general promise that more threads will accelerate every workload.
Use a shared queue for uneven independent work. The parallel feature extractor creates jobs associated with word pairs, and workers repeatedly take the next available job. A worker that finishes early can continue with another pair rather than waiting for a fixed allocation to finish elsewhere. This design is useful when many tasks are independent but their costs may vary. Its attraction is that the scheduler need not predict every task’s running time accurately in advance.
Require evidence before making a local structural edit. The non-projective approximation does not have to accept every apparent score improvement. A tunable threshold can demand a stronger reason to rearrange a dependency. The paper’s development-set analysis shows why this matters: a more permissive editing policy does not necessarily produce better attachment accuracy. The principle extends to correction systems in which local score changes are imperfect guides to global correctness.
Deep dive: Top Accuracy and Fast Dependency Parsing is not a Contradiction
Why dependency parsing became faster through direct feature hashing and parallel execution, with accuracy results and practical limits. · about 34 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, this paper offers a concrete set of engineering proposals for the tree and learn stages. The available Mova plans describe possible changes, rather than completed implementations or measured gains. The honest connection is therefore a development agenda: instrument the parser, test a different feature representation, distribute suitable work, and evaluate structural corrections. The paper does not establish what any of these changes would achieve in Mova’s code.
The first proposal concerns measurement in tree. Mova’s perceptron parser could record the time spent constructing features, locating weights, calculating scores, decoding a tree, and applying any subsequent repairs. These measurements should be attached to the actual stage boundaries so that an expensive lookup does not disappear inside a broad “feature extraction” total. Bohnet’s result makes this distinction especially relevant: the feature templates themselves were not the main cause of the observed delay.
For Mova’s files and tests, the useful output would be a reproducible timing record associated with the parser configuration and evaluation data. The record should make it possible to compare the same workload before and after an implementation change. No particular file names or existing benchmark infrastructure are established by the Mova note. What the paper contributes is the experimental separation: measure the work needed to form a key, the work needed to reach its weight, and the work needed to choose a tree.
The second proposal is to replace a feature-to-index dictionary with direct hashing into a weight array. In Mova’s tree stage, that would mean keeping a stable feature-key construction procedure while changing how keys address learned parameters. The important tradeoff would become visible in the representation: a bounded array is simpler to access, but collisions can make unrelated features share a weight. Mova would need to compare attachment quality and resource use across suitable array sizes rather than assume that the paper’s selected size transfers to Rust or to Mova’s data.
This could also make training on silver data cheaper. Silver data, in the Mova plan, is the material used for retraining from witness parsers rather than manually established reference analyses. The paper gives a reason to investigate cheaper feature storage and lookup in that setting. It does not test Mova’s silver-data procedure, and it does not establish that hashing improves the reliability of the witness annotations. Those are separate questions: faster processing can make retraining easier without resolving disagreements in the training material.
The proposal for learn is to preserve accuracy as a hard constraint while trying implementation improvements. When several witness parsers contribute training material, Mova could first investigate its data structures and parallel feature construction. The relevant test is whether the changed implementation preserves the intended learning and parsing behavior, followed by whether the resulting trained parser maintains attachment quality. A speed improvement should not silently become an alteration of which examples or features participate in learning.
A further tree proposal follows the paper’s shared-work-list design. Scores for candidate head–dependent pairs could be prepared by several CPU workers, with each worker taking another pair when it finishes its current assignment. That is a plausible way to distribute scoring with limited changes to the surrounding parser. It remains a proposal: the amount of code required depends on how Mova currently shares inputs, stores scores, and coordinates decoding. The paper supports the decomposition, not a claim that thread safety or integration comes automatically.
Finally, if Mova converts projective output into non-projective Universal Dependencies trees, each proposed edit could require a configurable score margin. A development treebank would determine the margin, while separate evaluation data would assess the resulting accuracy. Useful tests would check that edits respect the threshold, that the output remains a valid tree, and that the selected setting earns its place through attachment results. The paper supplies a reason to expose this decision as a parameter. It does not supply a ready-made setting for Mova.
The problem and its context
Accurate syntax under practical time constraints
The paper begins from an application problem. A parser can deliver excellent grammatical analyses but still impose an unacceptable delay on the system that calls it. The introduction describes training that can occupy several days and sentence analysis that can take as long as a minute on average. It contrasts those demands with applications that must respond quickly. Dialogue systems have limited time to process an utterance, while machine translation may need to inspect many candidate translations within its available processing time.
The relevant question is therefore broader than whether a parser eventually returns a good tree. Its training procedure must also be manageable, and its prediction procedure must fit the application’s budget. A method can be scientifically competitive while remaining awkward to retrain or deploy. Bohnet treats that engineering gap as a research problem instead of an unavoidable consequence of pursuing high accuracy.
The paper distinguishes improvements that preserve quality from changes that exchange quality for speed. Faster algorithms, better implementations, parallel execution, and removal of unhelpful features belong to the former category when their effect on accuracy is controlled. Reducing search effort can belong to the latter. The stated priority is to investigate improvements that avoid an accuracy loss before accepting a weaker result for the sake of shorter running time.
That priority shapes the baseline. The paper does not begin with a deliberately minimal parser and ask how far its quality can be pushed. It begins with a strong higher-order approach and asks why it is expensive. Keeping the main parsing architecture provides a useful experimental anchor: substantial changes in elapsed time can then be connected to representation and execution choices rather than to replacing the task with an easier approximation.
Transition-based and graph-based approaches
The related-work discussion separates dependency parsing into transition-based methods and methods based on maximum spanning trees. A transition-based parser constructs an analysis through a sequence of operations. The paper cites Nivre’s projective parsing algorithm and Yamada and Matsumoto’s dependency analysis among the antecedents of that family.
In the paper’s account, transition-based approaches typically have linear or quadratic complexity. Nivre’s non-projective algorithm is described as having quadratic worst-case behavior but linear expected running time. The review also mentions a transition-based approach that combines beam search with latent-variable learning. These distinctions matter because “transition-based” does not identify a single fixed search cost or learning setup.
The other family scores candidate structural parts and searches for a compatible tree. Earlier work includes Eisner’s dependency parsing study and McDonald and Pereira’s approximate parsing algorithms. A structural part contributing to a score is called a factor. For a first-order dependency parser, the basic factor consists of a head, a dependent, and a dependency label.
Higher-order methods incorporate relationships among these basic links. In the paper’s description, McDonald and Pereira add information involving nearby children, while Carreras includes additional child and grandchild relationships. Carreras also incorporates label selection into the parsing procedure. These richer factors let a decision depend on a local structural configuration rather than only on the two words connected by an individual edge.
The cost is a larger search procedure. The paper gives the following complexity for its Carreras-based algorithm:
O(n^4)
Here, n is sentence length, and O describes how the algorithm’s computational work grows with that length. The expression concerns the search algorithm’s scaling. It does not state how much of an actual implementation’s elapsed time is spent searching rather than preparing its inputs.
Why asymptotic cost was an incomplete explanation
The related-work discussion already gives reasons not to infer practical speed directly from the parser family. Although transition-based algorithms have lower stated complexity, the paper reports comparable running times for some systems in the shared tasks it discusses. A transition-based system’s training ranged from 2.2 days for English to 4.7 days for Czech in joint syntactic and semantic dependency learning. Its reported prediction speed was roughly a word per second.
Those figures are context, not a controlled comparison with Bohnet’s implementation. The cited systems have their own learning objectives and search settings. The paper also notes that reducing beam size can accelerate a parser while slightly lowering accuracy. That example illustrates why a running-time comparison needs to say what work is being performed and what quality is retained.
For a higher-order system using Carreras’s algorithm, the review reports English training lasting 2.4 days. The point is not that every implementation in that family must take that long. Rather, expensive training and prediction were real enough that a systematic diagnosis could have practical value.
Bohnet therefore combines Carreras’s higher-order parser with non-projective approximation and passive-aggressive learning, drawing on the line represented by online large-margin dependency training. This creates a strong, recognizable starting architecture. The investigation then asks which component deserves optimization, with measured time rather than theoretical reputation deciding the answer.
The method, step by step
Start with the complete training and prediction pipeline
The baseline learns from sentences paired with reference dependency structures. A reference structure specifies which word governs each dependent and which label belongs to the connection. Candidate structures receive scores derived from features, and training adjusts feature weights so that reference analyses are preferred to incorrect alternatives.
The training collection is written as:
τ = {(x_i, y_i)}ᵢ₌₁ᴵ
The symbol τ denotes the training collection. Each x_i is a sentence, y_i is its reference dependency structure, i identifies an example, and I is the number of examples. The pair is important: learning requires both the observed sentence and the desired structural answer.
The baseline first extracts possible features from each training sentence and writes their indexed representations to disk. During subsequent passes through the data, it reads these representations and uses the current weights to construct arrays of factor scores. These arrays supply the projective decoder and the non-projective approximation procedure.
From training sentences to scored dependency trees
The steps in order.
The flow shows the Hash Kernel version of the procedure. The baseline has an additional preparatory storage stage, while the hashed version constructs features during training rather than preserving the same indexed feature files.
This storage choice matters. According to the paper, reading previously constructed features can be up to 5 times faster than rebuilding them on every pass. The benefit comes with substantial resource demands: the English baseline requires 3GB of main memory and a training feature file occupying 100GB of disk space. A faster inner loop can therefore depend on expensive preparation and storage.
Represent grammatical evidence as features
A feature is a machine-readable description of some property of a candidate structure. The paper’s feature inventory includes the words involved in a dependency, their part-of-speech tags, their lemmas, morphological information, word order, and distance. A lemma supplies a dictionary-like lexical form, while part-of-speech tagging supplies grammatical categories used by many of the templates.
These properties are combined rather than considered only in isolation. A feature can connect a dependency label with information about the head and dependent. Other templates inspect neighboring tags in the sentence. Higher-order templates introduce a sibling or grandchild, letting the score reflect a configuration of related dependencies.
In the paper’s notation, h identifies a head and d a dependent. The symbol s identifies a sibling, and g identifies a grandchild. The feature groups distinguish ordinary edge evidence from sibling and grandchild evidence. They also contain contextual templates based on words adjacent to the positions involved.
The feature table uses l for a dependency label and distinguishes surface forms, part-of-speech categories, lemmas, and morphological attributes. It additionally encodes ordering and distance information. The central architectural fact is that the system must evaluate many combinations across possible structures, not merely read off the features of the eventual answer.
The arrays supplied to the decoder can be summarized as:
A = {w · f_h,d, w · f_h,d,s, w · f_h,d,g}
A denotes the collection of factor-score arrays. The vector w contains learned feature weights. The vectors f_h,d, f_h,d,s, and f_h,d,g represent features for an edge, an edge with sibling information, and an edge with grandchild information, respectively. The dot represents the weighted sum of active feature values.
The decoder operates on these numerical scores. This separation explains why a fast decoder can coexist with slow sentence processing: before searching, the implementation must construct the quantities that make the search meaningful.
Measure the stages separately
The baseline is instrumented around feature preparation and storage, feature reading and score calculation, projective prediction, and non-projective approximation. Training time also includes remaining operations such as updating the weights.
Average time for a measured component is expressed as:
t_x = (Σₖ₌₁ᴱ·ᴵ (tᵉ_x,k − tˢ_x,k)) / (E · I)
The symbol t_x is the component’s average elapsed time per training example across the training run. The index x identifies the measured component. For operation k, tˢ_x,k is its start time and tᵉ_x,k its end time. E is the number of epochs, meaning complete passes through the training collection, and I is the number of examples.
Feature extraction needs an additional measurement during prediction. In baseline training, extraction is bundled with writing the feature file, so its isolated cost cannot be read directly from that training operation. Measuring prediction separates feature construction from disk storage.
The decisive intervention is unusually simple: run feature extraction while omitting the mapping from feature keys to weight indices. This is not presented as a usable parser, since the scores still need weights. It is a diagnostic experiment that isolates the cost of an internal representation choice.
Understand what the dictionary was doing
The baseline encodes feature information numerically, combines the pieces into a long integer, and uses a hash table to obtain an index for the weight arrays. The dictionary provides an exact association between retained feature keys and their assigned indices.
Its workload includes more than successful retrieval. The parser also generates features associated with candidate structures that are not reference structures. The paper calls features originating from the training references positive features and the remaining generated features negative features. These terms describe their origin; they do not mean that their numerical values or learned weights must have a particular sign.
The baseline filters out the negative features to limit memory use. To reject them, however, the dictionary still has to inspect their keys. Bohnet counts accesses to negative features at 5.8 times the accesses to positive features. Accordingly, discarded candidates remain expensive even though the learner gives them no retained parameter.
The hash table itself uses arrays for keys, values, and entry status. A lookup can require repeated probes when the predicted position does not immediately resolve the key. The paper reports 87% hash misses under its counting procedure, including cases requiring repeated attempts.
These probes lead to scattered memory accesses. The CPU cache holds only a limited part of the dictionary, so lookups repeatedly require data from main memory. This is the explanation for the observed cost: many candidate features, repeated probing, and irregular transfers across several arrays combine into a substantial delay.
Address weights directly with a Hash Kernel
The replacement removes the dictionary and computes a weight-array position directly from the feature key. The paper follows the Hash Kernel formulation for structured data.
h: J → {1 … n}
The function h maps feature identifiers from the set J to array positions. The array has n positions. In this formula, n denotes weight-vector size, rather than sentence length as in the earlier complexity expression.
The original numeric feature representation is written φ(x, y), where x is a sentence and y is a candidate dependency structure. Its hashed indexing is described by:
φ_k(x, y) = φ_j(x, y), where h(j) = k
The identifier j refers to an original feature, and k is the position selected by hashing it. The subscripts indicate where the feature is represented. This notation expresses the direct addressing step; when several original identifiers map to k, they share the parameter stored at that position.
A structure receives the following score:
F(x, y) = w · φ(x, y)
F is the scoring function, w is the learned weight vector, and φ(x, y) is the feature representation of the candidate analysis. The dot is a weighted sum. A larger score makes a structure more attractive to the decoder.
Prediction seeks a structure with the largest score:
y_p = argmax_y F(x_i, y)
The symbol y_p denotes the predicted structure for sentence x_i. The variable y ranges over candidate structures considered by the parsing procedure. The argmax operation selects a maximizing candidate.
Direct hashing makes every generated key addressable, including keys that the dictionary-based implementation would reject. This is why the change affects both computational cost and the information available to training.
Make collisions an explicit approximation
A direct hash function does not guarantee a unique position for every feature. Different keys may reach the same slot. These collisions cause parameters to be shared, so an update prompted by one feature can affect another feature that reaches the same location.
The paper evaluates a standard hash function and a customized alternative. Their definitions operate on the long integer encoding of a feature. The standard function is written as:
h_1(l) = |(l xor (l ∨ 0xffffffff00000000 >> 32)) % size|
Here, l is the encoded feature key, size is the weight-array length, xor denotes bitwise exclusive-or, and ∨ denotes bitwise inclusive-or. The operator >> shifts bits to the right, % takes the remainder, and the enclosing bars indicate an absolute value. In this expression, l is an integer key, whereas the feature inventory also uses l to denote a dependency label.
The customized alternative is:
h_2(l) = |(l xor ((l >> 13) ∨ 0xffffffffffffe000) xor ((l >> 24) ∨ 0xffffffffffff0000) xor ((l >> 33) ∨ 0xfffffffffffc0000) xor ((l >> 40) ∨ 0xfffffffffff00000)) % size|
The symbols have the same meanings as in the preceding expression. The shift amounts and hexadecimal masks specify how parts of the encoded key are combined before the remainder operation. The custom design aims to prevent information about the feature sequence and dependency label from overlapping with other packed values.
Most evaluated array sizes are prime numbers, following the paper’s stated motivation of encouraging a better distribution. The experiments nevertheless matter more than that heuristic: a custom bit-mixing design does not earn a place merely because its construction sounds more appropriate for the feature encoding.
Update weights from structural errors
Training uses the discrepancy between the reference tree and a predicted tree. The loss counts incorrectly labeled dependency links:
ε = Δ(y_i, y_p)
The symbol ε denotes the current error count. The function Δ compares reference structure y_i with prediction y_p. Its value counts wrong labeled edges, so both structural attachment and the assigned grammatical label matter.
When an error is present, the update constructs a direction in feature space:
u = φ(x_i, y_i) − φ(x_i, y_p)
The vector u subtracts the prediction’s feature representation from the reference representation. Positive and negative contributions identify which active features distinguish the desired structure from the current prediction.
The update magnitude is determined by:
ν = (ε − (F(x_i, y_i) − F(x_i, y_p))) / ‖u‖²
The scalar ν controls the size of the change. The numerator compares the labeled-edge error with the existing score advantage of the reference structure. The denominator is the squared norm of u. Together, these terms connect the update to both the current mistake and the feature difference involved.
The main weights change according to:
w ← w + ν · u
The vector w is the current parameter array. The arrow indicates assignment: the old vector is replaced with the value on the right. Multiplying u by ν scales the update direction.
A second vector accumulates weighted updates:
v ← v + γ · ν · u
The vector v supports the final averaging procedure. The factor γ weights the update according to its position in training, while ν and u retain the meanings just described.
The training position is computed as:
k = (n − 1) · I + i
Here, n identifies the current epoch, i identifies the current example within that epoch, I is the training-set size, and k is the example’s position across the full sequence of passes. This use of n is local to the training loop.
The update weighting is:
γ = E · I − k + 2
The symbol E is the total number of epochs. As k advances, γ decreases. The paper describes this schedule as giving earlier updates greater weight in the accumulated vector.
After the training passes, the final weights are obtained by:
w = v / (E · I)
The vector v is the accumulated update vector, and E · I is the number of training-example visits. The paper connects averaging with reducing overfitting.
The Hash Kernel training loop constructs features and score arrays as it goes. It does not preserve the baseline’s feature file, because storing the additional negative features would itself be expensive. This is a consequential design choice: prediction becomes faster, while single-core training loses a useful caching shortcut.
Parallelize independent score construction
The parallel feature extractor prepares a shared list of word-pair jobs. Each job identifies a portion of the work needed to construct factor scores. Worker threads remove jobs from the list, calculate their contributions, and continue until the list is empty.
The main thread starts the workers, waits for them to finish, and collects their results into the score arrays. The shared work list must support safe concurrent access. Beyond that coordination, the attraction is the independence of the individual scoring tasks.
The paper also parallelizes projective prediction and non-projective approximation. It supplies the explicit work-list pseudocode for feature extraction, rather than an equally detailed account of every parallel component. The measurements therefore establish the behavior of the resulting implementation more fully than they specify how to reconstruct all its internal scheduling decisions.
Control non-projective rearrangement
Projective trees obey a restriction on how dependencies can span the word sequence. The parser initially produces such a tree and then uses McDonald and Pereira’s approximation procedure to consider rearrangements that can introduce non-projective structure.
The modification procedure seeks score improvements, but a higher internal score is not automatically a more accurate dependency. Bohnet therefore studies a threshold, extending the rearrangement policy described in his earlier work. An edit must offer sufficient improvement to overcome that bias.
The threshold is selected using development data for Czech, English, and German. This keeps the choice separate from the final test comparison. It also treats the correction stage as an empirical decision rule, instead of assuming that every available improvement in internal score should be accepted.
Experiments and results
Data, metrics, and execution conditions
The experiments use the training and test material from the CoNLL 2009 shared task. Detailed timing tables cover Chinese, English, German, and Spanish. The final attachment comparison additionally includes Catalan, Czech, and Japanese.
The principal quality measure is labeled attachment score, abbreviated LAS. It measures whether a dependency has the correct head and the correct relationship label. The baseline table also reports unlabeled attachment score, or UAS, which assesses the head connection without requiring the label to match.
Running-time measurements distinguish prediction from training. Prediction timings are average milliseconds per test sentence. Training-stage measurements describe average work per example visit, while total training durations are reported in hours. These quantities should not be interchanged: a training example can require updating parameters, and the baseline can read cached features unavailable during ordinary prediction.
The hardware is an Intel Nehalem i7 processor specified at 3.33 Ghz, reaching 3.46 Ghz with turbo mode. For the parallel comparison, the clock is fixed at 3.46 Ghz so that changes in thread count are not mixed with changes in clock frequency.
The baseline’s training collections contain 22,277 sentences for Chinese, 39,279 for English, 36,020 for German, and 14,329 for Spanish. The corresponding feature inventories are reported as 8.76M, 8.47M, 9.16M, and 5.51M. Those counts help explain why a dictionary can become a substantial memory-access problem.
The baseline’s unexpected time distribution
On English, projective prediction requires 12.5 ms on average during the measured baseline training stages. Reading features and calculating score arrays takes 168 ms, while non-projective approximation takes 20 ms. The reported total for a training-instance visit is 202 ms.
Prediction has a different profile because it must construct the features. English feature extraction takes 1223 ms, and the average test-sentence parsing time is 1258 ms. The large separation between feature preparation and tree search is the central observation that motivates the rest of the work.
The pattern is not confined to English. Chinese feature extraction takes 3298 ms, German 419 ms, and Spanish 2518 ms. Their projective prediction measurements in the baseline training breakdown are 95 ms, 7.7 ms, and 36 ms, respectively. These are different operations under the measurement setup, but they consistently show why optimizing only the decoder would leave much of the cost untouched.
By extracting without mapping, the experiment more directly isolates the overhead associated with English lookups. Feature construction falls to 88 ms when the feature dictionary is omitted. The paper attributes 93% of extraction time and 91% of total prediction time to the mapping. Those percentages belong to the measured implementation, not to dependency parsing in general.
Prediction accelerates, while uncached training costs more
With direct hashing, English test-sentence prediction takes 0.354 seconds on average. The paper reports a speed improvement of 3.5 times over the baseline. The improvement is attributed to replacing feature-index lookup instead of weakening the decoder.
The corresponding Hash Kernel parsing times are 1184 ms for Chinese, 126 ms for German, and 1044 ms for Spanish. The results therefore demonstrate an improvement across the languages with detailed timing measurements, although the absolute costs remain different.
Training does not initially follow the same direction. The paper describes Hash Kernel training as about 19% slower because the implementation no longer uses the baseline’s stored feature indices. Its training-time table reports 93h for Chinese, 46h for English, 24h for German, and 44h for Spanish.
This is an important qualification to the headline. A representation can accelerate prediction while making a particular training strategy less convenient. The complete engineering result depends on the later parallel implementation, not solely on removing the dictionary.
Parallel execution reduces the remaining cost
The parallel experiments use the Hash Kernel implementation and vary the CPU workers. Both feature scoring and the parsing procedures participate in parallel execution.
CPU parallelism on the English test set, average parsing time
The implementation becomes faster as more CPU workers participate.
The numbers
| System or setting | milliseconds per sentence |
|---|---|
| Single core | 354 |
| Two cores | 187 |
| Three cores | 126 |
| Four cores | 105 |
| Four cores with hyper-threading (this paper) | 77 |
The final configuration uses 8 threads on a processor with 4 physical cores. The paper reports a parallel speed improvement of 3.4 times on 4 cores and 4.6 times with hyper-threading, relative to the single-core hashed implementation.
The component measurements make the effect more concrete. Feature extraction and score construction take 379 ms in the single-core training-stage measurement and 73.3 ms in the hyper-threaded configuration. Projective prediction changes from 21.3 ms to 8.8 ms, while non-projective approximation changes from 18.2 ms to 4.8 ms.
Not every component improves monotonically. Projective prediction takes 8.2 ms with 4 cores and 8.8 ms with hyper-threading. The complete sentence-processing time still improves because the other components contribute to the total. This is another reason to measure the pipeline as a whole.
The parallel table reports English training duration as 45.8h for the single-core configuration and 9.6h with hyper-threading. The separate Hash Kernel table presents the English duration as 46h. These are the paper’s own reporting precisions; the more detailed parallel table is the appropriate basis for its thread-count comparison.
Attachment accuracy improves on the baseline
The final quality comparison contains the dictionary baseline, the Hash Kernel parser, and the best shared-task results for each language. The “top” comparison is assembled from different systems’ strongest language results, instead of representing a single multilingual competitor.
CoNLL 2009 languages, reported average labeled attachment score
The Hash Kernel parser has the strongest reported average in this comparison.
The numbers
| System or setting | LAS |
|---|---|
| Dictionary baseline | 85.10 |
| Best shared-task results by language | 85.77 |
| Hash Kernel parser (this paper) | 86.33 |
Language-level results qualify the average. On Czech, the Hash Kernel parser scores 80.96, compared with a baseline of 76.93 and a top shared-task score of 80.38. English reaches 90.33, against 90.14 for the baseline and 89.88 for the shared-task comparison. German reaches 88.06, compared with 87.64 and 87.48.
Catalan improves from the baseline’s 85.70 to 87.45, while its top shared-task result is 87.86. Chinese moves from 76.88 to 76.99, remaining below 79.19. Japanese reaches 92.47, compared with 92.26 for the baseline and 92.57 for the shared-task result. These cases prevent the average from being interpreted as universal language-level superiority.
For Spanish, the final table gives 88.13 for the Hash Kernel parser, 86.12 for the baseline, and 87.64 for the top shared-task comparison. An earlier baseline table gives Spanish LAS as 86.02. The paper does not reconcile that discrepancy, so the final table’s Spanish comparison should be attributed specifically to that table.
Catalan, Chinese, Japanese, and Spanish use projective parsing in the final comparison. Czech, English, and German are the languages for which the paper tunes the non-projective rearrangement threshold. Consequently, the final average brings together language-specific parsing settings rather than a uniform correction policy applied everywhere.
What the ablations show
Removing lookup identifies a real bottleneck
The strongest diagnostic comparison removes feature-to-index mapping while leaving feature construction measurable. That intervention is narrower than the eventual Hash Kernel redesign. It asks whether the representation’s lookup machinery is responsible for the unexpectedly large extraction cost.
The result supports that explanation directly. English extraction with the lookup takes 1223 ms, while extraction without it takes 88 ms. The experiment does not prove that every alternative dictionary would behave the same way. It does show that optimizing the projective search alone would miss the largest measured opportunity in this implementation.
The paper also investigates the mechanism. Negative feature accesses are frequent, hash probing frequently fails to find an immediate answer, and the table requires irregular access to several arrays. These observations connect the elapsed-time result to a plausible memory-transfer explanation instead of leaving it as an unexplained timing difference.
Attempts involving Bloom filters, larger hash tables, and customized hashing did not provide a substantial solution. The paper gives that conclusion without a detailed numerical comparison of those attempts. The evidence therefore supports the direction of the engineering decision, but it does not permit a ranked account of every rejected implementation.
Larger hash arrays help until accuracy stabilizes
The hash-size experiment tests the approximation introduced by shared weight positions. Very small arrays produce lower attachment scores. As capacity grows, accuracy improves and then shows relatively modest variation.
Hash-vector capacity comparison, reported labeled attachment score
The custom hash improves as capacity grows, then its reported accuracy stabilizes.
The numbers
| System or setting | LAS |
|---|---|
| Custom hash, vector size 411,527 | 85.74 |
| Custom hash, vector size 3,292,489 | 87.97 |
| Custom hash, vector size 10,503,061 | 88.35 |
| Custom hash, vector size 21,006,137 (this paper) | 88.41 |
| Custom hash, vector size 42,012,281 | 88.34 |
| Custom hash, vector size 115,911,564 | 88.39 |
| Custom hash, vector size 179,669,557 | 88.28 |
The star marks the highest listed score within this capacity comparison. The subsequent experiments use 115,911,564 positions instead. Bohnet selects that larger array because it has more non-zero entries and is expected to involve fewer collisions, rather than because it wins this particular LAS comparison.
The comparison also includes the standard hash function. At a vector size of 10,503,061, its LAS is 88.26; at 115,911,564, it is 88.32. The custom alternative has more non-zero weights, but the paper does not find a clear accuracy advantage for it.
The stated conclusion is that accuracy does not change significantly once the array reaches roughly 10 million entries. This supports a capacity threshold for the tested setting, not a universal minimum for feature hashing. The table does not identify enough surrounding evaluation detail to turn those scores into an independently specified benchmark recipe.
Additional features accompany the accuracy gain
The Hash Kernel stores substantially more active parameters than the baseline. For English, the paper counts 17.34 Millions non-zero weights with hashing and 8.47 Millions in the baseline. For Chinese, the corresponding counts are 18.28 Millions and 8.76 Millions.
These observations are consistent with the explanation that retaining features from incorrect candidates improves learning. The learner can assign weights to distinctions that were previously generated and then discarded. This is a meaningful change to the effective feature inventory, not merely a faster way of retrieving an unchanged parameter set.
The comparison does not fully isolate that explanation. The paper does not report a complete factorial experiment that independently varies direct hashing and negative-feature retention. A careful conclusion is that the combined redesign improves accuracy and increases the number of non-zero weights. The exact share of the gain attributable to each ingredient remains unresolved.
Less training data strengthens the observed advantage
A separate Spanish analysis varies training-set size and plots the LAS difference between the baseline learner and the Hash Kernel. The reported curve shows a larger Hash Kernel advantage when less training data is available.
This gives an empirical reason to investigate direct hashing in smaller-data settings. It also helps explain why Catalan and Spanish attract attention in the final comparison: the paper identifies them as having the smallest training collections and reports its strongest improvements there.
Bohnet nevertheless cautions against treating training-set size as the whole explanation. Chinese has only a somewhat larger collection but a much smaller improvement. The described shape of the Spanish curve also does not suggest that the advantage would quickly disappear with additional data. The analysis establishes a pattern within Spanish, while leaving cross-language differences only partly explained.
Threshold tuning supports selective rearrangement
The development-set curves compare labeled attachment accuracy across non-projective rearrangement thresholds. The threshold is initially increased in steps of 0.1 and later in steps of 0.5 and 1.0.
English has a relatively flat response. Accuracy improves slightly up to about 0.3 and remains reasonably stable before declining. The paper describes thresholds from 0.3 to about 2.0 as workable for English. German and Czech have a more distinct favorable region near 0.3, followed by deterioration as the threshold increases.
The selected threshold is 0.3 for each of these languages. This is a useful controlled comparison because it holds the general parsing procedure in place while changing its willingness to modify a tree. It shows that structural correction benefits from calibration and that the sensitivity of the correction policy differs across languages.
Limitations
Limits explicitly recognized by the authors
The authors acknowledge that the parser does not achieve the strongest shared-task score for every language. Catalan, Chinese, and Japanese remain below the leading results, in spite of the improved overall average. They suggest combining graph-based and transition-based techniques, referring to their earlier integration, as a promising direction.
They also identify richer constraints and additional higher-order factors as possible ways to improve accuracy. The speed gains might make such additions more practical. These are future directions, not evaluated components of the reported system. A faster implementation creates computational room for more elaborate scoring, but the paper does not demonstrate the quality of those extensions.
Collisions are another explicitly recognized limitation. A hash position can stand for several distinct features, so training may alter a parameter for reasons unrelated to a particular feature that uses it. Larger arrays reduce the risk of interference, but direct hashing remains an approximation. The experiments show that the approximation works well under the tested settings; they do not remove the underlying tradeoff.
The paper’s fastest pilot result also has a clear boundary. It mentions prediction in 9 milliseconds when accuracy is traded for speed. It does not give an associated attachment score or a sufficiently detailed setting for evaluating that operating point. That figure should therefore remain a pilot observation instead of an alternative headline result.
Limits visible in the experimental design
A first methodological limit is that the Hash Kernel comparison changes several things together. It removes a feature dictionary, permits additional features to receive weights, and abandons cached feature files during training. The resulting system is useful, but the design does not independently identify every component’s contribution to accuracy and training cost.
The timing evidence is tied to a particular CPU and implementation. The explanation emphasizes cache behavior, main-memory transfers, and thread overhead. Those are precisely the characteristics that can vary across hardware and software environments. The reported speed factors should therefore be attached to the English test workload and measured execution conditions.
The scaling experiment also has a bounded range. It shows performance across the tested thread configurations on a processor with 4 physical cores, including hyper-threading. The authors expect future processors with more cores to help further. The measurements do not establish how performance behaves indefinitely as more workers compete for memory and shared coordination.
The training-time tradeoff deserves separate attention. Single-core direct hashing accelerates prediction but removes the baseline’s ability to reuse its existing feature cache. Parallelization later shortens training substantially. A practitioner interested only in retraining speed should therefore assess the complete setup rather than assume that replacing the dictionary alone will improve every stage.
The final accuracy table reports point scores without a detailed uncertainty analysis accompanying those comparisons. The paper’s language about stable hash-size results should not be expanded into an undocumented statistical testing procedure. Similarly, small language-level differences should be reported as measured scores rather than automatically described as conclusive improvements under repeated trials.
The non-projective correction is an approximation following projective prediction. Its development-set analysis tests an editing threshold, not an exact solution to every non-projective structural optimization problem. The results support the chosen operating policy within that architecture.
Some reporting details remain ambiguous. Spanish baseline LAS differs between the early timing table and the final quality table. The training discussion describes the rearranged prediction as the structure used for learning, while parts of the pseudocode retain the projective prediction symbol in their update calls. These details limit exact reconstruction of every configuration without undermining the main timing diagnosis.
What the broader claims leave open
The authors propose that Hash Kernels could benefit transition-based parsing, phrase-structure parsing, and other language-processing applications. That is a reasonable hypothesis based on the removal of expensive feature lookup. The experiments themselves concern the dependency parser described in the paper.
Similarly, the favorable Spanish training-size analysis does not establish a universal advantage for every small corpus. Language, feature design, annotation, and the distribution of candidate structures can affect how useful the additional features become. The paper itself provides a counterweight to an overly simple size-based interpretation through its discussion of Chinese.
The strongest supported claim is consequently specific and valuable: in this higher-order dependency parsing implementation, an expensive mapping layer can be replaced with direct hashing, additional candidate-derived features can participate in learning, and parallel execution can accelerate the resulting system while maintaining strong attachment quality.
What came after
The later citation record connects this paper with research on parsing, linguistic pipelines, structured learning, and evaluation. The information available for those later works establishes that they cite Bohnet’s study and identifies their subjects through their titles. It does not specify which ones reused its Hash Kernel, adopted its threading design, used its released parser, or cited it as a comparison. Those distinctions matter: a citation alone cannot establish implementation inheritance.
Parsing remains a meeting point for speed and quality
Chen and Manning’s neural dependency parser takes up fast and accurate dependency parsing in 2014. Its title explicitly identifies neural networks as its approach. This places it alongside the same broad practical objective, but the citation information does not show whether direct feature hashing contributes to its method. The defensible connection is the continuing effort to make accurate syntax practical at prediction time.
Bohnet’s joint tagging and non-projective parsing work addresses a transition-based system that combines part-of-speech tagging with labeled non-projective dependency parsing in 2012. This is relevant to the earlier paper’s suggestion that ideas from different parsing families could be brought together. It also expands the named decision problem beyond dependency prediction alone. The available citation information does not establish which engineering components carry over.
Seeker and Çetinoğlu’s lattice dependency parser concerns joint morphological segmentation and syntactic analysis in 2015. Its graph-based framing puts it near the structural scoring tradition discussed by Bohnet. The title establishes a joint analysis problem in which segmentation and syntax interact; it does not establish a measured speed benefit from the earlier Hash Kernel.
The SPMRL shared-task overview concerns cross-framework evaluation of parsing for morphologically rich languages in 2013. Its relevance is evaluative: Bohnet’s own results already show why language-level comparisons matter alongside an average. The citation record does not justify attributing a particular experimental conclusion or implementation choice to the overview.
Cross-language work broadens the setting
Cross-lingual dependency parsing with Universal Dependencies addresses parsing with predicted part-of-speech labels in 2015. Its subject introduces a setting in which the source and reliability of grammatical input are themselves central concerns. That differs from simply accelerating feature lookup, even though both belong to building usable dependency analysis systems.
Cross-lingual parser selection focuses on low-resource languages in 2017. The connection worth drawing is to the importance of data conditions and parser choice. Bohnet’s training-size analysis makes smaller-data behavior an interesting question, but it does not predict the later work’s selection method or results.
Universal Dependencies for Croatian concerns Croatian and Serbian in 2015, while Croatian Dependency Treebank 2.0 concerns revised annotation guidelines and parsing in 2014. These citations locate the earlier parser research within work on language resources and annotation design. They do not establish that hashing resolves the challenges associated with those resources.
Syntactic annotation of spontaneous speech studies call-center conversation data in 2012. That subject is close to the application pressure motivating fast sentence analysis, but the citation information supplies no running-time comparison or direct account of component reuse.
Dependency structure connects with other tasks
Neural semantic role labeling with dependency paths addresses a semantic task through dependency-path embeddings in 2016. Its title establishes dependency structure as relevant to a different prediction problem. It does not show that the later work adopts Bohnet’s learning update or parallel feature extractor.
Generating multilingual proposition banks concerns resources for multilingual semantic role labeling in 2015. Together, these citations place dependency parsing near research on semantic annotation and analysis. The available evidence supports that thematic connection without specifying a technical dependency on the Hash Kernel.
Joint prediction in MST-style discourse parsing studies argumentation mining in 2015. Its title explicitly names MST-style structural prediction outside sentence-level syntactic analysis. This is a useful connection to the earlier paper’s general concern with scoring structured alternatives efficiently. The citation alone does not reveal how the later system represents or retrieves its features.
Structured perceptrons for coreference resolution concerns latent antecedents and non-local features in 2014. It shares the broader setting of learned structural decisions with rich feature dependencies. The title establishes that connection, while leaving the role of Bohnet’s implementation ideas unspecified.
Joint many-task learning concerns a growing neural network for multiple NLP tasks in 2016. Its presence in the citation record extends the surrounding research context to joint task learning, but it supplies no basis for claiming direct reuse of the parser’s hashing or parallelization.
Applications and evaluation extend the citation record
Coreference in German historic novels addresses a rule-based approach in 2015. Multi-source projection of coreference chains examines annotation projection in 2017, and anaphoricity in German connectives studies connectives in 2016. These titles identify distinct uses of linguistic structure and annotation. They do not identify which component of Bohnet’s work each citation supports.
Finally, replicability analysis for NLP addresses significance testing across multiple datasets in 2017. Its subject is especially relevant to interpreting multilingual result tables, although the citation record does not establish that it reevaluates Bohnet’s reported scores.
Across these later works, the traceable influence is a broad citation footprint instead of a documented chain of identical implementations. The engineering contribution that remains available for reuse is concrete: inspect where structured prediction spends its time, treat feature addressing as part of the algorithmic design, evaluate the approximation introduced by hashing, and measure parallel gains together with output quality.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Dependency parsing · 132 works
Concepts 2Key ideas and methods explained on our concept pages.Parsing · 54 worksDependency parsing · 29 works
Appears in
Mentioned in articles aboutGermany
Cite
Cite as Bernd Bohnet. 2010. Top Accuracy and Fast Dependency Parsing is not a Contradiction. Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010).
@inproceedings{bohnet2010top,
title = {{Top Accuracy and Fast Dependency Parsing is not a Contradiction}},
author = {Bernd Bohnet},
booktitle = {Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010)},
year = {2010},
url = {https://aclanthology.org/C10-1011/}
}References
- Attardi, G. 2006. Experiments with a Multilanguage Non-Projective Dependency Parser. In Proceedings of CoNLL, pages 166–170.
- Blum., A. 2006. Random Projection, Margins, Kernels, and Feature-Selection. In LNCS, pages 52–68. Springer. OpenAlex ↗ · Scholar ↗
- Bohnet, B. 2009. Efficient Parsing of Syntactic and Semantic Dependency Structures. In Proceedings of the 13th Conference on Computational Natural Language Learning (CoNLL-2009). OpenAlex ↗ · Scholar ↗
- Carreras, X. 2007. Experiments with a Higher-order Projective Dependency Parser. In EMNLP/CoNLL.
- Che, W., Li Z., Li Y., Guo Y., Qin B., and Liu T. 2009. Multilingual Dependency-based Syntactic and Semantic Parsing. In Proceedings of the 13th Conference on Computational Natural Language Learning (CoNLL-2009). OpenAlex ↗ · Scholar ↗
- Collins, M. 2002. Discriminative Training Methods for Hidden Markov Models: Theory and Experiments with Perceptron Algorithms. In EMNLP.
- Crammer, K., O. Dekel, S. Shalev-Shwartz, and Y. Singer. 2003. Online Passive-Aggressive Algorithms. In Sixteenth Annual Conference on Neural Information Processing Systems (NIPS). OpenAlex ↗ · Scholar ↗
- Crammer, K., O. Dekel, S. Shalev-Shwartz, and Y. Singer. 2006. Online Passive-Aggressive Algorithms. Journal of Machine Learning Research, 7:551–585. OpenAlex ↗ · Scholar ↗
- Eisner, J. 1996. Three New Probabilistic Models for Dependency Parsing: An Exploration. In Proceedings of the 16th International Conference on Computational Linguistics (COLING-96), pages 340– 345, Copenhaen.
- Eisner, J., 2000. Bilexical Grammars and their Cubic-time Parsing Algorithms, pages 29–62. Kluwer Academic Publishers. OpenAlex ↗ · Scholar ↗
- Gesmundo, A., J. Henderson, P. Merlo, and I. Titov. 2009. A Latent Variable Model of Synchronous Syntactic-Semantic Parsing for Multiple Languages. In Proceedings of the 13th Conference on Computational Natural Language Learning (CoNLL-2009), Boulder, Colorado, USA., June 4-5. OpenAlex ↗ · Scholar ↗
- Hajič, J., M. Ciaramita, R. Johansson, D. Kawahara, M. Antònia Martı́, L. Màrquez, A. Meyers, J. Nivre, S. Padó, J. Štěpánek, P. Straňák, M. Surdeanu, N. Xue, and Y. Zhang. 2009. The CoNLL-2009 Shared Task: Syntactic and Semantic Dependencies in Multiple Languages. In Proceedings of the 13t…
- Johansson, R. and P. Nugues. 2008. Dependency-based Syntactic–Semantic Analysis with PropBank and NomBank. In Proceedings of the Shared Task Session of CoNLL-2008, Manchester, UK. OpenAlex ↗ · Scholar ↗
- McDonald, R. and F. Pereira. 2006. Online Learning of Approximate Dependency Parsing Algorithms. In In Proc. of EACL, pages 81–88.
- McDonald, R., K. Crammer, and F. Pereira. 2005. Online Large-margin Training of Dependency Parsers. In Proc. ACL, pages 91–98.
- Nivre, J. and R. McDonald. 2008. Integrating Graph-Based and Transition-Based Dependency Parsers. In ACL-08, pages 950–958, Columbus, Ohio.
- Nivre, J., J. Hall, and J. Nilsson. 2004. Memory-Based Dependency Parsing. In Proceedings of the 8th CoNLL, pages 49–56, Boston, Massachusetts.
- Nivre, J. 2003. An Efficient Algorithm for Projective Dependency Parsing. In 8th International Workshop on Parsing Technologies, pages 149–160, Nancy, France.
- Nivre, J. 2009. Non-Projective Dependency Parsing in Expected Linear Time. In Proceedings of the 47th Annual Meeting of the ACL and the 4th IJCNLP of the AFNLP, pages 351–359, Suntec, Singapore.
- Rahimi, A. and B. Recht. 2008. Random Features for Large-Scale Kernel Machines. In Platt, J.C., D. Koller, Y. Singer, and S. Roweis, editors, Advances in Neural Information Processing Systems, volume 20. MIT Press, Cambridge, MA. OpenAlex ↗ · Scholar ↗
- Ren, H., D. Ji Jing Wan, and M. Zhang. 2009. Parsing Syntactic and Semantic Dependencies for Multiple Languages with a Pipeline Approach. In Proceedings of the 13th Conference on Computational Natural Language Learning (CoNLL-2009), Boulder, Colorado, USA., June 4-5. OpenAlex ↗ · Scholar ↗
- Riedel, S. and J. Clarke. 2006. Incremental Integer Linear Programming for Non-projective Dependency Parsing. In Proceedings of the 2006 Conference on Empirical Methods in Natural Language Processing, pages 129–137, Sydney, Australia, July. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Shi, Q., J. Petterson, G. Dror, J. Langford, A. Smola, and S.V.N. Vishwanathan. 2009. Hash Kernels for Structured Data. In Journal of Machine Learning. OpenAlex ↗ · Scholar ↗
- Titov, I. and J. Henderson. 2007. A Latent Variable Model for Generative Dependency Parsing. In Proceedings of IWPT, pages 144–155. OpenAlex ↗ · Scholar ↗
- Yamada, H. and Y. Matsumoto. 2003. Statistical Dependency Analysis with Support Vector Machines. In Proceedings of IWPT, pages 195–206.
This page in Markdown https://md.research.elamur.ai/free/en/papers/bohnet-2010-top-accuracy-fast-dependency-parsing/