Elamur Research

Evaluating Induced CCG Parsers on Grounded Semantic Parsing

Paper · 2016 · Yonatan Bisk, Siva Reddy, John Blitzer et al.

Summary

A parser can disagree with a treebank and still recover the meaning needed to answer a question. It can also produce a plausible grammatical analysis that attaches a phrase to the wrong entity and sends a database query looking for the wrong thing. The authors use this distinction to evaluate induced grammars, which learn syntactic structure with little or no direct instruction about how sentences should be analyzed. They compare parsers based on Combinatory Categorial Grammar, or CCG, by putting their output to work in semantic parsing. The task is to turn a declarative sentence with a missing entity into a Freebase query and recover the entity that was removed.

The task makes the consequences of a syntactic decision concrete. Consider a sentence about Google acquiring a company that was founded in Palo Alto. With the company name removed, the query should look for an entity that Google acquired and that was founded in Palo Alto. A parse that attaches the founding clause to Google gives the query a different meaning. Other grammatical differences can leave the query intact. For example, parsers can differ over how closely a date phrase belongs to an acquisition verb and still describe the same acquisition and date in Freebase. The authors evaluate both agreement with a syntactic reference and success on the grounded task, where the predicted meaning has to connect to relations in a database.

All the CCG conditions start with part-of-speech tags. One parser induces its categories without further syntactic annotation. Two versions constrain the categories available for frequent words or part-of-speech tags, and a fully supervised parser learns from sentences annotated with CCG derivations. On the SPADES test set, the unsupervised parser scores 37.3 overall on entity slot filling, the tag-constrained parser 41.4, the word-constrained parser 43.2, and the fully supervised parser 46.1. On CCGbank, the word-constrained and fully supervised parsers are much farther apart on simplified labeled dependency F1, at 53.5 and 84.2. The effect of more syntactic supervision therefore depends on which outcome the experiment measures.

A baseline that sees the sentence as a bag of words leads on examples containing two entities. On examples with four entities, it scores 20.9, below the unsupervised parser’s 24.5. The authors also find that expanding the word lexicon beyond 200 lexical types brings little additional semantic benefit, and that commas, relative clauses, and other constructions remain difficult. The evaluation shows where induced structure contributes to query construction, where a small amount of annotation helps, and which grammatical decisions still need attention in this corpus.

Deep dive: Evaluating Induced CCG Parsers on Grounded Semantic Parsing

How induced CCG parsers interpret declarative sentences, fill missing entities from Freebase, and improve with a small annotated lexicon. · about 33 minutes to read

The problem and its context

What agreement with a treebank measures

Research on grammar induction had shown that parsers could learn useful regularities without training on complete hand-annotated derivations. The authors place their study in a line of work spanning induced dependencies, constituency, and CCG. Their question is what a learner can do with the structure it recovers. A parser might learn recurring patterns for identifying a verb’s participants, for example, yet receive a low syntactic score because its categories or dependency conventions differ from those in a hand-annotated corpus. Another parser might agree with that corpus on many local decisions while missing an attachment that determines the meaning of an entire clause.

For parsing, the usual comparison is intrinsic. The object under study is the predicted syntax, and a treebank supplies a reference analysis. A dependency evaluation checks which items the parser connects. Depending on the metric, it can also check the direction of the connection and the label identifying its grammatical role. A supertag evaluation compares the lexical category assigned to a word with the category recorded for that occurrence. Both comparisons are informative about a parser’s agreement with the annotation scheme. To interpret either as a measure of meaning, a reader must know which disagreements would change the meaning a later component can construct.

The paper argues that this is especially important for dependencies associated with coordination and relative clauses. Different annotation conventions can choose different heads or connections for these constructions. Standards may align more readily on elementary constituents and still diverge in places where a semantic system needs to identify which predicates share an argument or which noun a clause describes. A change in a dependency score compresses these cases, along with many simpler decisions, into the same measurement.

CCG makes the issue visible at the level of individual words. It is a lexicalized grammar, so a category assigned to a word can encode which expressions it needs to combine with and what category the combination produces. A category with that level of detail is called a supertag. For a verb, the category can specify the presence and relative position of its arguments. For a modifier, it can specify the kind of expression it can attach to and the type returned after attachment. Categories that differ in these respects may lead to different derivations even where the final database relations coincide.

The authors illustrate this with an acquisition reported as happening in 2014. The verb can receive a category for taking a subject and a direct object, with the date phrase added as a modifier. The sentence can also receive an analysis in which the verb selects the prepositional phrase. Two of the analyses treat the date phrase as a modifier and differ in the category given to its preposition. Training on a labeled treebank favors one derivation. The paper’s example assigns the alternatives 5, 4, or 3 matching supertags under the syntactic reference, even though each could yield the same account of who acquired whom and when.

This is a problem of what counts as evidence. When the target is reproducing an annotation scheme, the preferred derivation defines the answer. When the target is retrieving an entity from a database, the practical question is whether the derivation preserves the distinctions needed to formulate the query. The authors keep the intrinsic evaluation so readers can compare the two kinds of evidence. They add an extrinsic evaluation, which measures the effect of a parser’s predictions on a separate task.

