Elamur Research

Detecting Parser Errors Using Web-based Semantic Filters

Paper · 2006 · Alexander Yates, Stefan Schoenmackers and Oren Etzioni

Summary

A sentence parser can assign the wrong structure to a perfectly ordinary sentence. In one of the paper’s examples, a financial report gives earnings in cents, but the parser treats the amount as a description of the company’s operations. A program that relies on that analysis can carry the mistake forward into an answer or a database entry. The authors ask whether a system can catch such mistakes by checking the relationships that the chosen structure implies. Their premise is that a wrong attachment or a mistaken choice of main verb can make familiar words express a relationship that is difficult to support with evidence from other texts. The task is a check on the output of parsing.

The authors build a system called Woodward. It turns the parser’s preferred tree into a set of linked predicates that say which properties, actions and attachments the tree assigns to the sentence’s entities. It then looks for evidence suited to each kind of relationship. Search-engine counts help assess some word combinations, samples of sentences help establish how many arguments a verb normally takes, and a search engine for extracted relations supports checks on verb–argument combinations. For some questions, Woodward can also search for answers that satisfy the interpretation. A successful search gives it a reason to accept the parse.

The tests cover a retained subset of TREC 2004 questions and a selected sample of Penn Treebank news sentences. On the 43 TREC questions, accepting every parse gives filter precision of 0.54. Woodward raises it to 0.82 while keeping filter recall at 1.0. On the 100 Treebank sentences, filter precision rises from 0.45 to 0.58, and filter recall falls from 1.0 to 0.88. Using error defined as the complement of filter F1, the authors report reductions of 67% for the questions and 20% for the news sentences. The accepted set contains a higher proportion of fully correct parses in both tests, with some correct news parses lost in the process.

The experiments establish what a plausibility check can do when it is allowed to discard the parser’s output. In the harder news sample, a wrong attachment can depend on the meaning of a whole clause, beyond what the system’s word-level evidence captures. The approach also depends on overlap between the input and the material available for search. A correct analysis of an unusual statement can look doubtful when relevant examples are scarce. The paper’s result is a measured improvement in the reliability of the parses a downstream system gets to keep.

Deep dive: Detecting Parser Errors Using Web-based Semantic Filters

Detecting Parser Errors Using Web-based Semantic Filters shows how evidence from the Web can help identify unreliable sentence parses. · about 36 minutes to read

The problem and its context

When a grammatical decision changes the facts

A parser assigns structure to a sentence. Its decisions include which phrase serves as the subject, which verb governs a clause, and where a phrase introduced by a preposition belongs. A downstream program can use those decisions to determine who did what, which entity a description applies to, or what information a question requests. If the parser gives the downstream program the wrong relationships, all the original words can still be present. The problem is in how they have been connected.

The financial example makes that distinction concrete. The sentence mentions per-share earnings, continuing operations and an amount. The intended analysis associates the amount with earnings. The analysis selected by the parser associates it with operations. Both possible hosts occur in the same stretch of text, so recognizing the nouns and spotting the preposition still leave the central decision open. The difference becomes conspicuous when the system asks what the amount is supposed to describe. Evidence that earnings are commonly expressed in cents would bear directly on that question. Evidence about the occurrence of the word for operations on its own would be much less informative.

An application can be sensitive even to a local mistake of this kind. A structural analysis can contain many correct constituents and still supply the specific wrong connection that matters to the application. A question can likewise be largely well analyzed while getting the role of the requested answer wrong. The authors therefore evaluate whether Woodward can identify fully correct parses among the ones it receives. The unit is the entire analysis, even though much of the evidence is collected for individual relationships inside it.

The paper motivates the work with question answering and information extraction. A question-answering system can use syntax to decide which conditions an answer must satisfy. An extraction system can use similar information to identify the arguments of a relation it wants to record. Both have a use for a signal that the structure is unreliable before they act on it. The paper describes prior question-answering systems for which parsing was an important component. In one, a set of relaxation procedures helped deal with difficulties that included bad parses. Woodward reverses the direction of information in that pipeline for an eligible question. The attempt to answer it becomes a source of evidence about whether the analysis that guided the attempt was sound.

Why search the Web for evidence

The authors point to a practical obstacle for Web applications. A parser can learn from a collection of sentences that people have analyzed, but the Web contains heterogeneous text. Constructing a hand-analyzed collection that stands in for the full variety of those inputs would be difficult. The paper seeks an additional source of evidence that can be gathered from a broader body of text. The search material need not come with the kind of manual syntactic analysis required to train the original parser.

The proposal has two parts. Scale gives the system more chances to see particular words together, which matters when a pairing is rare in the parser’s training material. Query design gives those occurrences a purpose. A query with a verb and a nearby noun can bear on whether the noun is a plausible participant. A carefully chosen phrase followed by a noun phrase can bear on whether the verb admits another argument. A tuple from an extraction system can provide evidence in a form that already distinguishes a relation from its participants. Each source of evidence is useful to the extent that its matches correspond to the property under examination.

This use of co-occurrence extends a practice the authors also attribute to statistical parsers. Such parsers can already use combinations of lexical heads, the central words of phrases, when deciding on a structure. The proposed filters ask questions about similar lexical material after a tree is available. At that point the system knows which relation the tree proposes, which words fill its slots and what kind of evidence could challenge it. The resulting check can be more targeted than a general inquiry about whether the words on the page occur together.

