Elamur Research

An HDP Model for Inducing Combinatory Categorial Grammars

Paper · 2013 · Yonatan Bisk and Julia Hockenmaier

Summary

A sentence gives a grammar learner the order of its words, but leaves their relationships implicit. A noun beside a verb might supply a subject or an object. A phrase beside the verb might supply something the verb requires, or add information such as time or manner. Bisk and Hockenmaier investigate whether a learner can recover these distinctions from sentences marked with parts of speech. They use Combinatory Categorial Grammar, or CCG, in which a category tells you what an expression can combine with, on which side, and what kind of expression the combination produces. The resulting grammar can be examined as a lexicon of syntactic behavior, as well as used for parsing.

The authors begin with broad information about which tags mark nouns, verbs and conjunctions. They use neighboring tokens to propose more elaborate categories, then consider the sentence structures those categories make possible. Their main contribution is a way to assign weights to those structures that takes advantage of CCG’s rules. Given a parent category, a combining rule and an intervening category that the rule needs, the two child categories follow. This lets the learner concentrate its estimates on a single category choice per binary expansion. A hierarchical Dirichlet process lets evidence for that choice accumulate across the corpus while allowing individual parent categories to develop different preferences.

The authors evaluate the resulting HDP-CCG system on 13 languages, using the percentage of correctly attached words as the main measure. On the PASCAL grammar-induction data, the hierarchical approach consistently improves on the simpler maximum-likelihood estimates for the same underlying grammar, and the authors report that it leads the challenge comparisons on half of the corpora. In a Wall Street Journal comparison, HDP-CCG scores 64.2 on the evaluation bounded at length 20, compared with 50.4 for a dependency learner guided by universal rules and 66.1 for its English-specific counterpart. The paper also reports that including longer sentences in training improves HDP-CCG’s score on the shorter Wall Street Journal evaluation.

The induced lexicons make it possible to see what those scores leave unresolved. In Czech, the learner recovers categories for prepositional phrases on either side of a verb. The English lexicons differ between the Wall Street Journal and Childes in how often verbs are analyzed as requiring an overt subject. In Japanese, a plausible category for postpositions also lets case particles absorb nouns into phrases that can attach as modifiers. That analysis can leave the verb without an explicit argument in the derivation. The paper thus shows both what the learner can discover and how a lexical choice can explain a recurring parsing error.

Deep dive: An HDP Model for Inducing Combinatory Categorial Grammars

Bisk and Hockenmaier learn combinatory categorial grammars from tagged text by sharing evidence about which syntactic arguments categories take. · about 36 minutes to read

The problem and its context

What a learner needs to discover

Grammar induction asks what structural regularities a learner can infer from sentences without being shown their parses. In this paper the observable sequence comes with part-of-speech labels. The learner can tell that a token has been tagged as a verb, for example, while its relation to adjacent nouns and the rest of the sentence remains to be inferred. Many candidate grammars could account for the same sequence of labels. The choice of representation determines what sorts of regularities those grammars can express and which choices the learner has to make.

Suppose the learner encounters a noun immediately before a verb. A rule that attaches the noun to the verb could help it recover the intended dependency. A category that says the verb needs a noun on its left gives that attachment a more specific interpretation. It associates the pattern with a reusable property of the verb category. It also tells you what should remain after the attachment, such as a sentence or a verbal expression that still has another argument to find. The paper asks how to learn a grammar with this kind of information while keeping the search and estimation manageable.

The authors describe early experiments with context-free grammars as having limited success. A context-free grammar uses rewrite rules that say how a constituent can expand into smaller constituents or terminal symbols. A grammar inducer must settle on an inventory of intermediate categories, known as nonterminals, and a set of ways to combine them. Without a linguistic scheme for naming or organizing those categories, a label can acquire a useful statistical role whose syntactic interpretation is hard to recover. The authors mention X-bar theory as an example of principles that could give such categories more structure. They also acknowledge subsequent work that continued to pursue induction within the context-free formalism.

Much of the work they review took a different route after Klein and Manning. A dependency grammar represents structure with directed edges between words. An edge identifies a head and a dependent, and the projective grammars discussed in the paper constrain how those edges can span the sentence. Their basic induction problem can be posed with unlabeled links, removing the need to devise an inventory of constituent categories. The authors recount improvements from richer probabilistic assumptions, different learning schedules and linguistic constraints. These advances made projective grammar induction an established setting for dependency parsing.

That representation has consequences for what the grammar can say about individual words. An edge can indicate that a noun depends on a verb. The edge alone gives little information about whether the verb selected that noun as an argument or combined with a phrase that acted as a modifier. The paper also points to the difficulty of representing non-local structures in the dependency approaches under discussion. These issues concern the information retained by a grammar and the kinds of dependencies the implementation can recover. They are distinct from whether a particular dependency attachment is scored as correct.

Why use categories with internal structure?

The paper discusses a tree-substitution approach by Blunsom and Cohn as an intermediate comparison. That approach associates words with small trees, or treelets, which can specify how many dependents a word has on either side. The treelet collects information that a simpler dependency treatment would distribute across several attachments. The CCG fragment in the paper has a comparable degree of formal expressiveness and likewise gives lexical items a substantial role. The authors emphasize a difference in interpretation. A treelet can describe a pattern of dependents, while the internal structure of a CCG category explicitly encodes the relationship between an expression, its argument and the result of combining them. In CCG a modifier can also identify itself by returning the same type of expression it takes as input.

This distinction makes a category inventory easier to inspect. A category for a verb can show how many nouns it still needs and in which directions to look. A category for an adjective can show which side of a noun it can appear on. The same notation describes a partly completed phrase and tells the parser how that phrase can participate in the rest of the sentence. Thus learning more categories can buy finer distinctions without making every new label a fresh syntactic primitive.

