Inferensys

Glossary

Arc-Factored Model

A first-order parsing model where the score of a dependency tree is the sum of the scores of its individual arcs, assuming independence between edges for computational tractability.
Engineer deploying small language model to edge device, IoT sensor visible on desk, technical hardware setup in bright workspace.
FIRST-ORDER DEPENDENCY PARSING

What is Arc-Factored Model?

A parsing model where the score of a dependency tree is the sum of the scores of its individual arcs, assuming independence between edges for computational tractability.

An arc-factored model is a first-order parsing framework where the total score of a dependency tree decomposes into the sum of the scores of its individual arcs. This factorization assumes that each dependency edge is independent of all others, reducing the complex global parsing problem to a tractable combinatorial optimization task solvable via the maximum spanning tree algorithm.

While computationally efficient, the independence assumption limits the model's ability to capture higher-order syntactic phenomena such as sibling coordination or grandparent dependencies. Modern neural parsers often extend this framework with biaffine attention to score arcs while mitigating the limitations of strict factorization.

First-Order Dependency Parsing

Key Features of Arc-Factored Models

Arc-factored models decompose the score of a dependency tree into the sum of its individual arc scores, assuming independence between edges to make global inference computationally tractable.

01

First-Order Independence Assumption

The defining characteristic of arc-factored models is the independence assumption: the score of a dependency tree is simply the sum of the scores of its individual arcs. This means the model treats each head-dependent pair in isolation, ignoring interactions between sibling arcs, grandparent relations, or other higher-order structural contexts. While this simplifies inference to a maximum spanning tree problem, it limits the model's ability to capture complex syntactic phenomena like coordinated structures or nested dependencies.

02

Maximum Spanning Tree Decoding

Because the total tree score factorizes over individual arcs, finding the highest-scoring parse reduces to finding the maximum spanning tree (MST) in a complete directed graph. For projective parsing, this can be solved with dynamic programming in O(n³) time using the Eisner algorithm. For non-projective structures, the Chu-Liu/Edmonds algorithm finds the optimal tree in O(n²) time, enabling efficient global inference without beam search or greedy approximations.

03

Edge Score Factorization

Each potential dependency arc from head h to dependent d receives a score computed from locally extracted features. In neural arc-factored models, these scores are typically computed using biaffine attention over contextualized word representations:

  • The head representation and dependent representation are passed through a bilinear transformation
  • This produces an n × n score matrix for a sentence of length n
  • Edge labels are scored separately using a tensor-based biaffine classifier that considers both the head and dependent representations
04

Limitations: No Sibling or Grandparent Features

The first-order factorization prevents the model from conditioning arc decisions on sibling arcs or grandparent arcs. This creates known failure modes:

  • Prepositional phrase attachment: Cannot model that a verb's existing objects influence PP attachment decisions
  • Coordination structures: Cannot enforce parallelism between conjuncts
  • Non-local agreement: Cannot capture long-distance subject-verb agreement patterns Higher-order models address these by adding sibling and grandparent factors, at the cost of NP-hard inference.
05

Global vs. Local Training

Arc-factored models support global training via maximum likelihood estimation over the full tree structure. Unlike transition-based parsers that make local decisions and suffer from error propagation, graph-based arc-factored models can be trained to maximize the probability of the correct tree given all possible arcs simultaneously. This is typically done using a margin-based hinge loss or cross-entropy loss over the normalized tree probabilities, providing more robust learning signals.

06

Eisner Algorithm for Projective Parsing

When projectivity is enforced, arc-factored models use the Eisner algorithm — a bottom-up dynamic programming approach with O(n³) time complexity and O(n²) space. The algorithm builds spans incrementally, distinguishing between incomplete spans (missing the head on one side) and complete spans (head found, dependencies resolved internally). This guarantees an exact solution for the highest-scoring projective dependency tree under the first-order factorization.

DEPENDENCY PARSING COMPLEXITY

Arc-Factored vs. Higher-Order Parsing Models

Comparison of first-order arc-factored models with higher-order extensions that incorporate sibling and grandparent features for improved accuracy.

FeatureArc-Factored (1st-Order)Sibling (2nd-Order)Grandparent (3rd-Order)

Scoring Independence

Individual arcs scored independently

Adjacent sibling arcs scored jointly

Parent-child and grandparent arcs scored jointly

Decoding Algorithm

Eisner's algorithm or Chu-Liu/Edmonds

Extended Eisner with sibling spans

Cube pruning with grandparent features

Time Complexity (Projective)

O(n³)

O(n⁴)

O(n⁴)

Non-Projective Support

Captures Coordination Structures

Captures Clause Boundaries

Typical UAS Improvement

Baseline

+0.5-1.2%

+0.8-1.5%

Feature Sparsity Risk

Low

Moderate

High

ARC-FACTORED MODEL FAQ

Frequently Asked Questions

Clear, technical answers to common questions about first-order dependency parsing and the computational assumptions that make it tractable.

An arc-factored model is a first-order parsing framework where the total score of a complete dependency tree is defined as the sum of the independent scores of its individual dependency arcs. This factorization assumes that each head-dependent pair can be scored in isolation, without considering the broader structural context of the tree. Formally, for a sentence x and a tree y, the score is Score(x, y) = Σ_{(h, m) ∈ y} Score(h, m), where h is the head and m is the modifier. This local independence assumption makes the decoding problem computationally tractable, as the highest-scoring tree can be found efficiently using the Chu-Liu/Edmonds maximum spanning tree algorithm in O(n²) or O(n³) time, depending on the implementation. The trade-off is that arc-factored models cannot capture higher-order syntactic phenomena like sibling coordination or grandparent dependencies, which limits their accuracy on complex linguistic structures.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.