The hypothesis gives plausible and implausible combinations different roles. Ordinary combinations can support the parse. A strong inconsistency can be enough to doubt it even when other parts look fine. This is particularly useful when alternative structures put the same words into distinct roles, as in the earnings example. It is less decisive when both structures yield coherent readings or when the sentence describes something genuinely uncommon. The paper builds that conditional understanding of plausibility into its account of where the approach applies.

How this relates to earlier parsing work

The closest task in the paper’s discussion is parse reranking. A reranker receives candidate analyses and can choose a different one from the parser’s initial favorite. Choosing a replacement implicitly expresses doubt about the initial choice. The work by Collins that the authors discuss learns to rank analyses using syntactic and lexical features and training material from the Penn Treebank. Woodward likewise brings additional evidence to bear after the original parser has made its decisions, but its output in the experiment is an accept-or-reject judgment for the preferred tree. The earlier study is Discriminative Reranking for Natural Language Parsing.

There was also precedent for deriving explicit meanings from syntactic structures. The paper describes work that interprets derivations produced by a combinatory categorial grammar parser. It also describes the English Resource Grammar and its use of minimal recursion semantics to represent meaning. The English Resource Grammar supplies semantic features to a selection mechanism that the authors characterize as largely syntactic, and the paper distinguishes its grammar coverage from the coverage available to Woodward. These examples establish a broader setting for the interpreter: turning structure into meaning was an existing line of work, while Woodward uses that intermediate meaning as the basis for a Web plausibility check. The general task is related to semantic parsing.

The authors also situate their proposal alongside older systems that ruled out interpretations using hand-built transition networks or semantic networks. They mention more recent attempts to aid disambiguation with resources such as WordNet, FrameNet and PropBank. Woodward’s reliance on corpus statistics is intended to reduce dependence on such hand-built resources and make the evidence easier to obtain across domains. It still needs a supervised filter, a semantic interpreter and search patterns. The difference lies in how it gets evidence about the plausibility of a particular relationship at test time.

Web statistics had already been used for narrower linguistic judgments. The paper describes work using pointwise mutual information for preposition attachment in German and work using Web counts for attachment, compound noun interpretation and noun countability. It also mentions a use of pointwise mutual information for some cases of anaphora, where an expression refers back to something introduced elsewhere. Woodward brings Web association scores into a larger checking procedure. It can use a different kind of evidence when the question is how many arguments a verb takes, and it can exploit an answer search when the input has an appropriate question structure.

The method, step by step

From a tree to relationships that can be checked

Woodward starts with the preferred analysis from the parser. A tree expresses grouping and grammatical structure, but the connections that matter to the filter are easier to inspect in a compact representation. An interpreter converts the sentence and its Penn Treebank style tree into a relational conjunction, abbreviated RC. A conjunction is a set of conditions taken together. Here the conditions are predicates, each with a name and a list of arguments.

A predicate can represent the type of an entity, a relationship introduced by a verb, or a connection introduced by a preposition. An argument can be a variable or a string constant. Think of a variable as the representation’s way of keeping track of an entity or phrase while several conditions refer to it. A string constant supplies a fixed expression, such as the location in the paper’s oil-producing states example. Reusing a variable matters. If a description identifies something as a state and another predicate says that the same thing produces oil, the shared variable ties the two claims to one participant.

The representation also distinguishes the phrase associated with a relation from the noun phrases filling its argument roles. The notation in the example uses NP for noun phrase, VP for verb phrase and PP for prepositional phrase, with indices to distinguish them. In the verb-arity test, the system counts essential noun and clause arguments. The identifier for the verb phrase itself is part of the representation and serves a different function from a participant argument.

The paper illustrates the conversion with a TREC 2003 question asking which states in the United States produce oil. Under the intended reading, the form of be supplies the main question relation. The states are the things described as producing oil, and the location restricts the states. In the Collins analysis shown in the paper, the word producing becomes the clause’s main verb. The resulting conjunction loses the separate relation for are and gives producing an extra noun phrase argument. The representation thus makes a structural mistake visible as a claim about the participants of a verb.

This example gives the filters a concrete question to ask. A pairwise check might find that producing and oil are a reasonable combination. It could also find evidence for states as producers. Neither observation settles whether the verb can govern all the arguments that the erroneous tree assigns to it. A useful check has to consider the verb’s argument count as well as the words filling particular roles.

The authors describe the interpreter by its inputs and outputs and refer to a similar procedure in an earlier question-answering system. The paper leaves the detailed mapping algorithm unspecified. The representation nevertheless makes the division of labor clear. The original parser supplies a tree, the interpreter’s output spells out what relationships follow from it, and the filters judge those relationships or the conjunction as a whole.

How Woodward checks a parser's preferred analysis

The steps in order.

How Woodward checks a parser's preferred analysisStep 1: Take the parser's top-ranked tree1. Take the parser's top-ranked treeStep 2: Convert its relationships into a relational conjunction2. Convert its relationships into a relational conjunctionStep 3: Try answer search for an eligible question3. Try answer search for an eligible questionStep 4: Accept immediately when answer search succeeds4. Accept immediately when answer search succeedsStep 5: Route remaining verb and preposition predicates by type5. Route remaining verb and preposition predicates by typeStep 6: Collect matching Web counts, samples, or tuples6. Collect matching Web counts, samples, or tuplesStep 7: Reject if a checked relation fails7. Reject if a checked relation fails

