Semantic Role Labeling

Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 22

60 cards

Introduction

  1. What were Pāṇini’s kārakas?
    In his Sanskrit grammar (7th–4th c. BCE), rules describing semantic relationships between a verb and its noun arguments (agent, instrument, destination…): the earliest known model of how events and their participants are realized linguistically.
  2. What central question do semantic roles help answer?
    “Who did what to whom” (and perhaps when and where): how participants relate to events.
  3. Why are semantic roles needed to understand “XYZ corporation bought the stock” vs “They sold the stock to XYZ corporation” vs “the stock purchase by XYZ corporation”?
    The same purchase event and the same buyer appear with different verbs or nouns and in different syntactic positions (subject, indirect object, by-phrase, compound); semantic roles capture the shared shallow meaning: XYZ Corp is the buyer, the stock the thing bought.
  4. What are selectional restrictions?
    Preferences a predicate expresses about its arguments, e.g. that the theme of eat is generally something edible.

22.1 Semantic roles

  1. What do the subjects of “Sasha broke the window” and “Pat opened the door” have in common?
    Both are volitional, often animate actors with direct causal responsibility for their events: both are AGENTs. The objects, prototypically inanimate things affected by the action, are THEMEs.
  2. What are thematic roles?
    Roles capturing semantic commonalities between arguments of different predicates (AGENT, THEME…); modern formulations are due to Fillmore (1968) and Gruber (1965). There is no agreed universal set; most have about a dozen.
  3. Define the common thematic roles.
    roledefinition
    AGENTvolitional causer of an event
    EXPERIENCERexperiencer of an event
    FORCEnon-volitional causer
    THEMEparticipant most directly affected
    RESULTend product of an event
    CONTENTproposition or content of a propositional event
    INSTRUMENTinstrument used in an event
    BENEFICIARYbeneficiary of an event
    SOURCEorigin of the object of a transfer
    GOALdestination of the object of a transfer
  4. What thematic roles appear in: “The wind blows debris from the mall into our yards”?
    The wind is a FORCE (non-volitional causer), debris the THEME, from the mall the SOURCE, into our yards the GOAL.
  5. Why do computational systems use semantic roles?
    As a shallow meaning representation that supports simple inferences impossible from surface strings or parse trees, e.g. that “Company A acquired Company B” answers “Was Company B acquired?”; also as an intermediate language, e.g. for MT.

22.2 Diathesis alternations

  1. How can the arguments of break be realized syntactically?
    AGENT/subject, THEME/object, INSTRUMENT/with-PP (“John broke the window with a rock”); INSTRUMENT/subject (“The rock broke the window”); THEME/subject (“The window broke”, “The window was broken by John”).
  2. What is a thematic grid (θ-grid, case frame)?
    The set of thematic role arguments a verb takes.
  3. What are verb (diathesis) alternations? Give the dative alternation.
    Multiple argument structure realizations of a verb’s roles. Dative alternation: “Doris gave the book to Cary” vs “Doris gave Cary the book”, the THEME and GOAL in either order.
  4. Which verbs participate in the dative alternation, and where are verb classes catalogued?
    Particular semantic classes: verbs of future having (offer, owe), send verbs (mail, hand), verbs of throwing (kick, throw)… Levin (1993) lists the classes and alternations of thousands of English verbs; VerbNet puts them online, linked to WordNet and FrameNet.

22.3 Problems with thematic roles

  1. What problems arise with thematic roles?
    It is hard to agree on a standard role set or define roles formally; roles fragment into many subtypes; and finite discrete lists don’t support some generalizations. E.g. an AGENT is usually animate, volitional, sentient and causal, but a given NP may lack some of these.
  2. Give an example of role fragmentation for INSTRUMENT.
    Intermediary instruments can be subjects (“The knife cut the banana”), enabling instruments cannot (“Shelly ate the banana with a fork” but *“The fork ate the banana”).
  3. What are PROTO-AGENT and PROTO-PATIENT?
    Generalized semantic roles defined not by necessary and sufficient conditions but by heuristic features: the more agent-like properties an argument has (volitional, causing change, sentient, moving), the likelier it is PROTO-AGENT; the more patient-like (undergoing change, causally affected, stationary), PROTO-PATIENT.
  4. What two alternatives to universal thematic roles do PropBank and FrameNet use?
    PropBank uses proto-roles and verb-specific roles; FrameNet uses roles specific to a frame, a semantic situation shared by a group of words.

