Learn Before
Diagnosing a Span Prediction Error
A question-answering model was given the context and question below. Based on the provided table of start and end log-probabilities for each token, determine which answer span the model would predict and explain why this prediction, while mathematically optimal according to the selection formula, is semantically incorrect for the given question.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A language model is tasked with finding an answer span within a text. After processing the text, it produces the following log-probabilities for each token being the start or the end of the answer. To find the best span, one must find the start index () and end index () that maximize the sum of their log-probabilities, with the constraint that the start index cannot be after the end index ().
Index Token Start Log-Prob End Log-Prob 1 The -5.1 -8.1 2 first -4.2 -7.2 3 person -4.5 -6.5 4 was -5.5 -5.5 5 Neil -0.9 -3.1 6 Armstrong -2.1 -0.5 Given the table above, what is the predicted answer span?
Analyzing the Span Prediction Constraint
Diagnosing a Span Prediction Error