Why the task starts from a statement

The authors choose Freebase as the destination for the semantic representation. A grounded expression uses the entities and relation vocabulary of a particular database. In this setting, there is a concrete way to test an interpretation. The system can execute the resulting query and inspect which entities satisfy it. The paper motivates this approach by observing that most sentences have a single realization in Freebase under the intended mapping. Different syntactic routes can receive the same credit when they reach a query that recovers the held-out entity.

That choice created a data problem. The authors wanted to test parsers that were normally trained on declarative sentences. They describe prior Freebase semantic-parsing literature as lacking a collection of declaratives paired with Freebase logical forms for this purpose. Work on learning from questions and their answers illustrates the difference in task format. A question naturally identifies what the speaker wants to know, whereas a complete statement presents its participants as part of what it asserts. Semantic Parsing on Freebase from Question-Answer Pairs

The slot-filling task gets a target from the declarative sentence itself. Start with a statement that mentions known entities, remove one mention, and use its identity as the answer for evaluation. Enough of the original declarative structure survives for the parser to face the kinds of constructions it was designed to analyze. The blank also gives the downstream system a definite job. It has to recover a particular entity from the constraints expressed by the surrounding sentence.

The authors distinguish that problem from other kinds of sentence completion and machine reading. A prediction in SPADES has to be the identity of a Freebase entity. The syntactic systems use the text to build constraints, then turn those constraints into relations that can be executed against Freebase. The paper discusses machine reading as a nearby line of research, with a different relationship between the answer and an external database. Teaching Machines to Read and Comprehend

The experiments use English because it permits a direct comparison with a supervised CCG parser. The authors’ broader motivation is a setting where full derivation annotation is expensive or unavailable. A small lexicon of allowed categories might be feasible there even if a treebank is beyond reach. The experiment uses English to ask what that narrower form of supervision can buy and what a learner can recover from the remaining evidence.

The method, step by step

From a missing name to an executable query

The pipeline begins with a declarative sentence whose entity mentions refer to Freebase entries. One mention is replaced with a blank. The parser proposes a CCG derivation, which specifies the categories of the words and how expressions combine. A semantic conversion then follows that derivation to produce a graph in the vocabulary of the sentence. The graph says which event or relation connects which participants, including the missing one. A grounder looks for a graph with corresponding structure in the vocabulary of Freebase. That graph can be executed as a query.

From a declarative sentence to a Freebase answer

The steps in order.

From a declarative sentence to a Freebase answerStep 1: Remove a known entity mention1. Remove a known entity mentionStep 2: Parse the sentence with CCG2. Parse the sentence with CCGStep 3: Compose word meanings into a logical form3. Compose word meanings into a logical formStep 4: Represent predicates and arguments as a graph4. Represent predicates and arguments as a graphStep 5: Match and rank candidate Freebase graphs5. Match and rank candidate Freebase graphsStep 6: Execute one query and select its first answer6. Execute one query and select its first answer

The example involving Google shows why the stages are separate. After the company name has been removed, the sentence contains a clause that describes the company as having been founded in Palo Alto. An appropriate parse makes the blank the object of the acquisition and the entity described by the founding clause. The semantic graph must preserve that shared role. Freebase then supplies the relations corresponding to acquisition and founding, together with their argument positions.

A query made from this analysis searches for entities satisfying both constraints. Either constraint on its own can leave many possibilities, as the authors point out. The pipeline executes a single query containing the constraints it has assembled and takes the first entity returned. A prediction counts as correct when that identity matches the removed entity. The answer can therefore depend on how the constraints work together and on which entity comes first if several satisfy them.

The syntactic parser handles the organization of the sentence. The graph grounder handles the mapping from expressions in the sentence to the database’s schema, meaning the set of relations and roles used by Freebase. Keeping those jobs distinct makes it possible to compare parsers through a common downstream process. It also means that a query can fail at several points. Even when the parse supplies the intended participants and attachments, the relations available in Freebase and the grounder’s choice among them affect the answer.

How a category guides the semantic composition

To see how syntax enters the process, take the transitive use of acquired. The category printed for that use is:

(S\NP)/NP

S stands for a sentence and NP for a noun phrase. The forward slash / marks an argument expected to the right, and the backward slash \ marks one expected to the left. Parentheses group a category into a unit. The outer /NP means that the verb first takes an object to its right. The result, S\NP, can combine with a subject to its left and produce S. The category thus describes a series of grammatical combinations while distinguishing the verb’s two participant positions.

In one alternative analysis of the sentence with a date, the verb has the category:

((S\NP)/PP)/NP

S and NP retain their meanings. PP is a prepositional phrase, / asks for an expression to the right, and \ asks for one to the left. The parentheses show the stages of combination. After combining with the object noun phrase, the resulting expression still expects a prepositional phrase on the right. Satisfying that requirement leaves S\NP, which takes the subject on the left. In this analysis, the type of the verb itself accounts for the date phrase. In the analyses using the transitive category, the phrase enters through modification.

The paper uses lambda expressions to show how the grammatical argument positions correspond to semantic work. A lambda expression specifies a function by naming the variables it takes and the expression in which those variables are used. For the transitive category, the authors give this lexical interpretation:

λf.λg.λe.∃x.∃y.acquired(e) ∧ f(x) ∧ g(y) ∧ arg₁(e, y) ∧ arg₂(e, x)

λ introduces the parameter that follows it, and a period marks the start of the expression in its scope. f and g are the functions supplied by the object and subject expressions, respectively. e is the acquisition event. ∃ introduces an existentially bound variable, so x and y stand for participants that satisfy the conditions that follow. f(x) and g(y) apply the object and subject functions to those participants. acquired(e) identifies the event as an acquisition. arg₁(e, y) gives y the subject-side role, and arg₂(e, x) gives x the object-side role. The subscripts identify the two roles, ∧ joins conditions that hold together, and the parentheses and commas delimit predicate arguments.

This expression does more than record that the word acquired occurred. It leaves places for other expressions to supply the participants. In a complete acquisition sentence, the subject expression supplies the acquiring company and the object expression supplies the company acquired. With the object mention removed, the representation must retain a position that can be filled by a query answer. The syntax supplies instructions for assembling the local meanings so that the result preserves who is involved in which role.

The following expression is the paper’s Freebase interpretation of the acquisition example with a date:

λe. business.acquisition(e)
    ∧ acquiring_company(e, GOOGLE)
    ∧ company_acquired(e, NEST)
    ∧ date(e, 2014)

λe. makes the expression a function of e, the acquisition event. business.acquisition(e) gives that event its Freebase type. The dot within business.acquisition belongs to the predicate name. GOOGLE and NEST stand for the respective entities. acquiring_company associates the event with Google in the acquiring role, and company_acquired associates it with Nest in the acquired role. date connects the event to 2014. Parentheses enclose the arguments, commas separate them, and ∧ combines the conditions. Each line constrains the same event.

This expression explains how competing derivations can arrive at the same semantics. The database representation has a place for the date of the acquisition. It can receive that information when the date phrase is analyzed as a modifier or when the verb’s category treats that phrase as an argument. The earlier grammatical choice matters to the derivation. Its effect on the evaluation depends on whether the completed representation still identifies the same event, the same participants, and the same date.

How attachments and shared arguments enter the graph

A relative clause can have a different effect. In the blanked acquisition example, the categories chosen for which determine where the parser attaches the clause about being founded in Palo Alto. Under the intended attachment, the clause describes the missing company. Under the alternative illustrated by the authors, the founding clause describes Google. The key change is the argument supplied to the founding predicate, which is also the connection the graph needs to preserve during grounding.

In the intended derivation, the relative expression takes a predicate needing a subject and returns a modifier for a noun phrase. The relevant category is:

(NP\NP)/(S\NP)

NP is a noun phrase and S is a sentence. The outer / indicates that the category takes an S\NP on its right, here the clause missing its subject. The result is NP\NP, which combines with an NP to its left. The \ marks that leftward combination. The result after attachment is still an NP. The parentheses group the input and output categories around the outer slash. This is how the derivation can use the blank noun phrase as the thing described by the founding clause and still present the whole expression as the object of acquired.

The paper’s diagram expresses the intended connection using the acquisition and founding events, the named entities, and the target. The central conjunction can be written using the predicates shown there:

λe₁.∃x.∃e₂. TARGET(x)
    ∧ acquired(e₁) ∧ arg₁(e₁, Google) ∧ arg₂(e₁, x)
    ∧ founded(e₂) ∧ arg₂(e₂, x) ∧ in(e₂, Palo Alto)

λe₁. introduces the acquisition event e₁, and ∃ introduces the missing entity x and the founding event e₂. The subscripts distinguish the two events and the roles of the acquisition participants. TARGET(x) marks x as the entity the query must recover. acquired and founded are predicates drawn from the sentence. arg₁(e₁, Google) assigns Google to the acquiring role, while arg₂(e₁, x) assigns the missing entity to the acquired role. arg₂(e₂, x) associates that same entity with the founding event, and in(e₂, Palo Alto) links the founding event to Palo Alto. The periods delimit the scopes of the operators, parentheses group each predicate’s arguments, commas separate them, and ∧ joins the constraints.

The important part for retrieval is the repeated x. The acquisition and founding can help identify the answer because they constrain the same entity. If the relative clause is interpreted as a description of Google, that connection changes. The query then uses a founding constraint about an entity that has already been named. The intended restriction on the missing company has been lost. This is a case in which a syntactic alternative leads to a materially different interpretation, even though each individual word can still contribute a recognizable predicate.

CCG categories also have to indicate when different grammatical positions share a semantic referent. GraphParser, the system the authors use for conversion and grounding, relies on co-indexation, which uses matching indices to mark positions that belong together. The authors supply co-indexation for their induced categories and give multiple versions when a category can have more than one reading. For example, the category without indices can be:

(S\N)/(S\N)

S marks a sentence and N is the nominal category used in the example. / indicates that the expression takes a phrase of category S\N to its right. The result is an expression with the same category shape, S\N. The backward slash \ indicates the nominal argument on the left, and the parentheses group the category on each side of /. This category shape alone leaves open which events or clause-level variables should be shared.

For the auxiliary reading, the paper uses the following co-indexation:

(Sₓ\Nᵧ)/(Sₓ\Nᵧ)

The grammar symbols and slashes have the same meanings as before. The subscripts x and y are indices on the sentence and nominal positions, respectively. On each side of /, Sₓ carries the same sentence index and Nᵧ carries the same nominal index. Matching indices instruct the semantic conversion to share the corresponding referents. This expresses the auxiliary interpretation described by the authors.

For the control-verb reading, the pattern changes:

(Sₓ\Nᵧ)/(S𝓏\Nᵧ)

S, N, /, \, and the parentheses retain their grammatical meanings. x and z are distinct indices on the sentence positions, with z displayed as a script character. The nominal index y is shared. The category now allows the two sentence positions to have distinct semantic referents while using the same nominal argument. The authors use this example to show why the induced category can require more than one co-indexation.

Co-indexation is part of the interface from the induced grammar to semantic composition. A category can be useful for determining that two phrases combine and still need more information before the grounder can decide which parts of the graph to connect. Providing the alternatives lets the system represent both interpretations associated with a common category shape.

How the grounder learns what the words correspond to

The logical forms initially use predicates based on the words in the sentence. At this point acquired is a text-side predicate. In Freebase, the acquisition is expressed through a database event type and relations connecting that event to participants. The name of an English predicate and the name of a Freebase relation can differ. Grounding finds a mapping that preserves the structural connections while replacing the text-side relations with database relations.

GraphParser represents the ungrounded form as a graph. Event and entity positions are connected by the predicate and argument relations produced during composition. The authors use graph matching to look for Freebase graphs isomorphic to this structure. Isomorphism here means that the arrangement of nodes and connections can be put into correspondence. Surface predicates and Freebase relations can have different names while their graphs express the same pattern of connections. According to the authors, Freebase graphs and logical forms in Freebase correspond one-to-one, so the choice of a database graph determines which logical form to run.

The removed entity provides supervision during training. Given an ungrounded graph, the procedure retrieves structurally compatible database graphs and retains those that can predict the held-out entity as training candidates. A candidate earns this status through its answer. The data procedure can therefore support training even though it began with sentences and entity identities instead of manually written Freebase queries.

Given an ungrounded graph, a structured perceptron learns how to order its candidate grounded graphs. The paper identifies alignments between text-side predicates and Freebase predicates as its features. A feature can supply evidence for a pairing between a predicate derived from the sentence and a corresponding database relation. A candidate graph contains several such choices, so the ranking concerns a complete structured candidate. The answer criterion used to identify training candidates gives the learner a basis for preferring some alignments when predicting graphs for new sentences.

At evaluation time, the removed entity is used to check the final prediction. The system builds its query from the remaining sentence and the learned ranking. It executes one query and retains the first answer. The resulting decision is tied both to the graph the parser and grounder can construct and to the particular answer the database returns first.

Where each parser receives supervision

Every CCG condition assumes part-of-speech tagging. These tags classify words into grammatical groups and give the learner information before it chooses a CCG category. The unsupervised condition is unsupervised with respect to further syntactic annotation in the comparison. It uses the induction parser of Bisk and Hockenmaier, which applies a small set of universal rules to induce possible lexical categories and learn their weights.

The semisupervised conditions constrain that induction process. The word-based version uses a lexicon for the top 200 words in English. For each covered word, the allowed categories are those accounting for 95% of its occurrences in Section 22 of WSJ/CCGbank. The learner still has to analyze the new sentence, and a word can have several allowed categories. The lexicon narrows the set of possibilities using the observed distribution of categories for that word.

The tag-based version uses the same induction approach and applies constraints at the level of part-of-speech tags. Word-level restrictions can preserve distinctions between particular frequent words. Tag-level restrictions act over the words assigned the relevant grammatical tag. The experiments compare these two forms of partial supervision with induction from the general rules and with a parser trained from complete labeled derivations.

For the fully supervised condition, the authors use EasyCCG trained on CCGbank. It supplies an established CCG parser that has seen complete treebank analyses. The comparison thus changes both the amount of available syntactic supervision and, at the fully supervised endpoint, the parser used to turn that supervision into predictions. A* CCG Parsing with a Supertag-factored Model

Experiments and results

How SPADES was constructed

SPADES stands for Semantic PArsing of DEclarative Sentences. The authors build it from declarative sentences collected from ClueWeb09 in earlier work. The selection procedure starts with an ungrounded representation of a sentence and asks whether an isomorphic Freebase graph exists. Keeping sentences that pass this test concentrates the benchmark on statements with a representation that can be grounded by the graph-matching approach.

The selection also excludes ungrounded graphs containing variable nodes of the kind illustrated by an unspecified company. The authors contrast an acquisition statement that mentions only a company with one that names Nest. The latter item gives the benchmark a specific entity to withhold and later check. This filter applies to the original material. The blank created afterward is a deliberate target for the system to resolve.

The corpus is divided into training at 85%, development at 5%, and testing at 10%. The split contains 79,247 training sentences, 4,763 development sentences, and 9,309 test sentences. These splits contain 685,922, 41,102, and 80,437 tokens, respectively. Tokens count occurrences in the text. The corresponding counts of types, which count distinct surface forms in each split, are 69,095, 9,306, and 15,180. The reported entity counts are 37,606 for training, 4,358 for development, and 7,431 for testing. Those corpus counts describe the splits. The later breakdown by number of entities groups sentences according to the entity mentions available in each example.

