Abstract Syntax Networks for Code Generation and Semantic Parsing
Paper · 2017 · Maxim Rabinovich, Mitchell Stern and Dan Klein
Summary
Generating a program from a description requires more than choosing plausible words. The output must have a legal structure: a function call needs arguments in the right places, a class definition needs appropriately organized fields, and a logical expression must combine its parts according to a grammar. This structural requirement is addressed by the work on abstract syntax networks for generating code and parsing semantics. Its central proposal is to generate an abstract syntax tree, or AST, directly. An AST represents the meaningful grammatical organization of an output rather than treating it as a flat stream of text. The paper applies this approach to code and programming languages and to semantic parsing, where a natural-language request is translated into a formal representation of its meaning.
The authors introduce abstract syntax networks, abbreviated as ASNs. The architecture has an encoder that reads the input and a decoder that constructs the output. Its distinctive feature is the decoder’s organization: separate neural modules handle particular elements of the output grammar. A module can choose a grammatical constructor, prepare the states needed by its fields, decide whether a field has children, or supply a basic value such as an identifier. These modules call one another recursively as generation moves from the root towards the leaves. The resulting pattern of calls follows the tree under construction. Grammar therefore determines both the legal output structures and much of the organization of the computation that produces them.
The strongest reported gains concern Hearthstone, a dataset pairing game-card descriptions and attributes with Python implementations. With supervised attention, the ASN reaches 79.2 token-level BLEU and 22.7% exact-match accuracy on the test split. The previous best results cited by the authors were 67.1 BLEU and 6.1% exact match. The architecture also transfers to logical-form prediction with limited adaptation. On Jobs, its best exact-match accuracy is 92.9%, compared with the previous record of 90.7%. On Atis and Geo, it respectively exceeds and matches the results of Dong and Lapata, while remaining below the strongest earlier semantic parsers. These experiments support the usefulness of coupling a decoder closely to an output grammar across different kinds of structured prediction.
The achievement has a clear boundary. A grammar can enforce the permitted arrangement of nodes without ensuring that the resulting program implements the requested behavior. The paper does not enforce semantic consistency, correct variable use across distant locations, well-typedness, or successful execution. Its code evaluation compares generated outputs with reference implementations instead of running them in the game engine. The error analysis also shows that shared code structure and nested function calls are easier for the system than imperative implementations with complicated control flow. ASNs make grammatical structure an explicit part of generation; they leave substantial questions about program meaning and functional correctness unresolved.
Interesting ideas
Make the output grammar an architectural guide. A grammar need not serve only as a final validity check. In an ASN, it determines which decisions exist and which module is responsible for each decision. This reduces the need to learn elementary structural regularities entirely from examples. The reusable principle applies wherever outputs have a known recursive organization: identify the legal constructions first, then make generation operate through them. The paper demonstrates this with programming-language syntax and logical forms. An extension to another domain would still need an appropriate grammar and evidence that its structure captures the relevant constraints.
Separate construction choices from field completion. Selecting a function-call constructor and filling its arguments are different decisions. The ASN makes that distinction explicit. A composite-type module chooses a constructor; the constructor prepares information for its named fields; field modules determine how children are supplied. This separation provides a useful way to organize structured predictors because it assigns different responsibilities to different components. It also makes the decoding process easier to inspect: a mistaken structural choice can be distinguished from a correct structure populated with an incorrect value.
Let cardinality control the prediction problem. Some fields always require a child, some permit an absent child, and others contain an ordered collection. The paper gives these cases different mechanisms. A required child needs no presence decision, an optional child needs a binary choice, and a collection needs repeated continuation decisions. This is a practical way to avoid learning choices that the specification already settles. More broadly, when an output schema distinguishes required, optional, and repeated content, a predictor can reflect those distinctions directly rather than sending every case through the same unrestricted mechanism.
Use different state paths for different structural relationships. The vertical recurrent state carries information towards descendants. A horizontal recurrent state handles progress through a field whose length is not fixed. This division reflects a real distinction between choosing what belongs inside a construction and choosing what comes next in a collection. It can be useful when designing other recursive generators, provided the state pathways are matched to the relationships that actually matter. The paper’s particular design does not solve every dependency between distant parts of an output, but it shows how structural relationships can guide recurrent computation.
Preserve meaningful input components. Hearthstone inputs contain a name, a description, and categorical attributes. The authors retain those identities rather than presenting everything as an undifferentiated token sequence. Each component receives its own encoding, while attention combines evidence about component identity with evidence about particular tokens. This idea is useful when inputs mix prose with structured fields. A generator may need the descriptive text for behavior and a categorical field for a specific attribute. Keeping those sources identifiable gives the decoder a direct way to express that difference.
Supervise intermediate choices when inexpensive evidence exists. The paper derives approximate alignments from matching strings and uses them to guide attention at primitive-value decisions. The main training target remains the output tree, but the additional signal indicates where relevant input evidence is likely to occur. This is worth borrowing when a task provides cheap, imperfect hints about internal correspondences. The important qualification is that attention guidance does not itself implement copying. A system can attend to the right place and still generate the wrong string, which is one of the paper’s observed weaknesses.
Keep structural success separate from semantic success. The authors evaluate output similarity in several ways and explicitly explain why those measurements do not establish functional equivalence. This distinction is reusable as an experimental habit. A system may improve its legal structure, overlap more closely with a reference, and still fail to perform the intended computation. Evaluation should identify which of those properties it measures. For an ASN, the grammar supplies a structural guarantee; the experiments estimate agreement with reference outputs; neither alone demonstrates correct execution.
Deep dive: Abstract Syntax Networks for Code Generation and Semantic Parsing
How abstract syntax networks generate code and logical forms through grammar-guided trees, what their experiments establish, and where they fall short. · about 39 minutes to read
How Mova uses it
For Mova, the small transparent language system implemented in Rust, the most concrete connection is a possible design for generating structured representations. The available information does not establish that Mova already contains an ASN decoder, recurrent tree-generation modules, or supervised attention of the kind used in this paper. Those mechanisms should therefore be treated as implementation ideas rather than existing capabilities. The useful question is what Mova could adopt while preserving its emphasis on inspectable processing.
A natural starting point would be an explicit grammar for an internal output language. Mova could represent each permitted construction as a typed Rust data structure, with fields that distinguish required content, optional content, and collections. A generator would then choose among legal constructors and fill their fields. This would borrow the paper’s central structural principle without requiring Mova to reproduce every neural component. The important connection is that legal construction steps would be visible in the representation itself.
Such a design could make generation easier to explain. If Mova produced an incorrect formal interpretation, an inspection record could show which construction it selected, which fields it opened, and which values it assigned. That record would identify the path through the grammar that produced the result. It would not explain every numerical influence behind a learned choice, but it could expose the sequence of structural commitments. The ASN’s close relationship between tree structure and module calls provides a useful pattern for organizing that record.
The paper also suggests how Mova could distinguish several kinds of failure. A constructor error would mean that the system chose the wrong kind of expression or statement. A field-presence error would mean that it omitted or introduced an optional part. A sequence error would concern the contents or length of a repeated field. A primitive-value error would concern a name, predicate, identifier, or string. These categories follow from the architecture instead of being added after generation. They could help Mova report what went wrong in terms a developer can connect to the output representation.
Input organization is another plausible borrowing. If Mova receives prose together with named attributes, it could preserve those sources as separate components. The paper’s Hearthstone setup shows why that can matter: a card’s description and its categorical attributes provide different kinds of evidence. In a transparent system, retaining component identity could also help record which input field supported a particular output choice. This would require an explicit implementation; the paper does not establish that Mova already tracks evidence in this way.
The distinction between retrieval and synthesis is especially relevant to names and other strings. An ASN can select a previously observed value or generate a new string character by character. Mova could expose an analogous distinction in its own generation process, making clear whether a value came from a known inventory or was newly assembled. However, the paper’s errors caution against treating string synthesis as reliable copying. A future Mova implementation would need to evaluate exact value preservation separately from structural correctness.
Finally, Mova could borrow the paper’s restraint about guarantees. A typed tree representation can make malformed structures harder to produce, but it does not automatically establish that an interpretation is meaningful or that generated code will run. If Mova adopts grammar-directed generation, its explanations should identify what the grammar checks and what remains outside that check. Claims about execution, consistency, or behavioral correctness would require additional mechanisms and corresponding evaluation. The ASN offers a concrete architecture for structure; it is not evidence that those further capabilities are already present.
The problem and its context
Why a structured output is a different prediction target
The paper studies tasks in which the input and output have fundamentally different organizations. A request may arrive as ordinary language, while its answer must be a program or a logical expression. The output has grammatical obligations that do not follow the word order of the input. A description can mention an effect, its target, and a condition in an order that differs from the arrangement required by the implementation.
This is what the authors mean when they distinguish structure from synchrony. The target has an internal organization, but that organization does not have to align directly with the source. A generator therefore needs to infer an output construction rather than merely preserve an input arrangement. It must choose how the requested meaning is expressed in the target formalism.
For code generation, the practical consequence is immediate. A plausible sequence of programming tokens may still fail to form a legal statement or expression. For semantic parsing, a plausible collection of predicates may fail to compose into a legal logical form. Both tasks require more than local token plausibility.
The paper separates several desirable properties of the output. Well-formedness concerns compliance with grammatical structure. Well-typedness concerns compatibility with the relevant typing rules. Executability concerns whether the output can be run. Semantic correctness concerns whether it expresses or performs what was requested. These properties are related, but they are not interchangeable. The ASN directly addresses the grammatical part of the problem.
What sequence-based approaches had already achieved
The authors do not present sequence-to-sequence prediction as an unsuccessful starting point. They describe earlier encoder–decoder systems as effective for both code generation and semantic parsing. In such systems, an encoder produces representations of the input and a decoder predicts an output sequence. Attention allows decoding decisions to consult different parts of the source.
The limitation motivating ASNs is that an output sequence does not, by itself, make the target grammar explicit. The decoder may learn structural patterns from examples, but its prediction mechanism need not distinguish a class definition from the fields inside that definition. The authors want those distinctions to be part of the architecture.
Their semantic-parsing comparison includes Language to Logical Form with Neural Attention. They describe that work as including a restricted form of recursion from the top of the output structure downward. Their objection is therefore more specific than a claim that earlier neural systems ignored trees entirely. The ASN adds a closer correspondence between the grammar and a collection of specialized modules.
For Hearthstone, the principal previous comparison is Latent Predictor Networks for Code Generation. That work supplies both the dataset and the strongest earlier code-generation results cited in the paper. It also provides an important point of contrast in string handling: the ASN uses supervised attention in place of an explicit copying mechanism.
Earlier ways of predicting trees
The related-work discussion places ASNs among several approaches to structured output. Earlier work on constituency parsing had made tree prediction resemble sequence prediction, either by flattening a tree into a sequence or by predicting a sequence of construction actions. The paper names Span-Based Constituency Parsing with a Structure-Label System and Provably Optimal Dynamic Oracles as part of this context.
ASNs instead use a recursive procedure whose active module depends on the grammatical element currently being generated. The output is still produced through a succession of decisions, but those decisions belong to different module types. The recursion is not merely an interpretation imposed on a flat output afterward; it is the organization of the decoder itself.
The closest architectural comparison in the paper is a doubly recurrent tree decoder. That approach sends information downward through a vertical LSTM and across siblings through a horizontal LSTM. An LSTM is a recurrent neural mechanism that maintains a state as processing advances. The ASN retains this distinction where it is useful, but exploits additional information supplied by labeled AST nodes and fields.
In particular, the ASN uses distinct updates for the fixed fields of a chosen constructor. Those fields are known to exist together because the grammar requires them. A horizontal LSTM is reserved for fields containing a variable-length collection. This is a design response to the target representation: fixed grammatical roles and arbitrary sequences of children do not need identical handling.
Earlier work on code and modular computation
The paper also discusses earlier neural approaches to source code, including Bimodal Modelling of Source Code and Natural Language. The authors describe work that generates concrete syntax trees in depth-first order and evaluates properties such as predictive likelihood or usefulness for retrieving code snippets. They also mention grammar-based top-down generation in a variational autoencoder. Their contribution is consequently not the first use of trees or grammars in neural code processing.
Another neighboring line of research learns programs from examples of their inputs and outputs. The paper treats that as distinct from its own setting. Here, the training pairs contain descriptions or queries together with their desired program structures. The ASN learns to map between those paired representations rather than inferring a program only from observed behavior.
Modularity has a further precedent in neural module networks for visual question answering. In the authors’ account, those modules compute image features according to a structure associated with the question. ASN modules take on different responsibilities: they make generation decisions, determine which modules run next, and pass recurrent state.
This comparison helps locate the paper’s central idea. The novelty is not simply dividing a network into named pieces. It is making the pieces correspond to output-grammar constructs and allowing their decisions to determine the subsequent recursive computation. The grammar supplies an organizing language for both the output and the decoder.
The method, step by step
Begin with a grammar for the target
The first requirement is an explicit description of the structures the system may generate. The authors use the Abstract Syntax Description Language, abbreviated as ASDL. This framework describes trees through types, constructors, and fields.
A primitive type represents an atomic value. Examples include an integer or an identifier. A primitive node stores a value belonging to its type and does not expand into further grammatical children. The paper’s identifier example is create_minion, which names a function.
A composite type represents a family of structured constructions. In the Python setting, statements and expressions are composite types. A particular constructor specifies which member of that family a node represents. A statement may use a constructor for a class definition, while an expression may use one for a function call.
The distinction between a type and a constructor matters. The type determines the set of legal alternatives at the current position. The constructor selects a particular structural arrangement from that set. Once a constructor has been chosen, its fields specify what children must or may follow.
Fields have names, types, and cardinalities. Their names distinguish grammatical roles; their types constrain the kinds of children that can fill those roles. Cardinality specifies whether a field contains a required child, an optional child, or a sequence of children. ASDL marks optional and sequential fields with ? and *, respectively.
The Python examples make these distinctions concrete. A ClassDef construction includes a name field containing an identifier. Its body can contain a sequence of statements. A Call construction has arguments that also form a sequence. These are different grammatical settings, but both require a mechanism that decides how long a repeated field should be.
The same representation applies to logical forms. The authors describe ASDL grammars in which primitive values include variables, predicates, and atoms, while composite constructions cover operations such as lambda abstraction and counting. Jobs uses Prolog-style expressions; the other semantic-parsing tasks use lambda-calculus expressions. Their syntax differs from Python, but they can share the same general decoding machinery.
From an input description to an output tree
The steps in order.
Encode the input without erasing its components
An input is represented as a collection of named components, each containing a token sequence. A semantic-parsing query has a single component: the sentence to be interpreted. Hearthstone has a richer input representation because each card supplies several kinds of information.
The card name is encoded as characters. The description is encoded as tokens, split using whitespace and punctuation. Categorical attributes become single-token components. This retains the distinction between descriptive language and attributes such as cost or class.
Each component has a dedicated bidirectional LSTM. Processing in both directions gives each token an encoding that reflects its surrounding sequence. These token representations remain available for attention during generation.
The decoder also needs an initial representation of the complete input. The encoder takes the final states from both directions for every component, concatenates them, and applies a linear projection. This combined vector initializes decoding. The initial representation provides a global starting point, while attention supplies more selective information later.
For Hearthstone, the input and output vocabularies retain values occurring more than once in the training data. This restriction makes the treatment of unfamiliar strings particularly relevant. A closed inventory alone cannot cover every possible new name or identifier.
Choose a constructor at a composite node
The decoder’s vertical LSTM state carries information into the current part of the tree. At a composite node, the first task is to select a constructor allowed by the node’s type.
p(k | τ, v) = [softmax(fτ(v))]ₖ
Here, τ is the composite type, k is a constructor available for that type, and v is the incoming vertical state. The function fτ is the feedforward network associated with the type. softmax turns its output scores into a distribution over constructors, and the subscript k selects the probability of a particular constructor.
This decision narrows the remaining structural possibilities. Choosing a class definition establishes which fields belong to that node. Choosing a call establishes a different field structure. The grammar therefore controls which module becomes active after the choice.
Generation is greedy: the decoder commits to local choices as it proceeds. The paper does not present a search procedure that keeps several competing whole-tree candidates. That makes the organization of each local decision especially important, because a constructor choice shapes the work that follows.
Give each constructor field its own context
After selecting a constructor, the decoder prepares a state for each of its fields. A learned field embedding identifies the field’s role. Attention supplies a context vector derived from the input.
ẽ_f = fₖ(e_f, c)
The symbol f identifies a field, e_f is its learned embedding, and c is the attention-derived input context. The constructor-specific feedforward network is fₖ. Its output, ẽ_f, is a field representation conditioned on the currently relevant input evidence. The arguments are supplied together through concatenation, following the paper’s notation for feedforward inputs.
That field representation updates the vertical recurrent state.
vᵤ,𝒻 = LSTMᵥ(vᵤ, ẽ_f)
The node being expanded is u. Its incoming state is vᵤ, and vᵤ,𝒻 is the state prepared for field f. LSTMᵥ denotes the vertical LSTM update. The state and the field representation together determine what information is passed toward that field’s children.
This is how the architecture distinguishes grammatical roles even when they belong to the same parent. Different fields receive different embeddings and therefore different updated states. The children of a constructor are not treated as interchangeable branches.
Handle required and optional children
A required field has no presence decision. Its child must exist, so the decoder simply passes along the prepared state.
v_w = vᵤ,𝒻
Here, w is the child occupying field f at node u. The child’s vertical state, v_w, is exactly the state already computed for that field. The equality expresses the absence of an additional learned update at this stage.
An optional field needs a prediction about whether a child should be present.
p(z_f = 1 | vᵤ,𝒻) = sigmoid(f_fᵍᵉⁿ(vᵤ,𝒻))
The variable z_f records whether field f receives a child. The value 1 means that a child is generated. The field-specific network f_fᵍᵉⁿ produces a score from the field state, and sigmoid converts that score into a binary-event probability.
If the decision is to generate a child, the field state passes to it without another modification. If the decision is to omit the child, recursion stops for that field. The grammar makes absence a legitimate outcome only where optional cardinality allows it.
Generate a variable-length field
Repeated fields need a mechanism for deciding both what comes next and when to stop. The authors use a horizontal LSTM for this purpose. Its initial state comes from a learned transformation of the field’s vertical state.
h_f,0 = W_f vᵤ,𝒻
The symbol h_f,0 is the initial horizontal state for field f. The matrix W_f is the field-specific projection, and vᵤ,𝒻 is the vertical state already prepared for that field. The index 0 marks the state before any child in the sequence has been generated.
At each position, the decoder predicts whether another child should be added.
p(z_f,i = 1 | h_f,i−1, vᵤ,𝒻) = sigmoid(f_fᵍᵉⁿ(h_f,i−1, vᵤ,𝒻))
The position is i, and z_f,i is the continuation decision there. The previous horizontal state is h_f,i−1. The decision also consults the field’s vertical state, preserving information about the enclosing construction. The feedforward function and sigmoid together produce the probability of continuing.
A stop decision ends the field. A continuation decision causes the decoder to prepare a representation for the next child.
ẽ_f,i = f_fᵘᵖᵈᵃᵗᵉ(vᵤ,𝒻, h_f,i−1, c_f,i)
The vector ẽ_f,i describes field f at sequence position i. Its inputs are the field’s vertical state, the previous horizontal state, and an attention context c_f,i. The field-specific update network combines those sources.
The child then receives its vertical state through another recurrent update.
v_wᵢ = LSTMᵥ(vᵤ,𝒻, ẽ_f,i)
The child at position i is wᵢ. Its state depends on the parent field state and the newly computed field-position representation. This gives the child information about both its enclosing role and its position within the repeated content.
The horizontal state is updated using that same representation.
h_f,i = LSTMₕ(h_f,i−1, ẽ_f,i)
Here, LSTMₕ is the horizontal LSTM. The new state h_f,i becomes the history available for the next continuation decision and child-position encoding.
This recurrence deserves a precise reading. The stated horizontal update uses the field-position representation. It does not explicitly take a completed child tree as its input. The sequence mechanism tracks its own evolving state while generating children, but the equations do not describe a separate bottom-up summary of each finished subtree being returned to the parent.
Stop recursion at primitive values
A primitive node requires a value rather than another constructor. For a type with a closed domain, the choice resembles constructor selection.
p(y | τ, v) = [softmax(fτ(v))]ᵧ
The primitive type is τ, the candidate value is y, and v is the incoming vertical state. The type-specific feedforward network assigns scores to values, softmax normalizes those scores, and the subscript y selects the desired probability.
Open-class strings need additional machinery. The system can either select a known value from its inventory or synthesize a new value through a character-level LSTM. The primitive module must also choose between those routes.
During training, the character generator is available only for strings treated as unknown. The loss nevertheless includes the probability of the route-selection decision. This teaches the system when it should use the character generator instead of a stored value.
The paper connects character generation to the tradition represented by A Neural Probabilistic Language Model. Within the ASN, however, the character generator has a narrow role: it produces the content of particular primitive string nodes. It does not determine the surrounding program structure.
Compute attention over tokens and components
Attention lets a decoding decision revisit the input rather than relying completely on the initial encoding. The paper follows the general attention-based encoder–decoder approach associated with Neural Machine Translation by Jointly Learning to Align and Translate, while accounting for the input’s named components.
First, each token receives a bilinear compatibility score.
r_t = e_tᵀ W x
The token is t, its encoded representation is e_t, and x is the current decoder state used for attention. W is a learned matrix, while the superscript ᵀ indicates transposition. The resulting scalar r_t measures compatibility between that token and the current decision.
The state x may contain only the vertical state, or it may concatenate that state with a horizontal state or a character-generation state. Each submodule that computes attention has its own matrix.
A component also receives a score based on its identity.
b_c = w_cᵀ x
The component is c, and w_c is its learned vector. The score b_c depends on the current decoder state but does not directly inspect the component’s contents. It expresses a preference for a source component at the current decision.
The final score for a token combines these contributions.
s_t = r_t + b_comp(t)
The function comp(t) identifies the component containing token t. Its component score is added to the token’s raw compatibility score. A decision can therefore favor both a particular source field and a particular location within that field.
The scores become attention weights through normalization.
α = softmax(s)
The vector s collects all final token scores, and α collects their normalized attention weights. Each weight corresponds to a token in the input.
The attention context is a weighted combination of the token encodings.
c = ∑ₜ α_t e_t
Here, α_t is the attention weight for token t, e_t is that token’s encoding, and the sum ranges over the input tokens. The result c is the input context supplied to the relevant decoder computation.
Though the module descriptions emphasize particular uses of attention, the final implementation makes it available at every decision point. Attention is therefore a general source of conditioning information throughout decoding.
Add supervision where strings suggest an alignment
The supervised-attention variant uses approximate input–output correspondences at primitive nodes. The motivation is straightforward: values appearing in the output frequently resemble text already present in the input. If a primitive value matches source text, that match gives a useful hint about where attention should concentrate.
The alignment heuristic uses exact string matching with limited normalization. The paper mentions separating special characters, reversing camel-case combinations, and applying lemmatization for the semantic-parsing data. These operations improve the chance of recognizing correspondences that differ superficially.
Let S be the set of matched input positions. If no match is found, S becomes the entire input. The supervision term is:
ℓ_att = log ∑ₜ exp(a_t) − log ∑ₜ∈S exp(a_t)
The first sum includes every input token, while the second includes only positions in S. The value a_t is the token-associated attention quantity used in the paper’s supervision expression. The functions exp and log are exponentiation and the natural logarithm, and ℓ_att is the added attention loss.
The authors interpret this expression as penalizing low probability of attending somewhere inside the matched set. Their surrounding notation distinguishes attention scores from normalized weights, although the explanation of this particular expression calls a_t a weight. The intended role is clear: concentrate attention on a plausible aligned subset rather than demanding a unique matched position.
When S covers the whole input, the terms coincide and no selective guidance is supplied. When a match exists, the supervision encourages the decoder to consult that region. It still does not force the output value to be an exact copy of the attended text.
Train the decisions together
Training minimizes negative log likelihood over the decoder’s generation choices. Those choices include constructors, optional-child decisions, sequence continuation or termination, primitive values, and the route used for open-class strings. The supervised-attention variant adds its alignment-based loss.
The target tree determines which modules are visited during training and which decisions they must learn. The architecture therefore distributes learning across grammar-associated components while optimizing them as one system.
At prediction time, mutually recursive module calls build the tree. Composite nodes select constructors and initiate their fields. Field modules determine the children to create. Primitive modules generate values and end those branches of recursion.
The implementation is written in Python using DyNet. Optimization uses Adam with its default settings. Those implementation choices support the reported experiments; they are separate from the more general idea of organizing generation around a grammar.
Experiments and results
What the semantic-parsing datasets contain
The semantic-parsing experiments use paired natural-language queries and logical forms. Jobs contains 640 pairs and uses a Prolog-style target representation. Geo contains 880 pairs, while Atis contains 5,410 pairs; both use lambda-calculus targets.
Jobs and Geo follow the training–test divisions used by Zettlemoyer and Collins. Atis uses its standard training, development, and test division. The authors work with the preprocessed data distributed by Dong and Lapata instead of creating a new preprocessing pipeline.
That preprocessing lowercases and stems the input using NLTK. It also replaces matching entities in an input–output pair with numbered identifiers associated with the appropriate entity type. This matters when interpreting the task: some surface-form variation has already been abstracted away before the ASN sees the examples.
Accuracy is measured by exact agreement between predicted and reference trees. Before comparison, the evaluation canonicalizes child order inside conjunctions and disjunctions. This prevents an otherwise equivalent ordering of those children from causing a mismatch. Other transformations are not applied.
The basic ASN achieves 91.4% exact-match accuracy on Jobs. Supervised attention raises the reported result to 92.9%. The earlier best result cited in the introduction is 90.7%, so Jobs is the semantic-parsing dataset on which the authors report a new record.
Jobs test exact-match accuracy
The ASN improves on the earlier record, with supervised attention producing the strongest reported setting.
The numbers
| System or setting | accuracy % |
|---|---|
| Previous best | 90.7 |
| ASN | 91.4 |
| ASN with supervised attention (this paper) | 92.9 |
The picture is more qualified for Atis and Geo. The paper reports that its system exceeds Dong and Lapata on Atis and matches them on Geo. It also states that the strongest earlier results remain higher: Wang and colleagues achieved 91.3% on Atis and 90.4% on Geo.
The numerical results for the ASN on those datasets are not specified in the results discussion, so they should not be inferred from the comparative statements. The supported conclusion is comparative: competitive with the neural attention baseline, but below those earlier best systems.
The authors suggest that typing information and richer lexicons used by earlier semantic parsers may help explain the remaining gap. This is an interpretation rather than a controlled demonstration. The ASN experiments do not isolate the contribution of those resources.
What the Hearthstone task requires
Hearthstone contains 665 cards paired with Python code from the Hearthbreaker engine. The training split has 533 examples, while development and test each have 66. These are the same divisions used by Ling and colleagues, allowing a direct comparison under the established task setup.
The source combines language and attributes. The card’s name and behavioral description provide textual information. Numerical attributes include attack, health, cost, and durability. Enumerated attributes include rarity, type, race, and class. The decoder must translate that mixed input into the implementation expected by the engine.
This is a specific code-generation environment. The target programs share an implementation framework and recurring class structure. Correct prediction frequently requires placing the right values into familiar code patterns, although more difficult examples also require substantial behavioral logic.
The authors evaluate exact match and token-level BLEU against the reference implementation. Exact match is stringent: any remaining disagreement can prevent a prediction from being counted as correct. BLEU captures token-sequence overlap and can reward an output that resembles the reference without being identical.
The paper also evaluates node precision, recall, and F1 for output trees. The common portion of a predicted and reference tree is defined through their largest shared prefix. This adds a structural view of similarity, although the results discussion does not supply the individual numerical values for those tree measures.
The main code-generation comparison
The earlier best Hearthstone result cited from Ling and colleagues is 67.1 token-level BLEU. The basic ASN reaches 77.6, and the supervised-attention variant reaches 79.2. Thus the improvement is already present without the extra alignment-based training signal.
Hearthstone test token-level BLEU
Grammar-directed generation outperforms the earlier system, and supervised attention improves the ASN further.
The numbers
| System or setting | BLEU |
|---|---|
| Latent Predictor Networks | 67.1 |
| ASN | 77.6 |
| ASN with supervised attention (this paper) | 79.2 |
Exact-match accuracy tells the same directional story. The prior result is 6.1%. The basic ASN achieves 18.2%, while the supervised-attention system reaches 22.7%.
Hearthstone test exact-match accuracy
The supervised-attention ASN produces the strongest exact agreement with reference implementations.
The numbers
| System or setting | accuracy % |
|---|---|
| Latent Predictor Networks | 6.1 |
| ASN | 18.2 |
| ASN with supervised attention (this paper) | 22.7 |
These results support the paper’s main empirical claim: its grammar-directed architecture produces substantially closer reference implementations on this benchmark than the previous approach. They do not establish that all structurally similar predictions would behave correctly if executed.
The paper includes a nearest-neighbor baseline as well. Its results caption notes that this baseline follows the earlier evaluation approach and performs somewhat better than the previously reported version. The authors attribute its non-zero exact-match result to repeated material in the data. No numerical nearest-neighbor score is stated in the results prose, so a precise value cannot be reported from that discussion.
That observation is useful context for the task. Some outputs are sufficiently repetitive that retrieving a similar example can occasionally match a reference. The ASN’s gains are therefore best understood alongside the dataset’s recurring code structure, rather than as evidence of unrestricted program synthesis.
Training and selection conditions
Within each experiment, the feedforward networks and LSTMs share a selected hidden dimensionality. For Jobs and Geo, the candidates are {30, 40, 50, 60, 70}. For Atis and Hearthstone, the candidates are {50, 75, 100, 125, 150}. Encoder input dimensionality is 100 throughout.
Dropout is applied to nonrecurrent connections of the vertical and horizontal LSTMs. Its candidate noise ratios are {0.2, 0.3, 0.4, 0.5}. Parameters receive Glorot initialization.
The training schedules allow 200 passes over Jobs and Geo, and 400 over Atis and Hearthstone. Semantic-parsing selection uses exact match for early stopping. The monitored split is the training data for Jobs and Geo, and the development data for Atis.
Hearthstone settings are selected using development BLEU. This aligns selection with one of the reported test metrics, but it is not selection through execution or functional correctness. If settings tie, the authors prefer higher dropout and then lower dimensionality.
The semantic-parsing experiments use a batch size of 20. Hearthstone uses a batch size of 10. These choices, together with the split conventions and preprocessing, define the conditions under which the reported comparisons should be read.
The paper’s claim of limited task-specific engineering concerns the architecture’s transfer across these output formalisms. It does not mean that every task uses identical representations or settings. The grammar, input components, data preprocessing, and selected hyper-parameters still depend on the experiment.
What the ablations show
Supervised attention provides the clearest controlled comparison
The main component comparison is between the basic ASN and the version trained with supervised attention. The decoder architecture remains grammar-directed in both cases. The added mechanism supplies approximate alignment guidance at primitive-value decisions.
On Hearthstone, both BLEU and exact match improve when this guidance is added. Jobs exact match also improves. Because the basic ASN already outperforms the earlier Hearthstone system, the evidence supports two separate observations: the architecture is useful without attention supervision, and the supervision provides an additional benefit within that architecture.
The comparison does not show that supervised attention is equivalent to copying. It encourages the decoder to focus on source positions associated with a target value. The value still has to be selected or synthesized correctly. The authors’ string-transduction errors demonstrate why those operations should be evaluated separately.
Nor does the comparison establish that every generated alignment is correct. The matching procedure is heuristic, and its fallback provides no selective guidance when a match is unavailable. The result is evidence that the added training signal helps overall under these experimental conditions.
The paper does not isolate every architectural decision
The experiments do not provide a full component-removal study of the decoder. There is no reported controlled comparison that separately removes grammar-specific modules, field embeddings, vertical recurrence, horizontal recurrence, or component-level attention while preserving everything else.
As a consequence, the results cannot assign an independent share of the improvement to each of those choices. The broad comparison with earlier systems evaluates an architectural package. It supports the effectiveness of that package on the tasks studied, while leaving open which internal design decisions are essential.
The same caution applies to grammar constraints and learned specialization. ASNs combine legal constructor choices with dedicated parameterized modules. The paper does not separate the benefit of restricting outputs from the benefit of giving grammatical roles specialized neural computations.
This is a meaningful limit on causal interpretation, but it does not erase the empirical result. A practical architecture can outperform its comparison systems even when the study does not determine which internal ingredient accounts for each part of the gain.
Shared templates explain the easiest cases
The qualitative analysis groups Hearthstone examples by the character of their implementations. The simplest cards have short descriptions and highly regular code structure. For these, generation frequently amounts to reproducing a common class pattern and assigning the correct values in initialization and a few other positions.
The authors report that the system usually succeeds on this category. The remaining errors can involve incorrectly transforming strings. This is a revealing failure because the overall tree may be appropriate while a small primitive value is wrong.
The examples therefore support a narrower explanation than a claim of complete program understanding. A grammar-directed decoder is well suited to familiar structural patterns, especially when the main variation lies in a limited set of values. The analysis does not quantify how frequently each category occurs.
Nested calls fit the recursive generation process
A further category implements behavior mainly through nested function calls. The paper discusses a card whose behavior is triggered when a spell is cast. The trigger and effect are represented through arguments to an Effect constructor.
Such implementations align naturally with recursive tree construction. A constructor introduces a structured operation, and its children provide the nested pieces. The authors report generally good predictions in these cases, though errors still include missing content, extra content, and incorrect predicates.
This is qualitative evidence about compatibility between output style and decoder organization. It does not establish a general theorem about functional programming or a quantified advantage over imperative code. The observed pattern concerns the examples and error categories examined in Hearthstone.
Imperative logic exposes dependencies beyond the local tree
The hardest examples contain nontrivial control flow and other imperative logic. Their difficulty is not simply that they have more nodes. The authors point to arbitrary variable naming and the mixture of description-driven behavior with code required by the engine’s conventions.
In a difficult illustrated case, the prediction resembles the reference but omits an important statement and makes other mistakes. For more complex cases, the outputs can depart much further from the intended implementation.
The lesson from this analysis is that grammatical organization is only part of the dependency structure of a program. Correct behavior may require coordinated decisions across distant locations, along with knowledge of implementation conventions that the description does not state directly. The ASN’s recursive organization does not, on its own, enforce those relationships.
Limitations
What the authors explicitly leave unresolved
The authors directly acknowledge that syntactic structure does not ensure semantic coherence. A generated AST can use valid constructions while combining them in a way that fails to express the requested behavior. The architecture constrains the form of the answer more strongly than its meaning.
They specifically identify long-distance relationships between variable occurrences as unaddressed. A program may need several positions to refer consistently to the same variable. Generating each position through a legal primitive-value decision does not enforce that consistency.
Well-typedness and executability are also outside the enforced constraints. The presence of typed nodes in ASDL should not be confused with a complete semantic type checker. ASDL specifies which kinds of grammatical nodes belong in particular fields. The paper does not claim that this guarantees valid operations, available names, or successful execution.
The authors also identify string handling as a practical weakness. Even simple cards can fail when a name or another string is transformed incorrectly. They propose that an explicit copying mechanism or more specialized string machinery could help. That proposal is a direction for improvement, rather than an evaluated addition to the reported system.
What the evaluation measures
The authors explicitly distinguish their measurements from functional equivalence. BLEU measures overlap with a reference token sequence. Exact match measures agreement under the chosen comparison procedure. Tree precision, recall, and F1 measure a particular kind of structural overlap.
A generated implementation can disagree with the reference yet produce the same behavior. Conversely, extensive overlap can coexist with a consequential behavioral error. An omitted statement may change execution while leaving much of the tree or token sequence intact.
The paper suggests that additional canonicalization, such as anonymizing variables, could make similarity measurements more informative. This is presented as a possibility instead of a completed evaluation. The semantic-parsing experiments already canonicalize conjunction and disjunction order, but the code-generation measurements do not establish general equivalence between differently written programs.
The authors note both a theoretical and a practical obstacle. General functional equivalence cannot always be decided. For Hearthstone specifically, behavior-based evaluation would also require integration with the game engine. The reported experiments do not perform that integration.
Limits visible in the experimental setup
A careful reading places a boundary around the code-generation claim. Hearthstone is a specialized environment with recurring class patterns and a shared implementation library. The error analysis repeatedly relies on those regularities to explain successful predictions.
This does not invalidate the benchmark. It means that performance there should not be treated as evidence for broad generation across unrelated programming tasks, libraries, or conventions. Those settings are not evaluated.
The semantic-parsing results likewise depend on established preprocessing. Inputs are lower-cased and stemmed, while matching entities are replaced with typed abstract identifiers. The experiments therefore do not isolate the ability to process all of the original surface variation.
The claim of easy architectural transfer also has a specific scope. The same module scheme works with several grammars and input organizations. The paper does not show automatic discovery of a new grammar, automatic adaptation to an unknown programming language, or generation without paired target structures.
These are limits inferred from what the experiments contain. They should be distinguished from the authors’ explicit unresolved questions about typing, execution, copying, and evaluation.
Limits on explaining why the architecture succeeds
The paper’s improvements are clear on the reported Hearthstone metrics, but their causes are not exhaustively isolated. Several changes arrive together: AST output, grammar-associated modules, field-specific state preparation, recurrent sequence handling, and component-aware attention.
Without controlled removals of those pieces, one cannot conclude that any single ingredient accounts for the overall advantage. Supervised attention has a direct within-architecture comparison; most other components do not.
Greedy decoding supplies another boundary. A local constructor decision determines which fields and descendants will exist. An early error can therefore redirect a substantial part of the output. The paper demonstrates the effectiveness of its chosen decoding procedure but does not compare it with a search method that revisits such commitments.
The result reports also do not provide repeated-run variation or uncertainty estimates in the experimental discussion. A careful reader can report the observed scores and their settings, but should avoid adding claims about statistical significance or stability across random initializations.
The reach of the structural guarantee
A grammar-directed decoder is easiest to characterize when the target naturally decomposes into a tree. The paper’s conclusion points toward more general output structures as a future possibility. It does not evaluate such an extension.
This matters because some dependencies are not captured simply by parent–child containment. Shared variables, distant references, and other semantic relationships can cross branches. A tree remains a useful representation of syntax without representing every constraint that governs a valid program.
The strongest supported conclusion is therefore specific. Aligning decoder organization with an explicit recursive grammar improves prediction on the studied tasks and enforces the permitted grammatical construction process. Extending that success to semantic correctness requires further mechanisms and further evidence.
What came after
Citation establishes a connection, not an identical method
The later works connect this paper to a broad range of subsequent research on code and formal-language processing. Their titles identify directions such as structured representations, contextual generation, execution feedback, retrieval, and new evaluation tasks. Citation alone does not show that each work adopted the ASN’s module classes or recurrent update rules.
That distinction matters especially for this paper because its contribution has several separable parts. Later research might share its interest in syntax, use trees for a different purpose, address one of its unresolved semantic problems, or discuss it as an earlier approach. Those are different relationships. The later-work descriptions establish their subjects but do not supply implementation details or numerical comparisons.
The most reliable way to trace the connection is therefore through the research questions those works pursue. The ASN asks how output structure should guide generation. Later titles show continued attention to structure, along with growing emphasis on contextual information and behavioral validation.
Structure remains useful beyond this decoder
code2seq: Generating Sequences from Structured Representations of Code places structured code representations at the center of a sequence-generation problem. This creates a useful counterpart to the ASN: structure can matter on the side being read, as well as on the side being produced. The title supports that connection without establishing that code2seq reuses ASN decoding.
Structural Language Models of Code likewise keeps program structure explicit in its framing. It belongs to the broader question raised by ASNs: how much should a learned code system depend on the organization supplied by programming-language syntax? Its citation does not, by itself, establish the answer or the mechanism.
GraphCodeBERT: Pre-training Code Representations with Data Flow identifies data flow as a source of structure for code representations. In relation to the ASN, this is a distinct emphasis. Syntax describes grammatical organization; the ASN’s own limitations show why relationships concerning values and variables also matter. The title indicates attention to that broader representational problem, without demonstrating that it solves the ASN’s particular generation errors.
TreeDiff: AST-Guided Code Generation with Diffusion LLMs explicitly returns to AST guidance in code generation. Its title places syntax-tree guidance in a different generation framework from the recurrent architecture studied here. That is a direct thematic continuation of the idea that code structure can guide the generation process, though the available description does not establish how its guidance is implemented.
Semantic parsing expands the input and evaluation problem
Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task signals a later emphasis on complex queries and variation across domains. The ASN had shown transfer among several established semantic-parsing datasets. Spider’s title points toward a setting in which the range of formal queries and the variation in their surrounding domains become central evaluation concerns.
Representing Schema Structure with Graph Neural Networks for Text-to-SQL Parsing highlights another kind of structure: the database schema associated with a query. This complements the ASN’s focus on output syntax. A legal target expression must still select the appropriate elements of the environment in which it will be interpreted. The title establishes schema representation as the later work’s subject, but does not justify claims about particular gains or inherited decoder components.
Learning an Executable Neural Semantic Parser addresses a property that the ASN distinguishes from well-formedness: executability. Its relevance is therefore clear at the level of the research problem. The ASN makes legal tree construction explicit; the later title directs attention toward producing interpretations that can be executed. The available information does not establish which technical mechanisms connect the two.
Together, these works show why output grammar remains only one part of semantic parsing. The target must be structurally legal, but the system must also interpret the relevant environment and support the intended use of the resulting expression. The ASN provides an architectural answer to the first concern while acknowledging the others.
Program context and training data become explicit subjects
Mapping Language to Code in Programmatic Context foregrounds the context surrounding a generation request. This relates closely to the ASN’s error analysis, where implementation conventions and available constructions affect the required code. The later title makes context an explicit part of the task framing; it does not establish how that context is represented.
JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generation also centers context, while identifying dataset construction as a contribution. Its title contrasts in scope with Hearthstone’s specialized engine environment. No dataset size or performance claim is needed to see the relationship: evaluation can ask whether generation works when the surrounding context varies more broadly.
Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflow concerns the acquisition of paired language and code. That addresses an upstream requirement of the ASN training setup, which relies on examples containing both an input description and its desired output. The later work’s title supports a connection through data collection, rather than through decoder design.
Retrieval Augmented Code Generation and Summarization identifies retrieval as another source of support for generation. The ASN consults its encoded input through attention; the later title introduces retrieved information into the broader problem. The available description does not specify how retrieval interacts with syntax constraints, so that relationship should remain an open comparison.
Execution and compiler feedback target acknowledged gaps
Several later titles focus directly on validating generated behavior. Natural Language to Code Translation with Execution places execution alongside translation. LEVER: Learning to Verify Language-to-Code Generation with Execution makes execution-based verification explicit. Both connect to the ASN authors’ concern that reference similarity is an incomplete measure of correctness.
Compilable Neural Code Generation with Compiler Feedback identifies compiler feedback as a source of information. This concerns a property beyond the ASN’s grammar-level construction process. A tree may have an allowed form without satisfying all conditions required by a compiler. The title establishes the later work’s focus on that additional feedback channel.
Execution-based Code Generation using Deep Reinforcement Learning also centers execution, while naming a different learning framework. Its relationship to the ASN is clearest through the unresolved objective: generated code should be judged by more than resemblance to a reference. The title alone does not establish what behavior is checked or how effectively the method handles it.
These later directions should not be read backward as achievements of the ASN. The original experiments do not execute predictions, incorporate compiler feedback, or verify their behavior. Instead, the paper identifies the gap that makes such directions relevant.
Search and planning offer other organizations of generation
SPoC: Search-based Pseudocode to Code names search as a central organizing method. This provides a natural comparison with the ASN’s greedy construction process. The title establishes a different approach to organizing candidate generation, without supplying enough detail to say how its search relates to grammar decisions.
Self-planning Code Generation with Large Language Models places planning in the generation process. MapCoder: Multi-Agent Code Generation for Competitive Problem Solving foregrounds coordination among agents. These titles point toward other ways of dividing a difficult generation task into stages or responsibilities.
The ASN’s division is specifically grammatical: modules correspond to types, constructors, fields, and primitive values. Planning stages or agent roles need not follow that same decomposition. The connection is a broader design question about how to organize computation around a structured problem, while the differences remain substantial.
The paper’s lasting value within this collection is therefore a precise architectural proposition. When the target has an explicit recursive grammar, the generator can use that grammar to determine both its legal decisions and the arrangement of its computational parts. Later work broadens the surrounding agenda through richer contexts, alternative structures, search, and behavioral feedback. Those directions reinforce the boundary the ASN itself draws: producing a legal tree is a valuable achievement, and producing the intended program requires more.
Cite
Cite as Maxim Rabinovich, Mitchell Stern and Dan Klein. 2017. Abstract Syntax Networks for Code Generation and Semantic Parsing. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{rabinovich2017abstract,
title = {{Abstract Syntax Networks for Code Generation and Semantic Parsing}},
author = {Maxim Rabinovich, Mitchell Stern and Dan Klein},
booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2017},
doi = {10.18653/v1/p17-1105},
eprint = {1704.07535},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/p17-1105}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/rabinovich-2017-abstract-syntax-networks-code-generation/
References
- Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman. 2006. Compilers: Principles, Techniques, and Tools (2Nd Edition). Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA. OpenAlex ↗ · Scholar ↗
- Miltiadis Allamanis, Daniel Tarlow, Andrew D. Gordon, and Yi Wei. 2015. Bimodal modelling of source code and natural language. In Proceedings of the 32nd International Conference on Machine Learning, ICML 2015, Lille, France, 6-11 July 2015. pages 2123–2132. our card
- David Alvarez-Melis and Tommi S. Jaakkola. 2017. Tree-structured decoding with doubly-recurrent neural networks. In Proceedings of the International Conference on Learning Representations (ICLR) 2017. OpenAlex ↗ · Scholar ↗
- Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. 2016. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). Oral. OpenAlex ↗ · Scholar ↗
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. CoRR abs/1409.0473. our card
- Matej Balog, Alexander L. Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. 2016. Deepcoder: Learning to write programs. CoRR abs/1611.01989. OpenAlex ↗ · Scholar ↗
- Yoshua Bengio, Réjean Ducharme, Pascal Vincent, and Christian Janvin. 2003. A neural probabilistic language model (http://dl.acm.org/citation.cfm?id=944919.944966). J. Mach. Learn. Res. 3:1137–1155. http://dl.acm.org/citation.cfm?id=944919.944966 (http://dl.acm.org/citation.cfm?id=944919.944966). our card
- Steven Bird, Ewan Klein, and Edward Loper. 2009. Natural Language Processing with Python. O'Reilly Media, Inc., 1st edition. OpenAlex ↗ · Scholar ↗
- Danqi Chen and Christopher D. Manning. 2014. A fast and accurate dependency parser using neural networks (http://aclweb.org/anthology/D/D14/D14-1082.pdf). In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, October 25-29, 2014, Doha, Qatar, A meeting of SIGDAT, a Special Interest Group of the ACL. pages 740–750. http://aclweb.org/anthology/D/D14/D14-1082.pdf (http://aclweb.org/anthology/D/D14/D14-1082.pdf). our card
- James Cross and Liang Huang. 2016. Span-based constituency parsing with a structure-label system and provably optimal dynamic oracles. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, EMNLP 2016, Austin, Texas, USA, November 1-4, 2016. pages 1–11. our card
- Li Dong and Mirella Lapata. 2016. Language to logical form with neural attention. CoRR abs/1601.01280. our card
- Chris Dyer, Adhiguna Kuncoro, Miguel Ballesteros, and Noah A. Smith. 2016. Recurrent neural network grammars. In NAACL HLT 2016, The 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, San Diego California, USA, June 12-17, 2016. pages 199–209. our card
- Xavier Glorot and Yoshua Bengio. 2010. Understanding the difficulty of training deep feedforward neural networks. In In Proceedings of the International Conference on Artificial Intelligence and Statistics (AISTATS’10). Society for Artificial Intelligence and Statistics. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization (http://arxiv.org/abs/1412.6980). CoRR abs/1412.6980. http://arxiv.org/abs/1412.6980 (http://arxiv.org/abs/1412.6980). our card
- Tom Kwiatkowski, Eunsol Choi, Yoav Artzi, and Luke S. Zettlemoyer. 2013. Scaling semantic parsers with on-the-fly ontology matching. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, EMNLP 2013, 18-21 October 2013, Grand Hyatt Seattle, Seattle, Washington, USA, A meeting of SIGDAT, a Special Interest Group of the ACL. pages 1545–1556. our card
- Percy Liang, Michael I. Jordan, and Dan Klein. 2010. Learning programs: A hierarchical bayesian approach. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), June 21-24, 2010, Haifa, Israel. pages 639–646. OpenAlex ↗ · Scholar ↗
- Percy Liang, Michael I. Jordan, and Dan Klein. 2013. Learning dependency-based compositional semantics (https://doi.org/10.1162/COLI\_a\_00127). Comput. Linguist. 39(2):389–446. https://doi.org/10.1162/COLI_a_00127 (https://doi.org/10.1162/COLI\_a\_00127). OpenAlex ↗ · Scholar ↗
- Wang Ling, Phil Blunsom, Edward Grefenstette, Karl Moritz Hermann, Tomás Kociský, Fumin Wang, and Andrew Senior. 2016. Latent predictor networks for code generation. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, ACL 2016, August 7-12, 2016, Berlin, Germany, Volume 1: Long Papers. our card
- Chris J. Maddison and Daniel Tarlow. 2014. Structured generative models of natural source code. In Proceedings of the 31th International Conference on Machine Learning, ICML 2014, Beijing, China, 21-26 June 2014. pages 649–657. OpenAlex ↗ · Scholar ↗
- Aditya Krishna Menon, Omer Tamuz, Sumit Gulwani, Butler W. Lampson, and Adam Kalai. 2013. A machine learning framework for programming by example. In Proceedings of the 30th International Conference on Machine Learning, ICML 2013, Atlanta, GA, USA, 16-21 June 2013. pages 187–195. OpenAlex ↗ · Scholar ↗
- Graham Neubig, Chris Dyer, Yoav Goldberg, Austin Matthews, Waleed Ammar, Antonios Anastasopoulos, Miguel Ballesteros, David Chiang, Daniel Clothiaux, Trevor Cohn, Kevin Duh, Manaal Faruqui, Cynthia Gan, Dan Garrette, Yangfeng Ji, Lingpeng Kong, Adhiguna Kuncoro, Gaurav Kumar, Chaitanya Malaviya, Paul Michel, Yusuke Oda, Matthew Richardson, Naomi Saphra, Swabha Swayamdipta, and Pengcheng Yin. 2017. Dynet: The dynamic neural network toolkit. arXiv preprint arXiv:1701.03980 . our card
- Ana-Maria Popescu, Oren Etzioni, and Henry Kautz. 2003. Towards a theory of natural language interfaces to databases. In Proceedings of the 8th international conference on Intelligent user interfaces. ACM, pages 149–157. OpenAlex ↗ · Scholar ↗
- Richard Shin, Alexander A. Alemi, Geoffrey Irving, and Oriol Vinyals. 2017. Tree-structured variational autoencoder. In Proceedings of the International Conference on Learning Representations (ICLR) 2017. OpenAlex ↗ · Scholar ↗
- Michael Sipser. 2006. Introduction to the Theory of Computation. Course Technology, second edition. OpenAlex ↗ · Scholar ↗
- Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey E. Hinton. 2015. Grammar as a foreign language. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada. pages 2773–2781. our card
- Adrienne Wang, Tom Kwiatkowski, and Luke S Zettlemoyer. 2014. Morpho-syntactic lexical generalization for ccg semantic parsing. In EMNLP. pages 1284–1295. our card
- Daniel C. Wang, Andrew W. Appel, Jeff L. Korn, and Christopher S. Serra. 1997. The zephyr abstract syntax description language. In Proceedings of the Conference on Domain-Specific Languages on Conference on Domain-Specific Languages (DSL), 1997. USENIX Association, Berkeley, CA, USA, DSL'97, pages 17–17. OpenAlex ↗ · Scholar ↗
- Luke S. Zettlemoyer and Michael Collins. 2005. Learning to map sentences to logical form: Structured classification with probabilistic categorial grammars. In UAI '05, Proceedings of the 21st Conference in Uncertainty in Artificial Intelligence, Edinburgh, Scotland, July 26-29, 2005. pages 658–666. our card
- Luke S. Zettlemoyer and Michael Collins. 2007. Online learning of relaxed ccg grammars for parsing to logical form. In In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL-2007. pages 678–687. our card
- Kai Zhao and Liang Huang. 2015. Type-driven incremental semantic parsing with polymorphism. In NAACL HLT 2015, The 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Denver, Colorado, USA, May 31 - June 5, 2015. pages 1416–1421. OpenAlex ↗ · Scholar ↗