Inferensys

Glossary

Labeled Attachment Score (LAS)

The primary evaluation metric for dependency parsers measuring the percentage of tokens that are assigned both the correct syntactic head and the correct dependency relation label.
Data scientist reviewing AI evaluation metrics on dashboard, comparison charts visible, casual WeWork analytics setup.
PARSER EVALUATION METRIC

What is Labeled Attachment Score (LAS)?

The primary quantitative metric for evaluating the accuracy of a dependency parser by measuring the exact match of both syntactic structure and grammatical relation labels.

Labeled Attachment Score (LAS) is the standard evaluation metric that measures the percentage of tokens in a test set for which a dependency parser correctly predicts both the syntactic head and the specific dependency relation label. It is a strict, combined metric that penalizes a parser if it identifies the correct head but assigns the wrong grammatical relationship, such as confusing a nominal subject (nsubj) with a direct object (dobj).

LAS is calculated by dividing the number of tokens with perfectly predicted head-label pairs by the total number of tokens, excluding the root node. It is typically reported alongside Unlabeled Attachment Score (UAS), which only evaluates head prediction accuracy. The difference between UAS and LAS highlights the parser's specific difficulty with relation classification, making LAS the definitive metric for assessing a parser's holistic syntactic competence on treebanks like Universal Dependencies.

EVALUATION METRIC

Key Characteristics of LAS

Labeled Attachment Score (LAS) is the definitive metric for evaluating dependency parsers, measuring the percentage of tokens assigned both the correct syntactic head and the correct dependency relation label.

01

Core Definition and Formula

LAS is calculated as the ratio of tokens with both correct head and label to the total number of tokens, excluding the root.

  • Formula: LAS = (Correct Head & Label Tokens) / (Total Tokens)
  • Strictness: Requires exact match on both head index and relation type
  • Range: 0% to 100%, with state-of-the-art parsers achieving >95% on English newswire
  • Contrast: More stringent than Unlabeled Attachment Score (UAS), which only checks head correctness
02

LAS vs. UAS: The Labeling Dimension

The distinction between LAS and UAS isolates the parser's ability to assign correct grammatical relations.

  • UAS: Measures only structural correctness—is the head token correct?
  • LAS: Adds the semantic layer—is the dependency type (e.g., nsubj, dobj, amod) correct?
  • Label Accuracy: Can be derived as LAS / UAS, revealing how often correct heads receive correct labels
  • Diagnostic Value: A high UAS but low LAS indicates strong structure learning but poor relation classification
03

Evaluation Protocol and Token Exclusion

Standard evaluation follows the CoNLL shared task conventions to ensure fair comparison across parsers.

  • Punctuation Exclusion: Punctuation tokens are typically excluded from scoring to prevent inflating results
  • Root Handling: The artificial ROOT token (index 0) is not scored
  • Multiword Tokens: In UD treebanks, only syntactic words are scored, not orthographic tokens
  • Gold Segmentation: Evaluation assumes gold-standard tokenization; errors in token boundaries are not penalized
04

State-of-the-Art Performance Benchmarks

Modern neural parsers achieve high LAS scores, with performance varying significantly by language and genre.

  • English Penn Treebank: Deep biaffine parsers with BERT embeddings reach ~96% LAS
  • Universal Dependencies: Multilingual parsers like Stanza achieve 85-95% LAS depending on language
  • Morphologically Rich Languages: Finnish, Turkish, and Korean typically score lower due to complex morphology
  • Out-of-Domain Drop: Parsers trained on newswire can drop 5-10% LAS on social media or clinical text
05

Practical Significance in NLP Pipelines

LAS directly impacts downstream tasks that depend on accurate syntactic analysis.

  • Relation Extraction: Incorrect dependency labels cause false semantic triples in knowledge base construction
  • Coreference Resolution: Syntactic paths between mentions rely on correct head identification
  • Sentiment Analysis: Negation scope detection depends on accurate neg dependency arcs
  • Machine Translation: Syntactic reordering models degrade with attachment errors
  • Error Propagation: A 2% LAS improvement can yield measurable gains in end-task accuracy
06

Common Error Patterns and Diagnostics

Analyzing LAS errors reveals systematic weaknesses in parser design and training data.

  • Prepositional Phrase Attachment: The classic ambiguity—does "with a telescope" modify the verb or noun?
  • Coordination Scope: Determining which conjuncts share a common head in "apples and oranges from Florida"
  • Long-Distance Dependencies: Relative clauses and wh-movement create non-local arcs that are harder to predict
  • Label Confusion: Frequent confusion between nsubj and nsubj:pass, or advmod and obl
DEPENDENCY PARSING METRICS

LAS vs. UAS: Key Differences

A comparison of the two primary evaluation metrics for dependency parsers, distinguishing between structural accuracy and full grammatical precision.

FeatureLabeled Attachment Score (LAS)Unlabeled Attachment Score (UAS)Label Accuracy (LA)

Definition

Percentage of tokens assigned both the correct head and the correct dependency relation label

Percentage of tokens assigned the correct syntactic head, ignoring the relation label

Percentage of tokens assigned the correct dependency relation label, given the correct head

Evaluates

Full grammatical structure and relation types

Syntactic tree topology only

Relation classification accuracy

Formula

(# tokens with correct head AND correct label) / (total # tokens) * 100

(# tokens with correct head) / (total # tokens) * 100

(# tokens with correct label | correct head) / (# tokens with correct head) * 100

Punctuation Included

Sensitivity to Label Set Size

Primary Use Case

Final parser evaluation and state-of-the-art benchmarking

Ablation studies and isolating head-finding errors

Diagnosing relation classifier performance

Typical State-of-the-Art (English)

94-96%

96-98%

96-98%

Relationship

LAS = UAS * LA (approximately)

UAS is the upper bound for LAS

LA bridges UAS and LAS

DEPENDENCY PARSING METRICS

Frequently Asked Questions

Clear, technical answers to the most common questions about the Labeled Attachment Score (LAS), the definitive metric for evaluating dependency parser accuracy.

The Labeled Attachment Score (LAS) is the primary evaluation metric for dependency parsers, measuring the percentage of tokens in a test set that are assigned both the correct syntactic head and the correct dependency relation label. It is calculated by dividing the number of tokens with a perfectly correct head and label by the total number of tokens, excluding punctuation in standard evaluations. Formally, LAS = (Number of Correctly Attached and Labeled Tokens) / (Total Number of Tokens). A token is only counted as correct if both conditions are met simultaneously: the directed arc points to the right parent word, and the arc is tagged with the exact grammatical relation (e.g., nsubj, dobj, amod). This dual requirement makes LAS a stricter and more informative metric than the Unlabeled Attachment Score (UAS), which only checks for the correct head. For example, if a parser correctly identifies that 'dog' is the subject of 'barked' but mislabels the relation as csubj instead of nsubj, it scores a point for UAS but zero for LAS. LAS is the standard metric reported in CoNLL Shared Tasks and is essential for evaluating parsers on Universal Dependencies (UD) treebanks.

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.