Hypertagging: Supertagging for Surface Realization with CCG
Paper · 2008 · Dominic Espinosa, Michael White and Dennis Mehay
Summary
A sentence generator can know what a sentence should say and still spend most of its time looking for a way to say it. In surface realization, the stage of text generation that turns a specification of meaning into a sentence, the generator must choose words and decide how they fit together. In Combinatory Categorial Grammar, or CCG, much of that work follows from the category assigned to each word. A verb’s category, for instance, can say what kinds of phrases it needs and on which side they belong. Giving the generator every plausible category for each word makes the search expensive. Giving it too few can rule out a complete sentence before the search begins.
The authors adapt supertagging, a technique that uses an existing sentence to predict its words’ grammatical categories. A generator has no word sequence yet. The authors’ technique, hypertagging, takes its cues from a graph of the intended meaning. A maximum entropy classifier examines a predicate, the nodes connected to it, and details such as tense, number and predicted parts of speech. It proposes CCG categories for the predicate. The OpenCCG realizer starts with a short list of likely categories and tries broader lists if it cannot build a complete sentence. Its grammar comes from CCGbank, and a separate sequence scorer helps it choose among candidate word strings.
The tagger’s first choice matches the recorded category for 93.6% of predicates on both the development and test sections. When the tagger can offer several categories, the paper reports coverage from 95.8% to 99.4% across settings averaging from 1.1 to 3.9 categories per predicate. With a 15 second budget per sentence, the generator using hypertags also finds more grammatically complete outputs. On the test section, the complete share rises from 23.5% with lexical lookup to 48.5% with hypertagging, and overall runtime falls from 9.6s to 4.4s per sentence. The generator consequently relies less on assembling fragments into a fallback output.
The test section’s overall BLEU score rises from 0.6022 to 0.6701. METEOR and exact string matches also improve against the corpus sentences. The authors describe their experiments as the first reported tagging results in the direction from semantics to syntax. The practical result is that a local prediction from meaning can help a broad-coverage grammar find more complete sentences within a fixed budget. The effect depends on giving the grammar enough alternatives to work with and on what the input graph already specifies.
Deep dive: Hypertagging: Supertagging for Surface Realization with CCG
Hypertagging predicts grammatical categories from a meaning graph so that a CCG surface realizer can find complete sentences faster. · about 33 minutes to read
The problem and its context
Why lexical choices make realization expensive
Surface realization begins after some representation of the intended content is available. The input in this work identifies predicates and records relations among them. The desired output is an English word string that expresses that input. The realizer must decide how the pieces of meaning can be expressed together. A dependency identifying an argument of a predicate helps specify who or what participates in the event. The grammar still has to determine where the corresponding phrase can go, which expression can take it as an argument, and what other material is needed to make the result grammatical.
CCG puts much of the information needed for those decisions in the lexicon. A lexical category can say that an expression is already a noun phrase. It can also describe an expression that will become a sentence only after combining with phrases of specified types and orientations. Entries for a word may differ in the arguments they require or in how they combine with surrounding expressions. Category assignment therefore controls which constructions are available. The individual choices are consequential even when the word forms themselves are fairly predictable.
The paper places CCG alongside Head-Driven Phrase-Structure Grammar and Lexicalized Tree Adjoining Grammar. In these lexicalized approaches to syntax and grammar, selecting categories and combining them can be treated as separate operations. This division creates a place for a predictor. It also explains why an apparently simple baseline can be costly. If the system starts by hypothesizing a large inventory of categories for each lexical item, every category that enters the chart may lead to further combinations. Even a category that cannot participate in a successful derivation can consume time before its incompatibility becomes apparent.
The OpenCCG baseline uses frequency thresholds to limit which observed categories enter the search. A predicate absent from the lexicon’s observations receives frequent categories associated with its part of speech. These are sensible ways to keep the inventory manageable. A frequent category may still be a poor choice in a particular graph, though, and several frequent categories can compete at the same position. A sentence assembled from plausible pieces may remain out of reach if the chart spends too much of its budget exploring their incompatible combinations.
The authors distinguish this search problem from a grammar’s inability to express a particular input. In the former case, a complete derivation is available but the search fails to reach it in time. In the latter case, rearranging the order of exploration cannot create the missing derivation. A system that emits fragments under a deadline can exhibit the same outward symptom in both cases. The paper uses a reference-guided search comparison to investigate how much room there is to improve the search while working with the available grammar.
What parsing had already established
In parsing, the input sentence supplies clues about which category a word is using. The word itself, its neighbors and their part-of-speech tags all help. The earlier work described by the authors used those clues to assign rich lexical categories before a full grammatical analysis. Bangalore and Joshi showed how much work a parser could avoid when a predictor supplied very informative categories. Their oracle experiment illustrated the amount of grammatical search that remained once the lexical decisions were largely resolved.
Subsequent work in CCG allowed a supertagger to keep multiple candidates. The parser could then reject a leading candidate if a lower-ranked one fit the larger grammatical structure. The strength of this arrangement comes from dividing the decision between local evidence and global structure. Local evidence can make most categories look dispensable. The full derivation can settle uncertainties the local evidence leaves open. The paper describes this multitagging approach as part of previous CCG parsing work that achieved efficient search and strong dependency recovery.
Generation changes the evidence available at the moment of prediction. A parser can look at the words to the left and right because the sentence is already ordered. A realizer has to discover that order. Reading adjacent words as context would presuppose part of its output. An input graph supplies another kind of neighborhood. A predicate’s arguments and modifiers may be known before the system has chosen where any of the corresponding words will appear. Hypertagging uses these connections as evidence about the grammatical category likely to express the predicate.
The shift also changes what the lexical decision is attached to. In parsing, a supertag is assigned to an observed word. Here the decision starts with an elementary predication, a unit of meaning introduced at a graph node. The category opens a route from that unit to syntactic material the grammar can use. A category may license a particular arrangement of constituents, while the input separately records what their semantic relations are. The division matters because the same kind of relation can occur in more than one syntactic arrangement.
Where the approach fit in surface realization
The authors follow earlier work by Langkilde-Geary and Callaway in using the Penn Treebank as a route to broad-coverage realization. Those systems derived inputs for generation by converting output from treebank parsers. OpenCCG shares a grammar between analysis and realization. A successful analysis under that grammar yields the kind of logical form the realizer takes as input. The shared grammar makes it possible to trace the meanings used in generation back to derivations in the corpus.
The paper places that choice alongside other bidirectional efforts using HPSG and LFG. It also draws a narrower comparison to hierarchical generation with lexicalized trees. The earlier tree-based approach described in the paper selects a single top candidate at a node subject to compatibility with its parent. Its probability depends on the children. Hypertagging can use information from the parent when making the prediction and can supply several candidates. OpenCCG then combines categories from the bottom up using its grammatical operations and their corresponding rules for composing meaning.
Other chart realizers already used statistical guidance. Nakanishi and colleagues varied a search beam across attempts, a precedent for controlling how widely a realizer searches. The paper distinguishes their lexical estimate, which looks at elementary predications introduced by a lexical entry, from an estimate that can also consider the parent and modifiers of the current node. Cahill and van Genabith used feature information associated with lexical rules and kept the highest-ranked edge in an equivalence class. OpenCCG can preserve alternatives by packing them together and later considering how they score in context. The authors also describe work by Carroll, Oepen and Velldal that adapts statistical ranking from parsing, using manually written grammars and smaller corpora.
These comparisons locate the paper’s contribution in a particular part of the realizer. Statistical ranking already helped decide which available sentence or partial derivation looked better. Hypertagging acts when the realizer is deciding which lexical categories to make available in the first place. A better ordering of a large agenda and a smaller inventory of ways to initialize that agenda address different sources of work. The paper’s design uses both.
The method, step by step
Build a grammar that can produce its own realization inputs
The experiment starts with derivations from CCGbank. A derivation records how categories attached to words combine to produce a sentence’s grammatical analysis. The authors describe an existing effort to convert those derivations into forms suitable for OpenCCG. The conversion revises coordination and punctuation to follow the more lexicalized treatments used by the toolkit. It also adjusts categories for function words, including complementizers, infinitival to, expletive subjects and case-marking prepositions. Those words can be required by the syntax without independently contributing a predicate of the kind the semantic graph should record.
Next the procedure extracts the categories and unary type-changing rules that meet frequency thresholds. A unary rule changes the type of a single constituent. The paper relates such rules to grammatical effects without an overt morpheme. Frequency filtering determines which observed possibilities survive into the grammar. This matters for evaluation because a grammar can fail to reproduce a corpus derivation even when every part of that derivation was annotated in the original treebank.
A separate transformation gives the extracted categories semantic content. It uses around two dozen general templates. The template for a transitive verb specifies where the verbal predicate enters and how its arguments are linked. Numbered roles come from PropBank when available. This is an application of semantic role labeling: roles distinguish contributions to a predicate’s meaning from positions in a sentence. Other templates introduce relations appropriate to constructions such as determiners and possessives.
The augmented grammar is then used to replay the corpus derivations. The procedure follows the recorded derivation instead of searching freely for a parse. When it succeeds, the analysis produces a logical form, the paper’s term for the structured meaning that the realizer will later receive. The logical form is saved alongside the sentence. The corpus thus serves several purposes. Its derivations supply the grammar and the target categories, the replayed derivations yield the graphs, and the original sentences serve as references for the generated strings.
The converter attempts to continue when internal punctuation blocks a derivation. Some punctuation has been given lexical categories, but the paper describes remaining cases that depend on punctuation-specific binary rules unavailable in OpenCCG. The distinction between an original sentence and a sentence with a usable converted logical form is therefore important. Only with a graph can the study test what the realizer does with that sentence’s meaning representation.
Read the input as a graph
OpenCCG represents meaning in Hybrid Logic Dependency Semantics, abbreviated HLDS. An input can be read as a directed graph. A node introduces a lexical predication, such as make.03, and may carry attributes such as number. Directed, labeled links identify relations between nodes. In the paper’s example from the development section, the node for want has outgoing links to its dependents. The relation from want to make is ARG1. The tagger can see that connection without consulting an ordered word string.
A predication’s identity, its attributes and its incident links present distinct clues. A verb with a particular dependent structure may be more likely to use a category that selects a complement of a particular kind. The identities of the related predicates can sharpen that prediction. A tense attribute can help distinguish categories whose structures otherwise look alike. The paper’s feature design keeps these sources of evidence available separately so that the classifier can learn their different contributions.
The dependency links describe meaning. A category, by contrast, constrains how an expression combines in a grammatical derivation. The semantic representation associates a dependent with a predicate even before a direction of combination has been chosen. When a category combines with another expression, its syntactic requirements determine whether the combination is legal, and its semantic specification determines how the result contributes to the input graph. This shared treatment of syntax and meaning lets the chart keep track of both.
What the category templates encode
The paper illustrates the transformation from extracted categories to categories with semantic annotations. In the transitive example, the category has an object requirement on the right and a subject requirement on the left. The semantic specification introduces a predicate for the clause, a tense value, and links to the two argument nodes.
s₁:dcl \ np₂ / np₃ ⇒ s₁:dcl,x₁ \ np₂:x₂ / np₃:x₃ : @x₁(*pred* ∧ ⟨TENSE⟩pres ∧ ⟨ARG0⟩x₂ ∧ ⟨ARG1⟩x₃)
Here s is a sentence category, dcl marks a declarative clause, and np is a noun phrase category. The indexed category positions ₁, ₂ and ₃ distinguish the clause, subject and object positions displayed in the schema. A backslash marks an argument taken to the left, and a forward slash marks an argument taken to the right. The arrow ⇒ marks the enrichment of the original category. Colons attach annotations to category positions or introduce the semantic specification. The comma joins the clause’s declarative annotation and its semantic node variable. The variables x₁, x₂ and x₃ identify the clause and argument nodes. The operator @x₁ locates the parenthesized content at x₁, and ∧ conjoins the pieces of content there. The placeholder *pred* is replaced by the lexical predicate. The angle brackets mark features or relations. TENSE has the displayed value pres, while ARG0 points to x₂ and ARG1 to x₃.
The prose describes the example as past tense, while the displayed template gives pres. The structural point is the explicit attachment of a tense value and of role links to the clause’s node. The example associates the subject and object positions in the category with the arguments in the meaning representation. The tagger later sees the resulting graph without being given those positions as a completed derivation.
The determiner example has a different shape. It builds a noun phrase from a nominal expression and introduces a determiner relation at the nominal node.
np₁ / n₁ ⇒ np₁:x₁ / n₁:x₁ : @x₁(⟨DET⟩(d ∧ *pred*))
In this formula np denotes the resulting noun phrase, n denotes the noun category, and / means the noun argument is taken to the right. The shared subscript ₁ associates the category positions, and the shared x₁ identifies the same semantic node on both sides of the slash. The arrow shows the addition of semantic detail and the colons attach the annotations and the logical form. @x₁ places the relation at that node. The brackets around DET mark the determiner relation. Its parenthesized target combines d, the node identifier displayed for the determiner, with the placeholder for its lexical predicate. The conjunction ∧ joins those components.
The possessive example adds another noun phrase argument and links it to the node associated with the possessed nominal.
np₁ / n₁ \ np₂ ⇒ np₁:x₁ / n₁:x₁ \ np₂:x₂ : @x₁(⟨GENOWN⟩x₂)
Here np and n again denote noun phrase and noun categories. The indexed positions distinguish the shared nominal position ₁ from the added noun phrase position ₂. The forward slash takes the noun to the right and the backslash takes the possessive noun phrase to the left. The variables x₁ and x₂ identify the possessed nominal’s node and the possessor’s node, respectively. The arrow introduces the augmented category, and colons attach the node annotations and the semantic expression. @x₁ anchors the expression, and ⟨GENOWN⟩ is the ownership relation whose target is x₂. The parentheses delimit the content anchored at x₁.
Together these examples show why the representation supplies more than a list of predicate names. The links can distinguish verbal arguments, determiners and possessors. Their labels record facts the realizer should express. Their connection to a lexical category is the information the hypertagger learns to predict from many instances.
Extract evidence around each predication
The hypertagger looks at the local graph. Its lexical features use the names of nearby predications, including those at parent and child nodes. Its structural features describe properties such as how many links go out from a node, how many correspond to arguments or other dependents, and what relations connect the nodes. Its syntactic and semantic attributes include information such as number and tense. A graph can therefore supply the same relation pattern for different predicates and different patterns for the same predicate.
The authors also use part-of-speech tagging as a source of evidence. They train a separate tagger that works from graph information. The current node, its parent, and its arguments and modifiers can each contribute predicted parts of speech to the hypertagger. The part-of-speech predictor uses a somewhat different feature inventory, including four-character prefixes and suffixes of rare predication names. These can provide clues when the full name has few observations.
That first tagger can retain more than one candidate. The general rule is to keep any tag whose probability reaches a proportion of the best probability for the same prediction.
p(t) ≥ β · p*
Here t is a candidate tag, p(t) is the probability assigned to it, and p* is the highest assigned probability for that predication. The symbol β is the threshold factor. The multiplication dot scales the best probability, and ≥ means a candidate at the resulting threshold is retained as well. The comparison is relative to the local best score. When the top candidates are close, several may survive the same setting that keeps a single tag for a clearer case. Lowering β makes the condition easier to satisfy.
For the part-of-speech step, the selected setting yields an average of 1.1 tags per elementary predication. The paper reports that the correct part of speech is present approximately 92% of the time at that ambiguity level. The probabilities of the retained parts of speech become feature values for the category predictor. An uncertain prediction can contribute weaker evidence than a confident one. The tagger does not need to treat every part of speech on the list as equally informative.
Learn a probability distribution over categories
The training examples come from semantic dependency graphs obtained from sections 2 through 21 of CCGbank. The authors report 37,168 graphs and 468,628 feature parameters. For each predication the training procedure pairs its contextual features with the gold-standard supertag, meaning the syntactic category recorded for it in the derivation. The classifier learns which combinations of a contextual cue and a proposed category are supported by these examples.
The paper uses a maximum entropy formulation. It combines feature contributions into a score for each possible outcome and turns the scores into probabilities within the current context.
p(o | x) = (1 / Z(x)) · exp(Σᵢ₌₁ⁿ λᵢ fᵢ(o, x))
The expression p(o | x) denotes the probability of outcome o given context x. For hypertagging, the outcome is a supertag, and the context describes the predication and its graph neighborhood. The bar | indicates conditioning. The sum Σ runs over feature indices i from 1 through n, where n is the number of feature functions. Each function fᵢ(o, x) gives the value of feature i for this pairing of outcome and context. Its learned weight is λᵢ. The exponential function exp converts the weighted sum to a positive quantity. The normalizer Z(x) is the sum of those quantities over the competing outcomes. Dividing by it gives a probability distribution for the specified x. The parentheses group arguments and the exponent, and the multiplication dot indicates multiplication by the reciprocal of the normalizer.
A feature can represent a conjunction of a grammatical hypothesis and a graph property. The paper gives an example for the node for want.
f(o, x) = ⎧ 1 if o = (s[dcl]\np)/(s[adj]\np) and number of LF dependents(x) = 2
⎩ 0 otherwise
The feature function f takes an outcome o and a context x. The braces present alternative cases. The function takes value 1 when both the category and the dependent count match, and value 0 otherwise. The equality signs specify the required category and count. LF abbreviates logical form, so the dependent-count expression refers to the local graph in x. In the outcome category, s[dcl] is a declarative sentence category and s[adj] is an adjectival sentence category. The brackets specify those features on s. The symbol np denotes a noun phrase. The backslashes indicate noun phrase arguments to the left, and the forward slash indicates that the category takes the adjectival expression to the right. The parentheses group the resulting declarative verb phrase and the required adjectival expression. In this example the value 2 checks the number of graph dependents. The learned weight determines how much that match affects the category score.
An indicator like this one contributes its weight when the specified configuration is present. A probability-valued feature, such as one based on a predicted part of speech, can contribute by degree. Both fit the same calculation. That flexibility is useful when some graph properties are directly observed and others must be estimated.
Training uses Zhang Le’s maximum entropy toolkit and limited-memory BFGS, an optimization procedure for fitting the weights. The authors train the hypertagging classifiers for 275 iterations and the part-of-speech classifier for 400 iterations. They impose no feature frequency cutoff. Instead, they use Gaussian priors with global variances of 100 for hypertagging and 75 for part-of-speech prediction. The priors regulate how strongly training evidence can push the weights. This feature treatment is separate from the frequency thresholds used to select entries and rules for the grammar.
Put the categories into the chart
From a meaning graph to a sentence
The steps in order.
During realization, the hypertagger ranks CCG categories for each elementary predication. The relative probability threshold produces a descending list of surviving categories. For a well-attested predicate, this filters the choices that would otherwise be explored from lexical observations. For a rare or unseen predicate, features shared with other graph nodes allow the tagger to propose a category. It can still draw on structural and attribute cues when the current predication name provides little evidence.
The realizer initializes its chart from these candidates. A chart edge represents a candidate expression and records its syntactic category and which parts of the input meaning it covers. The grammar combines edges into larger expressions. When two edges share a category and span identical portions of the logical form, OpenCCG can link them. Those conditions make the edges equivalent for certain subsequent combinations. Their word strings and scores can still differ. Grouping them lets the chart share work and preserve alternatives for later scoring.
The authors begin with a restrictive threshold. If no complete realization can be found with those candidates, the realizer tries a less restrictive threshold. This brings back some categories and can make a derivation possible that the previous attempt excluded. Each attempt starts from a fresh chart. The paper observes that expanding an existing chart is possible in principle. Restarting simplifies the arrangement they evaluate, at the cost of repeating any work shared by successive attempts.
The iterative search initially uses packing. In this mode the realizer builds a forest that compactly represents alternative derivations. During unpacking it works from smaller constituents upward and assigns scores to the expressions recovered for each edge. Packing makes it possible to determine more quickly whether the current lexical choices support completion. If the midpoint of the realization budget arrives before a complete result is found, the system changes to best-first search. There, the scores of the current edges determine which possibilities the agenda explores first. This mode can return the best result available when time expires.
Score sequences and recover from incomplete search
The sentence scorer uses n-grams, which estimate how well successive items fit together in a local sequence. An item is described through factors, or different properties of a word at that position. The experiments use factored trigrams over word forms, parts of speech and supertags. Because those factors describe candidate output sequences, this scorer can distinguish options that express the same input but order or phrase it differently.
The scorer was trained with SRILM on CCGbank sections 2–21. Sentence-initial words were lower-cased except for proper names. The authors use interpolated Kneser-Ney smoothing with the toolkit’s default frequency cutoffs. The best-performing scorer interpolates a word trigram with a trigram that combines part-of-speech and supertag predictions. In the latter component, the current part of speech is predicted from the previous two parts of speech. The current supertag draws on those previous tags and the current part of speech. The combination lets lexical sequences and sequences of grammatical information both influence a candidate’s score.
At this stage the supertags describe words in a proposed sentence. The hypertagger used the input graph earlier to choose which of those categories could enter the chart. The sequence scorer serves a different purpose even though it uses some of the same labels. It can prefer one surface arrangement over another and, in best-first mode, change the order in which the chart explores them. The grammar supplies the rules for legal combination and semantic coverage throughout.
If the search ends without a complete edge, OpenCCG assembles fragments. It begins with the available edge that covers the most elementary predications, breaking ties by sequence score. It repeatedly chooses another edge whose meaning coverage is disjoint from the material already selected, searching the chart and agenda until no further edge can be added. It then concatenates these fragments. Starting with the initial edge, it considers attaching available fragments on the left or right and takes the attachment giving the highest sequence score. The procedure continues until all selected fragments are included. The result is a way to produce an output from partial grammatical work, even if there is no derivation for the concatenated string as a whole.
Experiments and results
Which cases enter the evaluation
The study uses section 00 of the converted CCGbank for development and section 23 for testing. The development section is where the authors compare hypertagger feature sets and select relative probability thresholds that give useful levels of ambiguity. They take the full feature set into the test evaluation. Training the classifiers and the sequence scorer uses the training sections described above.
The conversion yields a logical form for 97.7% of the sentences in section 00 and 96.1% in section 23. Among those logical forms, 76.6% on development and 76.7% on test have a single root. The remaining forms have multiple roots and lack dependencies needed for a fully connected graph. These figures put two boundaries around the experiment. The generator can only be tested where a logical form was produced. Among those inputs, the graph neighborhood available to the hypertagger varies in completeness. The authors attribute the missing dependencies mainly to inadequacies in the semantic templates.
The paper evaluates the category predictor separately from the full generator. Category prediction can be checked by comparing its candidates to the recorded tag for each predication. The full realizer must construct an output sentence, so its measures include grammatical completion, time, and similarity to the corpus reference. This division of the evaluation helps diagnose how far improvements at one stage carry through to the next.
How well the tagger covers the reference categories
The tagging baseline assigns the most frequent recorded category or categories for a predicate. When the predicate is unseen, it backs off to the most frequent categories overall. The paper reports a baseline that supplies a single tag and one that supplies two. For either the baseline or the hypertagger, a predication is counted correct if its recorded category occurs among the candidates. The whole-graph measure requires the reference categories to be present for all predications in the graph. It is consequently sensitive to errors distributed across a sentence.
On development, the frequent-category baseline with a single tag achieves 68.7% per predication and 1.8% per graph. With two tags it achieves 84.3% and 9.9%, respectively. At β = 1.0, the full hypertagger achieves 93.6% per predication and 40.4% per graph. Test per-predication accuracy is again 93.6%, and whole-graph accuracy is 38.2%. The paper reports that the single-best hypertagger’s differences from the baselines are significant under McNemar’s chi-squared test, with p < 2 · 10⁻¹⁶.
Test section 23 per-predication accuracy for lexical baselines and hypertagging
Graph context improves on frequency alone, and retaining alternatives covers more reference categories.
The numbers
| System or setting | accuracy % |
|---|---|
| Frequency baseline, single tag | 68.7 |
| Frequency baseline, two tags | 84.4 |
| Hypertagger, best tag only | 93.6 |
| Hypertagger, narrow candidate list | 96.2 |
| Hypertagger, widest reported list (this paper) | 99.4 |
The development and test sections show a similar relationship between ambiguity and coverage. At β = 0.16, the average list contains 1.1 categories per predication. Development accuracy is 95.8% per predication and 55.7% per graph. Test accuracy is 96.2% per predication and 56.8% per graph. The extra candidates can matter at the graph level because a single missing tag is enough to make the reference assignment unavailable.
At β = 0.0058, the average list grows to 1.5 categories. Development reaches 97.9% per predication and 74.8% per graph, while test reaches 98.3% and 76.9%. At β = 6.25e-4, with 2.2 categories on average, development is at 98.7% and 82.5%, and test is at 99.0% and 84.3%. The most permissive reported setting, β = 5.8e-5, averages 3.9 categories. Its development accuracies are 99.1% per predication and 87.2% per graph. The corresponding test accuracies are 99.4% and 89.9%.
The development set was used to choose thresholds giving reasonable ambiguity, so the test section shows whether those operating points behave similarly on held-out cases. For the chart, ambiguity has a cost even when it improves reference coverage. Every retained category can introduce more edges or combinations. This is why a reference coverage result at a loose threshold cannot by itself tell the realizer where to begin searching.
How much the realizer gets done within its budget
For end-to-end evaluation the comparison is between the existing OpenCCG chart realizer and the version with iterative hypertagging. The existing system initializes the chart with possible categories from frequency-filtered lexical lookup and backs off for unknown words. The augmented system starts from graph-conditioned candidates and widens the lists as needed. The budget is 15 seconds per sentence. Under that budget a complete realization is one the grammar builds from the input, as opposed to an output constructed by concatenating fallback fragments.
Test section 23 grammatically complete realizations with and without hypertagging
The realizer guided by hypertags finds complete derivations for a larger share of inputs within the budget.
The numbers
| System or setting | complete realizations % |
|---|---|
| Lexical lookup | 23.5 |
| Iterative hypertagging (this paper) | 48.5 |
On section 00, the grammatically complete share is 22.6% without hypertagging and 47.4% with it. On section 23 it is 23.5% without and 48.5% with. The all-output times on development are 9.5s without the tagger and 4.5s with it. On test they are 9.6s and 4.4s, respectively. These are runtimes across evaluated inputs, including cases that require the fallback.
The complete-output subset has its own timing rows. On development, the reported complete time is 8.7s without the tagger and 1.2s with it. On test it is 8.9s without and 1.2s with it. The paper’s running text describes the reduction for complete realizations as a factor of four, whereas these tabulated times give a different account of the magnitude. The tabulated entries specify the time and subset for each condition directly. The completed subsets also need not contain the same sentences. Their timings describe the outputs each system completes under the experimental budget.
The improvement in completion matters independently of similarity to the reference. Completing a derivation shows that the grammar can combine a set of lexical choices that cover the input coherently. A fragment output can still contain much of the desired content. Its availability prevents a timeout from necessarily leaving the user with no text, but its construction is evidence that the search failed to find a complete derivation in time.
How close the outputs are to the original sentences
The study uses exact match, BLEU and METEOR. Exact match requires the full output string to agree with the corpus sentence. BLEU and METEOR provide graded comparisons to the reference. BLEU rewards shared sequences of words, while METEOR scores a correspondence between words in the output and reference. The metrics make it possible to compare outputs that reproduce part of the sentence or use a different arrangement. The paper reports overall scores and separate BLEU and METEOR scores for complete realizations.
Test section 23 overall BLEU with and without hypertagging
Category filtering improves reference agreement across the outputs, including those assembled from fragments.
The numbers
| System or setting | BLEU |
|---|---|
| Lexical lookup | 0.6022 |
| Iterative hypertagging (this paper) | 0.6701 |
On development, overall BLEU is 0.5902 without hypertagging and 0.6567 with it. Overall METEOR is 0.8209 without and 0.8494 with. On test, overall BLEU is 0.6022 without and 0.6701 with, while overall METEOR is 0.8273 without and 0.8557 with. The authors report a gain of more than 6 points in overall BLEU on both sections. The decimal scores give the performance of each condition on its respective split.
For complete outputs on development, BLEU is 0.6864 without hypertagging and 0.8137 with it. Complete-output METEOR is 0.8585 without and 0.9153 with. On test, complete-output BLEU is 0.6910 without and 0.8149 with, and complete-output METEOR is 0.8606 without and 0.9162 with. The paper reports a gain of more than 12 points in BLEU for the complete-output comparisons. Because hypertagging also changes which cases reach completion, these comparisons describe the outputs produced by each system on its own complete set.
Exact matches are reported overall. They account for 11.3% of development outputs without hypertagging and 15.3% with it. On test, the shares are 12.3% and 16.0%. The result is consistent with the story told by completion and the graded metrics. The guided realizer more often produces a full derivation and more often produces a string that agrees with the reference. The measures leave room for legitimate paraphrases, since completion can succeed even when the generator chooses a different sentence.
What the ablations show
What happens when the classifier loses evidence
The authors train hypertaggers with different feature sets and test them on section 00. The full feature set reaches 93.6% per predication and 40.37% per graph in the ablation table. The best-only tagging table reports the whole-graph development result as 40.4%. The figures come from tables with different displayed precision. The ablation asks whether the full predictor improves on versions in which a particular class of evidence is absent.
Removing predicted part-of-speech features produces 91.3% per predication and 29.5% per graph. This comparison matters because the parts of speech are predictions made from the graph, with uncertainty of their own. The full tagger has access to those predictions for the current node and for related nodes. Even if a particular part of speech is wrong, the pattern across a predicate and its neighbors can still help distinguish categories. The experiment shows a benefit for supplying the predicted evidence as the authors implemented it. It does not require assuming access to the corpus tags at generation time.
Removing the syntactic and semantic attributes, including properties such as tense and number, gives 91.8% per predication and 31.2% per graph. Those attributes can help distinguish categories even where the same predicates take part in the same broad dependency pattern. The comparison measures the value of the attribute group alongside the other features. It does not say which attribute, predicate or construction accounts for the gain.
The system using non-lexicalized features, with predication names removed, reaches 91.5% per predication and 28.7% per graph. It retains much of the accuracy of the full classifier because graph relations and grammatical cues can remain informative without the identities of nearby predicates. The lower performance shows that retaining those names adds evidence. A relation label describes a role shared by many expressions. The identity of the predicate occupying that role can help the classifier recognize which category is appropriate in the current instance.
The authors report that the full feature set outperforms each restricted set with p < 2.2 · 10⁻¹⁶. Across the comparisons, the effect is visible on the predicate measure and more pronounced on the graph measure. Whole-graph accuracy exposes an operational issue for a realizer. A predictor can be reliable at most nodes while leaving a large share of graphs with some gap in their exact reference assignments. In this study, the chart can sometimes work around a gap by building another valid realization, while threshold relaxation can restore reference categories that were initially omitted.
The feature comparisons concern tagging on development. They do not separately measure what the realizer’s runtime or completion rate would be if, for example, one retained lexical features but dropped attributes. The estimated contribution of a feature family also depends on which other families remain available. A part-of-speech signal can overlap with information in the predicate name, and an attribute can align with a distinction already visible in graph structure. The full system’s advantage establishes that the feature groups help in combination under the reported training procedure.
What a reference-guided search reveals
A comparison from the preceding realizer work uses an oracle sequence scorer that can consult the target sentence. It assigns scores using a simplified form of BLEU, guiding best-first search towards the surface form already known to the evaluator. The contrast with the ordinary factored scorer helps identify cases in which a grammar supplies a route to a complete realization but the ordinary search fails to follow it before timing out.
With the medium grammar derived from the development section, the oracle completes 49.1% of development inputs, compared with 47.8% for the ordinary scorer. This grammar is non-blind because it was derived from the section on which it is evaluated. With the larger training-derived grammar evaluated on development, the oracle completes 37.5% and the ordinary scorer completes 22.6%. The larger grammar is extracted under somewhat higher thresholds. The more substantial separation under that setup indicates that the ordinary scorer misses complete derivations that its reference-guided counterpart can find.
The authors use this result to motivate a change in lexical search. Common words can appear with many categories in a larger training sample. Even among candidates that pass the frequency thresholds, many may lead away from a successful derivation on a particular input. A stronger agenda score can guide the search when the desired answer is already known. Hypertagging instead supplies graph evidence before the chart begins to combine options. On development the paper reports that its improvement in completion goes beyond the number of search errors identified by the earlier oracle comparison. The oracle was therefore a diagnostic of search opportunity, with the completion percentage bounded by what that particular procedure found.
The medium and large grammar rows also serve different purposes. The medium grammar is built from the evaluation section, and the large one is built from separate training material. Their inventories and thresholds differ. The result within each row supports the comparison of reference guidance with ordinary scoring under that grammar. A comparison across those rows combines the effects of source material, coverage and ambiguity.
What broadening the candidate list buys
The threshold series provides a separate controlled comparison on the full tagger. Lower thresholds retain more of the same probability ranking. The output of the classifier therefore changes in breadth while the feature set and learned weights stay fixed. Per-predication accuracy rises as additional reference categories are included, and whole-graph accuracy rises as omissions are repaired across nodes. Every additional category may also enlarge the chart. The threshold series documents the coverage side of that tradeoff directly. The full realizer comparison measures the outcome of putting the lists into an iterative search.
Completion and reference agreement offer one more view of the results. Each realizer’s BLEU and METEOR scores are higher on its complete outputs than across all its outputs. The guided realizer also has higher scores within the complete-output condition. The first observation is consistent with the practical value of finding full derivations. The second suggests that the gain seen overall accompanies changes in the sentences the system can complete and in the strings it produces. The tables do not supply a comparison restricted to inputs that both systems completed. They support the package of decisions used in the guided system, while leaving the individual effects of threshold relaxation, packing and the change of search mode unmeasured.
Limitations
Limits the authors identify
The input representations are only as complete as the conversion and semantic templates allow. The authors point to sentence-internal punctuation as a source of failures when trying to follow corpus derivations. Some punctuation cases require binary rules that OpenCCG does not implement. Among sentences for which conversion succeeds, multiple roots frequently indicate missing dependencies. A graph with missing links offers the hypertagger fewer clues about the parent, arguments or modifiers of a node, and the realizer has less explicit information about how its parts should fit together.
The authors expect ongoing grammar development to improve both sides of the process. A more precise and complete grammar could support more derivations. Richer logical forms could give the tagger more informative features. These are expectations about a future version of the pipeline. The ablation supports the value of available attributes and graph evidence, while the reported experiments leave open how much particular additions to the semantic templates would help.
The authors also caution about comparing their BLEU scores directly with those of other realizers. They report an overall test BLEU of 0.6701 and describe it as slightly above the score of Cahill and van Genabith, at coverage of 96% rather than 98% in that comparison. Their caution concerns the specificity of the inputs. If one representation tells the realizer more about how to express the content, recovering the corpus sentence can be easier. A less specific representation can permit more paraphrases, some of which will receive lower reference scores. The authors leave experiments with larger n-gram sequence scorers for future investigation.
The implementation restarts the chart each time the category threshold is relaxed. The paper notes the possibility of expanding the chart that already exists. The experiment establishes the performance of the restart strategy. It supplies no timing comparison with chart reuse. Under the implemented strategy, some work can be repeated across attempts in exchange for starting each search with a consistent set of available categories.
Limits of what the comparisons establish
The test graphs come from recorded derivations processed by a grammar designed for the same corpus. This gives a clear pairing between an input and a reference sentence and supplies categories for evaluating the tagger. It also shapes the scope of the result. A graph produced from a corpus analysis can preserve cues that a graph written independently by a generation system might omit. Conversely, shortcomings of the semantic templates can remove links that another representation would express. The paper establishes performance for this conversion pipeline and its category inventory. Other input sources would require separate evidence.
Reference-category accuracy is a useful measure of whether the tagger keeps the recorded lexical analysis available. A graph may admit a different derivation using other categories, and a reference assignment that is fully available may still be hard to realize under a deadline. Thus a correct tag set at every node does not guarantee chart completion. Likewise, a missing reference tag need not prevent every grammatical output. The gap between tagging and completion rates is meaningful because the metrics test different requirements.
The surface metrics have a different boundary. Exact match rewards reconstructing an observed sentence. The graded metrics give credit for overlap when the strings differ. A fluent paraphrase can have less overlap with the reference, and a concatenation of fragments can retain much of the reference vocabulary without forming a coherent sentence. The article reports no human assessment that would decide among those cases. The completion measure complements the string comparisons by indicating when the grammar constructed an entire expression for the logical form.
The resource budget is part of the experiment. The paper reports times on a desktop Linux PC and imposes a 15 second limit per sentence. A different budget might change how much lexical ambiguity the baseline can tolerate or how frequently successive attempts pay off. Different grammar coverage could likewise change which paths are worth exploring. The measured speed and quality gains apply to the reported conditions. The evidence supports a reduction in wasted search for this setup, while leaving the magnitude at other deadlines or on other grammars open.
Finally, the test completion share with hypertagging is 48.5%. The improvement is substantial, and fragment assembly still plays a regular role. The experiment combines several components: a graph-conditioned lexical predictor, changing the candidate threshold over successive attempts, and using packing before switching to best-first search when necessary. It does not separately count the remaining failures caused by missing grammar coverage, unavailable categories, incomplete input graphs or agenda order. The individual causes can overlap on a sentence. As a result, the completion figure describes what the full system achieves and gives no direct estimate of how much improvement is available from fixing any single component.
What came after
Grammar Engineering for CCG using Ant and XSLT cites the paper from the grammar-engineering side of CCG. Its title identifies Ant and XSLT as part of that work. The connection is to a dependency the hypertagging experiment makes concrete: before a realizer can benefit from smarter category selection, it needs a grammar whose lexical categories support the analyses and semantic representations it will use. In the hypertagging paper, converting derivations, extracting their categories and adding logical forms all affect the generator’s inputs and options. The citation establishes a connection to that line of work. It does not establish whether the later engineering work changed or evaluated the hypertagger.
Discriminative Syntax-Based Word Ordering for Text Generation cites the paper in work on choosing word order through syntax. Word order is one of the problems OpenCCG solves when it combines categories whose arguments have direction. The hypertagger operates before that choice has been realized in an output string. It changes which grammatical possibilities the search can explore, and the chart and sequence scorer participate in deciding the final arrangement. The later title places discriminative prediction and syntax in the service of the ordering problem. The citation does not specify reuse of the HLDS features, probability threshold or iterative chart procedure.
These connections place the paper in two continuing lines of work. Grammar engineering determines which syntactic and semantic analyses are available to a realizer. Syntax-based ordering concerns how a realizer chooses a surface sequence from its grammatical options. Hypertagging addresses the decision between them. It uses the intended meaning to decide which lexical analyses are worth trying early, while leaving the grammar and search to determine which of those analyses can produce a sentence.
Cite
Cite as Dominic Espinosa, Michael White and Dennis Mehay. 2008. Hypertagging: Supertagging for Surface Realization with CCG. Proceedings of ACL-08: HLT.
@inproceedings{espinosa2008hypertagging,
title = {{Hypertagging: Supertagging for Surface Realization with CCG}},
author = {Dominic Espinosa, Michael White and Dennis Mehay},
booktitle = {Proceedings of ACL-08: HLT},
year = {2008},
url = {https://aclanthology.org/P08-1022/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/espinosa-2008-hypertagging-supertagging-surface-realization-ccg/