Checking word combinations with pointwise mutual information

The pointwise mutual information filter, or PBF, asks whether the words that make up a proposed relationship occur together frequently given their individual frequencies. A large raw count for a query can simply reflect common words. Pointwise mutual information, abbreviated PMI, compares the observed joint occurrence with the occurrence that would be expected from the individual probabilities under independence. The filter can use a restrictive phrase count as its measure of joint occurrence.

PMI(t₁, t₂) = log(P(t₁ ∧ t₂) / (P(t₁)P(t₂)))

Here t₁ and t₂ are the terms whose association is being evaluated. P denotes probability, and ∧ denotes joint occurrence, so P(t₁ ∧ t₂) is the joint probability. The individual probabilities P(t₁) and P(t₂) are multiplied in the denominator. The slash marks division, log takes the logarithm of the ratio, and PMI(t₁, t₂) is the resulting association score.

For the filter, the relation name and the heads of its arguments supply the words. A head is the word that stands for the phrase in this comparison, such as the noun naming the thing being described. The authors call the resulting patterns discriminator phrases. They use search hits for the phrases and for their constituent terms. The phrase count supplies the evidence for the numerator, so the score can depend on order, adjacency or a particular intervening position. In the interface used by the authors, the wildcard * stands for any single word.

Consider the relationship between operations and cents in the financial example. A query for the two nouns anywhere in a document could match discussion of both without expressing the attachment in question. A query placing operations immediately before of asks a more specific question. A pattern that then allows a word between of and cents asks for a form closer to the one that the parse implies. PBF supplies the resulting association scores to a classifier. A hit on one of the patterns is evidence to weigh, instead of a direct judgment of the parse.

For verb relations the selected patterns look at adjacent words and words separated by a wildcard. A subject head goes before the verb. A head in a nonsubject role goes after it. For each argument, the system adds its pattern scores, then uses the feature scores from the argument with the lowest sum. That gives the weakest-supported participant the decisive role in selecting the inputs to the classifier. The rationale is that strong support for the other participants can coexist with a wrong argument assignment.

For a preposition, the queries make use of the heads on both sides of the proposed attachment. They include the first head followed by the preposition, and variants that connect both heads through the preposition and either a wildcard or the determiner the. Another pattern places a wildcard between the heads. For an attachment to a verb, additional patterns put it or them between the first head and the preposition, with the second head following. Those patterns make room for the direct object of a strictly transitive verb. A query can then capture the proposed verb–preposition connection in a construction where the verb still has its expected object.

The verb and preposition classifiers are trained separately, since their feature patterns differ. The authors use LIBSVM to fit a support vector machine with a Gaussian kernel for PBF. A support vector machine learns a rule for separating examples with different labels from their feature values. Here the labels say whether a relation obtained from the parser agrees with the intended analysis, and the features come from search counts. The Gaussian kernel lets the separation depend on combinations of scores instead of requiring a cutoff on a single association value.

The choice of verb patterns was made during development by leave-one-out cross-validation on the training data. In that procedure, a training example takes a turn as the held-out item while the others are available for fitting. The paper describes trying patterns and using this evaluation to select the verb features. The held-out test collections are used afterwards to see how the resulting filters behave on sentences outside that development process.

Testing how many arguments a verb takes

A verb can be associated with each of several nouns and still be assigned the wrong number of participants in a particular parse. Woodward’s Verb Arity Sampling Test, or VAST, addresses this kind of error. Arity here is the count of essential arguments associated with the verb. A test that demanded a search hit containing the verb and all of the specific arguments would have little evidence to work with in many cases. VAST instead asks about the verb’s behavior in common constructions that make its capacity for a particular argument count observable.

The filter begins by counting noun phrase arguments and clause arguments identified by the Collins parser as essential. It then uses voice to interpret the count. With an active verb and two essential arguments, or a passive verb and one, the system treats the relation as strictly transitive and sends it to no VAST check. An active verb with three essential arguments or a passive verb with two calls for the ditransitive test. An active verb with one calls for the intransitive test. The paper groups the cases that go to those checks under its label nontransitive for routing and evaluation. That label covers the ditransitive cases as well as the intransitive ones.

The ditransitive check uses queries containing which followed by it or they and the verb. The intuition is that the phrase creates a context in which another noun phrase after the verb can supply evidence of an additional participant. In the authors’ illustration, a phrase built with producing will rarely be followed by a relevant additional noun phrase. A phrase built around a verb such as give or name offers more opportunities for such a continuation. The test uses a distribution of continuations because any single one can be incidental. An expression of time, for example, can occupy the same position as an argument for the purpose of a shallow search.

For the ditransitive check, the query requests a sample of two hundred documents. The system downloads them, locates sentences containing the query phrase and assigns parts of speech and noun phrase chunks. Part-of-speech tags distinguish grammatical categories such as nouns and verbs. Chunking identifies local groups of words that form noun phrases. The paper uses a maximum entropy tagger and chunker for this processing. See part-of-speech tagging.