The authors randomly remove an entity mention from each selected sentence to create the slot. They report that one third of the entities in the test set are unseen during training. That observation supplies a reason to favor an approach that can construct a query using relations learned across examples. A system can predict a new entity identity by using familiar database relations to find it. The training data need only have supplied evidence about how to translate relevant predicates and argument structures, provided the necessary facts are available to the query.

The paper makes SPADES available through the GraphParser repository. The data and the grounding procedure fit together. SPADES provides sentences, a target entity for each blank, and access to the evaluation setting the authors describe. GraphParser constructs and grounds the forms used to query Freebase.

What the two evaluations score

The intrinsic comparison uses Section 23 of CCGbank. The authors report simplified labeled F1, abbreviated LF1, and undirected unlabeled F1, abbreviated UF1. F1 combines precision and recall over predicted dependencies. The simplified labeled measure evaluates connections with the distinctions specified by the labeled scheme. The undirected unlabeled measure checks whether the appropriate items are connected while disregarding direction and label. Putting both scores beside the semantic evaluation shows whether the comparison changes when the syntactic criterion is made less demanding.

The extrinsic evaluation checks the first entity returned for a SPADES slot against the held-out entity. The authors present an overall result and separate results for sentences with two, three, or four entities, counting the entity removed for prediction. This grouping changes the number of entity mentions to which the sentence’s relations can refer. It also gives an indication of where a syntax-free strategy has enough evidence from words alone and where there is more work to do in identifying the intended links.

The bag-of-words baseline is a perceptron classifier that uses the words in the sentence as features. For each remaining entity, it predicts a relation from Freebase or a null relation between that entity and the blank. The null outcome allows a visible entity to supply no constraint when the classifier finds no applicable relation. The baseline can benefit from words strongly associated with a database relation. Its input lacks the explicit argument structure and attachments supplied by a CCG derivation.

A sentence with two entities contains the missing entity and one visible candidate to which it can be related. This is a favorable setting for the baseline because there are fewer entities among which to distribute the words’ relational cues. With more entities, the baseline has to decide which relations to associate with which entity pairs from the word features it sees. The relative-clause example explains the problem. The presence of a founding predicate and a city name is compatible with more than one assignment of the entity being described.

Intrinsic scores separate the parsers sharply

The unsupervised parser scores 37.1 LF1 and 64.2 UF1 on CCGbank Section 23. The tag-constrained parser scores 53.0 LF1 and 68.5 UF1, and the word-constrained parser scores 53.5 LF1 and 68.9 UF1. EasyCCG, trained with full syntactic supervision, scores 84.2 LF1 and 91.0 UF1. These scores all refer to the dependency evaluation against the treebank in the stated section.

CCG parsers on CCGbank Section 23 simplified labeled dependency F1

Full derivation supervision produces the highest agreement with the labeled syntactic reference.

CCG parsers on CCGbank Section 23 simplified labeled dependency F1Unsupervised CCG: 37.1Unsupervised CCG37.1Tag-constrained CCG: 53.0Tag-constrained CCG53.0Word-constrained CCG: 53.5Word-constrained CCG53.5Fully supervised EasyCCG (this paper): 84.2Fully supervised EasyCCG (this paper)84.2
The numbers
System or settingLF1
Unsupervised CCG37.1
Tag-constrained CCG53.0
Word-constrained CCG53.5
Fully supervised EasyCCG (this paper)84.2

Both syntactic measures put the parsers in the same order. Moving from unconstrained induction to either restricted lexicon improves agreement. The two restricted variants are close to each other on these measures. The fully supervised parser opens a much larger lead, consistent with its access to derivations in the same treebank tradition as the evaluation. It remains well ahead when the evaluation collapses direction and labels, so the lead extends to the underlying connections counted by UF1.

These scores establish how well each parser recovers the dependency relations expected by CCGbank. They provide a reference for interpreting the downstream results. In particular, the differences between the tag-constrained and word-constrained systems can be compared with their differences on the semantic task, and the lead for full supervision can be compared on the two kinds of evidence.

Overall slot filling narrows the separation

On SPADES test slot filling, the unsupervised CCG parser scores 37.3 overall. The tag-constrained variant reaches 41.4. The word-constrained variant reaches 43.2, and the fully supervised EasyCCG system scores 46.1. The bag-of-words baseline scores 45.2 overall. Its position near the top of the pooled comparison makes it important to examine how that score is distributed across sentence groups.

Overall SPADES test slot filling across syntactic conditions and the word baseline

The fully supervised parser leads overall, while the word baseline scores close to it.

Overall SPADES test slot filling across syntactic conditions and the word baselineUnsupervised CCG: 37.3Unsupervised CCG37.3Tag-constrained CCG: 41.4Tag-constrained CCG41.4Word-constrained CCG: 43.2Word-constrained CCG43.2Bag of words: 45.2Bag of words45.2Fully supervised EasyCCG (this paper): 46.1Fully supervised EasyCCG (this paper)46.1
The numbers
System or settingSlot filling score
Unsupervised CCG37.3
Tag-constrained CCG41.4
Word-constrained CCG43.2
Bag of words45.2
Fully supervised EasyCCG (this paper)46.1

