Coarse-to-Fine Decoding for Neural Semantic Parsing
Paper Β· 2018 Β· Li Dong and Mirella Lapata
Summary
A question about flights can specify where a flight leaves from, where it goes, and how the results should be combined. A system that turns the question into an executable query has to identify the operations the user wants and supply the details that make them apply to the right flights. This paper studies how to divide that work. In its approach to semantic parsing, a first decoder predicts a sketch of the intended meaning. A second decoder reads the question and the sketch together, preserving the structure already chosen and completing the open parts.
A sketch keeps different information depending on the target. For the logical forms in Geo and Atis, it keeps predicates, operators, and their arrangement while omitting arguments and variable information. For Python lines in Django, it keeps elements such as keywords and punctuation while using types such as NAME, NUMBER, and STRING for specific tokens. For WikiSQL, it records the comparison operators in a WHERE clause in a standard order. The complete SQL query still needs a column and a value for each comparison, as well as a decision about what to select. In each task, a rule derives the training sketch from the reference output. At test time, the system must predict the sketch itself.
The experiments compare Coarse2Fine with OneStage, which generates a complete representation directly. Coarse2Fine improves full-output accuracy on Geo, Atis, Django, and WikiSQL. It is competitive with earlier structured approaches on the logical-form tasks and exceeds the strongest previously reported results in the paperβs comparisons on Django and WikiSQL. WikiSQL also measures whether the generated query returns the correct answer when executed. There, the authors trace most of the improvement to completing the WHERE clause. Predicting its operators is already relatively reliable, while choosing the corresponding columns and values leaves more room for improvement.
The experiments also distinguish a sketchβs role as a set of instructions from its role as context. Removing the encoder that gives the completion stage a contextual representation of the sketch reduces accuracy. Supplying the reference sketch improves results, with an 8.9 point difference in Django test accuracy between ordinary prediction and completion with the reference sketch. The balance differs by task. In Django, errors in a lineβs broad shape leave appreciable room for a better first stage. In WikiSQL, the second stage accounts for most of the improvement even though the first stage predicts the pattern of comparisons slightly more accurately.
Deep dive: Coarse-to-Fine Decoding for Neural Semantic Parsing
Coarse-to-fine decoding turns natural language into logical forms, Python code, or SQL by predicting a sketch and then filling in its details. Β· about 39 minutes to read
The problem and its context
From a request to an executable representation
A semantic parser converts a natural language input into a formal expression whose parts have specified roles. A predicate can indicate that an entity is a flight. A different predicate can connect that flight to a departure city. A logical operator can say that both constraints apply. In source code, punctuation and keywords can determine which tokens belong to a call or a conditional statement. In SQL, selecting a column and using a column to filter rows are different operations, even when the question mentions both columns in the same phrase.
Predicting such an expression involves decisions at different scales. In a flight query, changing the departure city can preserve the entire arrangement of predicates. Changing a conjunction to a different operation can alter how the expression combines several predicates at once. A line of Python may reuse the same sequence of calls and comparisons with a different identifier or literal. Learning these recurring arrangements is part of the job, alongside recovering the individual details that make each expression correct.
Formal expressions can be written as sequences, which makes token-by-token generation an attractive starting point. A logical form can put its operators, arguments, and brackets in a row. A line of code already appears as a sequence of keywords, identifiers, and symbols. The hierarchy is still present in both cases. Brackets identify which arguments belong to an operator, and a dot, parentheses, or brackets in Python carry information about the operation being performed. A decoder that emits tokens in order has to track those relationships while choosing the next token.
That is the setting for the authorsβ proposal. A decision about how to combine predicates can be represented directly in an intermediate sequence, and the same intermediate sequence can be used for expressions that name different places. This provides the final decoder with information about parts of the target that would ordinarily still lie ahead in the output. The authorsβ motivation rests on three properties of a sketch. It is more compact than the complete expression, it gives examples with the same structure a common training target, and it makes that structure available while the remaining details are generated.
How earlier work used structure
The paper describes an earlier line of supervised parsing research that learned rules connecting particular words or phrases to pieces of a formal expression. A parser could assemble an interpretation from these rules and use a scoring function to choose among possible assemblies. Work on probabilistic categorial grammars and on synchronous grammars with lambda calculus illustrates how the connection between language and formal structure could be part of the rules being learned. Learning to Map Sentences to Logical Form and Learning Synchronous Grammars for Semantic Parsing with Lambda Calculus
Recurrent neural networks offered another way to learn the mapping from paired examples. In a sequence-to-sequence system, an encoder reads the input and a decoder predicts the output one token at a time. Attention lets the decoder draw more heavily on different input words at different steps. The paper places this approach in the context of earlier work on translation, syntactic analysis, and logical forms. That work motivated a learned mapping with fewer hand-engineered input features, while leaving open how much of the targetβs structure should be made explicit during decoding. Neural Machine Translation by Jointly Learning to Align and Translate and Language to Logical Form with Neural Attention
Some of the precursors changed the architecture of the decoder. Top-down tree decoders generate parts of a tree under their parents. Grammar-constrained generators use the rules of the target formalism to determine which extensions are admissible. A code generator can produce an abstract syntax tree, which expresses relationships such as which operands belong to an operation, by expanding the tree in a specified order. Another approach composes specialized decoder components as the output tree takes shape. These designs place structured information at the point where the next part of the output is chosen. A Syntactic Neural Model for General-Purpose Code Generation and Abstract Syntax Networks for Code Generation and Semantic Parsing
Other earlier approaches addressed performance through the data or the learning setup. The authors mention augmentation, transfer across tasks, shared parameters across languages or representations, and user feedback. These techniques concern what training evidence a parser can use. For example, recombining data can produce additional languageβrepresentation pairs. The question in this paper concerns what targets the parser predicts from the pairs it has, and when it makes each decision about the output. Data Recombination for Neural Semantic Parsing
Where the sketch fits
Coarse-to-fine processing already had precedents in syntactic parsing. The discussion of related work also covers semantic parsers that limit their search using either coarse lexical entries or macro grammars. Here, the coarse object comes from the target expression itself. Several completed expressions map to the same sketch whenever the extraction rule removes the features that distinguish them. The decision to give that sketch its own prediction stage creates an explicit intermediate target for training.
Program synthesis provides a more direct precedent for this use of a sketch. The paper describes an earlier SQL system that maps a sentence to an incomplete query, completes it using program synthesis, and can revise an unsuccessful result. Coarse2Fine also commits to an intermediate form that still has gaps. Its completion stage learns from reference expressions, uses the original question, and reads an encoded version of the sketch. The paper investigates how far that arrangement can serve tasks with different formal languages and different definitions of a gap.
The method, step by step
What happens to a question
The parser starts by turning the words of the input into a sequence of vectors. A first decoder uses those vectors to decide what kind of formal expression the question calls for. In a logical form, for instance, it can specify that a conjunction contains predicates for being a flight and having a departure point. The sketch can preserve the fact that the departure predicate expects a flight and a place, leaving their actual identities open. It therefore acts as a compact description of a family of complete expressions.
The fine decoder then has two sources of information. The words of the question can identify a place mentioned by the user. The sketch can indicate which predicate needs that place and how the predicate relates to the rest of the expression. Elements fixed by the sketch are carried into the output. At open positions, the decoder makes a prediction, with an output type or a number of arguments supplied where the sketch specifies one. The authors also encode the entire sketch before this stage, allowing the representation of one part of the sketch to reflect the parts around it.
The pipeline below describes the common design. The implementation for WikiSQL applies it to the filter conditions, uses a classifier to choose a complete sketch, and predicts the fields of SELECT separately. The distinction matters because the paper tests a division of work that allows different implementations of the coarse stage.
Predicting and completing a meaning sketch
The steps in order.
The probability of a sketch and its completion
In the authorsβ notation, x is the natural language input sequence, a is the sequence representing the sketch, and y is the sequence representing the full output. A given reference output determines its sketch under the taskβs extraction rule. The paper writes the probability of a complete output as a product for that output and its associated sketch.
p(y β£ x) = p(y β£ x, a) p(a β£ x)
Here p denotes a probability and β£ means βgiven.β The term p(a β£ x) scores the sketch a for input x. The term p(y β£ x, a) scores the completion y given both. Their product describes the route through the sketch associated with y. Several outputs can share a, so the sketch probability can be learned from several examples even when each example requires a different completion.
The sequence version of the first stage makes each sketch prediction depend on what has already been emitted.
p(a β£ x) = ββββ^{|a|} p(aβ β£ aββ<tββ, x)
The symbol β means to multiply the token probabilities. The position t runs from 1 through |a|, the sketch length. aβ is the current sketch token, and aββ<tββ denotes the prefix strictly before that token. Each factor is a conditional probability given this prefix and the input x. The prefix is empty at the beginning of sketch generation.
p(y β£ x, a) = ββββ^{|y|} p(yβ β£ yββ<tββ, x, a)
Here |y| is the length of the full output. The token yβ is predicted at position t, and yββ<tββ is the full-output prefix already available at that step. The product uses a probability for each successive output position given the prefix, the input x, and the whole sketch a. In the implemented decoder, a position specified by a is forced to agree with it. The predictive choices of interest occur where the sketch leaves details open.
Encoding the question
The encoder first looks up a vector for each input token. A vector of this kind is called an embedding. The matrix notation for the lookup shows how each vocabulary entry chooses a column of trainable values. Word embeddings
π±β = πβ π¨(xβ)
The symbol xβ is the input token at position t, while π±β is its vector. The function π¨ makes a one-hot vector, with a 1 in the entry for the token and a 0 elsewhere. The width of πβ is |π±β|, the number of entries in the input vocabulary π±β. Its height is n, the embedding dimension in this formulation. Multiplication by the one-hot vector selects the column associated with xβ.
A recurrent encoder updates a state as it moves through the sequence. The authors use long short-term memory units, or LSTMs, to perform these updates. They run one recurrence from the beginning of the input towards its end and another from the end towards its beginning. The resulting representation of a word can incorporate context on both sides.
πββ = LSTM(πββββββ, π±β)
The arrow β marks the forward direction. At position t, πββ is the new forward state, πββββββ is the state from the preceding input position, and π±β is the embedding at the current position. LSTM is the recurrent update. It runs in order from position 1 to position |x|, the length of the input.
πββ = LSTM(πββββββ, π±β)
The arrow β marks the backward direction. This time πββ depends on πββββββ, the state at the next position in the written input, and on the current embedding π±β. The recurrence visits positions from |x| back to 1.
πβ = [πββ, πββ]
The square brackets join the two vectors end to end. The result πβ is the context-sensitive input encoding at position t, with n dimensions in the paperβs notation. Encodings from all positions remain available. The terminal states of the two recurrences are also used to initialize decoding.
Producing the sketch with attention
At the start of sketch generation, the decoder uses a vector derived from the whole input. After that it keeps a recurrent state and updates it using the embedding of the previous sketch token. Earlier choices therefore affect which token the decoder is ready to emit next.
πβ = [πββ|x|β, πββ]
Here πβ is the initial coarse decoder state. πββ|x|β is the final state reached by the forward input encoder, and πββ is the final state reached by the backward encoder. The brackets denote concatenation. Each terminal state has been computed after a pass through the input.
πβ = LSTM(πβββββ, πβββββ)
Here πβ and πβββββ are the current and preceding coarse decoder states at output steps t and t β 1. The vector πβββββ is the embedding of the preceding sketch token. LSTM updates the state using this pair of vectors. Input positions and sketch positions use the same letter t in their respective recurrences and can have different lengths.
At each step the decoder can focus on the portions of the original question that are most relevant to its current decision. Attention measures the compatibility of each input position with the current decoder state. The paper uses a dot product followed by normalization, a version of the mechanism described in Effective Approaches to Attention-based Neural Machine Translation.
sβ,β = exp(πβ Β· πβ) / Zβ
The weight sβ,β connects decoder step t with input position k. The dot Β· means a vector dot product between πβ, the coarse decoder state, and πβ, the input encoding at position k. The exponential exp turns the compatibility score into a positive quantity. Dividing by Zβ makes the weights at that decoder step sum to 1.
Zβ = ββ±Όββ^{|x|} exp(πβ Β· πβ±Ό)
The normalization constant Zβ adds the exponentiated scores over the full input. The symbol β denotes summation, j ranges across the |x| input positions, and πβ±Ό is the corresponding input vector. The state πβ is the same for all positions within this calculation.
πβα΅ = ββββ^{|x|} sβ,β πβ
The decoderβs input context at step t is πβα΅. The superscript d labels the context used by the decoder. Each position contributes its vector πβ in proportion to the attention weight sβ,β. Summing from 1 through |x| lets more than one input word influence the decision, even if the largest weight lands on a single word.
πβα΅α΅α΅ = tanh(πβ πβ + πβ πβα΅)
The attention-enriched state is πβα΅α΅α΅. The matrices πβ and πβ are learned transformations of the current recurrent state πβ and the input context πβα΅, respectively. Their transformed vectors are added. The hyperbolic tangent tanh is applied to each component to produce the state used for prediction.
p(aβ β£ aββ<tββ, x) = softmaxββββ(πβ πβα΅α΅α΅ + πβ)
πβ is the learned matrix mapping πβα΅α΅α΅ to vocabulary scores, and πβ adds a learned bias for each entry. The softmax converts scores into probabilities that sum to 1 across the sketch vocabulary. Its subscript selects the entry for candidate token aβ. The conditioning information is the sketch prefix aββ<tββ and input x. The decoder ends the sketch when it emits the designated end-of-sequence token.
Encoding the sketch and filling its gaps
The next encoder reads the predicted sketch in both directions with LSTMs. It follows the same pattern as the input encoder and yields a contextual vector π―β for every sketch position k. This matters because several positions can use the same sketch symbol. A placeholder next to one operation can call for a different detail from the same placeholder next to another operation. Its contextual vector can carry information about surrounding operations in either direction.
The fine decoder reuses the question encoding, and its initial state is the same concatenation of terminal question encodings used in the coarse stage. At subsequent steps, the source of the vector fed into the recurrence depends on the relationship between the sketch and the immediately preceding output token. This is one route by which the sketch continues to influence decisions after a fixed token has already been emitted.
π’β = { π―β if aβ determines yβββββ
π²βββββ otherwise
π’β is the vector input to the fine recurrence at step t. The output token at the preceding step is yβββββ. If a sketch token aβ determines it through a one-to-one alignment, the decoder receives the contextual sketch vector π―β. In other cases it receives π²βββββ, the embedding of the previous output token. The two lines are the two cases of the input rule.
π‘β = LSTM(π‘βββββ, π’β)
π‘β is the fine decoder state at the current step, and π‘βββββ is its state at the preceding step. The function LSTM combines the preceding state with π’β to produce the new one. The fine decoder attends to the original input from this state. For an open position, it uses the same type of attention and output calculation as the coarse decoder, with the fine state and the full-output prediction in the corresponding roles.
A fixed predicate or delimiter must appear where the sketch places it. A marker can also say how many elements are missing. In the logical-form task, a predicate annotated as flight@1 requires an argument. In Django, a numeric placeholder calls for a number, and a string can extend across output tokens until the closing quote indicates that generation of that string is complete. These are distinct kinds of constraints. The decoder can be told the exact output token, the type that a predicted token should have, or how to recognize that a span of detail has finished.
How sketches are made from logical forms
Geo and Atis use expressions based on lambda calculus. Their bracketed notation represents a hierarchy as a sequence. An operator or predicate occupies the first position in a bracketed expression, and its arguments follow it. Arguments can themselves have internal structure. Keeping composition information is therefore essential to recovering which expressions belong together once specific variables and entities have been removed.
The authors omit arguments where the sketch can summarize them with an arity marker. Arity is the number of arguments a predicate takes. For example, from@2 retains the departure relation and the information that it needs two arguments. The original example includes Dallas as a city argument. At completion time, the parser has to recover the specific arguments in their respective roles. When the extraction procedure can omit only part of the argument information, ? marks a gap within the structure that remains.
Variable declarations also contain details the authors choose to omit. For a lambda operator or a quantifier, the # marker records how many tokens were left out. The sketch symbol lambda#2 keeps the operator and specifies the length of the omitted material. Keeping this count lets the fine decoder know how much material to supply at that point. Keeping brackets and operators around such gaps retains the nesting needed to place the generated details.
For these tasks, the authors augment both decoders with information from the parent expression. In a conjunction containing a departure predicate, the conjunction is the parent of that predicate. The parent can be farther back in the sequence than the immediately preceding token. The architecture feeds the parentβs state to the classifier that scores the next token.
p(aβ β£ aββ<tββ, x) = softmaxββββ(πβ [πβα΅α΅α΅, πβpββ] + πβ)
Here pβ is the index of the parent of the current position t. The vector πβpββ is the decoder state at that parent, and πβα΅α΅α΅ is the current state after attention. The brackets concatenate them. The learned projection πβ and bias πβ produce scores for the softmax, whose selected entry gives the probability of aβ given the prefix aββ<tββ and input x. The fine decoder applies the same parent-feeding idea with its own states and output vocabulary.
How sketches are made from Python
Django pairs a natural language description with a line of Python. The authors use Pythonβs lexical scanner to split the reference code into tokens and identify their types. A lexical scanner recognizes units such as names, numbers, and delimiters before any larger expression is assembled. To form a sketch, the procedure replaces the tokens that vary from instance to instance with their types while retaining delimiters, operators, and keywords.
The paper illustrates this with a conditional that takes a slice, calls a method on it, and compares the result with a string. Its sketch keeps the conditional keyword, the brackets indicating the slice, the dot and parentheses for the call, the comparison operator, and the final colon. It replaces the identifier being sliced and the method name with NAME, the numerical boundary with NUMBER, and the literal with STRING. A single sequence of types and fixed symbols can thus represent lines that operate on different names, numbers, and strings.
Variable names and other details may be absent from the decoderβs fixed output vocabulary. Djangoβs fine decoder can recover such a token when it appears in the input description by using attention as a source of copy scores. A learned gate gives this route a weight at the current step. The paper places this mechanism in the line of earlier work on using source tokens directly in sequence generation. Incorporating Copying Mechanism in Sequence-to-Sequence Learning and Pointing the Unknown Words
gβ = sigmoid(π°g Β· π‘β + bβ)
The scalar gβ is the copy gate at fine step t. The vector π°g and scalar bβ are learned parameters for the gate, with bβ denoting the gate bias. The dot product uses the current fine state π‘β. The sigmoid maps the result to the interval between 0 and 1.
pΜ(yβ β£ yββ<tββ, x, a) = (1 β gβ) p(yβ β£ yββ<tββ, x, a)
+ π[yβ β π±α΅§] gβ ββ:βββα΅§β sβ,β
The quantity pΜ is the modified output probability for the candidate yβ. It conditions on earlier output tokens yββ<tββ, the input x, and sketch a. The original vocabulary probability is p, and 1 β gβ is its weight. The indicator π is 1 when the candidate is outside the target vocabulary π±α΅§ and 0 otherwise. The summation runs over input positions k where the input token xβ equals yβ, adding their fine-decoder attention weights sβ,β. The copy contribution receives the weight gβ. If the same unknown token occurs several times in the question, each occurrence contributes its attention weight to that tokenβs score.
How WikiSQL supplies the table as context
The SQL task gives the parser the question and the names of the table columns. SELECT specifies which column provides the answer and whether to apply an operation such as COUNT, MIN, MAX, SUM, or AVG. WHERE restricts the rows by comparing a column with a value. WikiSQL allows equality and comparisons using < and >. A query can have no filter or can conjoin several conditions. The sketch retains the comparison operators in a sorted sequence. It represents a choice about the number and kind of comparisons while leaving the fields and values to be supplied.
A table header can contain several words, and the same question wording can refer to different fields under different schemas. A schema is the description of the available columns in this task. The authors join all the column names with a separator and encode the resulting sequence with a bidirectional LSTM. For each column, they concatenate states at the ends of its name to obtain a column vector. This produces a vector for each available column, including columns whose names consist of multiple words.
Question encoding then has an additional attention calculation. Each question position attends to the available column vectors. A learned one-layer network transforms the question state and each column vector before their similarity is scored.
uβ,β β exp(Ξ±(πβ) Β· Ξ±(πβ))
The weight uβ,β measures attention from question position t to column k. The question encoding is πβ, the column encoding is πβ, and Ξ± is the learned transformation applied to both. The dot denotes their transformed vectorsβ dot product. The proportionality sign β means that the exponentiated scores are normalized across all columns so that the weights for a given position sum to 1.
πβα΅ = ββββα΄Ή uβ,β πβ
The column context πβα΅ is the sum of the column vectors weighted by their relevance at question position t. The superscript e labels the context associated with the question encoding. The index k ranges over the M columns. The weight for each term is uβ,β, and πβ supplies the vector being weighted.
At each question position, the authors append its column context to its question vector. They send this sequence of joined vectors through another bidirectional LSTM. The resulting question encodings replace the original ones in the rest of the parser. The architecture can thus use the table when choosing the sketch, when deciding what the answer should select, and when locating or interpreting the details of a condition.
πΜ = [πΜββ|x|β, πΜββ]
πΜ is the vector for the whole question after incorporating column information. πΜββ|x|β is the forward terminal state at the final input position, and πΜββ is the backward terminal state at the first input position. The brackets concatenate them. The tilde identifies the states computed with column context, and |x| denotes the input length.
How WikiSQL chooses the answer fields and comparison operators
The SELECT clause has slots for the aggregation operator and the selected column. A softmax classifier reads πΜ to choose the aggregation operator. To choose the column, the parser scores each candidate header in combination with the question. The scoring function applies a learned transformation, an elementwise nonlinearity, and a dot product that produces a scalar.
Ο(π³) = π°β Β· tanh(πβ π³ + πβ)
Ο is the scoring function, and π³ is its vector argument. πβ transforms that argument, and πβ is the bias added before applying tanh. The learned vector π°β reduces the transformed vector to a scalar through the dot product Β·. Different uses of the function in the SQL decoder have their own learned parameters.
p(agg_col = k β£ x) β exp(Ο([πΜ, πβ]))
agg_col = k denotes choosing the k-th header as the selected column, including when the aggregation operator is empty. The candidate score comes from applying Ο to the joined question vector πΜ and column vector πβ. The exponential and normalization yield probabilities across the headers of the current table. The notation conditions on question x, and the vectors used in the calculation incorporate the schema.
For WHERE, the coarse stage can treat each complete sorted sequence of comparison operators as a separate category. The WikiSQL training split contains 35 such sketches. This small collection allows the parser to predict the whole pattern in a single classification decision.
p(a β£ x) = softmaxβ(πβ πΜ + πβ)
This softmax ranges over complete sketches, and its subscript a selects the probability for one of them. The learned matrix πβ and bias πβ turn the table-aware question vector πΜ into a score for each sketch. As with the selected-column equation, the conditioning notation uses x, while the question vector also reflects the table headers.
How WikiSQL completes each condition
With the pattern of comparison operators chosen, the fine decoder needs to fill a column slot and a value slot for each condition. It selects the column from the current tableβs headers. The candidate score uses the decoderβs attention-enriched state together with the column vector, in the same form as the SELECT column scorer with a separate set of parameters.
p(cond_colβα΅§ββ = k β£ yββ<tββ, x, a) β exp(Ο([π‘βα΅α΅α΅, πβ]))
cond_colβα΅§ββ is the condition-column choice at the current output step. The event = k selects the k-th available header. The preceding output is yββ<tββ, the question is x, and the sketch is a. The scorer Ο reads the concatenation of the fine state after input attention, π‘βα΅α΅α΅, and the header vector πβ. The exponentiated scores are normalized over the current tableβs headers. Once the decoder chooses a column, its vector becomes the input to the next LSTM update.
For the value, the authors observe that a question often contains the words needed for the comparison. The value can be a phrase, as in the paperβs example of a personβs name. The decoder chooses a contiguous span of input words by scoring its earliest and latest positions. The right boundary depends on the choice of left boundary, allowing the two ends to be selected as parts of the same value.
p(condβα΅§ββ = xβ β¦ xα΅£ β£ yββ<tββ, x, a) =
p(L = l β£ yββ<tββ, x, a) p(R = r β£ yββ<tββ, x, a, L = l)
condβα΅§ββ denotes the value slot at output step t. The span xβ β¦ xα΅£ runs from input position l through position r. The variable L denotes the left boundary and R the right boundary. The first factor scores the event that the span starts at l, given the output prefix yββ<tββ, question x, and sketch a. The second factor additionally uses the chosen start to score the event that it ends at r.
p(L = l β£ yββ<tββ, x, a) β exp(Ο([π‘βα΅α΅α΅, πΜβ]))
For the left boundary, Ο scores the joined fine attention state π‘βα΅α΅α΅ and the table-aware encoding πΜβ at candidate start position l. Normalizing the exponentiated scores gives a distribution over start positions. The state embodies the current condition and what the decoder has already generated.
p(R = r β£ yββ<tββ, x, a, L = l) β exp(Ο([π‘βα΅α΅α΅, πΜβ, πΜα΅£]))
The end scorer has its own parameters. Here πΜα΅£ is the encoding of the candidate end position r, and πΜβ is the encoding of the selected start l. The brackets join these two encodings with the same fine attention state. The exponentiated scores are normalized over the candidate end positions. After copying the span, the decoder joins its boundary vectors, transforms the result through a one-layer network, and feeds that vector into the next LSTM update. The selected phrase can thereby influence later decoding.
How training differs from prediction
The training data pair natural language expressions with their reference outputs. Applying the task-specific extraction procedure to every reference gives a training sketch. The parser learns to predict that sketch and to complete it when it is given as context. Each training example therefore contributes a score for recovering the coarse structure and a score for supplying the full representation under that structure.
max βββ,β,α΅§ββπ [log p(y β£ x, a) + log p(a β£ x)]
π is the training collection, written as triples after deriving a from each reference y paired with input x. The summation adds contributions over those triples. log is the logarithm, applied to the completion probability and the sketch probability. max means the parameters are fitted to maximize this sum. The objective trains the first stage on the structure the reference calls for and trains the second stage on completions of that structure.
For a new input, the parser has to choose its own sketch. The authors describe the desired coarse prediction as the highest-probability candidate under the first stage.
Γ’ = argmaxββ² p(aβ² β£ x)
Γ’ denotes the chosen sketch, aβ² is a candidate sketch, and argmax returns the candidate that maximizes its conditional probability given x. For a sequential sketch, the paper approximates this choice with greedy search. At each successive token position, the decoder takes the locally preferred token and continues with that prefix.
Ε· = argmaxα΅§β² p(yβ² β£ x, Γ’)
Ε· denotes the final prediction, and yβ² is a candidate complete representation. This second maximization is conditioned on the input x and the chosen sketch Γ’. Greedy generation again approximates the sequence-level choice, with positions already specified by the sketch constrained accordingly. The procedure commits to the coarse prediction before considering its possible completions. A locally preferred token can lead to a less probable whole sequence, and a preferred sketch can lead to a less successful completed expression.
Experiments and results
The datasets and their preparation
Geo contains 880 natural language queries about U.S. geography. The standard split used in the paper gives it 600 training instances and 280 test instances. Atis uses questions for a flight booking system. It contains 5,410 examples, divided into 4,480 for training, 480 for development, and 450 for testing. The two datasets share the logical-form approach to sketch extraction. They give it different vocabularies and sets of queries to operate on.
For both logical-form datasets, the authors use preprocessed versions from earlier work. Input words are lower-cased and stemmed using NLTK. Stemming reduces words to forms used for matching across related inflections. Entities are replaced by numbered markers, giving the system a representation in which some distinctions among names have already been abstracted away on the input side. In the output, an opening bracket can be joined with the predicate it introduces to make the linear sequence more compact. These steps are separate from deriving the sketch from the full logical form. Stemming
Django contains descriptions paired with lines from the Django Python codebase. The examples cover tasks such as iteration, handling exceptions, and manipulating strings. The original split assigns 16,000 instances to training, 1,000 to development, and 1,805 to testing. The authors use a previously prepared version in which NLTK splits the language inputs into tokens and quoted strings in those inputs are replaced with placeholders. Pythonβs own lexical scanner supplies the code token types used in sketch extraction. The two procedures address different sides of the example. Tokenization
WikiSQL contains 80,654 question and query pairs over 24,241 Wikipedia tables. Its splits reserve 70% for training, 10% for development, and 20% for testing. A table belongs to a single split, so test questions are answered against schemas associated with tables held out during training. The parser sees the column names when it generates a query. The table contents are used to execute the query during evaluation. The authors apply the datasetβs preprocessing script, which lowercases and tokenizes the input with Stanford CoreNLP.
Settings, comparisons, and measures
The authors choose Geoβs settings by cross-validation within its training data. For the other datasets they tune on the development split. The candidate hidden-vector sizes are 250 and 300, and the candidate embedding sizes are 150, 200, 250, and 300. They consider dropout rates of 0.3 and 0.5. Dropout omits some activations during training as a form of regularization. Geo and Atis also use label smoothing with a parameter of 0.1, which spreads some training target probability beyond the reference label.
In the WikiSQL configuration, the hidden size of the column attention and scoring networks is 64. Question and table encoders share word embeddings initialized with GloVe. The question input also includes 10-dimensional vectors for part-of-speech tags obtained with spaCy. A tag supplies information about the grammatical category of a word. All tasks use RMSProp, with the learning rate chosen from 0.002 and 0.005. The WikiSQL batch size is 200; each of the other datasets uses 64. Early stopping determines the duration of training. The authors make the implementation and trained parameters available in the coarse2fine repository. GloVe
OneStage is the direct comparison for the paperβs central design choice. It decodes the full representation without an intermediate sketch. The published comparisons ask a broader question about how the complete system fares against existing parsers. For logical forms, the authors discuss Seq2Tree and ASN as approaches that incorporate structural information. On Django they compare with earlier code generators, including SNM+COPY. On WikiSQL the comparison includes the systems that introduced the dataset and used its restricted query structure to organize prediction. Seq2SQL and SQLNet
Full-output accuracy is the share of examples whose predicted meaning representation matches the reference representation. It measures success on the complete target, giving a partial result no separate credit in that score. On WikiSQL the authors also report execution accuracy. They run the predicted query on the corresponding table and check whether the answer is right. That outcome and a match to the reference expression answer different questions about the prediction. Component accuracy, such as the accuracy of a single SELECT decision, measures a narrower part of the same task.
How the full outputs compare
On the Geo and Atis test sets, the paper reports higher full logical-form accuracy for Coarse2Fine than for OneStage. It describes the overall performance as competitive with the earlier neural parsers that incorporate syntax or grammar. The result supports the authorsβ choice to separate structural and detailed predictions in these two settings. Both datasets use the same broad design for extracting logical-form sketches and passing information from parent expressions to the decoder.
On Django, Coarse2Fine improves more markedly over OneStage. The paper reports that it also surpasses the best earlier result it compares against, SNM+COPY. The comparison is on complete Python outputs from the Django test set. The sketch can organize a line around its keywords, operations, and delimiters, while the copying mechanism gives the completion stage a way to recover an uncommon token mentioned in the description. Full-output accuracy still requires these choices to come together in the same line.
On WikiSQL, the authors report stronger results for Coarse2Fine than for OneStage and the previously strongest systems in their comparison. They identify the WHERE decoder as the chief source of the gain. For the WikiSQL test evaluation, Coarse2Fineβs accuracy on the aggregation operator is 90.2%, and its accuracy on the selected column is 92.0%. The authors describe those respective slot results as comparable to SQLNet. The chart shows the two SELECT prediction settings under the same component accuracy metric. Each bar concerns its own target.
Coarse2Fine SELECT slot accuracy on the WikiSQL test set
The selected column is predicted more accurately than the aggregation operator.
The numbers
| System or setting | accuracy % |
|---|---|
| Aggregation operator | 90.2 |
| Selected column (this paper) | 92.0 |
The SELECT component scores help locate the gain because WHERE requires a different set of decisions. The filter can have several conditions, each with an operator, a column, and a value. Even when the answer field and aggregation operator are correct, a wrong filter can produce the wrong rows. The coarse and fine stages of Coarse2Fine give the authors separate opportunities to examine errors in the filter pattern and errors in completing it.
What the ablations show
Removing the sketch encoder
The paper compares the full system with a version that omits the sketch encoder. A sketch has two roles in the full design. Its symbols specify constraints that the fine decoder follows, and its contextual vectors supply information to that decoder as it moves through the output. The ablation removes the contextual encoding. It therefore addresses a narrower question than the comparison with OneStage, which removes the intermediate sketch from prediction altogether.
The authors report that removing the encoder harms full-output accuracy on Geo and Atis, and they find the encoder beneficial on Django as well. In these tasks, a decoder may know which token is fixed or which type it is expected to fill, while the surrounding structure helps determine the concrete detail. A predicate, for example, can take an argument whose interpretation depends on what other predicates surround it. Encoding the sketch gives the fine decoder a way to access that information when it resumes its recurrent predictions after a fixed symbol. The ablation supports the contribution of this contextual signal in the system that was evaluated.
Giving the decoder the reference sketch
The oracle experiment hands the fine decoder the sketch extracted from the test reference. An oracle in this context is a comparison setting with access to information ordinary test-time prediction has to infer. The fine decoder still has to recover the missing details. The oracle score therefore measures how accurately that decoder can complete test outputs when the coarse structure supplied to it is correct.
On Geo and Atis, the authors report an increase in full-output accuracy under this setting. On Django, they give an 8.9 point difference in test accuracy between Coarse2Fine with a predicted sketch and the oracle setting. That gap has a concrete interpretation. When a lineβs predicted pattern puts the wrong operations or placeholders in place, the fine decoder can be constrained to complete the wrong pattern. Replacing the prediction with the reference corrects those structural decisions before completion starts. The resulting gain measures the benefit of that intervention with the tested decoder. The remaining errors under the oracle reflect the work still required to fill a correct sketch.
The oracle is most informative alongside the ordinary comparison. A gain from Coarse2Fine over OneStage says that the division of work helps the finished system. A gain from supplying the sketch says the first stage still leaves some attainable accuracy unused when its predictions are passed to the second stage. These observations can hold at the same time. In Django, the paper finds both a stronger deployed result than the direct baseline and appreciable scope for improving the input to the completion stage.
Comparing sketches across systems
OneStage produces full outputs. The authors apply the same task-specific extraction rule to those predictions to see which sketches the outputs imply. They compare them with the sketches Coarse2Fine predicts directly. This puts the two approaches on a shared test of structure. A OneStage answer with the right arrangement but a wrong argument can still imply a correct sketch. The resulting comparison tells whether an early prediction of structure is more accurate than recovering that structure after direct generation.
The directly predicted sketches are more accurate on Geo, Atis, Django, and WikiSQL. For the logical-form and code datasets, the authors connect stronger sketch predictions to improvements in full-output accuracy. The comparison is consistent with the training design: examples that share a sketch give the coarse decoder repeated supervision on the same target. It is also possible for a correct sketch to accompany a wrong final answer, which is why the sketch result is reported alongside the full result.
WikiSQL shows a different balance. Coarse2Fineβs sketch accuracy is only marginally higher than the accuracy of sketches extracted from OneStage outputs. A sequence of comparison operators carries relatively little of the information needed to reconstruct a query. The gap in full-output performance can therefore coexist with a small change in sketch accuracy. The authors attribute most of the WikiSQL improvement to the fine decoder, where the columns and values for those comparisons are chosen.
Removing table awareness and locating the WikiSQL gain
The WikiSQL ablation also removes table awareness from the input encoder. The authors find the schema-conditioned encoding important. Their example concerns a question asking how many presidents attended a college. A table with an individual president column invites a count of matching rows. A table with a column containing the number of presidents can provide that number directly. The wording of the question can remain the same while both the appropriate selected column and the need for aggregation depend on how the table is organized.
This is the distinction the encoder can represent by attending to headers as it reads the question. It can give a question about a count one encoding when the schema names individuals and another when the schema already names a count. Selection among candidate columns and span extraction then use a representation that has incorporated the table. The ablation tests the contribution of that input-side design within the WikiSQL system.
The authorsβ explanation of the WHERE improvement combines the slot-level and sketch comparisons. The scores on the two SELECT slots are similar to SQLNetβs, and there is little change in the accuracy of the operator sequence against OneStage. The completion stage is where Coarse2Fine can focus on matching headers and extracting values after the comparison operators have been settled. The authors propose that freeing this stage from operator prediction helps those decisions, and that sorting the operator sequence supplies a helpful standard order. These explanations are interpretations of the results. The comparisons locate the gain more directly than they separate the effects of condition ordering, column matching, and span selection.
Limitations
Limits the authors identify
The training procedure assumes examples with complete reference representations. The authors obtain supervision for the sketch by transforming these references. They identify learning from questionβanswer pairs as a future direction. Under that weaker supervision, an observed answer supplies evidence about which expression could have produced it. Deriving the intended sketch would require an additional learning or search procedure because the training pair supplies no formal expression from which to extract it.
The authors also propose investigating other ways of defining sketches. The experiments establish that their task-specific choices work across the representations they test. A new definition could preserve different information, change the number of sketches, or shift the burden between proposing and completing them. The choices in the paper are motivated by the target formalism and benchmark. The paperβs claim about adaptability concerns the overall framework and is illustrated through these concrete designs.
Prediction is approximate in the authorsβ formulation. The coarse decision is made first, and the decoder completes the sketch chosen at that stage. Greedy generation approximates a search over sequences. This setup gives a practical way to use the factorization, and the probability equations leave open how much the result would improve if the system compared several sketch and completion combinations. The oracle experiments probe the benefit of obtaining the correct sketch through privileged access to the reference.
What the experimental setup leaves open
The breadth of the evaluation comes from applying the same general split to several datasets. The internal mechanics vary by task. The logical-form decoders use parent feeding, Django has a copy gate, and WikiSQL uses a schema-aware encoder with separate predictions for parts of the SQL query. Each setting demonstrates an adaptation of the idea. A conclusion about the effect of a particular component across all target languages would require holding these other design choices fixed.
The SQL experiment covers the query grammar in WikiSQL. Its sketch can be chosen from the patterns present in the training split, and each filter condition combines a column, a comparison operator, and a value. The fixed slots in SELECT and the small set of observed operator patterns are important to the architecture. Extending the same treatment to richer query structures would require deciding which parts of those structures to preserve in the sketch and which choices a fine decoder must be able to make. The held-out table split assesses generalization to unseen tables under the benchmarkβs grammar. It leaves generalization to unseen query constructions an open question.
A condition value is generated by selecting a contiguous passage in the question. This directly accommodates a name or phrase stated in the input, and the candidate set is limited by the available spans. A task in which the intended filter value must be derived or expressed differently from the words in the question would exercise a different capability. Djangoβs copy gate has its own boundary: the copy term in the paperβs formula applies to candidates outside the target vocabulary that occur in the input. That addresses a particular kind of unfamiliar identifier or literal. Generating an unfamiliar token absent from both the vocabulary and the input remains outside that mechanismβs reach.
The code task provides evidence about individual annotated Python lines. The success criterion is agreement with the reference code representation, while WikiSQL also checks the result of execution. Equivalent programs or queries can lead to different readings of these measures. Exact agreement asks whether the parser recovered the annotated form. Execution on a corresponding table asks whether it produced the expected answer there. Broader behavioral equivalence would require evidence across the inputs or tables on which competing expressions might differ.
Finally, the sketch itself determines the limits of the fine decoderβs freedom. If an early decision fixes an operator that the reference expression would replace, completing the arguments can leave the underlying mistake intact. Conversely, a highly accurate sketch can be too coarse to explain much about exact-output performance. WikiSQL illustrates this second case, while the Django oracle points to the importance of the first. The usefulness of the decomposition depends on what the representation preserves, how reliably it can be predicted, and which remaining details the fine decoder can recover.
What came after
Broader SQL tasks and different intermediate forms
A later dataset, Spider, puts complex, cross-domain text-to-SQL at the center of the benchmark. That focus broadens the evaluation question raised by WikiSQL. The original experiments pair held-out tables with a restricted kind of query. A benchmark organized around complex SQL gives intermediate representations more structural work to do. The connection is in what a sketch would need to represent when difficulty comes from both the database domain and the form of the query. Spider contributes a human-labeled setting for asking that question. Spider
Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation takes up the choice of intermediate form directly. Its problem is how to use a representation between natural language and complex cross-domain SQL. This is close to the design decision in Coarse2Fine, where the authors choose an abstraction according to which details can be recovered during completion. An intermediate representation for complex queries addresses a wider target than the sorted pattern of filters used on WikiSQL. The common question is which parts of the eventual query should be exposed at the intermediate stage. Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representation
SParC makes context part of cross-domain semantic parsing. In Coarse2Fineβs SQL experiment, the sketch organizes the interpretation of a question given the table headers. In a contextual task, the interpretation also depends on language beyond the current question. A sketch and context would then play different roles. Context helps determine what the user is asking now, and the sketch describes the structure the parser assigns to that request. SParC shifts the benchmark toward that dependence. SParC
CoSQL places cross-domain database interaction in a conversational setting. Coarse2Fineβs examples ask the parser to recover a formal query from a question in the supplied setting. A conversational interface expands the problem to exchanges with a database. The connection to the earlier design is the question of when the intended structure is sufficiently determined to be expressed as a query. CoSQL frames that question through a conversational text-to-SQL challenge. CoSQL
Representing the question and the schema
The WikiSQL ablation links parsing accuracy to how the input encoder represents question words in light of the table. A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualization pursues this part of the problem on the same benchmark. Its emphasis is on the representations of words when table information is available. That is the upstream counterpart of the sketch question. A coarse stage can organize decisions about query structure, while a table-aware encoder determines what evidence about the current schema is available before those decisions are made. A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualization
RAT-SQL makes relation-aware schema encoding and schema linking central to text-to-SQL parsing. Schema linking concerns associating language in a question with elements of the database schema. In the earlier paper, the fine decoder must choose headers when filling the sketch, and the question encoder uses attention to the header representations. RAT-SQL focuses on improving the representation of the schema and its links to the question. This addresses the evidence available for grounding a query in a particular database, a concern that remains whichever intermediate output form the parser uses. RAT-SQL
TaBERT addresses the joint understanding of text and tabular data through pretraining. Its point of contact with Coarse2Fine is the representation of two kinds of input whose meaning depends on their relationship. In the original SQL system, each question position can incorporate a weighted combination of column encodings. TaBERT takes up the joint representation problem at the pretraining stage. The titles and research aims support this connection at the level of input representation, while the particular sketch and completion procedure belongs to Coarse2Fine. TaBERT
Learning sketches and testing generalization
Learning to Infer Program Sketches takes the sketch itself as the object of study. The earlier paper provides explicit rules for deciding which details to remove from each training output, then learns to predict the resulting abstraction from language. A study of program-sketch inference shares the premise that an incomplete program can be a meaningful target of prediction. It directs attention to the inference of that intermediate structure, the stage whose errors the Django oracle makes visible. Learning to Infer Program Sketches
Improving Compositional Generalization with Latent Structure and Data Augmentation considers compositional generalization using latent structure and additional training examples. Compositional generalization concerns how a system handles new combinations of elements it has encountered. Coarse2Fineβs extraction rules give examples with the same shape a shared observed target. Latent structure raises a related question about abstractions that are inferred rather than supplied as target annotations. The two lines of work place structure at different points in learning and invite different tests of how a structural representation helps with new combinations. Improving Compositional Generalization with Latent Structure and Data Augmentation
Compositional Generalization and Natural Language Variation asks whether semantic parsing can handle both new combinations and differences in how people express requests. The earlier paper demonstrates gains on its benchmark splits, including a SQL split that holds out tables. The later workβs framing distinguishes other sources of difficulty. A parser might need to recover a familiar operation from unfamiliar wording or assemble familiar operations in an unfamiliar arrangement. That distinction matters for a two-stage approach because a failure can arise in mapping the wording to a sketch or in using the sketch to construct a complete expression. Compositional Generalization and Natural Language Variation
Cite
Cite as Li Dong and Mirella Lapata. 2018. Coarse-to-Fine Decoding for Neural Semantic Parsing. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{dong2018coarse,
title = {{Coarse-to-Fine Decoding for Neural Semantic Parsing}},
author = {Li Dong and Mirella Lapata},
booktitle = {Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2018},
doi = {10.18653/v1/p18-1068},
eprint = {1805.04793},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/p18-1068}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dong-2018-coarse-fine-decoding-neural-semantic/
References
- Alfred V Aho, Ravi Sethi, and Jeffrey D Ullman. 2007. Compilers: principles, techniques, and tools, volume 2. Addison-wesley Reading. OpenAlex β Β· Scholar β
- David Alvarez-Melis and Tommi S Jaakkola. 2017. Tree-structured decoding with doubly-recurrent neural networks (https://openreview.net/pdf?id=HkYhZDqxg). In Proceedings of the 5th International Conference on Learning Representations, Toulon, France. OpenAlex β Β· Scholar β
- Jacob Andreas, Andreas Vlachos, and Stephen Clark. 2013. Semantic parsing as machine translation (http://www.aclweb.org/anthology/P13-2009). In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics, pages 47β52, Sofia, Bulgaria. our card
- Yoav Artzi and Luke Zettlemoyer. 2013. Weakly supervised learning of semantic parsers for mapping instructions to actions (http://www.aclweb.org/anthology/Q13-1005). Transactions of the Association of Computational Linguistics, 1:49β62. our card
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate (https://arxiv.org/pdf/1409.0473.pdf). In Proceedings of the 3rd International Conference on Learning Representations, San Diego, California. our card
- Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on Freebase from question-answer pairs (http://www.aclweb.org/anthology/D13-1160). In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1533β1544, Seattle, Washington. Association for Computational Linguistics. our card
- Steven Bird, Ewan Klein, and Edward Loper. 2009. Natural Language Processing with Python (http://www.nltk.org/book). O'Reilly Media. OpenAlex β Β· Scholar β
- Eugene Charniak, Mark Johnson, Micha Elsner, Joseph Austerweil, David Ellis, Isaac Haxton, Catherine Hill, R. Shrivaths, Jeremy Moore, Michael Pozar, and Theresa Vu. 2006. Multilevel coarse-to-fine PCFG parsing (http://www.aclweb.org/anthology/N06-1022). In Proceedings of the Human Language Technology Conference of the NAACL, pages 168β175, New York, NY. OpenAlex β Β· Scholar β
- Jianpeng Cheng, Siva Reddy, Vijay Saraswat, and Mirella Lapata. 2017. Learning structured natural language representations for semantic parsing (https://doi.org/10.18653/v1/P17-1005). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 44β55. Association for Computational Linguistics. OpenAlex β Β· Scholar β
- Li Dong and Mirella Lapata. 2016. Language to logical form with neural attention (http://www.aclweb.org/anthology/P16-1004). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 33β43, Berlin, Germany. our card
- Xing Fan, Emilio Monti, Lambert Mathias, and Markus Dreyer. 2017. Transfer learning for neural semantic parsing (http://www.aclweb.org/anthology/W17-2607). In Proceedings of the 2nd Workshop on Representation Learning for NLP, pages 48β56, Vancouver, Canada. OpenAlex β Β· Scholar β
- Yu Feng, Ruben Martins, Yuepeng Wang, Isil Dillig, and Thomas Reps. 2017. Component-based synthesis for complex apis (https://doi.org/10.1145/3009837.3009851). In Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages, POPL 2017, pages 599β612, New York, NY. OpenAlex β Β· Scholar β
- Ruifang Ge and Raymond J. Mooney. 2005. A statistical semantic parser that integrates syntax and semantics (http://dl.acm.org/citation.cfm?id=1706543.1706546). In Proceedings of the Ninth Conference on Computational Natural Language Learning, pages 9β16, Ann Arbor, Michigan. OpenAlex β Β· Scholar β
- Jiatao Gu, Zhengdong Lu, Hang Li, and Victor O.K. Li. 2016. Incorporating copying mechanism in sequence-to-sequence learning (http://www.aclweb.org/anthology/P16-1154). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 1631β1640, Berlin, Germany. our card
- Caglar Gulcehre, Sungjin Ahn, Ramesh Nallapati, Bowen Zhou, and Yoshua Bengio. 2016. Pointing the unknown words (http://www.aclweb.org/anthology/P16-1014). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 140β149, Berlin, Germany. Association for Computational Linguistics. our card
- Jonathan Herzig and Jonathan Berant. 2017. Neural semantic parsing over multiple knowledge-bases (https://doi.org/10.18653/v1/P17-2098). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 623β628, Vancouver, Canada. OpenAlex β Β· Scholar β
- Sepp Hochreiter and JΓΌrgen Schmidhuber. 1997. Long short-term memory (https://doi.org/10.1162/neco.1997.9.8.1735). Neural Computation, 9:1735β1780. OpenAlex β Β· Scholar β
- Srinivasan Iyer, Ioannis Konstas, Alvin Cheung, Jayant Krishnamurthy, and Luke Zettlemoyer. 2017. Learning a neural semantic parser from user feedback (http://aclweb.org/anthology/P17-1089). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 963β973, Vancouver, Canada. OpenAlex β Β· Scholar β
- Robin Jia and Percy Liang. 2016. Data recombination for neural semantic parsing (http://www.aclweb.org/anthology/P16-1002). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 12β22, Berlin, Germany. our card
- TomΓ‘Ε‘ KoΔiskΓ½, GΓ‘bor Melis, Edward Grefenstette, Chris Dyer, Wang Ling, Phil Blunsom, and Karl Moritz Hermann. 2016. Semantic parsing with semi-supervised sequential autoencoders (https://aclweb.org/anthology/D16-1116). In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1078β1087, Austin, Texas. OpenAlex β Β· Scholar β
- Jayant Krishnamurthy, Pradeep Dasigi, and Matt Gardner. 2017. Neural semantic parsing with type constraints for semi-structured tables (https://www.aclweb.org/anthology/D17-1160). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 1517β1527, Copenhagen, Denmark. OpenAlex β Β· Scholar β
- Tom Kwiatkowksi, Luke Zettlemoyer, Sharon Goldwater, and Mark Steedman. 2010. Inducing probabilistic CCG grammars from logical form with higher-order unification (http://www.aclweb.org/anthology/D10-1119). In Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing, pages 1223β1233, Cambridge, MA. our card
- Tom Kwiatkowski, Eunsol Choi, Yoav Artzi, and Luke Zettlemoyer. 2013. Scaling semantic parsers with on-the-fly ontology matching (http://www.aclweb.org/anthology/D13-1161). In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1545β1556, Seattle, Washington. our card
- Tom Kwiatkowski, Luke Zettlemoyer, Sharon Goldwater, and Mark Steedman. 2011. Lexical generalization in CCG grammar induction for semantic parsing (http://www.aclweb.org/anthology/D11-1140). In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing, pages 1512β1523, Edinburgh, Scotland. our card
- Percy Liang, Michael I. Jordan, and Dan Klein. 2013. Learning dependency-based compositional semantics (http://www.aclweb.org/anthology/J13-2005). Computational Linguistics, 39(2). OpenAlex β Β· Scholar β
- Wang Ling, Phil Blunsom, Edward Grefenstette, Karl Moritz Hermann, TomΓ‘Ε‘ KoΔiskΓ½, Fumin Wang, and Andrew Senior. 2016. Latent predictor networks for code generation (http://www.aclweb.org/anthology/P16-1057). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 599β609, Berlin, Germany. our card
- Wei Lu, Hwee Tou Ng, Wee Sun Lee, and Luke Zettlemoyer. 2008. A generative model for parsing natural language to meaning representations (http://www.aclweb.org/anthology/D08-1082). In Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, pages 783β792, Honolulu, Hawaii. our card
- Thang Luong, Hieu Pham, and Christopher D. Manning. 2015. Effective approaches to attention-based neural machine translation (http://aclweb.org/anthology/D15-1166). In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1412β1421, Lisbon, Portugal. our card
- Christopher D. Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David McClosky. 2014. The Stanford CoreNLP natural language processing toolkit (http://www.aclweb.org/anthology/P/P14/P14-5010). In Association for Computational Linguistics System Demonstrations, pages 55β60, Baltimore, Maryland. our card
- Yusuke Oda, Hiroyuki Fudaba, Graham Neubig, Hideaki Hata, Sakriani Sakti, Tomoki Toda, and Satoshi Nakamura. 2015. Learning to generate pseudo-code from source code using statistical machine translation (https://doi.org/10.1109/ASE.2015.36). In Proceedings of the 2015 30th IEEE/ACM International Conference on Automated Software Engineering, pages 574β584, Washington, DC. OpenAlex β Β· Scholar β
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation (http://www.aclweb.org/anthology/D14-1162). In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, pages 1532β1543, Doha, Qatar. our card
- Slav Petrov. 2011. Coarse-to-fine natural language processing (https://www.springer.com/gb/book/9783642227424). Springer Science & Business Media. OpenAlex β Β· Scholar β
- Hoifung Poon. 2013. Grounded unsupervised semantic parsing (http://www.aclweb.org/anthology/P13-1092). In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics, pages 933β943, Sofia, Bulgaria. OpenAlex β Β· Scholar β
- Maxim Rabinovich, Mitchell Stern, and Dan Klein. 2017. Abstract syntax networks for code generation and semantic parsing (http://aclweb.org/anthology/P17-1105). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 1139β1149, Vancouver, Canada. our card
- Armando Solar-Lezama. 2008. Program Synthesis by Sketching (https://dl.acm.org/citation.cfm?id=1714168). Ph.D. thesis, University of California at Berkeley, Berkeley, CA. our card
- Raymond Hendy Susanto and Wei Lu. 2017. Neural architectures for multilingual semantic parsing (http://aclweb.org/anthology/P17-2007). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 38β44, Vancouver, Canada. OpenAlex β Β· Scholar β
- Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. 2016. Rethinking the inception architecture for computer vision (https://doi.org/10.1109/cvpr.2016.308). In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2818β2826. OpenAlex β Β· Scholar β
- Lappoon R. Tang and Raymond J. Mooney. 2000. Automated construction of database interfaces: Intergrating statistical and relational learning for semantic parsing (https://doi.org/10.3115/1117794.1117811). In 2000 Joint SIGDAT Conference on Empirical Methods in Natural Language Processing and Very Large Corpora, pages 133β141, Hong Kong, China. OpenAlex β Β· Scholar β
- T. Tieleman and G. Hinton. 2012. Lecture 6.5βRMSProp: Divide the gradient by a running average of its recent magnitude. Technical report. OpenAlex β Β· Scholar β
- Oriol Vinyals, Samy Bengio, and Manjunath Kudlur. 2016. Order matters: Sequence to sequence for sets (http://arxiv.org/abs/1511.06391). In Proceedings of the 4th International Conference on Learning Representations, San Juan, Puerto Rico. our card
- Oriol Vinyals, Lukasz Kaiser, Terry Koo, Slav Petrov, Ilya Sutskever, and Geoffrey Hinton. 2015. Grammar as a foreign language (http://dl.acm.org/citation.cfm?id=2969442.2969550). In Proceedings of the 28th International Conference on Neural Information Processing Systems, pages 2773β2781, Montreal, Canada. our card
- Yuk Wah Wong and Raymond Mooney. 2007. Learning synchronous grammars for semantic parsing with lambda calculus (http://www.aclweb.org/anthology/P07-1121). In Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics, pages 960β967, Prague, Czech Republic. our card
- Chunyang Xiao, Marc Dymetman, and Claire Gardent. 2016. Sequence-based structured prediction for semantic parsing (http://www.aclweb.org/anthology/P16-1127). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 1341β1350, Berlin, Germany. OpenAlex β Β· Scholar β
- Xiaojun Xu, Chang Liu, and Dawn Song. 2017. SQLNet: Generating structured queries from natural language without reinforcement learning (https://arxiv.org/pdf/1711.04436.pdf). arXiv preprint arXiv:1711.04436. our card
- Navid Yaghmazadeh, Yuepeng Wang, Isil Dillig, and Thomas Dillig. 2017. SQLizer: Query synthesis from natural language (https://doi.org/10.1145/3133887). Proceedings of the ACM on Programming Languages, 1:63:1β63:26. OpenAlex β Β· Scholar β
- Pengcheng Yin and Graham Neubig. 2017. A syntactic neural model for general-purpose code generation (http://aclweb.org/anthology/P17-1041). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics, pages 440β450, Vancouver, Canada. our card
- Luke Zettlemoyer and Michael Collins. 2005. Learning to map sentences to logical form: Structured classification with probabilistic categorial grammars (http://dl.acm.org/citation.cfm?id=3020336.3020416). In Proceedings of the 21st Conference on Uncertainty in Artificial Intelligence, pages 658β666, Edinburgh, Scotland. our card
- Luke Zettlemoyer and Michael Collins. 2007. Online learning of relaxed CCG grammars for parsing to logical form (http://www.aclweb.org/anthology/D07-1071). In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, pages 678β687, Prague, Czech Republic. our card
- Sai Zhang and Yuyin Sun. 2013. Automatically synthesizing SQL queries from input-output examples (https://doi.org/10.1109/ASE.2013.6693082). In Proceedings of the 28th IEEE/ACM International Conference on Automated Software Engineering, pages 224β234, Piscataway, NJ. OpenAlex β Β· Scholar β
- Yuchen Zhang, Panupong Pasupat, and Percy Liang. 2017. Macro grammars and holistic triggering for efficient semantic parsing (https://doi.org/10.18653/v1/d17-1125). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 1214β1223. Association for Computational Linguistics. OpenAlex β Β· Scholar β
- Kai Zhao and Liang Huang. 2015. Type-driven incremental semantic parsing with polymorphism (http://www.aclweb.org/anthology/N15-1162). In Proceedings of the 2015 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1416β1421, Denver, Colorado. OpenAlex β Β· Scholar β
- Victor Zhong, Caiming Xiong, and Richard Socher. 2017. Seq2SQL: Generating structured queries from natural language using reinforcement learning (https://arxiv.org/pdf/1709.00103.pdf). arXiv preprint arXiv:1709.00103. our card