Boonkwan and Steedman’s earlier CCG work approached the link between categories and language structure from the other direction. The paper describes their use of a questionnaire about a language’s syntax to define prototype entries and guide construction of a lexicon. A fact about where adjectives occur, for example, can be translated into the direction of a slash in an adjective category. This provided a concrete reason to think a useful lexicon could be built from information about basic word order and argument structure. Bisk and Hockenmaier ask how much of that information can instead be recovered from the tagged corpus.

The authors had already developed rules for proposing CCG categories from local contexts. The new work keeps that proposal procedure and changes two aspects of the statistics applied to the resulting parses. It replaces a head-first decomposition of a rule with a decomposition centered on a category required by the combinator. It then shares information among the distributions that make those category choices. The first change exploits the structure of CCG. The second addresses a statistical problem created by using richly differentiated categories in a finite corpus.

What counts as learning a grammar?

The paper treats successful induction as having both a predictive outcome and an inspectable one. A parser should attach words in ways that agree with a reference analysis. The lexicon should also expose recurring syntactic patterns recognizable from its categories. These goals lead to different forms of evidence. A dependency test summarizes performance over many words, while a lexicon shows what the learner repeatedly assumes about particular tags in a corpus.

The distinction matters because the evaluation converts the CCG derivation into a different representation. Two derivations might make different claims about what a verb requires and still agree on some dependency edges. Conversely, a coherent analysis can incur a penalty if it chooses a head different from the one stipulated by the reference treebank. The paper’s design therefore involves a choice about how to represent syntax during learning and a separate choice about how to compare the output with earlier systems.

The method, step by step

Read a category as a requirement

The grammar starts with atomic categories for sentences and nominals. The symbol S is the sentence category. The symbol N serves both nouns and noun phrases in this fragment. A complex category specifies a result and an argument. The forward slash asks for the argument on the right, while the backward slash asks for it on the left. The authors write a vertical bar when they want to describe a category without choosing a direction. The expressions on either side of a slash can themselves be complex, which lets the same notation describe a word and successive stages in the construction of a phrase.

Consider S\N. An expression with that category can produce a sentence if an N combines with it from the left. The remaining requirement is visible in the category itself. In (S\N)/N, the outer slash first asks for a nominal to the right. Combining with that nominal yields S\N, leaving the requirement for a nominal on the left. Parentheses distinguish the result of the outer operation from its input. The transitive verb pattern in the paper illustrates how these categories encode order and argument requirements in the same expression.

A modifier identifies itself through a repeated category. An expression of category N/N takes a nominal to its right and leaves a nominal as the result. N\N performs the corresponding operation with a nominal on its left. The paper uses the contrast between English and the expected category for a postnominal adjective in Spanish to show what the slash contributes. Both adjective categories can preserve the nominal type. The direction determines where the adjective can appear. A modifier can have further arguments of its own, so a category can describe an expression that first consumes a nominal and only then functions as a modifier.

A lexical category therefore encodes a dependency from the perspective of the item introducing it. For an argument dependency, the head category indicates the argument it requires. For a modifier dependency, the modifier category indicates the expression to which it can attach. This distinction is available before the parser outputs a dependency graph. It comes from how the constituents combine, even though the evaluation ultimately reduces the result to directed word attachments.

Combine compatible categories

Function application handles the direct case where an argument is adjacent to an expression expecting it. Forward application is written as follows.

X/Y   Y   ⇒   X

Here X is the result category and Y is the argument category. The category X/Y is a functor, meaning an expression that returns X when it combines with Y. The / requires the argument on the right, and ⇒ points from the input pair in sentence order to the resulting category. The authors label the operation B⁰>. The superscript ⁰ identifies application in their notation, and > marks its forward direction.

Backward application reverses the order of the argument and functor.

Y   X\Y   ⇒   X

Here Y is again the argument and X the result. The \ in X\Y makes the functor look to its left, and ⇒ indicates the category that results. The label B⁰< uses < for the backward direction. An N followed by an S\N is an instance of this rule, with Y standing for N and X standing for S.

Composition lets functors combine when the result of one matches the input required by another. The resulting expression retains an argument requirement. In forward composition, a functor seeks a Y to its right, and what it finds there can produce a Y once it receives a further argument.

X/Y   Y/Z   ⇒   X/Z

X is the final result, Y is the category connecting the two functors, and Z is the argument requirement that survives. The / in X/Y places the provider of Y to the right. The / in Y/Z specifies where that provider will find Z. The output X/Z, after ⇒, retains the rightward requirement for Z. This is B¹>, where ¹ marks the degree of composition used here and > marks the forward form.

The backward counterpart has the following shape.

Y\Z   X\Y   ⇒   X\Z

Y\Z can produce Y from a Z on its left, and X\Y takes the resulting Y on its own left to produce X. The \ in the output X\Z records the remaining location of Z. The arrow ⇒ again identifies the output category. The operation is labeled B¹<, with ¹ indicating the same degree of composition and < marking the backward form.

The fragment also contains crossed forms. In the forward crossed case, the functor on the right requires its remaining argument on the left.

X/Y   Y\Z   ⇒   X\Z

X/Y still looks to its right for Y, as signaled by /. The expression supplying Y is Y\Z, whose \ requires Z to the left. The final category X\Z preserves that requirement for Z while returning X. The arrow ⇒ denotes the combination. The paper labels this form B¹X>, with X inside the rule label marking crossed composition, independently of the use of X as a category variable in the schema.

The backward crossed form retains an argument to the right.