22.4 PropBank

  1. What is PropBank, and how are its roles defined?
    The Proposition Bank: sentences (e.g. the Penn Treebank) annotated with semantic roles defined per verb sense and named only by number: Arg0 is generally the PROTO-AGENT, Arg1 the PROTO-PATIENT, higher numbers verb-specific.
  2. What do PropBank’s Arg2–Arg4 typically mean?
    Less consistently: Arg2 often benefactive, instrument, attribute or end state; Arg3 start point, benefactive, instrument or attribute; Arg4 the end point.
  3. What is a PropBank frame file? Give the entry for fall.
    A per-verb-sense list of roles with informal human-readable glosses. fall.01 “move downward”: Arg1 thing falling, Arg2 extent/amount fallen, Arg3 start point, Arg4 end point. “[Arg1 Sales] fell [Arg4 to $25 million] [Arg3 from $27 million].”
  4. Why does fall have no Arg0?
    Its normal subject is a patient-like PROTO-PATIENT, not an agent.
  5. What does PropBank labeling reveal about “Big Fruit Co. increased the price of bananas”, “The price of bananas was increased by Big Fruit Co.” and “The price of bananas increased 5%”?
    In each, Big Fruit Co. is Arg0 (agent) and the price of bananas Arg1 (theme), despite different syntax; 5% is Arg2, the amount increased.
  6. What are PropBank ArgMs?
    Non-numbered modifier/adjunct arguments stable across predicates: ArgM-TMP (time), ArgM-LOC (location), ArgM-DIR (direction), ArgM-MNR (manner), ArgM-PRP/CAU (purpose, cause), ArgM-NEG (negation), etc.
  7. What is NomBank?
    A PropBank-style annotation of noun predicates: in Apple’s agreement with IBM, Apple is Arg0 and IBM Arg2.

22.5 FrameNet

  1. What generalization does FrameNet capture that PropBank misses?
    Commonality across different verbs and between verbs and nouns: in “the price of bananas increased 5%”, “…rose 5%” and “a 5% rise in the price of bananas”, the same thing went up by the same amount.
  2. What is a frame in Fillmore’s sense?
    The holistic background knowledge that unites a set of words, e.g. air travel for reservation, flight, travel, buy, price, fare, meal, plane; related to models and scripts in AI and cognitive science.
  3. What does a FrameNet frame contain?
    A background knowledge structure defining frame-specific semantic roles (frame elements), the predicates (lexical units) that evoke it, and labeled example sentences. Each word evokes a frame and profiles some aspect of it.
  4. What is the difference between core and non-core frame elements?
    Core roles are frame-specific; non-core roles express general properties like time and location, similar to PropBank ArgMs.
  5. Name core frame elements of the Change_position_on_a_scale frame.
    ITEM (entity with a position on the scale), ATTRIBUTE (the scalar property), DIFFERENCE (distance changed), INITIAL_VALUE, FINAL_VALUE, INITIAL_STATE, FINAL_STATE, VALUE_RANGE.
  6. Label “Oil rose in price by 2%” with FrameNet roles.
    [ITEM Oil] rose [ATTRIBUTE in price] [DIFFERENCE by 2%].
  7. How does FrameNet relate frames to each other?
    Frames can inherit from each other and be linked by relations like causation: Cause_change_of_position_on_a_scale adds an AGENT (“[AGENT They] raised [ITEM the price of their soda] [DIFFERENCE by 2%]”).
  8. What datasets and resources exist for semantic roles and semantic frames?
    FrameNet (frames, frame elements, lexical units; also for Spanish, German, Japanese, Portuguese, Italian, Chinese…), PropBank (English and Chinese), NomBank (noun predicates), VerbNet (verb classes), and the CoNLL-2005 and CoNLL-2012 SRL evaluation sets.