The check discards sentences where a preposition comes immediately before which. With more than ten sentences left after filtering, it counts how frequently a noun phrase chunk occurs immediately after the verb. That count supplies the numerator of the ditransitive score. Using the number of eligible sentences in the denominator makes the score reflect how commonly the continuation occurs in the sample.

ditransitiveScore(v) = E / F

Here v is the verb being tested. E is the number of extractions, with an extraction counted when the verb in a retained sentence is immediately followed by a noun phrase chunk. F is the number of sentences remaining after the filter on the sample. The slash means that the extraction count is divided by the retained sentence count.

The intransitive check looks for the opposite tendency. It fetches up to two hundred sentences with patterns beginning but it or but they and continuing with the verb. It tags and chunks this material and checks for noun phrases directly after the verb. A lower rate of these continuations gives stronger support for the one-argument analysis proposed by the parse.

intransitiveScore(v) = 1 − E / S

Here v again identifies the verb and E counts the immediate noun phrase continuations. S is the number of sentences in the sample for this check. E / S is the fraction of sentences with the continuation, and subtracting it from 1 makes fewer such continuations yield a higher score.

Each check produces a real-valued score. The authors use a linear-kernel support vector machine to learn a threshold for deciding whether a proposed arity is acceptable. The samples provide a behavioral proxy. They show how readily a verb appears with a noun phrase in a particular position under a particular query pattern. The correspondence between that proxy and a correct argument count is what the supervised threshold is meant to capture.

Searching for relations with TextRunner

TextRunner supplies a different source of Web evidence. It indexes relations that have already been extracted into triples, with a string for the first object, a string for the predicate and a string for the second object. A query can supply a string for each position. The search matches a tuple when each supplied string occurs within the string in the corresponding slot. The object strings are close to noun phrase chunks, while the predicate strings can contain a wider range of grammatical material.

This interface makes a query more directly comparable to an RC predicate. The filter can search for the first argument head in the first slot, the relation name in the middle and the other head in the last slot. The matching rule also introduces flexibility. A query for a single preposition can match an extracted predicate containing several words, so the returned predicate can express a more specific or different-looking relationship than the queried word alone would suggest. The score derives from counts over those matches.

At the time of reporting, the paper’s index held more than a billion triples drawn from about 90 million documents. According to the authors, Google’s search index was still approximately 100 times as large. It was quicker for them to query because they had local access, and commercial search engines imposed limits on the number of requests an application could submit per day. The tradeoff is between targeted, convenient queries and the amount of evidence the index has for a particular relationship.

An RC predicate can have more arguments than a TextRunner triple can hold. Woodward therefore takes the first argument head as its reference point and forms queries pairing it with later argument heads. It also issues queries with just one argument head and the predicate. The score combines the counts from the fully specified and partially specified queries.

TextRunnerScore = (1 / (n − 1)) × ∑ᵢ₌₂ⁿ hits(A₁, P, Aᵢ) + (1 / n) × ∑ᵢ₌₂ⁿ (hits(A₁, P, _) + hits(_, P, Aᵢ))

TextRunnerScore is the score of the RC predicate under examination. P is its predicate string, and A₁ and Aᵢ are the head words of the first argument and argument i. The number of arguments is n, with n ≥ 2. Each ∑ᵢ₌₂ⁿ adds the terms for indices from 2 through n. The function hits returns the count for a TextRunner query, and _ makes the corresponding slot unrestricted. The slash denotes division, × multiplication, and the plus signs combine counts or score terms. The first sum has the factor 1 / (n − 1), and the second uses 1 / n, as in the paper.

The fully specified queries test for the relation and a pair of heads in the same extracted triple. The partially specified queries can still find evidence when a particular pair is rare. They ask whether the first argument occurs on its side of the relation and whether each later argument occurs on the other side. The formula combines those signals without requiring a single extracted tuple to represent the entire RC. LIBSVM is used to learn a threshold for recognizing acceptable predicates from this evidence.

Trying to answer an eligible question

The question-answering filter operates at the level of the entire conjunction. It asks whether the relations and type restrictions derived from the tree can be satisfied together. The system uses KnowItNow for the type restrictions. KnowItNow finds examples or more specific members of a class using patterns intended to work across domains. For the relational restrictions, the system consults TextRunner for objects connected by the relevant predicates.

In the oil-producing states example, the idea is to get candidate entities fitting the type and then look for assignments that also satisfy the relevant relationships. Shared variables ensure that the members of an assignment fit the same interpretation throughout. Finding a candidate state for a type predicate and finding oil production involving some unrelated entity would leave the conjunction unsatisfied. The evidence has to meet the conditions jointly for the proposed answer.

ans(x₁, …, xₙ) = (⋀ᵢ Tᵢ(xᵢ)) ∧ (⋀ⱼ Pⱼ(xⱼ₁, …, xⱼₖ))

ans is the condition an answer tuple must satisfy. The values x₁, …, xₙ fill the corresponding noun phrase variables Xᵢ, with n denoting the number of values in the assignment. Tᵢ is a type predicate applied to the value xᵢ at index i. Pⱼ is a relational predicate at index j, and xⱼ₁, …, xⱼₖ gives its argument values in order, with k the number of positions shown for that predicate. The dots stand for the intervening values. Each indexed ⋀ requires every condition in the indicated group to hold. The middle ∧ requires both the type and relational conditions. The RC can also contain constants, whose values are fixed when the relations are checked.