Y/Z   X\Y   ⇒   X/Z

X\Y seeks its Y to the left, and Y/Z supplies that category subject to a rightward requirement for Z. The / in the resulting X/Z carries that requirement forward, with X as the eventual result. The arrow ⇒ denotes the operation. The rule label is B¹X<, where ¹ gives the degree, X denotes crossing, and < indicates the backward form.

Composition gives sentential and verbal modifiers a way to share categories. For example, in the forward composition schema, a modifier of category S/S can combine with an S\N through the crossed form. The result is an S\N, so the combination can still take its nominal argument. The modifier uses a category defined in terms of S even when it combines with an expression whose requirements have yet to be satisfied. This is a main reason the authors give for including composition in their fragment.

Allowing composition also creates multiple possible sequences of combinatory steps for some equivalent analyses. The paper calls this spurious ambiguity. When the same underlying analysis can be built in several orders, those orders can take up space in the parser and count as separate derivations. The authors use Eisner’s normal form to constrain the allowable branching patterns. The fragment uses basic composition and leaves out type-raising, which would let an argument act as a functor over something that normally takes it. The authors characterize their fragment as context-free in weak generative capacity. That characterization concerns the strings it can generate, while its derivations still carry CCG categories and combinators.

Coordination has a dedicated category conj and is built in two binary steps. The first marks the conjunct associated with the conjunction.

conj   X   ⇒   X[conj]

conj is the category of the coordinating conjunction, and X is the category of the conjunct on its right. The bracketed annotation [conj] marks the result of joining that conjunct to the conjunction. The arrow ⇒ identifies this intermediate category. The rule is labeled &1, in which & denotes coordination and 1 identifies the first step.

X   X[conj]   ⇒   X

The unmarked X on the left is the other conjunct. X[conj] is the intermediate expression from the preceding rule, and both instances of X require the same underlying category. The result after ⇒ is again an expression of category X. The rule label &2 identifies the second coordination step. These rules preserve the category of the coordinated expression while making the construction identifiable when the derivation is converted into dependencies. The coordination treatment follows the work reported in CCGbank.

Propose the lexicon from tagged sentences

The implemented lexicon associates categories with corpus-specific part-of-speech tags. For initialization, the authors group those tags into broader classes. Nominal labels for nouns, determiners, numerals and pronouns receive N. Verbs receive S, and coordinating conjunctions receive conj. The mapping distinguishes coordinating from subordinating conjunctions and main from auxiliary verbs where the corpus permits it. The coarse classes guide induction, while the lexicon preserves the distinctions among the original tags. The mapping is adapted from A Universal Part-of-Speech Tagset.

The starting lexicon provides possible ingredients for a parse. It has no complex categories, so participants in a local construction initially lack a category specifying how to combine. The category induction procedure expands the inventory by looking at the immediate neighbors of tokens in the tagged sentences. It has an argument rule, which lets eligible expressions take an adjacent nominal, and a modifier rule, which lets a wider range of expressions propose an attachment to a neighbor.

Under the argument rule, a token that already has a category other than N or conj can take an adjacent N as an argument. The side occupied by the nominal supplies the direction of the new slash. Thus a verb initialized with S can acquire S\N when a nominal occurs to its left. Iterating the rule can add another requirement to a category already proposed. The grammar permits lexical categories of maximal arity 2 and excludes (S/N)\N, for which it uses the equivalent two-sided analysis (S\N)/N.

The modifier rule allows most tokens to propose a category that can modify an immediate neighbor. The eligible targets include S, N, and modifiers of those categories. A coordinating conjunction in the middle of a sentence is reserved for coordination. If a token stands to the left of a nominal, it can acquire N/N. If it stands to the right of a sentence-category expression, it can acquire S\S. When the target is already a modifier, the proposed category can take that modifier as an input. The rule consequently expands the inventory beyond simple verb arguments and noun modifiers.

The paper’s worked example is a sentence about a man who ate quickly. The noun tag starts with N and the past-tense verb tag with S. The subject position suggests S\N for the verb, and the position after the verb suggests S\S for the adverb. The rules also propose alternatives arising from the same local adjacencies. A noun next to a verbal category can receive a modifier analysis, for example. The important feature of the induction stage is that local context licenses candidates. The training procedure later decides how much weight to give the derivations that use them.

The expanded lexicon defines which parses the grammar can construct for the training data. A complete sentence can receive category S or N, except that a sentence containing a main verb must finish as S. This requirement applies to the syntactic category at the top of the complete parse. A separate evaluation step identifies the lexical head that will serve as the root of the dependency tree. Keeping those notions of root distinct helps explain how a sentence constraint during induction can coexist with the problem of treebanks that annotate several dependency roots within a single input sentence.

From tagged sentences to induced CCG analyses

The steps in order.

From tagged sentences to induced CCG analysesStep 1: Seed atomic categories from broad tag classes1. Seed atomic categories from broad tag classesStep 2: Propose argument and modifier categories from neighbors2. Propose argument and modifier categories from neighborsStep 3: Find parses permitted by the expanded lexicon3. Find parses permitted by the expanded lexiconStep 4: Initialize shared weights from corpus-wide counts4. Initialize shared weights from corpus-wide countsStep 5: Reestimate local distributions and shared bases5. Reestimate local distributions and shared basesStep 6: Select the highest-weight derivation for each sentence6. Select the highest-weight derivation for each sentenceStep 7: Convert derivations to directed dependencies7. Convert derivations to directed dependencies

Generate the children by choosing an argument