22.6 Semantic role labeling

  1. What is semantic role labeling (SRL)?
    Automatically finding the semantic roles of each argument of each predicate in a sentence; usually supervised learning on FrameNet or PropBank.
  2. How does a classic feature-based SRL algorithm work?
    Parse the sentence; find all predicates; for each predicate, classify every parse-tree node into a semantic role or NONE with a 1-of-N classifier trained on labeled data.
  3. Into which steps can node classification for SRL be broken down?
    Pruning (heuristically discard unlikely constituents), identification (binary: argument or NONE), and classification (1-of-N role labeling of identified arguments).
  4. Why do SRL systems need a global consistency step?
    Arguments aren’t independent: constituents must not overlap, and a verb can’t have two Arg0s. Local classifier probabilities are combined by Viterbi-style decoding, reranking or integer linear programming.
  5. List the core SRL features of Gildea and Jurafsky (2000).
    Governing predicate, phrase type, headword and its POS, the parse path from constituent to predicate (e.g. NP↑S↓VP↓VBD), voice (active/passive), linear position (before/after the predicate), subcategorization of the predicate (e.g. VP → VBD NP PP), named entity type, and first and last words of the constituent.
  6. Why is the parse path feature useful in SRL?
    It compactly represents the grammatical function relation between constituent and predicate: NP↑S↓VP↓VBD is a typical subject path.
    SNPVPVBDNPthe editorissueda statement
    Path from the editor to issued: NP↑S↓VP↓VBD
  7. Why is voice an important SRL feature?
    Passive clauses link semantic roles to surface positions very differently from active ones (the subject of a passive is usually Arg1).
  8. How can SRL be done as neural sequence labeling?
    Given the predicate, tag spans with BIO labels per role (B-ARG0, I-ARG0, B-ARG1…, O): encode the sentence plus the predicate (e.g. after [SEP]), concatenate each token’s encoding with a predicate indicator, and classify each token with a feedforward softmax (a CRF adds little).
  9. How is SRL evaluated?
    Each argument label must be assigned to exactly the right word sequence or constituent; then precision, recall and F1 (identification and classification can be scored separately), e.g. on CoNLL-2005 or CoNLL-2012.