The procedure computes the question’s conjunction, obtains candidates for its type restrictions, retrieves instances for its relational restrictions and returns the assignments that satisfy the whole expression. The filter calls the parse correct when the number of returned answers is above its threshold of 1. The check is different from the TextRunner relation filter because it can search for subclasses and instances and enforce connections across the predicates. Its evidence comes from the solvability of the interpretation rather than from a count for a single pair of heads.

A successful search has a special role in the combined system. For a question with no prepositions, Woodward tries this check first. A positive result gives immediate acceptance. A negative result sends the question onward to predicate checking. There are plausible reasons to fail to retrieve answers even for a correct interpretation, such as incomplete evidence for one of the conditions. The routing lets successful retrieval support acceptance while giving an unsuccessful search another way to be evaluated.

Combining the filters and learning their decisions

For the predicate checks, Woodward routes a preposition relation to PBF. It sends the nontransitive verb cases defined by the paper to VAST and the strictly transitive cases to TextRunner. Routing selects which evidence source gets to judge each predicate. It also means that these filters do separate jobs in the final system even though some of them can be compared on the same relations in the experiments.

Woodward accepts through this route only when every relation checked receives a positive judgment. A single negative decision is enough to reject the conjunction. The rule follows the objective of passing a fully reliable analysis downstream. It also makes an individual classifier’s mistakes consequential. An incorrect rejection on one relation can cost the system an otherwise useful parse, and a missed error can let a bad parse through if the remaining predicates all pass. The early question-answering decision is the other acceptance route.

Training begins with sentences from TREC and the Penn Treebank. The authors parse them, run the interpreter and assign correctness labels by hand to the resulting relations. A correct relation supplies a positive example and a wrong relation a negative one. Features or scores obtained with Web searches and TextRunner are paired with those labels for learning. The parser itself is Daniel Bikel’s implementation of the Collins parser, trained on Penn Treebank sections 2–21. Woodward’s training uses relation judgments on the parser’s outputs, which is a different supervision target from learning to produce the original trees.

The training data also guide the choice of routing. The authors found that TextRunner worked best among their filters for verb relations without arity errors in training. PBF had an advantage for preposition relations there. They observed that a positive judgment from the question-answering filter was reliable in training, while its negative judgments were mixed. These observations explain the division of work and make it possible to ask in the tests whether the same patterns carry over.

Experiments and results

The sentences and what counts as a correct parse

The question collection comes from the TREC question-answering track. The filter training set contains 61 questions from TREC 2002 and TREC 2003. The initial test set contains 55 list and factoid questions from TREC 2004. A list question asks for multiple qualifying answers, while a factoid question asks for a specific piece of information. The authors remove parenthetical material in preprocessing, affecting 3 training questions and 1 test question. They also tag the questions with Ratnaparkhi’s MXPOST tagger before parsing them.

The test protocol distinguishes mistakes that the semantic filters are meant to catch from failures detectable at the top of the tree. The authors exclude 12 test questions because the parser’s root label is neither SBARQ nor SQ, the labels used by their check for a question analysis. They regard that particular error as readily detectable. They keep the 25 training questions with this problem to provide more training examples. The reported filtering evaluation is on the 43 retained test questions. The correctness of TREC parses is judged manually.

There are accordingly two reported figures for how many TREC 2004 questions the Collins parser analyzes correctly. In the introduction the authors give 42% for the list and factoid questions. The results report parser efficacy of 54% for the retained 43 questions. The quoted efficacy numbers refer to different evaluation populations. The latter is the starting proportion of correct parses for the comparison with Woodward.

For the Penn Treebank, section 22 supplies the filter training sentences and section 23 supplies the filter test sentences. The authors use 100 sentences from each section. To select them, they take the first eligible sentences that contain no conjunctions and whose parsing errors, if present, lie in verb or preposition relations. The paper gives the time taken by PBF as the reason to limit the sample. This part of the evaluation uses Wall Street Journal material and automatically scores the parses. The related resources are treebanks.

Both test collections use only the top-ranked tree from the parser. The paper counts a parse as fully correct only if both precision and recall for labeled constituents reach 100%. A labeled constituent identifies a span of words and its syntactic category. Perfect constituent precision requires all proposed labeled spans to agree with the reference, and perfect constituent recall requires every reference labeled span to be found. The whole-parse decision therefore treats a tree with even one such mistake as incorrect. The paper reports parser efficacy of 45% on the selected Treebank test sentences.

Measuring the retained set

The baseline accepts every parse. It inherits the parser’s proportion of fully correct outputs as its filter precision, and it retains all the parses that were correct to begin with. This is the relevant baseline for a downstream system that takes the parser’s preferred analysis every time. Woodward can improve the proportion of correct outputs by rejecting incorrect ones, though an overly aggressive filter can also throw away good analyses.

The authors distinguish filter precision from filter recall to capture that tradeoff. Filter precision asks how often a retained parse is fully correct. Filter recall asks how frequently a fully correct parse survives. These quantities use whole parses, while the constituent measures count labeled spans inside the trees.

filter precision = Cᵣ / Nᵣ

Cᵣ counts the fully correct parses retained by the filter, and Nᵣ counts all retained parses. The subscript ᵣ identifies a count from the retained set. The slash divides the correct count by the total retained count.

filter recall = Cᵣ / C