A generative account reads a derivation from the top down. It starts with the category of a completed expression and assigns weights to the steps that expand that category. For an entire tree, the choices at its nodes contribute multiplicatively to the tree’s weight. The earlier approach described by the authors picks a rule type that includes the direction of the head, then chooses the head category and the sister category. This follows a basic variant of Generative Models for Statistical Parsing with Combinatory Categorial Grammar.

Bisk and Hockenmaier observe that the combinatory schemas already constrain the relationship between the two children. Consider a parent of category X/Z and a forward composition step. Because the result must be X/Z, the left child must return X and the right child must carry the requirement for Z. One category is still missing. Once the learner supplies Y, forward composition forces the children to be X/Y and Y/Z. In application, that same choice supplies the argument category directly, and the functor is built from that argument and the known parent category.

They call this factorization the Argument Model. The word “argument” names the generated category slot. In an application step, the value can correspond to a constituent that is a syntactic argument. In a composition step, it can be the intermediate category shared by two functors. For a unary rule, which has a single child, the slot can give the child directly. This is how the same scheme can represent the root production, where a top symbol expands to a permitted sentence or nominal category. The paper illustrates the analogous treatment of unary type-raising rules as an extension of the factorization. Those rules are outside the implemented grammar.

The authors first distinguish a lexical expansion, a unary expansion, and binary expansions with a head on the left or on the right. A lexical expansion emits a terminal symbol. Given a parent category and a lexical rule type, its contribution has this form.

p(t | P) × p(w | P, t)

P is the parent category, and t is the selected rule type, here lexical. w is the emitted terminal, a tag in this implementation. p denotes a probability, and | means that the symbols to its right are the conditions under which the outcome to its left is chosen. The comma separates conditions, and × multiplies the probability of selecting the rule type by the probability of its emission.

A nonlexical expansion has the following factorization.

p(t | P) × p(Y | P, t) × p(c | P, t, Y)

P is the parent, t is the expansion type, and Y is the generated category. c denotes the combinator, the rule schema determining how the expansion is realized. p again denotes probability, | introduces the conditions, and commas separate them. The × symbols multiply the factors for selecting the type, selecting the category, and selecting the combinator. The formal conditioning here proceeds from P to t to Y to c. To see why the factorization works, one can also reason from a parent and a known combinator and identify what value of Y remains to be chosen.

For backward application with parent X/Z, for instance, the children are Y on the left and (X/Z)\Y on the right. Application removes the right child’s leftward requirement and yields the parent. The parent can also be atomic for application. Composition requires the parent to retain a slash and a category for its outstanding argument. Thus grammatical constraints determine which combinations of choices are meaningful. The procedure gives the learner a distribution over the missing category instead of requiring it to estimate each possible pair of children as an independent outcome.

This matters for estimation because a rich pair of categories can occur infrequently even when there is useful evidence about their internal components. A generic context-free rewrite can allow arbitrary left and right nonterminals under a parent. A system that shares information about those children still has to account for which pairs go together. Here the CCG schema couples the children. The authors can place a shared distribution on the single category slot and rely on the combinator to translate a choice in that slot into the full expansion.

Share evidence about category choices

Maximum-likelihood estimates based on local counts are vulnerable to sparse data. A category can be common somewhere in the grammar and rare in the particular conditioning context where the parser needs it. Pure count estimates give an unseen outcome no probability in that context. The paper’s maximum-likelihood comparison adds a small floor during training. The hierarchical approach instead makes the support given to an allowed outcome depend in part on how the rest of the corpus uses it.

A Dirichlet process describes a distribution over distributions. Its base distribution gives the center around which a draw is made. Its concentration parameter governs how tightly the draw tends to follow that center. The formulation can accommodate a potentially unbounded collection of outcomes. A hierarchical Dirichlet process uses a distribution drawn at one level as the base for draws at the next. The local distributions can then differ while sharing a common source of statistical evidence. The authors build on Hierarchical Dirichlet Processes.

For categories, the shared distribution assigns a weight to each possible value of the argument slot. The paper describes these weights through stick breaking. In that construction a whole unit of probability mass is progressively divided into shares. In HDP-CCG the resulting weights reflect corpus-wide category usage and supply the shared center for the distributions associated with individual parents. Learning can favor a category locally when there is evidence for it, or draw on its global weight when observations for that parent are sparse.

There is a parallel hierarchy for emissions. Its shared distribution is over terminals, which are the observed tags in the experiments. A parent’s local emission distribution can therefore borrow information from the overall frequencies of terminal symbols. The paper also retains maximum-likelihood components for discrete decisions such as the rule type and the combinator. The hierarchy targets the category and emission estimates, within the factorization that specifies when those estimates are used.

The authors set the concentration for the argument hierarchy by the number of outcomes in a conditioning context.

αY = nᵖ

αY denotes the argument concentration, with Y serving as the label for the argument hierarchy. n is the number of permitted outcomes for the conditioning context, p is the exponent, and = states the setting used for that concentration. The superscript position of p indicates exponentiation. The lexical concentration, denoted by αL, follows the same scheme, with L identifying lexical emissions and the outcome count coming from the terminal vocabulary available in the corpus.

The tested exponents are 0, 1.0, 1.5 and 2.0. They cover a concentration independent of the outcome count, then scaling that is linear, superlinear and quadratic. A larger concentration gives the shared distribution more influence relative to the local counts. This is especially relevant when the same exponent is used for contexts with different numbers of eligible outcomes. An exponent is a rule for determining concentrations across contexts, so a setting does more than add a fixed amount of smoothing to the whole grammar.

The mathematical framework allows the category space to grow. In the reported experiments, category induction has already produced a finite inventory and a finite set of productions. The reason to write the account in terms of a potentially unbounded distribution is that it can accommodate an expanded grammar later. The evidence about the hierarchical procedure in this paper comes from redistributing weight within the implemented inventory.

