Squibs: On the Universal Generation Problem for Unification Grammars
Paper · 2014 · Jürgen Wedekind
Summary
A grammar can describe how a sentence is built and record information about that sentence in a feature structure. Such a structure connects values through named attributes. Generation starts with the structure and asks for a sentence that the grammar associates with it. Jürgen Wedekind studies the existence question behind that task. Given the grammar and the desired structure, can an algorithm always determine whether any sentence realizes it? Earlier work gave a positive answer for acyclic feature structures in Lexical-Functional Grammar and PATR. Wedekind proves that allowing cycles makes the general problem undecidable. A cycle occurs when following attributes can bring the traversal back to a node it has already visited.
The proof starts with an undecidable question about context-free grammars. Do two such grammars generate any string in common? Wedekind annotates each grammar so that its derivations record the generated string as a path through a feature structure. The paths start from a shared point and use the same labels for the same terminal symbols. Each grammar uses its own attribute to designate the end of its path. When their structures are combined, the two end attributes lead to the same node exactly when the two strings agree in full.
A new start rule combines the two derivations and supplies equations that fold their structures together. When the strings agree, the result is a fixed cyclic feature structure consisting of a single node with labeled loops. Every shared string gives the same target, regardless of which derivations produced it. When the strings differ, distinctions survive in the structure determined by the equations. The combined grammar therefore realizes the target exactly when the original languages have a string in common. A procedure that always settled the generation question would also settle the undecidable intersection question.
The constructed grammars satisfy off-line parsability, a condition that keeps recognition and parsing decidable even with cyclic structures. A parser has the terminal string in hand, and its length bounds the syntax trees that the parser needs to consider for these grammars. A generator starts from the feature structure. The folding construction shows how a small structure can correspond to derivations whose size is unconstrained by that structure. The result identifies a condition on which the earlier decidability guarantee depends and explains why a parsing guarantee alone supplies too little control for generation. Parsing
Deep dive: Squibs: On the Universal Generation Problem for Unification Grammars
Wedekind proves that no general algorithm can decide whether a unification grammar generates a sentence from a cyclic feature structure. · about 36 minutes to read
The problem and its context
Generation as a question about existence
A unification grammar associates sentences with feature structures by placing equations on syntactic derivations. The equations can require that several attributes lead to a common value or that part of one structure be identified with part of another. While a syntax tree records how a string was assembled, the accompanying feature structure records the information specified by those equations. The grammar gives a relation between the two kinds of objects. A computational question can begin with either kind.
For generation, the starting point is a desired feature structure. The general question studied here takes both the grammar and the structure as inputs. An answer on the positive side says that there is some terminal string whose derivation delivers the supplied structure. An answer on the negative side says that the entire set of such strings is empty. The task abstracts away from which valid sentence a generator should prefer and how many realizations it should return. It isolates the decision that any general procedure for generation would need to make if it were to settle both successful and unsuccessful requests. Text generation
The word “universal” refers to the range of inputs. One procedure would have to work on arbitrary grammars and feature structures admitted by the formalism. For a positive answer, a derivation can serve as a witness. If a candidate derivation gives the requested structure, the search has established that the output set is nonempty. A negative answer has a different burden. Seeing several unsuccessful derivations leaves open the possibility that another derivation, perhaps a larger one, produces the target. An existence test needs a way to resolve that possibility and terminate.
The relation also specifies a stringent sense of producing the requested structure. The derivation contributes an equation description, and its feature structure is the minimal solution of that description. Minimality matters because equations often permit additional identifications between nodes. Unification may be able to combine a derivation's structure with information supplied from elsewhere. Generation in the paper asks whether the structure determined by the derivation is itself the specified input. That choice defines the problem and later gives the proof its test for whether the two source strings agreed.
A feature structure need only be thought of here as nodes with named outgoing links. A path is a succession of link labels. Different paths can lead to the same node, a property called reentrancy. Acyclic graphs can have reentrancy. Two paths may converge on a node even though following links from that node can never take a traversal back to a node it has already visited. Cyclic graphs permit such a return. In the proof, the decisive step starts from an equality between two paths and uses it to force cycles. Keeping path equality and cyclicity distinct makes that step easier to follow.
What the acyclic case had established
The paper takes Lexical-Functional Grammar, or LFG, and PATR as its starting point. In the style of grammar used in the proof, a context-free derivation supplies the syntactic tree. Feature annotations on the productions contribute the equations for that tree. The purely context-free part is called the skeleton. It specifies which categories and terminals can occur beneath a category, while the annotations govern the accompanying feature structure. This division lets the proof use ordinary context-free grammars as inputs and preserve their rules while changing what their derivations record.
Wedekind and Kaplan had shown that generation from an acyclic feature structure is decidable for LFG and PATR. Their argument concerned the set of all strings related to a particular structure by the grammar. In the acyclic case, that set has a context-free description. The existence question can then be answered by testing the resulting language for emptiness. That route is stronger than searching through a succession of plausible sentences. It gives a terminating decision by describing the set of candidates in a formalism with a decidable emptiness problem.
Their earlier work also gave an example in which a cyclic input was associated with a language outside the context-free class. The example identified a limit of the previous description. By itself, a language's failure to be context-free leaves open whether its emptiness can be decided by some other means. The follow-up question is therefore about what can be decided across all cyclic inputs. Describing some output languages and deciding whether every possible output language is empty are different demands.
The new argument uses another fact about context-free grammars. Emptiness is decidable for a single context-free language, while emptiness of the intersection of two arbitrary context-free languages is undecidable. The intersection test asks whether the independent grammars can both produce the same string. That is the question the feature annotations will express. Its difficulty comes from requiring agreement between the whole outputs of two derivations, even though each source grammar is individually context-free.
Why the parsing guarantee matters
Parsing approaches the grammar relation from the string side. It starts with a terminal string and asks whether the grammar derives it, or which analyses the grammar gives it. The paper discusses off-line parsability as a condition that is typically expressed by a bound on the size of candidate syntactic trees in terms of the string length. Once the string is known, this is a bound on the trees to consider. Feature structures in turn have their size bounded by the trees from which they are obtained. The paper explains that off-line parsability suffices for decidable recognition and parsing even in the cyclic case.
This line of reasoning has no length to work with at the start of generation. The given object is a feature structure, and the length of any string associated with it is part of what the procedure has to discover. To repurpose the parsing bound, a generation procedure would need a way to obtain relevant control from the structure. The acyclic result uses a context-free description to do that. Its proof does not require off-line parsability as a condition on the grammar.
The distinction matters for reversible uses of a grammar. The same relation can be read in both directions without the two directions inheriting the same decision procedure. A bound that helps a parser can coexist with substantial freedom in the trees associated with a given feature structure. Wedekind's construction tests this point on grammars whose underlying derivations remain within the familiar context-free setup.
The method, step by step
Making string agreement into a generation request
The proof translates a question about a pair of context-free languages into a question about one unification grammar. The input pair can be arbitrary within the normal form used in the paper. From the pair, Wedekind constructs a grammar and a target structure. The grammar first builds a string from each language. It stores both strings in feature paths so that equality can be expressed by the two paths arriving at the same endpoint. A newly added rule uses this endpoint equality to determine whether the structure folds all the way down to the target.
The challenge is making a single generation input test for any shared string. The common string, if it exists, is unknown. A target that retained that string's labels in a fixed order would test only for the specified candidate. A target that retained the branching of its derivation would also depend on a particular analysis. Wedekind first makes the string recoverable from the feature structure, then uses the folding equations to remove the distinctions between successful witnesses. For an unsuccessful pair of strings, the equations leave a distinction that prevents the resulting structure from being exactly the target.
Turning language intersection into a generation test
The steps in order.
The steps describe the reduction and how to reason about a candidate derivation. They do not constitute a terminating search through all candidates. Given the pair of source grammars, the annotated rules and target can be written down without knowing whether the source languages intersect. That feature of the construction is what lets a hypothetical decision procedure for generation answer the original question.
The derivation relation and the source grammars
Wedekind writes the relation between the terminal string and its feature structure as follows.
Δ_G(s, F) ⇔ G derives s with F
Here G is a unification grammar, s is a string of terminals, and F is a feature structure. Δ_G names the derivation relation for that grammar. The parentheses enclose its arguments, and ⇔ means the relation holds exactly when the stated derivation exists. A terminal is a symbol that appears in the finished string. The grammar can of course use nonterminal category symbols while building its tree.
For a fixed choice of G and F, the decision problem concerns the following set.
{s | Δ_G(s, F)}
The braces enclose a set. The bar is read as “such that.” The variable s ranges over terminal strings, and the expression on the right of the bar keeps precisely those that G derives with F. The paper asks whether this set is empty. Its reduction builds a set of this form whose emptiness tracks that of a context-free intersection.
The source languages can be taken to exclude the empty string. The paper uses Chomsky normal form for the source grammars, which gives the construction a binary case and a terminal case.
G = (N, T, S, P)
In this definition G denotes a source context-free grammar. N is its nonterminal vocabulary, T its terminal vocabulary, S its start symbol, and P its set of productions. The tuple groups the components, and = gives the definition. The source grammar is distinct from the final unification grammar, for which the paper also uses G when the context is clear.
A → BC
Here A, B, and C are nonterminal categories in N. The arrow says that a node of category A can have daughters of categories B and C, in that order. The juxtaposition BC represents the ordered pair of daughters in the rule. The terminal yield of this tree fragment is the string from the left daughter followed by the string from the right daughter.
A → a
Here A is a nonterminal, a is a terminal in T, and the arrow gives a production whose yield is that terminal. These productions provide the starting case for the string encoding. A derivation builds a string by using binary productions to arrange subtrees and terminal productions to supply the symbols at their leaves. Neither this step nor the annotations involve training on data.
Giving a terminal its own path
LFG distinguishes a constituent structure, abbreviated c-structure, from a functional structure, abbreviated f-structure. For this construction, the c-structure is the syntax tree built by the context-free productions. The f-structure is the graph determined by the feature equations associated with that tree. Those equations, taken together for a complete derivation, make up its f-description. The minimal solution makes the identifications that follow from the equations. This is the f-structure compared with the generation input.
A feature path reads from left to right. Starting at a node, follow the link named by the first attribute, then follow the next attribute from the node reached, and continue for the rest of the path. In the paper's rule annotations, ↑ refers to the feature-structure element associated with the mother category of the production. ↓ refers to the element for the daughter under which an annotation is written. In a terminal production the equation in the proof uses the mother's element as the starting point.
For the first annotation scheme, the terminal equation is as follows.
(↑ B a) = (↑ E)
The symbol ↑ denotes the mother element. B is the attribute for the beginning of the string segment, a is both the terminal in this production and the label of the next link, and E is the attribute for the end of the segment. Parentheses delimit the paths. The equality makes the node reached by taking B and then a the same as the node reached by taking E directly from the mother. Here the feature label B is distinct in role from the category letter B in the binary production.
This equation gives the basic unit of the encoding. The value of the beginning attribute is a position at which the terminal can be read. Following the edge labeled by that terminal reaches the position designated by the end attribute. The end attribute is a second way to refer to the position. It does not contribute a terminal to the string. The paper uses the terminal symbols themselves as labels for readability. A separate set of feature labels paired with those symbols would serve the same purpose.
In the sample structures in Figure 1, labels such as b, c, and d occur on links used to encode terminals. Links labeled by beginning, end, left, and right have distinct jobs. They connect the points needed to read the yield and record the tree's composition. Reading all the labels as though they belonged to one string would mix these two parts of the construction. The string is read along its terminal-labeled path from the beginning position to the designated end.
Joining the paths under a binary production
The binary production has to concatenate the strings encoded by its two daughters. It first makes the feature elements for the left and right daughters accessible from the mother.
(↑ L) = ↓
Here ↑ is the element for the mother category, L is its left attribute, and ↓ is the element for the left daughter. The parentheses enclose the path from the mother, and = identifies its value with the left daughter's element.
(↑ R) = ↓
Here ↑ is again the mother element, R is its right attribute, and ↓ now refers to the right daughter. The placement of an annotation under a daughter determines the referent of ↓. The equality makes the right daughter accessible from the mother by the single attribute R.
The full string covered by the mother begins where the left daughter's string begins.
(↑ B) = (↓ B)
B is the beginning attribute on each side. In this annotation, ↑ refers to the mother and ↓ to the left daughter. The equality shares their beginning position, so the mother has direct access to the first position of the left daughter's path.
The mother's full string ends where the right daughter's string ends.
(↑ E) = (↓ E)
E is the end attribute, ↑ is the mother element, and ↓ is the right daughter in this equation. The right daughter's end therefore also designates the end of the yield for the whole subtree.
The equation that actually joins the segments is attached to the right daughter.
(↑ L E) = (↓ B)
From the mother ↑, L reaches the left daughter and E selects that daughter's end position. On the other side, ↓ is the right daughter and B selects its beginning. The equality gives the two paths a common value. A traversal that has finished reading the terminals from the left daughter is then at the position from which the terminals from the right daughter can be read.
The equations give the reader a way to verify the construction by induction on the tree. At a terminal production there is an edge for the terminal between the beginning and the end. At a binary production the mother uses the left beginning, the concatenation point, and the right end. If its daughters encode their respective yields, the mother encodes the concatenation of those yields in their syntactic order. The path works the same way when the tree has different branching but yields the same string. The left and right attributes can still record that difference in the f-structure.
Keeping the second encoding partly separate
Each source grammar can be equipped with either annotation scheme. The paper calls the resulting grammars type 1 and type 2. Type 2 uses the same beginning attribute and the same terminal labels as type 1. Its left, right, and end attributes carry primes. The binary annotations are the same in form as those above, with the following replacement of attribute names.
(L, R, E) ↦ (L′, R′, E′)
The symbols on the left are the type 1 left, right, and end attributes. The primed symbols on the right are their type 2 counterparts in the same order. The arrow ↦ denotes the replacement. The mapping applies to each occurrence of those attribute names in the binary annotations. The grammar's categories and terminal sequence stay as they were, and B continues to mean beginning.
The type 2 terminal rule follows the same convention.
(↑ B a) = (↑ E′)
Here ↑ is the element for the mother category, B selects the beginning, a labels the terminal edge, and E′ designates the endpoint in type 2. The equality makes following the terminal edge from the beginning reach that endpoint. The primed attribute lets the combined grammar refer independently to the ends recorded by its two source grammars.
Figure 1 presents both encodings for a sample constituent tree. They share the scheme for reading the terminals and differ in the names used to represent tree relations and end positions. The shared vocabulary is deliberate. When the two structures are later unified, the terminal paths must coincide wherever their symbols coincide. Independent labels for the tree relations allow those paths to be compared without also requiring the source syntax trees to have the same branching.
The paper uses a constant root for the element associated with the top of a constituent tree. In the minimal f-structure from a string grammar on its own, the path from its beginning leads to its endpoint exactly when the sequence of terminal labels spells the yield. The notation for both cases can be given together.
(root B s′) = (root X) ⇔ s′ = s
Here root is the element associated with the top of the tree, B leads to the beginning of its yield, and s′ denotes a candidate sequence of terminal labels to follow from there. X stands for E in type 1 and E′ in type 2. The s on the right is the actual terminal yield. The equality on the left compares endpoints of paths. The equality on the right compares strings. ⇔ gives both implications. Reading s reaches the endpoint, and a sequence reaching that endpoint in the minimal structure must be s.
The minimal structures at this stage are acyclic and single-rooted. Concatenation identifies the end of a left segment with the beginning of its right neighbor in the combined path. It leaves the path following the yield towards its end. The equations can also give multiple paths to the same position, since a mother and a daughter may refer to a common boundary. This sharing is consistent with acyclicity and supplies the connections needed for the induction.
The annotated grammars keep the language of their source grammar. The skeleton is unchanged, so any yield of an annotated derivation still belongs to the source language. Conversely, the annotations can be satisfied for each source derivation. They impose equations between feature paths and introduce no atomic values that could disagree when paths are identified. The paper expresses the language equality as follows.
L(G) = L(String₁(G)) = L(String₂(G))
In this formula the outer L denotes the terminal language of a grammar. It has a different role from the unprimed left attribute in a feature path. G is the source context-free grammar, and String₁(G) and String₂(G) are its type 1 and type 2 annotations. The equalities concern the sets of terminal strings. The associated feature structures can differ because of the change in attribute vocabulary.
Combining derivations and comparing their yields
Now take two source grammars. The first is annotated using type 1 and the second using type 2. The nonterminal names are made disjoint by renaming wherever needed. This keeps the productions from one source from being used inside the subtree that is supposed to belong to the other. The terminal labels still have their shared interpretation. Agreement between the source languages concerns their strings, so a terminal available to both grammars must keep the same identity in both encodings.
Gᵢ = (Nᵢ, Tᵢ, Sᵢ, Pᵢ)
The index i selects the first or the second source grammar. Nᵢ and Tᵢ are its nonterminal and terminal vocabularies, Sᵢ is its start symbol, and Pᵢ is its production set. Gᵢ denotes the grammar made from those components. The final grammar takes the terminal vocabulary from the union of the two sources and adds a fresh nonterminal for the combined start. Its productions include the annotated source rules and a production joining the two starts.
S → S₁ S₂
S is the new start symbol. S₁ and S₂ are the starts of the first and second grammars, and the arrow places them as the left and right daughters in that order. Each daughter subtree is a derivation in its own annotated grammar. The terminal yield of the combined tree is the first yield followed by the second. Its concatenation boundary is specified by the derivation, even if the visible string contains no separate boundary label.
The new rule identifies each daughter's feature element with the mother's.
↑ = ↓
↑ denotes the mother feature element of the start production. At each daughter, ↓ denotes that daughter's own element. Using this equation at both daughters shares their roots with the mother's root. In particular, both string encodings now have the same value for B.
The effect of the identification is easiest to see by following terminal paths from that common beginning. While the strings have a common prefix, the two grammars ask for the same labels in the same order. Each attribute at a node has a single value, so the paths for that prefix coincide. If the strings diverge, the next terminal labels take them along different links. The equations for the string encodings provide no basis for merging those different continuations. If one string ends at the common prefix and the other continues, its endpoint is at the shared position, while the other endpoint is farther along the longer path.
The source annotations keep the branching information separate by using L and R for one derivation and L′ and R′ for the other. The endpoint labels E and E′ likewise designate the end of each yield independently. As a consequence, unifying the roots does not identify two endpoints simply because they have the role of “end.” They coincide when the whole terminal path coincides. Before adding the effect of the folding equations, the situation is as follows.
(root E) = (root E′) ⇔ s₁ = s₂
root is the shared top element, and E and E′ lead to the endpoints designated by the first and second encodings. s₁ and s₂ are their respective terminal yields. The equality of paths on the left is an equality forced in the unified minimal solution at this stage. The equality on the right is equality of the complete strings. ⇔ says that each condition entails the other in the construction.
The restriction to the minimal solution is important here. An arbitrary solution could make separate nodes identical by adding information beyond what the equations require. The proof uses the equalities actually determined by the descriptions. As long as the feature annotations have contributed only their own kind of tree attributes and the two roots have been shared, the terminal paths give the common ground for the crucial comparison.
Specifying the target before knowing the witness
Sharing the roots completes the comparison but leaves the successful pairs with different feature structures. If both yields agree, the unified graph still contains their terminal path. It also retains the features representing how each tree was built. The reduction needs a fixed target for all successful derivations in the combined grammar. Wedekind makes the target a feature structure with a single node and a collection of self-loops. A self-loop is a link whose source and destination are the same node.
{B, L, R, L′, R′, E, E′} ∪ (T₁ ∩ T₂)
This expression gives the labels on the target's loops. The set in braces contains the shared beginning attribute B, the left and right attributes of each scheme, and their separately named endpoints. T₁ and T₂ are the source terminal vocabularies. The intersection sign ∩ selects the terminals available to both, and the union sign ∪ adds those terminal labels to the set of structural attributes.
|T₁ ∩ T₂| + 7
This is the number of cycles in the target F. The bars give the cardinality of the shared terminal vocabulary, and + 7 includes the loops for the structural attributes listed above. Every cycle in the target has length 1, because all the links return directly to the single node. The target is finite even though a traversal can follow its loops repeatedly.
The construction uses the shared vocabulary without asking which shared terminals can occur in an actual common string. A terminal in both vocabularies can receive a loop even if neither of the selected derivation trees uses that terminal. The start annotation supplies the relevant loops uniformly. This makes the test independent of the witness. Whichever common string the source grammars happen to generate, its path labels are already among those for which the folding rule provides loops.
The absence of atomic values makes the equations especially simple. It is also compatible with adding an atomic value on a separate attribute at the top. The paper gives the option of adding an equation at the start rule and the corresponding feature to the target.
(↑ D) = V
↑ is the start production's mother element, D is the added attribute, and V is the fixed atomic value. The equality assigns that value to the attribute. With the same feature included in the target, the argument about the equality of the terminal endpoints still governs whether the folding takes place.
Adding the equations that fold the structure
The first daughter of the start production contributes an equation that makes an E path return to the root.
(↑ E E) = ↑
↑ is the shared root element used by the start rule. The repeated E on the left follows the end attribute from the root, then follows that attribute again from the endpoint. The equality makes the destination after the second step the original root. In Figure 2 this gives a return through the first grammar's endpoint. By itself it gives no equation identifying that endpoint with the root.
The other daughter contributes equations at a position reached by following the type 2 end attribute and then the unprimed end attribute. The paper spells out the equations for the structural labels and supplies the same pattern for each shared terminal. They can be written together as follows.
(↑ E′ E) = (↑ E′ E x) for x ∈ {B, L, R, L′, R′} ∪ (T₁ ∩ T₂)
↑ again denotes the root. The path on the left follows E′ and then E. The path on the right follows the same steps before taking attribute x. The sign ∈ says that x ranges over the displayed set of labels. The braces contain the beginning, left, and right attributes used in the string encodings, and ∪ adds the labels coming from the intersection ∩ of the terminal vocabularies T₁ and T₂. Each instance of the equation places an x loop at the destination of E′ E.
The comparison hinges on the difference between where those loop equations operate and where the first return equation operates. The first equation makes E E return to the root. The loop equations operate at the destination of E′ E. If the destinations of E and E′ are the same, then taking E again from either one must reach the same place. In that case the start rule puts all those loops at the root. If the endpoints are distinct, the start rule can satisfy its equations with a separate node supporting the loops.
Following the equations when the strings agree
Suppose the two derived strings agree. The two terminal paths from the common beginning coincide all the way to their endpoint. Applying the unprimed E to that endpoint must take the traversal back to the root, by the first return equation. The same step when reached through E′ therefore ends at the root as well. The loops contributed at the destination of E′ E are now loops at root.
In particular, following B from the root returns to the root. Every terminal that appears in the common string has a loop there because it belongs to both vocabularies. Starting with B and then following the labels of the string therefore stays at the root. The source annotations equate the destination of that path with the type 1 end value and the type 2 end value. Both end attributes consequently loop at the root too. This accounts for the two end labels that were absent from the general family of loop equations.
The rest of the structure folds with them. A daughter accessible through a left or right attribute has become identified with the root. Continuing through left and right attributes in either encoding has the same effect. The positions in the string chains come from the beginnings and terminal paths of those tree nodes. They too have been identified with the root. All the distinctions that the successful derivations could have carried in their tree shapes and string positions have therefore disappeared from the minimal solution. What remains is exactly the target with the specified labels.
There are two aspects to that exactness. The equations require all the target links, including loops for shared terminals absent from the chosen string. The derivations also introduce no additional terminal labels outside the target, because a string generated on both sides uses only common terminals. With all their feature elements identified at the root, the descriptions do not need any further nodes. The same minimal solution works across the derivations of every shared string.
Following the equations when the strings differ
For unequal yields it helps to reason first about the equations contributed by the string grammars with their roots unified. These descriptions contain the paths to their own endpoints, but they do not supply the start rule's extensions E E and E′ E. Each designated endpoint is a position in the terminal encoding. The terminal links at such positions, where present, carry terminal labels. Those links play a different role from the unprimed structural end attribute. The fresh extensions can therefore be introduced by the start annotations.
For the E E path, the equation attaches an E link at the first endpoint and assigns it the root as its destination. At the second endpoint the loop equations attach an E link whose destination can remain a separate node. Giving that separate node the required loops satisfies the equations there. Neither operation has to identify the two terminal endpoints. Equivalently, one can exhibit a solution of all the equations with those endpoints still distinct. Their equality then cannot be required by the description.
This is why the start annotations function as a conditional folding operation without an explicit conditional in the grammar. They are the same equations in every derivation. Only the pre-existing identification of the two endpoints can make the positions E E and E′ E share their value. When the strings differ, the minimal solution retains distinctions absent from the target. It properly subsumes the target, in the sense that it is less specific about which paths must coincide. It can admit a further identification of nodes that yields the target, while the derivation's own minimal solution keeps them apart.
An independent requirement that the derivation be consistent with a supplied structure would therefore ask a different question. Here the derivation must determine the target. A pair of unequal strings cannot qualify merely because additional equalities could collapse the feature structure further. Equality with the minimal solution makes the collapse evidence of agreement between the two encoded strings.
Transferring the undecidability result
Combining both cases gives an exact description of the strings realized with the cyclic target.
{s | Δ_G(s, F)} = {ww | w ∈ L(G₁) ∩ L(G₂)}
The left side is the set of terminal strings s that the combined grammar G derives with target F. The expression ww denotes concatenation of a string w with itself. L(G₁) and L(G₂) are the terminal languages of the source grammars, ∩ is their intersection, and ∈ restricts w to that intersection. The bars in the set expressions are read as “such that.” The equality says that all and only the doubled common strings realize the target.
For the inclusion from left to right, any successful derivation has a subtree from each source. Exact realization of F entails agreement between their strings, so the common string belongs to the intersection. For the inclusion from right to left, a string in the intersection has some derivation in each source. The annotations preserve both derivations. Taking those derivations under the new start rule forces the common endpoint and then the complete folding. Neither inclusion calls for agreement about constituent boundaries within the common string.
{s | Δ_G(s, F)} = ∅ ⇔ L(G₁) ∩ L(G₂) = ∅
The symbol ∅ denotes the empty set. The left equality asks whether the combined grammar G derives any string s with F. The right equality asks whether the two source languages have any common member. ⇔ states that the answers to these emptiness questions agree. A decision procedure for the left side, used after the construction on arbitrary source grammars in the stipulated form, would give a decision procedure for the right side. The undecidability of the context-free intersection question rules that out.
Experiments and results
The result and the evidence for it
The paper establishes a theorem through a construction. It has no experimental dataset, train or test split, baseline system, or measured performance score. The source grammars range over arbitrary context-free inputs of the stated form. The evidence comes from following the equations through all possible derivations of the constructed grammar. The sample tree and feature graphs illustrate how those equations work, while the proof supplies the general argument.
The theorem concerns arbitrary LFG grammars and arbitrary f-structures. It says that a general decision procedure for whether the grammar derives any terminal string with the given structure is impossible when cyclic structures are admitted. The paper gives the construction in LFG and explains its relevance to PATR-style systems that associate feature structures with context-free derivation trees. It also extends the argument to Head-Driven Phrase Structure Grammar, or HPSG, on the ground that its devices can simulate the relevant effect of context-free derivation.
The key result about the constructed grammar is sharper than a statement about one possible derivation. The paper characterizes its whole output set at the target. A doubled string is present exactly when its underlying string can be obtained from each of the source grammars. This matters because a reduction requires both directions. If matching yields always gave the target, there would be a witness in the constructed task whenever the source intersection was nonempty. The argument for unequal yields is what prevents an empty intersection from acquiring a spurious witness through folding.
What the figures establish locally
Figure 1 illustrates the relation between the constituent tree and the two feature structures contributed by the string grammars. The left, right, and end links use distinct labels, while the strings can be read using the shared terminal vocabulary from the beginning attribute. The figure concerns a sample derivation. The induction on derivation trees explains why the path construction works regardless of where a tree divides its yield into subtrees.
Figure 2 isolates the functional contribution of the start rule. Its unprimed E path returns from the root through a separate endpoint, while the loops attached through E′ E are shown at a different location. In the target in display (4), the E return is a self-loop. The comparison below reads the path lengths directly from those graph shapes. It describes the structural change used in the proof.
E-only return length at root in Figure 2 and target F
Folding makes the return through an endpoint a direct loop at the root.
The numbers
| System or setting | edges |
|---|---|
| Start-rule contribution in Figure 2 | 2 |
| Folded target F in display (4) (this paper) | 1 |
The unit counts edges on the nonempty return from the root that uses only E. In the start-rule contribution, one edge reaches the endpoint and the next reaches the root. In the folded target, the E edge itself returns to the root. The shorter return records a node identification. It supplies no runtime or efficiency measure. The target's full shape is given by the |T₁ ∩ T₂| + 7 cycles of length 1, with the shared vocabulary determining which terminal labels are present.
The local change in the figure has a global consequence. Once E and E′ identify the same endpoint, the loops placed through E′ E are at the root. They fold both entire derivation encodings, including levels of tree structure that the start rule never names individually. When the endpoints differ, assigning the loops away from the root provides an explicit way to satisfy the equations without that collapse. Thus the feature graph exhibits precisely the difference that the reduction needs.
Recognition and parsing for the constructed grammars
The paper also establishes that the grammars used in the reduction are off-line parsable. Their syntax retains the source productions in normal form and the added binary start rule. For a fixed terminal yield, the syntax trees have their size bounded by the length of that yield. Their feature descriptions come from the annotations on those trees. A parser starting with a particular string can therefore work with bounded candidate structures, even though cycles can appear in the associated f-structures.
The universal generation question still ranges over outputs of unknown length. The target offers no terminal yield length to substitute into a parsing bound. Its terminal loops retain the vocabulary needed for the test while the identities imposed by the proof erase the positions of the witness. They also erase the differences between successful constituent trees. This explains how the constructed grammar can have decidable recognition and parsing while belonging to a class for which no universal generation decision procedure exists.
The result qualifies what an acyclic generation theorem can establish for a grammar that also admits cycles. With an acyclic structure fixed, earlier work gives a decision method for LFG and PATR. With arbitrary cyclic structures among the inputs, the present construction defeats a guarantee across that enlarged domain. These statements concern the range of allowed inputs. They leave room for cyclic instances in which a particular answer is easy to establish.
What the ablations show
The paper has no empirical ablations and instead analyzes what root sharing, endpoint equality, and the start-rule equations each contribute to the reduction.
Root sharing exposes the comparison
The two string grammars can be considered on their own before the new start rule is added. Each has the language of its source grammar and records the yield of its derivation. At this stage the end of one encoding has no reason to share a value with the end of the other. The two structures have separate beginnings. Even when the terminal symbols are the same, corresponding links from different starting nodes do not have to meet.
Sharing the root aligns the beginnings automatically. All common prefixes then give paths that the descriptions share. The different endpoint attributes preserve the ability to ask which positions the two derivations designated independently. That separation explains why a shared prefix is insufficient and full equality suffices. If the two yields coincide, the end paths designate the same position by way of the shared terminal path. If one continues or branches away, at least one of the designated endpoints is elsewhere.
The same comparison shows the role of using separate left and right attributes. They ensure that identifying the roots does not ask two constituent trees to agree on their left and right daughters. The test is about the ordered terminals. Each source grammar can build the common string using its own categories and constituent boundaries. The construction would have a different burden if the trees themselves had to match, since the existence of a common string says nothing about identical derivations.
Folding makes the comparison usable by the existence test
The paper considers stopping after the roots have been identified. That version of the construction already expresses agreement through endpoint reentrancy. It still leaves individual strings and their analyses distinguishable in the resulting f-structures. A generation decision procedure takes a particular structure as its input. An unspecified class of structures whose end attributes happen to share a value would not on its own supply that input.
Adding the folding annotations removes this obstacle. The agreement already represented by endpoint identity now determines whether the graph supplied by the two derivations and start rule reduces to the specific target. The target is formed from the attribute inventory and shared terminal vocabulary. Constructing it requires neither finding a witness string nor anticipating the tree used to derive one. This is the step that turns the local comparison into the input for a universal generation decision.
The proof of the unequal case guards against attributing too much power to the folding equations themselves. If the annotations identified the endpoints directly, they could force the target even for unrelated yields. Wedekind places the return and the loops behind the two endpoint paths instead. Those placements permit a structure in which they act at different points. The resulting comparison shows that the equations amplify a prior equality instead of supplying it unconditionally.
The controlled contrast is between derivations
The matching and mismatching cases use the same grammar, rule annotations, and target. What changes is the pair of terminal yields selected by the subderivations. The proof first traces the identities that must hold for matching strings. It then exhibits how the same equations can be satisfied with endpoints separate for mismatching strings. This gives a controlled logical comparison without changing the construction between cases.
There is also a comparison between cyclicity in the start-rule contribution and complete folding in the final feature structure. Figure 2 already contains a cycle before the full derivation forces the target. The mere presence of that cycle is insufficient to identify a successful derivation. Success requires the loop constraints and the terminal endpoints to force all the relevant positions together. The analysis thus pinpoints the role of the particular cyclic shape used as input.
Limitations
Limits stated by the paper
The theorem concerns a general procedure over grammars and feature structures. Its negative answer depends on admitting cyclic structures as legitimate generation inputs. If the input is restricted to acyclic structures, the previous decidability result still applies to LFG and PATR. An acyclic f-structure can have substantial sharing. The restriction turns on whether a feature path can return to a node already on that path.
The paper gives the full construction for a formalism in which a context-free grammar provides the skeleton. Its explanation of the reach of the result to HPSG relies on that system's ability to simulate the relevant context-free derivations. An application of the proof to another formalism needs the devices used by the reduction, including a way to encode the two strings, share their beginnings, and enforce the folding equations. The result's scope follows from those formal capabilities.
Wedekind identifies a limit of off-line parsability. A bound on constituent structures for a supplied terminal string is enough for the parsing argument. It does not constrain the correspondence between constituent structure and feature structure in the way generation requires. In the constructed grammars, many constituent structures can be identified with the same small target. The paper describes the need for finite control when determining the strings associated with a feature structure. It gives a reason that a condition guaranteeing both directions must do more than supply the usual parsing bound, while leaving the formulation of such a condition open.
The earlier acyclic result also shows that off-line parsability is unnecessary as a condition for decidable generation from acyclic structures. The negative result shows it is insufficient as a condition when cyclic structures are allowed. These two observations use different input domains. Together they explain why the paper treats the parsing restriction and acyclicity as distinct sources of control.
Limits visible in the construction
The reduction varies the grammar with the source instance. Its target also depends on the shared terminal vocabulary. The theorem therefore gives undecidability for the joint problem where a procedure receives an arbitrary grammar and feature structure. A claim about a particular fixed grammar or a particular fixed cyclic structure would require a result about that more restricted family. The construction as given makes no such restriction on its inputs.
The cyclic target is purpose-built. It can absorb the distinctions among the strings and trees needed by the reduction. Its shape shows that a large or complicated target is unnecessary for the argument. It gives no account of how often this kind of unrestricted folding occurs in linguistic grammars. Adding a separate atomic feature, as the paper suggests, leaves the construction valid. That observation addresses whether the graph can contain an atomic value without changing the proof. It does not give evidence about how often practical grammars behave like the constructed examples.
The theorem also depends on the relation being tested. The f-structure associated with a derivation is the minimal solution to its f-description. In the unequal case, a more informative structure can be compatible with the equations even though the required exact target is absent from the derivation relation. A system that accepts a candidate whenever its equations can be unified with the input uses a different criterion. Its behavior cannot be inferred by treating compatibility and exact realization as interchangeable.
The result disposes of a total yes-or-no guarantee across the full domain. It leaves room for specific instances in which a positive answer can be demonstrated directly, for example by producing a derivation that has the required f-structure. The existence of such a witness gives no bound on when a search has gone far enough to conclude that an arbitrary instance is negative. The proof concerns the possibility of always terminating with a correct answer. It supplies neither an estimate of search performance on successful requests nor a measure of how frequently unsuccessful requests arise.
Nor does a cyclic input describe a terminal string by its loops alone. In the target, a succession of terminal labels can be followed repeatedly because the labels loop at its node. Which sequences actually occur is determined by the two source derivations and by exact realization of the target under their combined equations. Treating the feature graph as sufficient to enumerate the grammar's outputs would discard the coupling that the proof establishes. This is where the compact target and the unconstrained search for a witness coexist.
Finally, the proof gives a boundary for universal generation while leaving room for finer restrictions. The graph at the center of the reduction uses an exact pattern of feature-path identifications. The argument establishes what can happen when the formalism admits that pattern. A restricted grammar family might prevent it, or impose a form of control over the derivations that reach a cyclic structure. To establish decidability for such a family would require a separate argument giving a terminating test. The paper's example specifies a mechanism that any proposed restriction would have to account for.
What came after
No later work is documented here as extending, applying, or revising Wedekind's result. The paper closes by identifying an open problem about reversibility. Off-line parsability controls how much structure a parser must consider once it knows the terminal yield. A condition intended to guarantee generation as well must also control the search for yields when the feature structure is the input. The reduction shows why that second requirement is substantive. A fixed cyclic target can encode the demand that two independently derived strings agree, while leaving the identity and length of any witness to be determined.
Cite
Cite as Jürgen Wedekind. 2014. Squibs: On the Universal Generation Problem for Unification Grammars. Computational Linguistics.
@article{jurgen2014squibs,
title = {{Squibs: On the Universal Generation Problem for Unification Grammars}},
author = {Jürgen Wedekind},
journal = {Computational Linguistics},
year = {2014},
doi = {10.1162/coli\_a\_00191},
url = {https://doi.org/10.1162/coli_a_00191}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/wedekind-2014-squibs-universal-generation-problem-unification/