22.7 Selectional restrictions

  1. How do selectional restrictions disambiguate “I want to eat someplace nearby”?
    The THEME of eat should be edible; someplace nearby isn’t, so it must be a locative adjunct of intransitive eat, not the direct object (the “speaker as Godzilla” reading).
  2. Are selectional restrictions associated with words or senses?
    Senses: serve in “serves green-lipped mussels” restricts its THEME to food; in “Which airlines serve Denver?” to locations.
  3. How specific can selectional restrictions be?
    Very variable: imagine restricts its AGENT to animate beings but its THEME hardly at all; diagonalize requires a matrix; odorless requires something that could have an odor. The needed concept set is open-ended.
  4. How can selectional restrictions be represented in neo-Davidsonian logic?
    Add a type constraint on the role filler: \(\exists e, x, y\; Eating(e) \wedge Agent(e, x) \wedge Theme(e, y) \wedge EdibleThing(y)\). “ate a takeoff” becomes inconsistent.
  5. What are the problems with logical selectional restrictions, and the practical alternative?
    FOL is overkill and requires a huge commonsense knowledge base. Instead, specify a WordNet synset per argument: a filler is acceptable if it is a hyponym of that synset (eat’s THEME = {food, nutrient}; hamburger’s hypernym chain reaches food).
    hamburger, beefburger
     ⇒ sandwich
      ⇒ snack food
       ⇒ dish
        ⇒ nutriment, nourishment
         ⇒ food, nutrient
          ⇒ substance … ⇒ entity
  6. How do WordNet synsets handle the THEMEs of imagine, lift and diagonalize?
    Restrict them to {entity}, {physical entity} and {matrix}: this allows imagine/lift a hamburger but rules out diagonalize a hamburger.
  7. Why are selectional restrictions better modeled as preferences than strict constraints?
    Violations occur in well-formed sentences, e.g. under negation (“you can’t eat gold for lunch”) or when restrictions are overstated (“Mr. Kulkarni ate glass on an empty stomach”).
  8. What is Resnik’s selectional preference strength?
    How much information a predicate gives about the semantic class of its arguments: the KL divergence between the class distribution for that verb’s arguments and the general class distribution, \(S_R(v) = D(P(c \mid v)\,\|\,P(c)) = \sum_c P(c \mid v)\log\frac{P(c \mid v)}{P(c)}\). Eat has high strength, be low.
  9. What is Resnik’s selectional association?
    The relative contribution of a class to a verb’s preference strength: \(A_R(v, c) = \frac{1}{S_R(v)}P(c \mid v)\log\frac{P(c \mid v)}{P(c)}\), estimated from parsed corpora treating each word as a partial observation of all WordNet classes containing it.
  10. What simpler measures of selectional preference exist?
    The conditional probability of an argument noun given the verb and relation, \(P(n \mid v, r)\), from co-occurrence counts in a huge parsed corpus; the inverse \(P(v \mid n, r)\); or log co-occurrence counts (better for subjects).
  11. How are selectional preference models evaluated with pseudowords?
    Replace each verb’s actual object (car) with a pseudoword combining it with a frequency-matched confounder (car/house); the model must choose which is the original object of drive. Alternatively, correlate with human plausibility ratings obtained by magnitude estimation.

22.8 Primitive decomposition

  1. What is primitive decomposition (componential analysis)?
    Decomposing word meanings, especially predicates, into primitive semantic elements: KILL(x, y) ⇔ CAUSE(x, BECOME(NOT(ALIVE(y)))).
  2. How does primitive decomposition explain “John opened the door”, “The door opened” and “The door is open”?
    One state predicate OPEN combines with primitives: CAUSE(John, BECOME(OPEN(door))), BECOME(OPEN(door)), OPEN(door).
  3. What is conceptual dependency?
    A more radical decomposition into about ten primitive predicates used in early NLP systems, e.g. ATRANS (abstract transfer of possession), PTRANS (physical transfer), MTRANS (mental transfer), MBUILD, PROPEL, MOVE, INGEST, EXPEL, SPEAK, ATTEND, each with fixed roles. “The waiter brought Mary the check” = ATRANS + PTRANS.

Historical notes

  1. How did Fillmore’s case grammar arise?
    Studying Tesnière’s dependency grammar, Fillmore called argument roles actants, then cases, proposing a universal list (Agent, Patient, Instrument…); verbs were listed with their case frames.
  2. What is frame semantics?
    Fillmore’s idea that words are understood against packages of connected expectations about situation types (frames, schemas, scenarios, scripts), presupposed as background.
  3. How did the FrameNet and PropBank corpora change SRL research?
    Their consistent large annotations recast SRL from 1970s handwritten rules into supervised machine learning (Gildea & Jurafsky 2000 on FrameNet, then PropBank), later with dependency features and neural models (biLSTMs, then transformers).
  4. What is implicit argument detection (iSRL)?
    Finding arguments that appear only in another sentence or must be inferred: in “This house has a new owner. The sale was finalized 10 days ago.”, the Arg1 of sale is the house.
  5. What are connotation frames?
    Frames marking richer information about predicate arguments, such as the writer’s or reader’s sentiment toward them: “he survived a bombing” expresses sympathy for he and negative sentiment toward the bombing.

Source