Notes

Semantic Role Labeling

Two sentences can describe one event with the words in opposite order: “the company fired Maria” and “Maria was fired by the company”. A parser will tell you the grammatical subject of each. Semantic role labeling tells you the thing you actually wanted — that the company is acting and Maria is affected, in both.

What the labels are
SRL locates each predicate in a sentence, then labels the spans around it with the role they play:

  • A predicate — “fired” — anchors the event, and its arguments take roles: the agent doing it, the entity it is done to, and modifiers of time, place, manner and cause.
  • PropBank numbers roles per predicate (ARG0 for the agent, ARG1 for the patient, ARGM-TMP for time), while FrameNet uses richer named frames with their own participant inventories.
  • Arguments are contiguous spans, so the task is run as per-token tagging — BIO labels over a transformer encoder, with a CRF layer to keep decoded spans well formed.

Where it earns its keep
Anything that turns sentences into structured facts leans on this layer: pulling who paid whom, how much and when out of contracts; answering a question by matching its role pattern against a candidate passage rather than its keywords; normalising “Google acquired Fitbit” and “Fitbit was acquired by Google” into a single database record.

Why it matters
Surface form is not meaning. Without a role layer, a system reading by word order or keyword overlap swaps the actor for the acted-upon, which surfaces as corrupted rows in extracted data and as a confidently wrong answer in question answering. Pre-trained SRL models shipped with libraries such as AllenNLP make it a pipeline step rather than a research project.

Semantic role labeling identifies the predicates in a sentence and labels the spans around each one with the role they fill — agent, patient, instrument, time, place — using an inventory such as PropBank or FrameNet. It recovers who did what to whom independently of grammatical form, so active and passive phrasings produce the same structure, which is what lets information extraction and question answering operate on meaning rather than word order.

A police report has fixed slots: who was involved, what they did, to whom, where and when. Fill those in and the story is clear, however the witness happened to phrase it.

Semantic role labeling is software filling in those slots. Given “the company fired Maria” or “Maria was fired by the company”, it marks the company as the one acting and Maria as the one affected — the same answer from two very differently shaped sentences. That matters because a program with no sense of roles falls back on word order, which can turn a meaning on its head. Getting the roles right is what lets software pull trustworthy facts out of contracts, news stories and reports.