Cᵣ again counts the fully correct retained parses. C counts all fully correct parses in the original set, including any discarded by the filter. The slash gives the fraction of correct analyses that survive.

The paper weights filter precision and filter recall equally in F1. A system needs both a reliable retained set and good retention of correct analyses to score well. For its headline relative error reductions, the paper uses the complement of this combined score.

filter error = 1 − F1

F1 is the score combining filter precision and filter recall with equal weight. The 1 represents the top of the score scale, and the minus sign takes the difference between that value and the observed score. Relative error reduction is the decrease in this quantity compared with the accept-all baseline.

The authors illustrate why ordinary classification accuracy can give a misleading impression of a filter. On the Treebank test sample, a rule that rejects every parse would achieve 55% classification accuracy because so many of the initial trees are wrong. Woodward’s classification accuracy on that sample is 66%. The reject-all rule provides no retained analysis to use and loses every correct one. The accept-all comparison and the precision–recall measures make the consequences of both kinds of error visible.

Results on TREC questions

For the 43 retained TREC 2004 questions, the baseline has filter precision of 0.54 and filter recall of 1.0. Woodward’s precision is 0.82, and its recall is also 1.0. In this evaluation the accepted set becomes more reliable while every originally correct analysis survives. The filter F1 rises from 0.70 to 0.90. The reported relative reduction in the complement of filter F1 is 67%.

Accept-all baseline and Woodward on retained TREC 2004 questions by filter F1

Woodward improves the combined score while retaining all correct parses in this test.

Accept-all baseline and Woodward on retained TREC 2004 questions by filter F1Accept-all baseline: 0.70Accept-all baseline0.70Woodward (this paper): 0.90Woodward (this paper)0.90
The numbers
System or settingF1
Accept-all baseline0.70
Woodward (this paper)0.90

A separate component test looks at the 17 TREC 2004 questions without prepositions. The question-answering filter alone classifies their full parses with accuracy of 0.76. The paper reports the same level of accuracy for the Collins parser on those sentences. The question-answering filter’s value in Woodward comes from which judgments it makes reliably. On the tested questions, a positive decision did not mistakenly pass an incorrect parse. Its negative decisions are less useful as a final verdict, so the combined filter lets the predicate checks take over when the answer search gives a negative judgment.

These results show distinct contributions from evidence and decision policy. Answer retrieval can identify a subset of parses worth accepting early. The combined system also needs a way to handle correct interpretations whose answer search falls short, as well as the questions that never enter that branch. The overall TREC result measures the effect of the full workflow on the retained split. The separate accuracy figure refers only to the questions eligible for that particular component evaluation.

Results on the selected Treebank sentences

On the 100 Treebank test sentences, baseline filter precision is 0.45 and filter recall is 1.0. Use of Woodward raises precision to 0.58 and brings recall to 0.88. It therefore accepts a set with a larger proportion of complete parses while losing some originally correct trees. Baseline filter F1 is 0.62, compared with 0.70 for Woodward. The authors report a 20% relative reduction in filter error for this test.

Accept-all baseline and Woodward on selected Penn Treebank section 23 sentences by filter F1

Woodward improves the combined score despite losing some correct parses.

Accept-all baseline and Woodward on selected Penn Treebank section 23 sentences by filter F1Accept-all baseline: 0.62Accept-all baseline0.62Woodward (this paper): 0.70Woodward (this paper)0.70
The numbers
System or settingF1
Accept-all baseline0.62
Woodward (this paper)0.70

The authors also assess how the original and retained news sets compare when the score counts labeled constituents. Under that measure the reported F1 moves from 90.1 to 93.8, corresponding to a 37% error reduction. The unit of credit matters. A tree with several bad attachments contributes several mistakes to constituent scoring, while at the whole-parse level it is simply one incorrect tree. The paper suggests that Woodward may pick out some of the worst analyses, allowing removal of those trees to improve constituent F1 more than the whole-parse filtering measure.

The paper places these findings alongside the 13% error reduction reported by Collins for discriminative reranking over the original parser. The selected news sentences in Woodward’s test form a subset of the sentences used in the reranking experiments. The operations also differ. Reranking selects among alternatives for a sentence, while Woodward improves the retained set by discarding some preferred analyses. The figures describe those respective experiments. They give no controlled estimate of which system would choose the better parse if both were asked to produce an analysis for every input.

Accuracy on individual relations

The authors pool relations from the TREC 2004 questions and Wall Street Journal data for a component comparison. The nontransitive verb category has 41 correct and 35 incorrect relations. The other verb category has 126 correct and 68 incorrect relations. The preposition category has 183 correct and 58 incorrect relations. Here a prediction counts as correct when it agrees with the label of the individual predicate. This evaluation reveals which judgments each filter tends to make well before the all-relations rule combines those judgments.

Standalone filter accuracy on nontransitive verb relations in TREC 2004 and Wall Street Journal data

The filter that samples verb arity has the highest reported accuracy in this category.

Standalone filter accuracy on nontransitive verb relations in TREC 2004 and Wall Street Journal dataPMI-based filter: 0.54PMI-based filter0.54TextRunner: 0.52TextRunner0.52Verb Arity Sampling Test (this paper): 0.66Verb Arity Sampling Test (this paper)0.66
The numbers
System or settingaccuracy
PMI-based filter0.54
TextRunner0.52
Verb Arity Sampling Test (this paper)0.66

