Semantic Role Labeling (SRL)

Machine Learning
Introduced by
Daniel Gildea & Daniel Jurafsky
Year
2002
Type
NLP shallow semantic parsing task

What does it do?

Semantic role labeling (SRL) is a natural-language-processing task that assigns semantic roles, such as agent, patient, location, time and manner, to the phrases that accompany a verb (the predicate) in a sentence.

The output is a predicate-argument structure that records who did what to whom, where, when and how. Gildea and Jurafsky's 2002 paper on automatic labeling of semantic roles is a standard early reference for the task.

The intuition behind the method

A sentence describes an action, but a machine does not automatically know who performed it, what was affected, or where it happened. SRL anchors on the verb and labels the surrounding phrases by the role they play in that action. Rather than treating a sentence as a flat sequence of words, it reads the sentence as an event with participants, each carrying a named role. The same noun phrase can receive different roles in different sentences, depending on the verb it depends on.

History

Gildea and Jurafsky (2002) presented a system that labels semantic roles with statistical classifiers trained on about 50,000 sentences annotated with FrameNet roles. They reported 82% accuracy for labeling presegmented constituents and 65% precision and 61% recall when constituent segmentation was also required. Later work applied BERT-based models to SRL, as in Shi and Lin (2019).

When to use it

Choose SRL when your text is sentence-level and your question is about participants in events, that is, who did what to whom, where, when and how. It needs a model for your language, which in practice means English or another language for which a trained model exists, and it works best with a defined role ontology such as PropBank or FrameNet. Supervised systems rely on annotated training data, as the 2002 classifiers did with hand-annotated FrameNet sentences. Do not choose SRL if you only need topics, sentiment, or entity mentions, if no role ontology fits your domain, or if the language has no suitable model.

Limitations and considerations

  • Supervised SRL depends on annotated data: the 2002 system was trained on roughly 50,000 hand-annotated sentences, so the method is only as good as the role-annotated training material available for a language or domain.
  • Labeling a given constituent is easier than finding the constituents and labeling them together. The 2002 system reached 82% accuracy on presegmented constituents, which scores only the role label given the correct spans. When it also had to segment constituents, it reached 65% precision and 61% recall. Precision is the share of predicted argument-role pairs that are correct, and recall is the share of gold argument-role pairs that are found and correctly labeled, so an error in either the span or the label lowers the joint score.
  • The role set is defined by the chosen ontology; PropBank and FrameNet use different inventories, so results are not interchangeable without a mapping.
  • The figures quoted here come from the 2002 system on FrameNet data and are not current benchmarks. Performance of modern SRL systems depends on the model, the role ontology and the dataset, so results should be checked on data representative of your own.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Makes the verb-argument relations in a sentence explicit, so the role of each participant is stated rather than inferred from word order.
  • Because each role is defined relative to a predicate, the same entity can be assigned different roles in different clauses, provided the predicates and argument spans were identified correctly.
  • When a standard ontology such as PropBank or FrameNet is used, role labels can be compared across corpora and studies.

Applications

  • Event extraction: identifying actions and their participants in news and historical text.
  • Information extraction pipelines that need structured who/what/where/when information from sentences.
  • Supporting question answering by exposing the predicate-argument structure of a passage.
  • Analysing large text corpora in social science, humanities, and health research where event structure matters.

How it works

How it works

1

The sentence is scanned for predicates, typically verbs that anchor an event; the 2002 system also handled nouns and adjectives. In that system the target word and frame were supplied with the input sentence. Each predicate becomes the centre around which roles are organised, because a role only has meaning relative to the action it serves.

2

For each predicate, the candidate spans that could fill its roles are identified. In the 2002 system these candidates were constituents of a syntactic parse: test sentences were parsed, and their constituents were passed to the classifiers. Errors at this stage remove participants before any labeling happens. The 2002 study evaluated labeling of presegmented constituents separately from joint segmentation and labeling, which it treated as the harder task.

3

Each argument span is assigned a semantic role label, for example agent, patient, location or time. The 2002 system used statistical classifiers over features such as phrase type, grammatical function, position in the sentence and the predicate itself, and assigned labels drawn from FrameNet, such as Agent, Patient, Speaker, Message or Topic. Role inventories are typically defined by PropBank or FrameNet.

4

The labeled predicates and arguments are assembled into a predicate-argument structure for the sentence. This representation can serve as input to downstream tasks, such as event detection and question answering.

Common pitfalls

  • Reporting accuracy on presegmented constituents overstates end-to-end performance, because the harder task includes locating the argument spans in the first place.
  • Applying a model trained on English to text in an unsupported language produces unreliable role labels, and the errors are often not visible without checking a sample.
  • Mixing PropBank and FrameNet labels in one analysis makes roles inconsistent across sentences; choose one ontology and apply it throughout.
  • Errors in predicate identification propagate: if a verb is missed, none of its arguments are labeled, so the event is absent from the output.

Frequently asked questions

How is SRL different from named-entity recognition?

NER identifies and types entities such as people, places and organisations, regardless of their role in an action. SRL anchors on the verb and labels which entity is the agent, which is the patient, and where, when and how the action happened. It captures the event structure rather than only the entities.

What are PropBank and FrameNet?

They are two ontologies that define the inventory of semantic roles SRL assigns. Choosing one in advance gives consistent role labels across sentences; without a shared ontology, each project has to define its own role set.

Does SRL work in languages other than English?

It works on English or another language for which a suitable trained model exists. Applying an English-trained model to an unsupported language is a common cause of poor results.

How does SRL relate to event extraction?

An event is essentially a predicate with participants. By producing predicate-argument structure, SRL gives downstream event-detection and information-extraction steps the who, what, where and when they need.

Related methods

Sources

  1. Gildea, D. & Jurafsky, D. (2002). Automatic Labeling of Semantic Roles. Computational Linguistics, 28(3), 245-288.

    Open DOI reference
  2. Shi, P. & Lin, J. (2019). Simple BERT Models for Relation Extraction and Semantic Role Labeling. arXiv:1904.05255.

    Open publication reference