Loss-augmented Structured Prediction
CMSC 723 / LING 723 / INST 725 Marine Carpuat
Figures, algorithms & equations from CIML chap 17
Loss-augmented Structured Prediction CMSC 723 / LING 723 / INST 725 - - PowerPoint PPT Presentation
Loss-augmented Structured Prediction CMSC 723 / LING 723 / INST 725 Marine Carpuat Figures, algorithms & equations from CIML chap 17 POS tagging Sequence labeling with the perceptron Sequence labeling problem Structured Perceptron
CMSC 723 / LING 723 / INST 725 Marine Carpuat
Figures, algorithms & equations from CIML chap 17
Sequence labeling problem
Structured Perceptron
sequence labeling
the feature function decomposes over the input
features used for POS tagging
labeled with tag l for all words w and all tags l
to tag l’ in output for all tags l and l’
input length
input sentence
adding weights along the path corresponds to score for input/ouput configuration
algorithm can find the argmax
1 to time l, and transitions from y to y’
Unary features at position l together with Markov features that end at position l
to and including position l that labels the l-th word with label k
computed recursively
for a fixed vector a
solvers (e.g., Gurobi)
variables z
solutions
sequence labeling
assumptions on feature structure
# = 𝐵, 𝐵, 𝐵, 𝐵
# = [𝑂, 𝑊, 𝑂, 𝑂]
Structured hinge loss
score of every imposter
as function of score diff between most confusing imposter and true output
loss?
Only 2 differences compared to structured perceptron!
We can use Viterbi algorithm as before as long as the loss function decomposes over the input consistently w features!
sequence labeling
assumptions on feature structure
From Sequences to Trees
in any given natural language
attain knowledge of sentence structure”
language
[Philips, 2003]
words
noun
verbs
analyses of the same data!
non-terminals on the right
Note: equivalence between parse trees and bracket notation
(typed or untyped, directed or undirected)
relations called dependencies
They hid the letter on the shelf Compare with constituent parse… What’s the relation?
all!)