On the other verb relations, TextRunner gives accuracy of 0.73 and PBF gives 0.72. On preposition relations, TextRunner gives 0.76 and PBF gives 0.73. VAST has no reported accuracy for either of those groups because it addresses the arity cases in the nontransitive category. The question-answering filter likewise sits outside this comparison because its output concerns a complete question parse.

These accuracies answer a different question from the filter precision and recall of a complete system. A relation can be accurately labeled while another relation in the same tree is wrong. Conversely, a test can have a useful tendency to find a certain class of mistake even when many other mistakes remain outside its scope. The grouping lets the experiments show what the arity check contributes and how the relative performance of count-based methods depends on the relations being classified.

What the ablations show

The paper compares individual filters by relation type and evaluates the question-answering filter separately. It does not report a full set of sentence-level ablations in which each component is removed from Woodward and the combined system is tested again. The available comparisons test the reasoning behind the routing rules and show where the relative strengths observed in training do or do not carry over to held-out data.

Evidence for a dedicated verb-arity check

The result for nontransitive verb relations is the clearest case for specialization. VAST reaches 0.66 accuracy on that category, compared with 0.54 for PBF and 0.52 for TextRunner. The underlying distinction is between evidence about individual participants and evidence about how many essential slots a verb can take. A plausible pair can be part of an implausible argument structure. VAST can detect some such cases because its samples target continuation patterns associated with a given slot count.

The paper also reports that in its Treebank training data Collins chose too many or too few verb arguments 13% of the time. The observation motivates spending part of the pipeline on arity instead of expecting every verb error to show up as an improbable pair of words. The training observation and the test comparison give complementary evidence. One identifies the error type as a recurring problem, and the other shows that the specialized check classifies relations in its target group more accurately than the alternative checks in this evaluation.

The comparison leaves open the size of VAST’s contribution to overall F1 on each corpus. The relation results are pooled, and the effect of changing a relation judgment depends on the surrounding parse. Detecting a wrong verb relation can be decisive when every other check passes. The same detection has no effect on the acceptance decision if another filter has already found a reason to reject the parse. The component comparison supports the choice of evidence for arity, while the main experiment measures the result of the entire combination.

How the choice of search source held up

On verb relations outside VAST’s target category, TextRunner’s accuracy of 0.73 is close to PBF’s 0.72. The ordering agrees with the training experience that led the authors to route the ordinary transitive verb cases to TextRunner. A search against extracted participant and predicate slots can support this kind of decision directly. The paper also describes TextRunner as faster to query in their setup, a consideration when many relations need to be checked.

The preposition results show a reversal. The authors say that PBF did slightly better than TextRunner on preposition relations in training. They chose PBF for the combined system partly because sparse results had hampered TextRunner there. On the test relations, TextRunner’s accuracy of 0.76 exceeds PBF’s 0.73. The reported Woodward scores still describe the combined system built with the training-based choice. The paper gives no sentence-level score for a version that substitutes TextRunner on the preposition route.

This matters because the filter’s decisions interact across a sentence. A replacement that raises average relation accuracy could help by accepting more correct attachments, or by rejecting more wrong ones. Its consequences for filter precision and recall would depend on which decisions change and which trees contain those relations. The held-out reversal identifies a weaker empirical basis for the preposition routing rule than the authors saw during development. The available comparison is a reason to distinguish that component choice from the performance of the overall system.

Why positive answer evidence is treated differently

The authors’ analysis of the question-answering filter concerns the direction of its mistakes. In training, positive predictions were right in the examples observed, while negative predictions had mixed outcomes. The separate test on eligible questions shows the same useful property for positive judgments, despite an overall classification accuracy of 0.76. The pipeline takes advantage of this by reserving early acceptance for a successful search and passing the other cases to the relation filters.

A correct parse may impose several conditions that the search resources have to satisfy together. One missing type instance or relation can stop the procedure from finding a qualifying assignment. This makes a failed search weaker grounds for rejection than a successful search is for acceptance in the authors’ experiment. The observed asymmetry explains why the combined system uses answer search as an opportunity to accept, rather than as a mandatory condition that all eligible correct questions must meet.

The authors also inspect mistakes in the semantic interpreter. Idiomatic expressions in the news material caused it to fill apparent gaps with noun phrases from outside a clause where the gaps were spurious. In several sentences with infinitives it missed an extracted subject. They found that these particular interpretation errors did not lead the filters to reject correct parses. This inspection supports their reading of the test results as mainly reflecting the filters. It addresses the interpreter errors they identified in these collections.

Limitations

Limits the authors identify

The first assumption is that the sentence itself expresses relationships that are generally plausible. A parse can be faithful to a sentence whose content is absurd or unusual. If that faithful reading triggers the filters’ suspicion, Woodward can reject a structurally correct tree. In this sense semantic plausibility is an indirect signal of syntactic correctness. Its usefulness comes from the prevalence of familiar relationships in the intended applications. An input collection where genuine oddities are common would weaken the premise.

The second assumption is overlap between the content of the input and the text the filters search. A Web index can be large and still have little evidence about a particular entity, construction or topic. Several components depend on having enough examples to draw a judgment. The PMI patterns can have sparse counts, the arity check needs eligible sentences, and the question-answering route needs both type and relation evidence. The authors regard coverage as a reasonable assumption for many Web questions and information extraction tasks. They explicitly make that coverage a condition for their method.