Estimate the distributions and choose a parse

The authors use variational inference to estimate the hierarchical distributions. The procedure works with a truncated representation and optimizes a lower bound associated with the likelihood. This provides a tractable way to update the quantities needed by the parser. The paper relates the training to Inside-Outside estimation. The idea is to accumulate evidence over permitted derivations of a sentence, so training can use the weights of candidate analyses when estimating rule counts. The grammar supplies the possible analyses and the current estimates determine how strongly each one contributes.

To initialize the shared category weights, the authors first use a maximum-likelihood system that starts from uniform distributions. They obtain corpus-wide counts and normalize them, giving the hierarchical stage a data-dependent starting point. This creates two distinct senses of initialization. The initial maximum-likelihood calculation starts uniformly. The shared weights supplied to the hierarchical calculation reflect the counts obtained from that calculation. Subsequent training reestimates the shared distributions along with the local ones.

The variational update for a category has the following form.

W_P(Y) = Ψ(C(P, Y) + α_P β_Y) − Ψ(C(P, ∗) + α_P)

W_P(Y) is the variational weight assigned to outcome Y in context P. The notation uses P for the conditioning variable and Y for the category being considered. C(P, Y) is the count for that outcome in the context. C(P, ∗) is the total count in the context, with ∗ standing for all outcomes. α_P is the concentration for P, and β_Y is the shared base weight of Y. Juxtaposition in α_P β_Y means multiplication. Ψ is the digamma function, and the + signs combine the count terms and prior contributions. The − subtracts the digamma of the context total with its concentration from the digamma of the individual outcome’s updated count. The = defines the weight.

The formula exposes how local and shared evidence enter the update. An outcome receives the equivalent of a pseudocount proportional to its base weight. The normalization term includes the corresponding total concentration. When a candidate occurs frequently in analyses that the learner already favors, it can amass local evidence and become easier to select again. The shared base can also help a category that is rare in one context but supported elsewhere. The authors describe this as a rich-get-richer tendency and emphasize that the digamma-based values are variational weights used in inference.

The procedure alternates updates to the estimated distributions, including the shared bases. The training computations can be parallelized across the sentence analyses used to collect evidence. Once trained, the parser can select a Viterbi derivation, the best-scoring complete analysis for a sentence under the current estimates. Those best derivations yield the tag-category frequencies discussed in the paper. Their head and dependent relations also supply the inputs to the dependency evaluation.

Experiments and results

What the attachment score measures

The authors report experiments across 13 languages. Their principal measure is directed dependency accuracy, expressed as the percentage of evaluated words attached correctly. The direction matters because getting the pair of words right while reversing which one governs the other is a different analysis. The evaluation checks the CCG parser’s converted dependency output against annotated references, using the training and test arrangements of the systems with which it is compared.

The conversion uses the lexical head and the relations introduced by application, composition and coordination. Argument and modifier categories help identify which constituents are related. The reference treebanks can nevertheless impose different head conventions for constructions involving verb clusters, adpositions, particles or subordinating conjunctions. The authors adapt the output explicitly for coordination. A traditional CCG dependency treatment can keep the conjuncts independent and leave the conjunction unattached. A treebank may require a conjunct or the conjunction itself to serve as the head. The paper identifies five common conventions in the data and implements translations into the target schemes.

Across its evaluations the paper uses the PASCAL grammar-induction data, CoNLL-X data, and Goldberg’s Hebrew corpus. The authors derive dependencies for the Penn Treebank’s Wall Street Journal section by applying Collins’s head rules as implemented in Nivre’s Penn2Malt. A dependency comparison on these data therefore evaluates analyses against the heads assigned by that conversion. The original Wall Street Journal annotations come from the Penn Treebank.

PASCAL grammar induction

In the PASCAL regime, participants were asked to train on the full collection, including test sentences with their reference analyses withheld. Bisk and Hockenmaier remove punctuation and train their comparison systems on sentences through length 15, then report directed accuracy for the evaluation bounds of 10 and 15. The distinction between labels and sentences is important here. The test sentences contribute observed tag sequences to training, while their annotated dependency structures furnish the answer against which outputs are scored.

The primary comparators are the authors’ earlier CCG entry, labeled BH, and a tree-substitution entry labeled BC. The paper also reports the strongest result among the other challenge entrants for each comparison. Those entrants varied in how they used prior rules, development-set tuning, or additional Wikipedia data for estimating parameters. The resulting comparison puts HDP-CCG alongside the available challenge systems. The authors say they lacked comparable information about all entrants’ training volumes. The earlier CCG entry is particularly relevant because it also supplies interpretable categories, while the tree-substitution entry supplies a comparison with a similarly expressive grammar.

The authors compare maximum-likelihood estimation for the new Argument Model with four concentrations for HDP-CCG. The maximum-likelihood run has a rule-probability floor of e⁻¹⁵ for rules used during training. Here e is the base of the natural exponential function and ⁻¹⁵ is its negative exponent. The floor keeps such a rule available even if its estimated contribution would otherwise reach zero. The hierarchical version gives allowed rules statistical support through the shared category or terminal distributions.

Arabic provides a clear example of the spread across the settings. Its PASCAL training entry has 5,470 tokens and 20 tags. At the length 10 evaluation bound, the maximum-likelihood Argument Model reaches 41.6 in directed accuracy. The strongest hierarchical setting in that column reaches 66.4. At the length 15 bound, maximum likelihood reaches 42.9 and the same hierarchical setting reaches 65.1. The remaining hierarchical settings have varying results, so a single strong setting gives an incomplete picture of the effect of changing the concentration.