The CCG systems retain their order from the intrinsic test. The spacing changes considerably. On labeled dependency F1 the word-constrained and fully supervised parsers score 53.5 and 84.2, whereas their overall slot-filling scores are 43.2 and 46.1. The authors describe the weakly supervised approach as reaching over 90% of the fully supervised result on the semantic evaluation. That comparison applies to the answer-recovery task with its particular Freebase grounding procedure.

For the authors’ question about the utility of induced grammar, the result supplies evidence at two levels. An unannotated derivation learner gives the graph system structure it can use. Constraining that learner’s lexical categories improves the downstream score. Fully annotated derivations still benefit the pipeline, and the contribution of that extra supervision is expressed differently when the outcome is an executed answer rather than agreement with all scored dependencies.

The small separation on the grounded task is compatible with several features of the setup. Some differences among parses can converge on the same graph. Some differences can produce distinct graphs that return the same first entity. The grounder or database may also determine the result in cases where a better parse would otherwise help. The overall scores demonstrate the difference between the evaluations. The scores themselves leave the contribution of individual mechanisms open.

The results change with the number of entities

For SPADES test sentences with two entities, the bag-of-words baseline scores 50.8. The fully supervised parser scores 49.3, the word-constrained version 46.8, the tag-constrained version 45.9, and the unsupervised parser 41.6. The simpler baseline therefore performs best in the largest entity-count group. The authors’ table describes it as containing approximately ∼6K sentences, so a strong result here has considerable influence on the overall comparison.

For sentences with three entities, the fully supervised system scores 42.0 and the word-constrained system scores 38.2. Both are ahead of the bag-of-words score of 36.8. The tag-constrained score is 33.7 and the unsupervised score is 30.4. The table gives the size of this group as ∼3K sentences. This middle group shows an advantage for the strongest syntactic conditions while the unconstrained learner and tag-constrained version still trail the word baseline.

For sentences with four entities, EasyCCG again leads, at 30.9. The tag-constrained parser follows at 29.1 and the word-constrained parser scores 28.3. The unsupervised parser’s 24.5 exceeds the bag-of-words baseline’s 20.9. The table reports ∼600 sentences in this group. It is the only group where all of the CCG systems exceed the word baseline, and its small size helps explain why the overall ranking still favors the baseline over the induction variants.

SPADES test slot filling for sentences with four entities

Every CCG condition exceeds the word baseline in the group with the most entities.

SPADES test slot filling for sentences with four entitiesBag of words: 20.9Bag of words20.9Unsupervised CCG: 24.5Unsupervised CCG24.5Word-constrained CCG: 28.3Word-constrained CCG28.3Tag-constrained CCG: 29.1Tag-constrained CCG29.1Fully supervised EasyCCG (this paper): 30.9Fully supervised EasyCCG (this paper)30.9
The numbers
System or settingSlot filling score
Bag of words20.9
Unsupervised CCG24.5
Word-constrained CCG28.3
Tag-constrained CCG29.1
Fully supervised EasyCCG (this paper)30.9

All the systems score lower in the groups with more entities. The authors’ explanation is that additional entities give the system more opportunities to get a relation wrong. For the bag-of-words classifier in particular, there are more potential connections to the blank, and the words provide limited information about which entity goes with a relation. The group comparison is consistent with the use of syntax to organize those cues. It measures performance over groups of naturally occurring sentences, so the entity count also indexes any other differences those groups happen to contain.

The relative positions of the semisupervised variants qualify the overall comparison. The word restriction gives the higher pooled semantic score and the higher result for three entities. The tag restriction gives the higher result for four. Thus the lexical item is a useful level at which to impose restrictions in this experiment, while the advantage depends on the subset. The table gives the observed scores, with the group sizes supplying context for their interpretation.

What the ablations show

The amount of lexical annotation

The paper varies the amount of word-level supervision to see whether the result from the restricted lexicon continues to improve as more lexical types receive constraints. The procedure is a useful within-parser comparison. It changes how many word types have assigned sets of permitted categories while retaining the basic induction setup. The span considered in the paper runs from 0 to 1000 labeled lexical types.

The paper reports a syntax improvement of 16pts and a semantic improvement of 6pts with 200 annotated words in this analysis. These gains refer to the lexical-coverage sweep, which compares performance as the set of constrained words expands. The syntax curve and the semantic curve reflect different endpoints of the pipeline. Constraining a word’s categories can improve treebank agreement by steering the parser toward the choices encoded in the lexicon. It improves slot filling to the extent that the affected derivations help the grounder construct a better query for the blank.

The semantic result levels off beyond 200 lexical types, and the syntax curve begins to degrade. The authors suggest rare categories and domain differences as a possible explanation. The lexicon is based on observations in Section 22 of WSJ/CCGbank, while SPADES contains web sentences selected for grounding. Adding constraints for more words brings additional categories and usage patterns from the source of the lexicon. The sweep shows the net behavior of those additions. It leaves the respective effects of lexical frequency, category rarity, and register to be disentangled.