The news results expose a limit of the particular features used. The authors point to the larger number of clause adjuncts in the Treebank material. A clause adjunct adds context to another part of the sentence, such as telling when an event occurred. In their example about market movements, the intended temporal clause gives the circumstances in which the pit stayed at its trading limit. The selected parse attaches that clause to the word describing the locked state. The authors find it difficult to identify a single keyword inside the clause that can decide between the attachments. A check that uses more of the clause’s content is a direction they suggest for further work.

The TextRunner tradeoff imposes another practical limit. Its tuple structure makes relations easy to query, and local access makes the queries faster for the authors. The narrower index can leave some proposed relations with little evidence. PBF reaches a broader source through Google but incurs the cost and request restrictions of external search. Woodward’s relation-specific routing uses the evidence available from these sources under the experimental conditions. Coverage and access help determine which check is feasible.

Finally, the authors call for broader validation and propose additional filters for other errors. They also propose collecting a large, more reliable set of automatically parsed sentences, using it to retrain a parser, and eventually incorporating semantic filtering into parsing itself. Those are extensions of the demonstrated ability to reject some bad preferred parses. The experiments establish the quality of retained outputs on the test sets. The proposed uses of filtered data and integrated parse search still require their own evaluations.

Limits of the evidence from the setup

The sample selection is central to interpreting the gains. The TREC results describe questions left after excluding the readily detectable errors at the root of the tree. That focuses the experiment on subtler failures within a question analysis. The Treebank sample omits conjunctions and limits parsing errors to the verb and preposition relations the filters were built around. The test is consequently informative about those targeted errors in the selected collections. The paper gives no equivalent result for all questions entering a deployed system or for unrestricted sentences from section 23.

The training design also narrows what the claim of domain independence establishes. Search patterns and the intermediate representation can be used on material from different domains. The learned decisions here come from labeled TREC and Treebank examples, and evaluation uses those same two kinds of material in held-out splits. This supports use across questions and news within the design. The evidence leaves open how reliably a trained filter would carry over to an unrelated collection with different constructions or weaker Web coverage.

A filter’s metrics need to be read from the perspective of an application that can discard an answer or extraction attempt. An improvement in precision can be valuable in such a setting, with filter recall indicating how many available good analyses were lost. A system required to analyze every sentence would need a way to handle the rejected trees. Because the authors use just the preferred tree for each input, the experiment cannot determine whether a correct alternative was available when Woodward rejected one, or whether the same tests would select it successfully.

The same care applies to the constituent result. The rise from 90.1 to 93.8 compares the original and filtered Treebank sets. Its interpretation depends on the removal of some inputs, potentially including trees with especially many wrong constituents. The figure measures the quality of analyses left available after filtering. It does not establish that the original parser improved on a fixed set of sentences or that retraining it on those selected outputs would reproduce the gain.

Finally, the search signals allow accidental matches as well as useful ones. A noun phrase after a verb can be a time expression. A substring in a TextRunner predicate can be part of a longer relationship. A collection of answer candidates can reflect gaps or coincidences in what the extraction systems retrieved. The learned thresholds and the tests on held-out inputs are how the paper evaluates the strength of these proxies. Their success rates belong to the configurations, samples and targets reported in the study.

What came after

A later citing paper connects this work with a different role for confidence in language analysis. Woodward infers confidence from what happens after a tree has been proposed. It checks the relations the tree implies, and in eligible cases asks whether those relations allow an answer to be found. The later paper places confidence in the setting of unsupervised semantic parsing. The documented connection is a citation, and the title identifies the later paper’s focus. The citing work is Confidence Driven Unsupervised Semantic Parsing.

The two tasks make different uses of an interpretation. In Woodward, the relational conjunction is an intermediate product derived from a syntactic tree, and the judgment the authors evaluate is whether that tree should be retained. In the later work’s stated setting, semantic parsing itself is the task to which confidence is brought. That gives a concrete point of continuity at the level of the research question. Both concern the status of a proposed interpretation when a system has to decide how much to trust it. The citation and title leave open which particular checks, data sources or decision rules the later work used.

Woodward’s own proposals point to ways that a confidence judgment might have consequences beyond accepting an individual parse. The authors envisage using it to select data for further parser training or to eliminate candidates during the search for a parse. Those proposals help locate the contribution historically. The reported experiments study a filter after the parser’s preferred tree has been chosen. The subsequent citation places that experiment in the background of work on confidence and semantic interpretation, while the evidence for Woodward’s specific techniques remains the results on its question and news collections.

Cite

Cite as Alexander Yates, Stefan Schoenmackers and Oren Etzioni. 2006. Detecting Parser Errors Using Web-based Semantic Filters. Proceedings of the 2006 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{yates2006detecting,
  title = {{Detecting Parser Errors Using Web-based Semantic Filters}},
  author = {Alexander Yates, Stefan Schoenmackers and Oren Etzioni},
  booktitle = {Proceedings of the 2006 Conference on Empirical Methods in Natural Language Processing},
  year = {2006},
  doi = {10.3115/1610075.1610080},
  url = {https://doi.org/10.3115/1610075.1610080}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/yates-2006-detecting-parser-errors-web-based/