Argument Model estimates on PASCAL Arabic at length 10, directed dependency accuracy

The quadratic concentration gives the strongest hierarchical result and finishes above maximum likelihood.

Argument Model estimates on PASCAL Arabic at length 10, directed dependency accuracyMaximum likelihood: 41.6Maximum likelihood41.6HDP 0.0: 48.0HDP 0.048.0HDP 1.0: 45.6HDP 1.045.6HDP 1.5: 49.6HDP 1.549.6HDP 2.0 (this paper): 66.4HDP 2.0 (this paper)66.4
The numbers
System or settingdirected dependency accuracy %
Maximum likelihood41.6
HDP 0.048.0
HDP 1.045.6
HDP 1.549.6
HDP 2.0 (this paper)66.4

Across the PASCAL corpora, the authors report that the hierarchical approach improves on maximum likelihood and that its strongest results lead the challenge comparisons on half of the corpora. For length 10, the reported average advantages over BH and BC are 10.3% and 9.3%, respectively. At length 15 the corresponding reported advantages are 9.7% and 7.8%. Those aggregate comparisons describe the PASCAL regime. The paper singles out the weakness of the maximum-likelihood result on Basque and the difficulty of the Slovene evaluation for the hierarchical system.

In Slovene, the reference annotation frequently treats a written sentence as a collection of independent components. The development set contains 1,000 sentences and has an average of 2.7 annotated roots per sentence. Punctuation can mark the component boundaries, and the authors’ parser receives the input with that information removed. Its output must have a single root. The paper reports that when some short components are presented independently, they frequently receive reasonable analyses. The full-input score reflects a structural mismatch that persists even if the learner can identify dependencies inside individual components.

Comparisons with linguistic constraints

The paper compares HDP-CCG with Naseem and colleagues on length 10 CoNLL-X training data, using those data for both training and evaluation in the comparison. The competing approach supplies universal constraints describing plausible dependencies. The paper reports, for example, directed accuracy of 56.6 for HDP-CCG and 50.9 for the comparison system on Slovene under this protocol. On Spanish, the corresponding scores are 62.1 and 67.2. These cases show that the relative ordering depends on the corpus. They concern a specific experimental arrangement on the CoNLL-X Shared Task on Multilingual Dependency Parsing.

The Wall Street Journal comparison asks how systems behave when the evaluation includes longer sentences. On the length 10 evaluation, Naseem’s universal rules yield 71.9, the English-specific rules yield 73.8, and HDP-CCG yields 68.2. On the evaluation through length 20, the universal-rule score is 50.4 and the English-rule score is 66.1. HDP-CCG reaches 64.2. The relative position of HDP-CCG thus changes with the length bound, particularly against the universal rules. The competitor is described in Using Universal Linguistic Knowledge to Guide Grammar Induction.

Wall Street Journal evaluation through length 20, directed dependency accuracy

HDP-CCG finishes above the universal-rule system and below the English-specific system.

Wall Street Journal evaluation through length 20, directed dependency accuracyNaseem universal rules: 50.4Naseem universal rules50.4HDP-CCG (this paper): 64.2HDP-CCG (this paper)64.2Naseem English rules: 66.1Naseem English rules66.1
The numbers
System or settingdirected dependency accuracy %
Naseem universal rules50.4
HDP-CCG (this paper)64.2
Naseem English rules66.1

The authors also change the training length. When they include sentences through length 20 in training, they report a directed accuracy of 71.9 on the length 10 Wall Street Journal evaluation. In the paper’s comparison, exposure to longer training sentences helps on shorter inputs. This is a separate question from how scores change when the evaluation bound itself is extended. It tests what evidence the learner receives during induction while preserving the shorter target evaluation.

A further Wall Street Journal experiment compares two approaches that both use CCG. Following Boonkwan and Steedman’s setup, the authors train on sections 02-22 and evaluate on WSJ10 section 23. HDP-CCG scores 68.4 in directed accuracy. Boonkwan and Steedman achieve 74.5 with their full questionnaire and 68.2 with the first 14 questions. Those questions concern such properties as the positions of subjects, verbs, objects and modifiers. In this experiment a lexicon induced from tagged text performs close to the questionnaire system with the shorter set of linguistic prompts. The fuller linguistic specification yields the highest reported score in this comparison.

Other CoNLL-X results and Hebrew

The comparison with Gillenwater and colleagues uses length 10 CoNLL-X sentences from the training split to learn the grammar and length 10 sentences from the test split to evaluate it. This split differs from the PASCAL setup, and the paper notes that the corpora also differ for many languages. Its comparison table reports 73.2 for HDP-CCG against 48.6 for Gillenwater’s system on Japanese, and 64.1 against 60.2 on Dutch. For the Wall Street Journal entry in that table, the figures are 56.2 and 47.5. The British-style abbreviation G10 in the paper identifies the comparison system, and the scores all measure directed accuracy under the split described for that table.

CoNLL-X Japanese length 10 test split, directed dependency accuracy

HDP-CCG records the higher attachment score under the same training and test length restriction.

CoNLL-X Japanese length 10 test split, directed dependency accuracyGillenwater and colleagues: 48.6Gillenwater and colleagues48.6HDP-CCG (this paper): 73.2HDP-CCG (this paper)73.2
The numbers
System or settingdirected dependency accuracy %
Gillenwater and colleagues48.6
HDP-CCG (this paper)73.2

On Goldberg’s Hebrew corpus, the authors report 62.1 directed accuracy for the length 10 collection, containing 7,253 tokens, and 59.6 for the length 15 collection, containing 21,422 tokens. They train and evaluate using the sentences in each length-bounded collection. Changing the bound affects both which sentences supply training evidence and which attachments are evaluated. The Hebrew figures describe each configuration as a whole.

