Structured Prediction and Parsing Evaluation › Labeled Attachment
Language AI HandbookAll chapters Labels add a dimension to the output space. In the lexical-root convention used for the dependency decoder, a tree with lexical arcs has labeled versions if each arc can take any of the same labels independently. Under that assumption, naive enumeration multiplies the candidate count by . Independent local label maximization can avoid enumerating those combinations.
Decoupling Structure and Labels
Suppose the score decomposes as
where:
- : a labeled arc with head , modifier , and label
- : the score for the unlabeled attachment of to
- : the score for assigning label to the arc given the attachment
Then
The inner label maximum is independent for each candidate arc. An arc with no legal label is unavailable to the structural decoder. Compute an augmented score and best-label backpointer for every allowed , run the unlabeled structural decoder, and then read the stored labels for its selected arcs. With possible lexical non-self arcs and labels, preparation takes comparisons; Eisner then takes time. This gives , excluding the model's score-computation cost. It is not an extra factor of .
The collapse is exact when both the score and the legal label assignments factor independently over the selected arcs. A constraint such as “this head has at most one nsubj dependent” couples labels across arcs and can invalidate it. In contrast, a rule that restricts one arc's labels using that arc's head POS tag is still local and can be folded into its label maximum. Coupled label models need an inference procedure for their actual interactions. The independent-label bound does not extend to arbitrary global constraints. Their representation and how they couple arcs can add to the cost.
This distinction is separate from a two-stage pipeline that first decodes only arc scores and then labels the selected arcs. Ignoring label scores during structure selection need not maximize the combined score displayed above. Whether the combined objective improves LAS is empirical and depends on training, scoring, and data; no universal accuracy gap follows from separability alone.
A simpler fixed-tree comparison makes the label-space reduction visible. On one already-selected tree with lexical arcs and 40 labels, enumerating all label combinations would examine assignments. Independent label maximization instead checks scores. The plot shows this fixed-tree comparison only; preparing labels for every candidate tree edge before structural decoding has the quadratic-in- cost derived above.
PythonIn [7]Expand
import numpy as np
label_n = np.arange(2, 13)
label_combinations = 40.0 ** (label_n - 1)
decoupled_checks = (label_n.astype(float) - 1) * 40.0VisualizationOut [8]Expand

When Labels Interact
Three distinctions help you decide whether a label model needs richer inference:
- Output coupling. A task-specific cardinality condition such as at most one subject label for a head depends on multiple selected arcs. An arc-local mask does not count them.
- Local label restrictions. Restricting labels according to a candidate head/dependent POS pair remains local, even though the allowed labels differ across arcs. It does not by itself defeat independent maximization.
- Linguistic coverage. A relative clause may lack an overt relativizer, and coordination or annotation conventions may complicate a subject-count heuristic. Do not promote such a heuristic to a universal grammar rule without examining the target scheme.
Higher-order factors can score selected sibling or grandparent combinations, while an explicit constraint may require a count or another additional state. Their complexity must be derived for the chosen model. Adjacent siblings, grandparents, and third-order grand-siblings are distinct factorizations with different possible chart designs, as the earlier table shows.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!