This matters for interpreting the headline improvement. A growing lexicon changes which words can occur with which categories, but it leaves the status of the syntactic learner otherwise the same. The study establishes gains from the early additions and diminishing benefit from later ones under this procedure. The authors raise the possibility that more annotation might be useful when it takes the form of full supervision. The sweep itself measures the effect of extending a lexicon, which supplies categories without telling the parser how to combine them in a complete new sentence.

A punctuation constraint can affect semantics

The authors exclude commas when computing the most frequent lexical types used for their word lexicon. They also try restricting commas to the category , and report a 3pt performance drop. In their corpus, commas frequently receive the category conj. The contrast is consequential because CCG can use punctuation when deciding how expressions are connected. Limiting a comma to a single analysis can remove a useful way of combining the phrases around it.

The error analysis gives concrete reasons this can matter. A comma between a city and a country, as in Stockholm, Sweden, occurs in a construction with a relation between the names. Commas around a chemist can mark an appositive description, and punctuation after an introductory phrase can help delimit its scope. The appropriate graph depends on what function the surrounding material serves. A mistaken analysis can produce an unintended connection, or it can leave a needed connection out of the query.

The comma experiment is more specific than the lexicon sweep. It tests a category restriction on one extremely visible item and shows that a seemingly small constraint can have a measurable negative effect. It also helps explain why the utility of an annotation depends on the uses actually present in the corpus. A rule for punctuation influences more than the punctuation token itself because the category determines how larger phrases can combine.

Which mistakes reach the query

The authors manually inspect cases where the unsupervised parser fails to recover the correct entity and the fully supervised parser succeeds. Their earlier syntactic investigation with the induction parser had highlighted verb chains, possessives, and prepositional phrase attachment as substantial problems. The SPADES comparison brings other errors into view, including inappropriate conjunction analyses, failures with appositives, problems with introductory clauses, and errors in reduced relatives.

A conjunction analysis treats expressions as coordinated. Applying one to a city and country can interfere with the structural connection that the intended interpretation needs. An appositive adds identifying or descriptive information about a nearby expression, as in the example a chemist. The parser has to work out which entity that description belongs to. An initial phrase like In Frankfurt introduces a location before the main material, so its placement and attachment matter for finding the event or participant it describes. A reduced relative like established in 1909 leaves some of the clause’s structure implicit. Correctly linking its predicate to the noun it describes can determine where the date constraint lands.

These errors are grammatically varied, yet each can change which entities share an event or occupy particular positions in the semantic graph. An appositive can affect which description is attached to a name. An introductory phrase can affect which event receives a location. A reduced relative can constrain which entity satisfies the blank. The semantic comparison gives the authors a way to find errors with an observable consequence in this task, alongside the broader inventory of disagreements revealed by a treebank.

The manual comparison conditions on a particular outcome. It starts where the weaker parser failed and the stronger one succeeded. That selection is appropriate for looking for missed opportunities in induced syntax. It represents a narrower population than all SPADES sentences or all wrong answers. The examples explain mechanisms found in the inspected cases, and the paper offers no corpus-wide rates for the listed constructions.

Category agreement in successful cases

A second analysis examines grammatical choices in sentences the induction-based systems successfully grounded. EasyCCG serves as the comparison for the category assignments on those sentences. Against the treebank, the unsupervised system predicts the reference category for transitive verbs 20% of the time and for adverbs 39% of the time. In the SPADES analysis, its agreement with EasyCCG is 65% for the transitive category and 68% for the adverb category.

The authors suggest that the grounded corpus contains simpler constructions, which could make those lexical decisions easier. They also see improved choices for other categories, including prepositions. Some grammatical categories remain difficult in the comparison. Auxiliary verbs, relative clauses, and commas are among the cases that remain challenging or prove harder than in the treebank evaluation.

The comparison brings out two differences in what the percentages measure. The treebank figures use annotated analyses as the reference, while the SPADES comparison uses another parser’s categories. The SPADES cases are also selected for successful grounding, which can favor sentences whose parses and semantic representations were already easier to recover. The category-level agreement is therefore informative about the grammatical decisions present in successful executions. It leaves open how much of the shift comes from simpler constructions, the choice of reference, or the selection of successful cases.

Taken together, the analyses locate annotation effects at different levels. The lexicon sweep tests the amount of word-level supervision. The punctuation experiment tests one lexical restriction. The case review traces downstream failures to concrete constructions, and the agreement study asks what grammatical decisions can be observed where grounding succeeds. The entity-count results add a complementary comparison with lexical features alone. They show how the relative usefulness of a syntactic analysis changes with the number of entities that can take part in the query.

Limitations

Limits the authors identify

The study uses English so induced grammars can be compared against a supervised parser in the same language. The authors motivate partial annotation with domains and languages where treebanks are scarce. The strength of that motivation comes from the small lexicon used in the experiment. Its effectiveness in another language or domain remains an empirical question, especially where part-of-speech tags and an appropriate annotated source for the lexicon may also be scarce.