The authors also report a range for running time on their length 15 corpora. Depending on corpus size, training and testing take between one minute and three hours on a 12-core machine. That figure describes the cost of running the implemented grammar and inference procedure on the paper’s data. The evaluation of larger category spaces remains outside that measurement.

What the ablations show

What improves when the estimates are shared?

The most direct controlled comparison in the paper holds the Argument Model factorization and induced grammar fixed while changing the estimation procedure. The maximum-likelihood variant uses its local estimates with the small rule floor. HDP-CCG lets estimated preferences for allowed categories and terminals depend on shared distributions. The experiments support the claim that the hierarchical package improves attachment accuracy over the simpler estimator within this grammar. The largest gains can occur in settings where maximum likelihood performs poorly, as the Arabic chart illustrates.

That comparison identifies a useful change in the way the parser learns from sparse evidence. The mechanism gives a frequent global category a way to influence analyses for a parent with little local support. A previously poor estimate can improve because the learner gains evidence from other contexts. Conversely, local counts can sustain a parent’s preference when the corpus-wide distribution is a poor description of that parent. This mechanism explains why the authors focus on sharing as a source of the improvement. The experiment changes an estimation package, encompassing the hierarchical prior and variational training, so the gain belongs to that package as tested.

The earlier BH entry gives context for the change in factorization. The maximum-likelihood Argument Model surpasses it in some settings and performs much less successfully in others. The hierarchical version is more consistently competitive. The earlier system also used its own weighted top-candidate scheme. A comparison with BH therefore involves more than asking whether choosing one category is preferable to generating head and sister categories separately. The paper’s strongest controlled result concerns what hierarchical estimation adds once the argument factorization is in place.

The concentration sweep shows that the amount of sharing matters. The Arabic results favor the quadratic setting by a wide margin over the weaker settings, and the table as a whole exhibits varying preferences across corpora and evaluation lengths. The shared base has an estimated distribution of its own. Giving it more weight can help when local counts are unreliable, while corpus-specific distributions still need room to represent their own syntactic preferences. The authors also point out that the concentration affects convergence, which can contribute to the spread in results across settings. They report deterministic initialization, so repeated runs with the same setting do not introduce variation from random starts. The sweep describes sensitivity to settings and their training behavior.

What the length comparisons establish

One length analysis expands the Wall Street Journal evaluation from the shorter restriction to the longer one. The universal-rule dependency system loses much more accuracy than HDP-CCG in that comparison. The English-specific rule system also drops, while retaining the highest value among the systems in the length 20 chart. This supports the authors’ claim of relative robustness on this data, particularly against the universal-rule baseline. Because the longer evaluation is defined by a length bound, its score summarizes the resulting mix of sentences. The paper gives an aggregate comparison at each bound.

The other analysis changes the training inputs and asks whether shorter sentences benefit. The length 10 Wall Street Journal score improves when the learner receives training sentences through length 20. A plausible interpretation is that those sentences supply useful examples of structures and categories shared with shorter ones. The evidence for that interpretation comes from the improvement on the same short evaluation with longer training material. The experiment does not identify which additional sequences or categories account for the improvement. The authors contrast the pattern with earlier dependency induction work by Spitkovsky and colleagues, which they describe as finding degradation when training included longer sentences.

The comparisons with rule-guided systems also show what happens when the competitors receive different linguistic information. On the length 10 Wall Street Journal evaluation, Naseem’s English-specific rules do best among the rule sets reported. The English-specific score is 73.8, compared with 71.9 for the universal rules and 64.9 with the rules attributed to Druck and colleagues. Those are changes to the comparator’s rules, not to the CCG learner. Likewise, the questionnaire experiment changes the knowledge available to Boonkwan and Steedman. Its first 14 questions yield 68.2 and the full questionnaire yields 74.5 on WSJ10 section 23. The additional questions cover such phenomena as negation placement, dative shift and omitted subjects. The comparison shows the value of a richer hand-built inventory in that setup and gives a point of reference for what the induced inventory can achieve.

What appears in the learned lexicons

The lexicon analysis reads the highest-weight derivations to see how often a broad tag is assigned a given category. It is an examination of the structures the system actually selects, instead of the full inventory of categories it considered possible. The paper presents partial lexicons for five languages, grouping the inspection around verbs, adpositions, nouns and adjectives to make patterns visible across corpora.

The Arabic analyses give verbs categories consistent with both subject–verb–object and verb–object–subject orders. The observation concerns the range of analyses the system chooses. In particular, a grammar with separate categories can assign different directional requirements to verbs where the corpus supports different patterns. In Czech, the categories (S\S)/N and (S/S)/N both describe an expression that first takes a nominal to its right. Their results differ in which side they expect their verbal target. This accounts for the learner’s analyses of prepositional phrases occurring before and after verbs. The category notation preserves both the adposition’s nominal argument and the phrase’s later role as a modifier.

The Japanese case shows how the same flexibility can support an unintended analysis. A postposition with category (S/S)\N takes a nominal from its left and produces a modifier looking for a verbal expression to its right. This is a plausible option for an expression before a verb. When the learner assigns it to a nominal case particle, the noun is consumed inside that modifier constituent. The verb can then be assigned S without taking the noun directly as an argument. The lexicon also shows adjectives assigned S/S, which the authors interpret as misanalysis. These errors are related to the choice of how to represent nominal particles and what arguments the verb is expected to supply a place for.

