Automatic Inference of Minimalist Grammars using an SMT-Solver
Sagar Indurkhya

TL;DR
This paper presents a new method for automatically inferring Minimalist Grammars by encoding a parser as an SMT-solver system and using annotated sentences to derive grammars that align with modern syntactic theories.
Contribution
It introduces a novel SMT-based parser for Minimalist Grammars and a procedure for inferring grammars from annotated sentences, aligning with current syntactic theories.
Findings
Inferred grammars match syntactic annotations accurately.
Optimal grammars align with contemporary syntactic theories.
Method demonstrates effective grammar inference from annotated data.
Abstract
We introduce (1) a novel parser for Minimalist Grammars (MG), encoded as a system of first-order logic formulae that may be evaluated using an SMT-solver, and (2) a novel procedure for inferring Minimalist Grammars using this parser. The input to this procedure is a sequence of sentences that have been annotated with syntactic relations such as semantic role labels (connecting arguments to predicates) and subject-verb agreement. The output of this procedure is a set of minimalist grammars, each of which is able to parse the sentences in the input sequence such that the parse for a sentence has the same syntactic relations as those specified in the annotation for that sentence. We applied this procedure to a set of sentences annotated with syntactic relations and evaluated the inferred grammars using cost functions inspired by the Minimum Description Length principle and the Subset…
| Sentence | Syntactic Relations | |
|---|---|---|
| “John has eaten pizza.” | agree(John, has), arg(John, eaten), arg(pizza, eaten) | |
| “Has Sally eaten pizza?” | agree(Sally, has), arg(Sally, eaten), arg(pizza, eaten) | |
| “What has John eaten?” | agree(John, has), arg(John, eaten), arg(What, eaten) | |
| “Who has eaten pizza?” | agree(Who, has), arg(Who, eaten), arg(pizza, eaten) | |
| “Sally was eating pizza.” | agree(Sally, was), arg(Sally, eating), arg(pizza, eating) | |
| “Was John eating pizza?” | agree(John, was), arg(John, eating), arg(pizza, eating) | |
| “What was Sally eating?” | agree(Sally, was), arg(Sally, eating), arg(What, eating) | |
| “Who was eating pizza?” | agree(Who, was), arg(Who, eating), arg(pizza, eating) | |
| “Pizza was eaten.” | agree(pizza, was), arg(pizza, eaten) | |
| “Was pizza eaten?” | agree(pizza, was), arg(pizza, eaten) | |
| “What was eaten?” | agree(What, was), arg(What, eaten) |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Speech and dialogue systems
\jmlryear
2019 \jmlrsubmittedApril 6th, 2019 \jmlrworkshopLearnAut 2019
Full Title of Article\titlebreakThis Title Has
A Line Break
\NameSagar Indurkhya\nametag \[email protected]
\addrMIT
Automatic Inference of Minimalist Grammars using an SMT-Solver
\NameSagar Indurkhya\nametag \[email protected]
\addrMIT
Abstract
We introduce (1) a novel parser for Minimalist Grammars (MG), encoded as a system of first-order logic formulae that may be evaluated using an SMT-solver, and (2) a novel procedure for inferring Minimalist Grammars using this parser. The input to this procedure is a sequence of sentences that have been annotated with syntactic relations such as semantic role labels (connecting arguments to predicates) and subject-verb agreement. The output of this procedure is a set of minimalist grammars, each of which is able to parse the sentences in the input sequence such that the parse for a sentence has the same syntactic relations as those specified in the annotation for that sentence. We applied this procedure to a set of sentences annotated with syntactic relations and evaluated the inferred grammars using cost functions inspired by the Minimum Description Length principle and the Subset principle. Inferred grammars that were optimal with respect to certain combinations of these cost functions were found to align with contemporary theories of syntax.
keywords:
Minimalist Grammar, Satisfiability Modulo Theory, Grammatical Inference
1 Introduction
Inspired by earlier formulations of grammars using logic (Pereira and Warren (1983); Rayner et al. (1988); Stabler (1993); Rogers (1998); Graf (2013)) and recent, substantive improvements in the performance of SMT-solvers (De Moura and Bjørner (2011); Cadar and Sen (2013)), we have developed a novel procedure, with the form of a model of language acquisition (Chomsky (1965)), for automatically inferring Minimalist Grammars (MG) (Stabler (1996)) from a sequence of sentences that have been annotated with syntactic relations for predicate-argument structure and morphological agreement .111Please contact the authors to obtain an implementation of the inference procedure introduced in this study. In this study, we report preliminary results that demonstrate our inference procedures’ capacity to acquire grammars that comport with contemporary theories of minimalist syntax (Chomsky (1995)).222For detailed presentations of minimalist syntax, see (Adger (2003); Hornstein et al. (2005); Radford (2009)).
The remainder of this study is organized as follows: after reviewing the MG formalism and prior work on modeling MGs with logic (\sectionrefsec:minimalistgrammars), we present our inference procedure (\sectionrefsec:inferenceprocedure) and use it to infer a set of MG lexicons from the sequence of annotated sentences listed in \tablereftable:input (\sectionrefsec:experiment); we identify members of the inferred set of MG lexicons that are optimal with respect to cost functions inspired by the Minimum Description Length (MDL) principle (Grünwald (2007)) and the Subset principle (Berwick (1985); Wexler (1993)) and present several examples of these optimal MG lexicons, one of which aligns with contemporary minimalist syntax, producing for each sentence in the input sequence a parse tree that matches standard syntactic analysis. Finally, in (\sectionrefsec:conclusion) we discuss how our procedure, which takes the form of a computational model of language acquisition, may be applied to the evaluation of the Strong Minimalist Thesis.333Chomsky (2008) The Strong Minimalist Thesis asserts that “language is an optimal solution to interface conditions that FL must satisfy; that is, language is an optimal way to link sound and meaning, where these notions are given a technical sense in terms of the interface systems that enter into the use and interpretation of expressions generated by an I-language.” See also: Chomsky (2001).
2 Minimalist Grammars
The Minimalist Grammar (MG) formalism, introduced in Stabler (1996), is a well established formal model of syntax inspired by Chomsky (1995). We chose to use this formalism because: (i) MGs are mildly context-sensitive (Michaelis (1998)) and can model cross-serial dependencies that arise in natural language (Vijay-Shanker et al. (1987); Stabler (2004)); (ii) MGs can model displacement, a basic fact of natural language that enables a phrase to be interpreted both in its final, surfaced position, as well as other positions within a syntactic structure (Chomsky (2013)).444A single phrase satisfying multiple interface conditions often requires that it undergo syntactic movement to establish a discontinuous structure (i.e. a chain) with multiple local relations; by the Principle of Last Resort, movement is driven by morphological considerations – e.g. morphological agreement (Chomsky (1995)).
An MG consists of: (i) a lexicon, consisting of a finite set of atomic structures, referred to as lexical items, each of which pairs a phonetic form555A phonetic form is either overt (e.g. a word in the sentence) or covert (i.e. unpronounced). with a finite sequence of (syntactic) features.666A feature has: (i) a value from a finite set of categories; (ii) a type, which is either selector, selectee, licensor or licensee, indicated by the prefix , , and respectively; a or prefixed before a selector prefix indicates that the selector triggers left or right head-movement respectively. There is also a special feature, , that serves to indicate the completion of a parse. (ii) merge, a recursive structure building operation that combines two structures to produce a new structure.777 Merge applies to two logically disjoint cases: (i) internal merge, for the case in which one argument is a substructure of the other (i.e. they are not disjoint), requires that the consumed features for the two arguments be a licensor and licensee, with the former projecting. (ii) external merge, for the case in which the two arguments are disjoint, requires that the consumed features for the two arguments be a selector and selectee, with the former projecting. Each application of merge consumes the first feature from each of its two arguments, requiring that the two features have the same value; one of the two arguments then projects its feature sequence to the structure produced by merged. To parse a sentence, a set of lexical items is drawn from the lexicon and combined together, via the recursive application of merge, into a single structure in which all of the features have been consumed; if the ordering of the phonetic forms in the resulting structure aligns with the order of the words in the sentence being parsed, then the structure is considered to be a valid parse of the sentence. See \figurereffig:derivationA and \figurereffig:derivationB for examples of MG parses.
Finally, let us consider whether an MG may be modeled with Satisfiability Modulo Theory (SMT) (Barrett and Tinelli (2018). Rogers (1998) established that the axioms of GB theory are expressible with Monadic Second Order logic (MSO); subsequently, Graf (2013) produced an MSO axiomatization for MGs888Graf (2013) also shows that constraints may be encoded in an MG lexicon if and only if they are MSO expressible., and notes that over finite domains these constraints may be expressed with first order logic. As this study only considers models with finite domains, we can develop a finite theory of MGs with an axiomatization based in part on the MSO axiomatization of MGs developed by Graf (2013).999Although we use the concept of slices, presented in Graf (2013), our axiomatization does not utilize the first-order theory of finite trees (originally presented in Backofen et al. (1995)). We will express the theory with a multi-sort quantifier-free101010The axioms in the theory must be quantifier free as the SMT-solver cannot guarantee decidability for problems involving universal quantifiers; this is established via explicit quantification. first-order logic extended with the theory of uninterpreted functions (i.e. the theory of equality), allowing us to model the theory with an SMT-solver and (decidably) identify interpretations of models.
3 Inference Procedure
Our inference procedure takes the form of a computational model of language acquisition (Chomsky (1965)) consisting of: (i) an initial state, , consisting of a system of first-order logical formulae that serve as axioms for deducing the class of minimalist lexicons; (ii) the input, consisting of a sequence of sentences, denoted , each of which is annotated with syntactic relations between pairs of words in the sentence; (iii) a function, , that takes as input a state, , and an annotated sentence, , and outputs the successor state, ; (iv) a function, , that maps a state to a set of MG lexicons, , with the property that for each sentence in the input sequence, each lexicon can produce a parse such that the syntactic relations in parse match those specified in the annotation of .111111In the case of the initial state, , since there are no constraints yet imposed by the input, will map to the set of all minimalist lexicons. The procedure consumes the input sequence one annotated sentence at a time, using to drive the initial state, , to the final state, ; the function is then applied to to produce a set of MG lexicons, , that constitutes the output of the inference procedure. (See Table-1 for an example of input to the procedure)
We implemented this inference procedure by encoding an MG parser as a system of first-order, quantifier-free logical formulas that can be solved with an SMT-solver.121212All logical formulas in this study, being used to encode finite models over bounded domains, are first-order and quantifier-free; this has the benefit that these formulas are decidable. This system of formulas is composed of formulas for MG parse trees (see \sectionrefsubsec:parsetreemodel) that are connected (by way of shared symbols) to a formula for an MG lexicon (i.e. ); by imposing constraints on the formulas for parse trees, the set of solutions to the lexicon formula is restricted. Let us now review the role and play in this.
When the inference procedure consumes an annotated sentence from the input sequence, the function : (1) instantiates a formula for a MG parse; (2) translates the annotations for the sentence into (logic) formulas that constrain the parse tree – e.g. predicate-argument relations and morphological agreement are translated into locality constraints131313The principle of syntactic locality asserts that syntactic relations are established locally by merge (Sportiche et al. (2013))., and each sentence is marked as declarative or interrogative, indicating which of two pre-specified covert phonetic forms, or , must appear in a parse of the sentence (see Fig. 3 for an example); (3) adds these new formulas to the existing system of formulas in to produce .
In order to compute the set of lexicons, , we used the Z3 SMT-solver to solve for the set of lexicons satisfying the formulae in .141414Z3 is a high-performance solver for Satisfiability Modulo Theories (SMT) that can solve first-order quantifier-free multi-sort logic formulas that may combine symbols from a set of additional logics defined by a number of background theories such as empty theory (i.e. the theory of uninterpreted functions with equality). See De Moura and Bjørner (2008) for further reference. Note that the inferred set is not enumerated; rather, it exists implicitly in the model produced by the SMT-solver (i.e. the solution to the system of logical formulas), and members of this set may be filtered, searched and sampled by querying this model using Z3; since the number of inferred lexicons is often exponentially large due to symmetries, we do not enumerate the entire set of lexicons; instead we use Z3 to sample lexicons from .
3.1 Modeling an MG Parse Tree
We now provide an overview of a finite model of a minimalist parse tree, based closely on the MG formalism, that we have developed using a multi-sort first-order quantifier-free logic extended with the theory of equality and uninterpreted functions. The model consists of several sorts, uninterpreted functions acting over these sorts, and a set of axioms constraining these functions that every minimalist parse tree must satisfy; additionally, the syntactic relations that annotate a sentence can also be expressed as a set of axioms (first order logic formulas) that further constrain the model. An interpretation of the model (consisting of interpretations of the uninterpreted functions) is thus a minimalist parse tree that accords with the specified syntactic relations for a given sentence.
A (minimalist) parse tree151515This tree corresponds to the derivation tree in the MG formalism. is modeled as a labeled directed acyclic graph161616Each node in this graph corresponds to a node in the parse tree and the graph is constrained so as to have a single element with no out-going edges (which corresponds to the root of the parse tree); nodes with no incoming edges correspond to atomic syntactic structures., which is in turn modeled via (i) a finite sort, members of which are nodes in the graph and (ii) a set of (unary and binary) uninterpreted functions and predicates (acting over the sorts), that establish labeled edges in the graph.171717E.g. an uninterpreted binary predicate models dominance relations between nodes in the graph, and the transitive closure of this predicate establishes a binary tree in accordance with the Binary Branching Hypothesis (Radford (2009)). Interpretations of these functions and predicates are constrained by a set of axioms that include both: (a) an axiomatization for the MG formalism; (b) axioms that aid in expressing constraints imposed by interface conditions – e.g. axioms for structural configurations for predicate-argument structure and projection of categories.181818Along with the finite sort that constitutes the nodes of the derivation tree, a number of additional finite sorts and functions mapping to and from them are employed to represent phonetic forms, features, categories, etc. These axioms are derived from properties and principles of natural language syntax that are considered universal in so far as they apply to all natural languages (Chomsky (1995); Collins and Stabler (2016)). Let us now review aspects of linguistic theory from which these axioms are derived and discuss how these axioms constrain the model of the MG parse tree.
In accordance with the theory of Bare Phrase Structure (BPS) (Chomsky (1995)), one of the uninterpreted functions is a binary function (over the nodes in the graph) that is constrained by axioms that model the recursive structure building operation, Merge (Chomsky (1995); Collins and Stabler (2016)); another unary functions models the chains produced by the movement of phrases within the parse tree.191919An uninterpreted function for modeling head movement is also included, with relevant axioms in accordance with the Head-Movement constraint as given in (Baker (1988); Hale (1993); Stabler (2001) Each node in the parse tree has a head, which is one of the leaf nodes (which correspond to lexical items) in the parse tree202020See Radford (2009) for a discussion of the Headedness Principle, according to which “every nonterminal node in a syntactic structure is a projection of a head word.”; this mapping is established by a unary uninterpreted function. Each node in the parse tree is labeled with a category. Categories are interpretable properties of lexical items that can project – the category associated with a given phrase is the category associated with the head of that phrase. An additional finite sort encodes the universal functional and lexical categories and (Adger and Svenonius (2011)) and additional functions and axioms encode the two extended projections C-T-V and P-D-N (Grimshaw (2005); Adger (2003)) that constrain what structural configurations the functional categories may be arranged in within a derivation that converges.
Finally, we consider the axioms imposed on a given sentence by: (a) the linear ordering of the words in a sentence – linearization is modeled by a conjunction of axioms for lifting the derived tree from the derivation tree as presented in Graf (2013)212121See also Collins and Stabler (2016). and Kayne’s Linear Correspondence Axioms (Kayne (1994)); (b) the syntactic relations annotating a sentence – these are each translated into axioms for either morphological agreement or predicate-argument structure, the latter in accordance with the theory of argument structure in (Hale (1993)).222222This theory requires that the lexical heads associated with a predicate and its arguments must enter into particular structural configurations within a derivation. (See also Hale and Keyser (2002).
4 Experiment
We used our implementation of the procedure presented in \sectionrefsec:inferenceprocedure to infer a set of minimalist lexicons, denoted here as , from an input sequence with eleven sentences (listed in Table-1), each annotated with predicate-argument relations as well as morphological agreement.232323We bounded the acquisition model with the following parameters: a parse may have up to 3 instances of phrasal movement and up to one instance of head movement; lexical items may have at most 3 features. We validated the lexicons sampled from by using an agenda-based MG parser (Harkema (2001)) to verify that the lexicon can be used to parse each sentence in the input sequence.
Manual inspection of lexicons sampled from revealed that many of them had a large number of lexical items and produced parses that do not resemble those found in contemporary theories of syntax – see Lexicon-A in Figure-1 for an example.
We filtered out lexicons such as these by using Z3 to identify lexicons in that were optimal with respect to a cost function that penalizes a lexicon for the number of lexical entries it has.242424We did this by encoding this cost function as a logical formula, adding it to the SMT-solver after running the inference procedure, and then re-solving; the resulting set of (inferred) minimalist grammars are optimal with respect to the specified cost functions. This produced a subset of in which every lexicon had exactly 15 lexical items, the minimal number of lexical items required for a lexicon to be able to produce parses that accord with the specified input sequence. See Lexicon-B in Figure-1 for an example of a lexicon in this subset; see Figure-3 for an example of a parse produced by Lexicon-B.
We manually inspected this subset of and found that most of the lexicons produced parses with many instances of internal merge that could have been eliminated without any side-effects, and that these parses that did not accord with contemporary theories of syntax.
Finally, we further refined this subset of by using Z3 to identify lexicons that were optimal with respect to two additional cost functions:
(minimize) the total number of selectional and licensing features in the lexicon and the parses; this cost function rewards reduction in the total size of both the lexicon and the derivations;252525This cost function is based on the MDL principle (Grünwald (2007)) as applied to MGs in (Stabler (1998)). 2. 2.
(maximize) the number of distinct selectional features in the lexicon; this cost function rewards lexicons that are less inclusive (i.e. they are less likely to overgenerate).262626This cost function is based on the Subset Principle (Berwick (1985)), which asserts that a language learner will always choose the least inclusive grammar available at each stage of acquisition; the adaption of this principle is a logical necessity if one assumes that the learner does not make use of (indirect) negative evidence. See also Yang (2015, 2016).
This produced a subset of in which each lexicon had exactly: 15 lexical items; 33 features in the lexicon (not including the special feature ); 125 features in the parses; at least 4 distinct selectional features. See Lexicon-C in Figure-1 for a representative member of this subset. We found that the lexicons in this subset were all of the same form – i.e. they are only differentiated by permutations of the feature values and other symmetries in the model – and that these lexicons produced parses that agreed with those prescribed by contemporary minimalist theories of syntax. (as presented in Hornstein et al. (2005), Adger (2003), and Radford (1997).) See Figure-2 for a parse produced by Lexicon-C that demonstrates several of the syntactic phenomenon that Lexicon-C models correctly (i.e. as prescribed by minimalist theories of syntax) while respecting the syntactic relations prescribed in sentence of Table-1.
5 Conclusion
In this study we have (i) proposed and implemented a procedure for inferring MGs and (ii) used this procedure to infer an MG that closely aligns with contemporary theories of syntax, thus demonstrating how linguistically-relevant MGs may be identified within the inferred set of MGs by optimizing cost functions derived from methods of inductive inference that are relevant to cognitively-faithful models of language acquisition. We observe that by enabling and disabling axioms in our model, we can carry out experiments to determine which are redundant, and thereby gain insight into whether the linguistic principles, from which the axioms of the system are largely derived, are justified or can be discarded, thus aiding in the evaluation of the Strong Minimalist Thesis.
Going forward, we plan to: incorporate phase theory (Chomsky (2001, 2008)) into our model of a minimalist parse tree, following the approach taken by Chesi (2007); examine the over-generations produced by the MGs inferred by our procedure and understand how these over-generations relate to the cost functions used by our procedure for identifying optimal grammars; investigate the potential for this procedure to be used for producing MG treebanks272727See Torr (2018) for an alternative approach to developing large-scale MG treebanks., which may aid treebank based parsing strategies, by extracting sets of (partially) annotated sentences (that may be used as input to the inference procedure) from treebanks such as PropBank (Kingsbury and Palmer (2002)) or the UD treebanks (Nivre et al. (2016)).
\acks
The author would like to thank Robert C. Berwick, Sandiway Fong, Beracah Yankama, and Norbert Hornstein for their suggestions, feedback, and inspiration. Additionally, the author is very grateful for the financial support provided by Moody’s Investor Services.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Adger (2003) David Adger. Core syntax: A minimalist approach , volume 33. Oxford University Press Oxford, 2003.
- 2Adger and Svenonius (2011) David Adger and Peter Svenonius. Features in minimalist syntax. The Oxford handbook of linguistic minimalism , pages 27–51, 2011.
- 3Backofen et al. (1995) Rolf Backofen, James Rogers, and Krishnamurti Vijay-Shanker. A first-order axiomatization of the theory of finite trees. Journal of Logic, Language and Information , 4(1):5–39, 1995.
- 4Baker (1988) Mark C. Baker. Incorporation: A theory of grammatical function changing . University of Chicago Press, 1988.
- 5Barrett and Tinelli (2018) Clark Barrett and Cesare Tinelli. Satisfiability modulo theories. In Handbook of Model Checking , pages 305–343. Springer, 2018.
- 6Berwick (1985) Robert C. Berwick. The acquisition of syntactic knowledge . MIT press, 1985.
- 7Cadar and Sen (2013) Cristian Cadar and Koushik Sen. Symbolic execution for software testing: three decades later. Commun. ACM , 56(2):82–90, 2013.
- 8Chesi (2007) Cristiano Chesi. An introduction to phase-based minimalist grammars: why move is top-down from left-to-right. Studies in linguistics , 2007.