The authors also emphasize the domain dependence of annotation. The categories that cause problems in a treebank evaluation and those that frequently affect SPADES grounding only partly overlap. They suggest that simpler constructions in their semantic corpus might help explain better agreement on transitives and adverbs, alongside continuing problems with auxiliaries, relatives, and commas. The implication they draw is that the decisions about what to annotate need evidence from the domain where the parser will be used.

The coverage experiment qualifies the benefit of lexical supervision. The authors observe a plateau in semantic performance as the lexicon grows beyond 200 lexical types, along with deteriorating syntax. Their proposed explanation involves rare categories and domain differences. They mention additional in-domain information as a possible source of improvement and discuss combining the word baseline with syntax as a possible next direction. The paper reports the individual systems and analyses, leaving the performance of such a combination open.

In their conclusion, the authors describe ongoing work in which syntax and semantics would provide learning signals for each other. The experiments reported here use syntax to construct candidate meanings and use the grounded task to evaluate the parsers. They establish evidence for that direction of influence. A feedback process that improves the grammar from the resulting executions remains a separate question.

Limits visible in the setup

The entity blank has a known answer, while the full intended query is generally latent. A graph can attain the right answer with an incomplete set of constraints if the target happens to be the first entity returned. Different queries can also give the same first answer on a particular database. Successful retrieval is operational evidence that the pipeline can recover the missing entity. The experiment leaves room for variation in how completely or faithfully the query represents the sentence.

The first-answer rule also affects failures. A plausible query can return several entities, and the scoring decision depends on which entry appears first. The reported result combines query construction with this choice of answer. An evaluation of whether the target occurred anywhere in the returned list, or whether the query recovered the full intended set of relations, would answer a different question. The paper’s measurement is specifically about the recovered first entity.

There are several stages between a grammatical decision and that entity. Candidate availability depends on graph conversion, co-indexation, graph matching, and what Freebase can represent. The learned grounder then has to rank the candidates appropriately. As a result, a wrong answer can stem from a grammatical misanalysis, a missing or misleading candidate, a ranking decision, or ambiguity among the returned entities. The manual errors establish specific paths from syntax to changed semantics. The overall score evaluates the pipeline as a whole.

The corpus filters favor sentences compatible with the graph-matching procedure. The original sentence must have at least one corresponding Freebase graph, and the filter removes cases with the kind of unspecified entity illustrated by the generic company example. This gives the study a practical test of declarative grounding. It also narrows the conclusions to sentences that survive those conditions, with named entities and relations for which a structural match is available. Free-form declaratives with underspecified arguments and other types of semantic content remain outside the demonstrated setting.

The label unsupervised applies to the syntactic induction condition. The input is already tagged, the learner uses general rules, and the authors supply co-indexations for induced categories. The downstream grounder is trained using the identities of removed entities. The experimental question is how much further syntactic supervision helps in this pipeline. A claim about learning the entire pipeline without any annotations or answer supervision would require a different comparison.

The fully supervised endpoint also changes the parser. The induction settings share an underlying approach, which makes the lexicon experiments more direct evidence about the effect of those restrictions. EasyCCG supplies a practical full-supervision reference, with its own parsing procedure as well as access to labeled derivations. Its advantage consequently belongs to the complete system in that condition. The results leave the isolated contribution of full derivations within the induction parser undetermined.

Finally, the groups with different entity counts come from the corpus as collected. More entities can increase the number of potential attachments and relations, as the authors argue. The groups can also differ in clause structure, wording, or the sorts of facts they express. The strength of the four-entity comparison is that it identifies where the induced grammar overtakes the word baseline under the actual evaluation. An experiment varying entity count while holding other sentence properties fixed would be needed to assign the whole performance change to that factor.

What came after

The later work with a documented citation is Learning an Executable Neural Semantic Parser. Its title places it in the same broad area of deriving semantic representations that can be executed. For the CCG study, execution was a means of evaluating the usefulness of induced syntax. A parse supplied the organization of a graph, a grounding stage mapped that graph to database relations, and the returned entity determined success on the task. The later citation establishes a connection to work on learning an executable parser, while the specific use it made of the CCG evaluation is unspecified. Learning an Executable Neural Semantic Parser

The distinction between constructing the executable representation and using execution to assess syntax gives the connection its scope. The CCG paper asks how agreement with a syntactic reference relates to successful execution when the amount of grammatical supervision varies. Its concrete test is the recovery of a missing entity from a declarative sentence. The later title identifies executability as a property of the semantic parser being learned. Whether that work reused SPADES, adopted the grounding procedure, or used the paper as a point of comparison remains open from the documented citation.

Cite

Cite as Yonatan Bisk, Siva Reddy, John Blitzer, Julia Hockenmaier and Mark Steedman. 2016. Evaluating Induced CCG Parsers on Grounded Semantic Parsing. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/d16-1214

@inproceedings{bisk2016evaluating,
  title = {{Evaluating Induced CCG Parsers on Grounded Semantic Parsing}},
  author = {Yonatan Bisk, Siva Reddy, John Blitzer, Julia Hockenmaier and Mark Steedman},
  booktitle = {Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1214},
  url = {https://doi.org/10.18653/v1/d16-1214}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bisk-2016-evaluating-induced-ccg-parsers-grounded/