The two English corpora give a view of how induced categories respond to register. In Childes, whose data include informal speech and instructions addressed to children, the learned categories suggest that overt subjects are often absent. The Wall Street Journal categories more consistently require a subject. This comparison makes the scope of the learned regularity visible. The entries describe how the learner analyzes usage in each corpus. The observed differences can survive even though the corpora are both English and share the same underlying induction rules.

Limitations

Limits the authors identify

The implemented CCG is deliberately restricted. It uses the atomic categories S and N, caps lexical arity, and uses basic composition without type-raising. The authors describe the fragment as context-free in weak generative capacity. Their implementation returns local dependencies. Recovering the non-local relations they discuss for control, binding and extraction would require information inside lexical categories that identifies an argument with a position elsewhere in the derivation. The paper points to coindexation, in which positions receive a common index to show that they refer to the same argument. The experiments do not implement those links.

The statistical formulation is broader than the tested category inventory. The authors describe potential extensions that could grow the grammar during training or use more expressive combinators. In the experiments, the set of permitted categories and rules is finite and fixed during estimation. The emissions likewise operate on tags. The authors leave richer lexicalization and combinators for future work. The reported running time and accuracy apply to the bounded fragment and the available corpora.

The authors also discuss how much detail their automatic proposals can capture. A questionnaire can give a grammar explicit properties for rare phenomena, even where corpus evidence is hard to detect. Omitted subjects are one example. If a grammar allows a complete utterance to have a category such as S\N or S/N, it can preserve a verb category with a subject slot when that subject is unspoken. The implemented root restriction requires a complete S for sentences containing a main verb. This is a reason the authors consider prior knowledge about omitted subjects potentially important for some languages.

A further limitation concerns the reference annotations. For various constructions, treebanks make choices about heads that are difficult to reconcile with a uniform CCG-to-dependency conversion. The paper adapts coordination because the grammar identifies that construction through dedicated rules. Broader agreement over verb clusters, particles and embedded clauses is outside its scope. The Slovene results add a difference in the number of roots, which constrains the maximum agreement attainable by an analysis required to connect the whole input in one tree. These are specific sources of uncertainty in interpreting attachment accuracy across corpora.

Limits visible in the experimental design

The learner receives tagged text and linguistic information about groups of tags. The results therefore address induction conditional on that input. Both the initial candidates and the constraint on main-verb sentences depend on the tags and their mapping. It is a separate question how a system would learn from words alone, or how errors in assigning tags or grouping them would propagate through the lexical proposals. The experiments establish performance with each corpus’s supplied tags and the mappings used by the authors.

The comparisons use several distinct data protocols. In PASCAL, the learner sees the unannotated sequences it will later parse for scoring. The CoNLL-X comparison with Gillenwater and colleagues evaluates on a separate test split. Even for evaluations that share a language label and a sentence-length bound, corpus composition, head conventions and access to evaluation inputs can differ. Comparisons within each reported protocol are consequently more informative about relative accuracy than raw differences across the tables.

The long-sentence evidence is strongest within the bounds and setups used. The Wall Street Journal comparison gives a concrete example of a smaller decline than a universal-rule dependency learner when the evaluation extends to longer sentences. The longer-training experiment also gives evidence of a benefit for short Wall Street Journal inputs. Generalizing those findings to substantially longer sentences, different registers or other added training data would require a new comparison. The scores summarize the combined effects of sentence difficulty, the available data and the systems’ structural assumptions.

The lexicon analysis is informative because the categories have a syntactic interpretation. Its frequencies are still produced by the learner’s selected derivations. A category may be frequent because it captures a genuine regularity, because competing categories were difficult to induce, or because it permits a convenient analysis downstream. The Japanese errors show how a coherent category can be part of the wrong analysis. Inspection can find such patterns, while a quantitative estimate of how frequently the learner recovered the intended argument and modifier categories would require a separate reference at that level.

Finally, attachment accuracy checks the directed head of a word. It does not by itself validate the argument–modifier distinction or the full combinatory derivation. The paper supplies evidence that the richer representation supports competitive attachments and makes its lexical hypotheses inspectable. The reported evaluation leaves the accuracy of those finer-grained hypotheses to qualitative comparison.

What came after

A later grammar-induction study investigates a depth bound on structures licensed by a probabilistic context-free grammar. Its subject is a different way to constrain the search for latent syntax. Bisk and Hockenmaier use directional categories and combinatory schemas to restrict what can combine, then share statistical evidence across argument choices. A depth bound restricts the structures a grammar can explore along another axis. The later work cites the CCG paper while pursuing induction in the context-free setting. The citation establishes the connection between the studies, while the later work’s stated focus is depth restriction. Unsupervised Grammar Induction with Depth-bounded PCFG.

Another citing study brings CCG’s primitive categories into supertagging, the task of assigning detailed lexical categories to tokens. This returns to the structure inside a category that Bisk and Hockenmaier exploit. Their learner builds complex categories from atomic types and uses the internal structure to constrain derivations. The later study’s stated focus is the use of CCG primitives in the category-assignment task itself. That places the emphasis on how to represent and predict the lexical category, the object that the induction paper learns and then uses to construct a parse. Supertagging with CCG primitives.

Cite

Cite as Yonatan Bisk and Julia Hockenmaier. 2013. An HDP Model for Inducing Combinatory Categorial Grammars. Transactions of the Association for Computational Linguistics.

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

@article{bisk2013hdp,
  title = {{An HDP Model for Inducing Combinatory Categorial Grammars}},
  author = {Yonatan Bisk and Julia Hockenmaier},
  journal = {Transactions of the Association for Computational Linguistics},
  year = {2013},
  doi = {10.1162/tacl\_a\_00211},
  url = {https://doi.org/10.1162/tacl_a_00211}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bisk-2013-hdp-model-inducing-combinatory-categorial/