Elamur Research

Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision

Paper · 2017 · Chen Liang, Jonathan Berant, Quoc Le et al.

Summary

Knowing the answer to a question gives a learner a way to check its work. It can still be hard to work out which steps will reach that answer. This is the problem the authors study in semantic parsing. Their system takes a question in ordinary language and writes a program whose execution should retrieve the answer from Freebase. A training example supplies the question and its answer. The Neural Symbolic Machine, or NSM, has to discover the program connecting them. This setup is called weak supervision because the feedback specifies the desired result and leaves the intermediate decisions to the learner.

NSM divides the work between a neural program generator and a Lisp interpreter. The generator uses the words of the question to choose instructions, Freebase properties, and variables. The interpreter runs each completed expression and stores the resulting list of entities under a variable name. The generator can use that name in a later expression, so a program can build an answer out of several lookups and operations. Execution also guides the next choice. When a program is about to follow a property from a list of entities, for example, the interpreter offers only properties that actually occur on outgoing links from that list.

The authors train NSM in stages. First, they repeatedly search for programs that earn credit against known answers, then train the generator to give the best programs found so far higher probability. These provisional targets are called pseudo-gold programs. In a separate training phase, the system uses REINFORCE to improve its expected answer score. It gives the saved programs a share of the probability used for training updates, so useful examples can still influence learning when the generator's own search ranks them poorly.

On WebQuestionsSP, NSM outperformed the previous leading system trained from answers alone on every reported test metric. The paper describes the improvement in average F1 as closing half the gap to the version of that baseline trained with annotated programs. Intermediate results played a substantial role in the predictions, with 36.7% of generated programs using multiple expressions. The validation analysis also identifies two ways the approach can fail. Search can miss an answer-producing program, and the generator can rank a poorer program above a better one it has already found. The result demonstrates how an ordinary symbolic interpreter can contribute exact operations, reusable results, and search guidance to a system trained from answer feedback.

Deep dive: Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision

Neural Symbolic Machines learn to turn questions into executable Freebase queries using answer feedback and a Lisp interpreter that guides the search. · about 44 minutes to read

The problem and its context

An answer is a result, a program specifies how to obtain it

In ordinary question answering, a reader may care only about the answer. For a semantic parser, there is another object of interest between the question and the answer. A logical form specifies the lookup or computation that will produce the result. In this paper, a logical form is an executable program. Its instructions can follow relationships from a known entity, use the results of one lookup in another, or select among candidates according to a property. The same kinds of instructions can be recombined to handle different questions.

Freebase represents facts as links between entities, with a named property specifying what each link means. A question about a person's birthplace, for example, requires identifying the person, choosing the appropriate property, and retrieving the entity on the other end of the link. More involved questions may pass through several such relationships. The program can hold an intermediate result and use it again when making a selection. A single intermediate result may stand for a substantial list, even when its name in the program is short. This is the setting of a knowledge graph.

Full supervision would give the learner a program for each training question. It could then compare its predicted tokens with the annotated tokens and learn from mistakes at individual positions. The paper discusses earlier neural semantic parsers that used this arrangement and could train without running predicted programs to obtain feedback. Such annotations give detailed guidance, but producing a correct logical form requires more expertise than supplying an answer. The authors present the cost of collecting those forms as a reason to learn from answers alone. Language to Logical Form with Neural Attention and Data Recombination for Neural Semantic Parsing.

Answer supervision changes the learning problem. Suppose the correct result is a place. A program receives credit after producing that place, and the score leaves the intermediate property choices unspecified. If a person was born and died in the same place, either relationship could give the expected answer on that example. Only the wording tells the learner which relationship the question intended. The question supplies that evidence, but the reward cannot identify which interpretation earned it. Across examples, a parser must learn to prefer the relationship that goes with the expression in the question, even though each individual answer may be consistent with several programs.

Before it can learn that distinction, the parser has to encounter something worth learning from. Even a short sequence of instructions can have many continuations when each property name is a potential choice. Most programs sampled from an untrained generator will provide little useful feedback. In addition, choices have consequences for later steps. Following a relationship may lead to an entity or list that supports a useful next lookup. Choosing a different relationship can lead to an completely different part of the graph. A learner with access to those intermediate results can make a more informed search than one working from program strings alone.

What the earlier approaches made possible

Learning from answer pairs was already an established direction in work on Freebase. The authors situate NSM alongside weakly supervised parsers that search for logical forms and use their denotations during learning. A denotation is the value an expression has in a particular knowledge base. Where the expression describes a lookup, its denotation is what that lookup retrieves. NSM uses denotations inside token-by-token search, giving the executor a direct role in deciding which paths through the program space are worth exploring. Semantic Parsing on Freebase from Question-Answer Pairs.

The paper also compares its construction of programs with the floating parser used in work on tables. In that comparison, a derivation can be assembled incrementally without tying each piece of the derivation to a particular span in the sentence. NSM builds from smaller executable expressions in a similar spirit. The words still guide the generator's decisions, and linked entity mentions supply initial values. An operation that combines or transforms those values can be generated wherever it fits the program's developing structure. Compositional Semantic Parsing on Semi-Structured Tables.

A separate set of precedents comes from program induction. Some earlier systems gave a neural controller relatively low-level operations, such as reading and writing memory. The authors identify Reinforcement Learning Neural Turing Machines as particularly close to NSM because there, too, a sequence generator controls a discrete machine and learns with REINFORCE. What changes is the language the controller speaks. An instruction in NSM can follow a Freebase property from a collection of entities. The executor takes responsibility for the underlying retrieval, allowing the generator to work at the level of operations that are closer to the meanings of questions. Reinforcement Learning Neural Turing Machines.

Other work represented an intermediate selection with a vector of weights, such as a selector over table rows or an attention distribution. The attraction is that gradients can pass through this representation, and candidate computations can be considered in parallel. In the authors' account, a graph the size of Freebase makes this style of representation impractical. NSM puts the collection of entities in the interpreter and gives the generator a learned representation for referring to it. Both systems can reuse the outcome of an earlier step, but they give the neural component different responsibilities. Learning to Compose Neural Networks for Question Answering.

The paper makes a further comparison with the Path Ranking Algorithm. Both approaches can express a relation as a succession of actions and use retrieved values to guide which paths remain available. NSM makes the choice of actions depend on the current question and can refer back to intermediate variables. The authors also identify an ability of the earlier approach that NSM leaves for future work. Several semantic representations can contribute to the same prediction, whereas NSM returns the result of a selected program.

These precedents show why the authors treat the representation of a program, the search for that program, and the training signal as connected choices. High-level operations make short programs useful over a large graph. Intermediate values make it possible to rule out certain continuations early. Answer-based rewards make it possible to learn with fewer annotations, provided that search puts enough rewarding programs within reach. The paper's design gives each of those jobs a specific place.

The method, step by step

Give each part of the system a distinct job

The authors call their general arrangement Manager-Programmer-Computer. The manager provides task feedback by scoring the answer. The programmer reads the question and chooses program tokens. The computer executes those tokens as Lisp expressions and tells the programmer which tokens are currently valid. Feedback from the computer arrives as the program takes shape. Feedback from the manager arrives once the program has produced an answer during training.

A useful way to follow one question is to start with a name linked to Freebase. That link becomes a variable the program can refer to. The generator writes an expression that starts with the variable and follows some property. The interpreter runs the expression and stores what it retrieves under a new name. At the next step, the generator can choose that new name as an argument, and the interpreter can inspect its value to narrow the choices that follow. When the generator issues Return, the value of the most recently computed variable supplies the answer.

From a question to an answer with NSM

The steps in order.

From a question to an answer with NSMStep 1: Link mentions to Freebase entities1. Link mentions to Freebase entitiesStep 2: Encode question words and create entity variables2. Encode question words and create entity variablesStep 3: Ask the interpreter for valid next tokens3. Ask the interpreter for valid next tokensStep 4: Extend the program with a selected token4. Extend the program with a selected tokenStep 5: Execute completed expressions and store their results5. Execute completed expressions and store their resultsStep 6: Repeat until Return delivers the final value6. Repeat until Return delivers the final valueStep 7: Score the answer against its reference during training7. Score the answer against its reference during training

The formal task gives the programmer a question and access, through the interpreter, to a knowledge base. The paper writes the question as a sequence.

x = (w₁, w₂, …, wₘ)

Here x is the question, w is a word, and each subscript identifies its position. The subscript m gives the last position and thus the number of words. The parentheses group the words in input order, and the ellipsis stands for any positions between the ones shown. The paper calls the completed program z and the target answer y.

The knowledge base is a collection of assertions of the following form.

(e₁, p, e₂) ∈ 𝓔 × 𝓟 × 𝓔

The symbols e₁ and e₂ denote the source and destination entities, p denotes the property connecting them, 𝓔 is the set of entities, and 𝓟 is the set of properties. The sign ∈ means that the triple belongs to the indicated product of sets. Each × joins a set of possible values for one position with those for the next position. The knowledge base, written 𝕂, contains the assertions actually recorded. In this setup the category of entities includes numbers and date-times as well as named objects.

The authors illustrate a triple with Abraham Lincoln, a birthplace property, and Hodgenville. The triple tells the interpreter which value to retrieve when that property is followed from that person. The generator has a separate problem. It must use the words of the question to decide whether birthplace is the relationship to follow. This example puts the division of labor in concrete terms. One component predicts the property and the other consults the stored fact.

Execute each expression before choosing all of the next one

The Lisp program is a sequence of expressions. The paper uses this notation for the sequence.

C = (c₁ … cₙ)

Here C denotes the entire program, c denotes an expression, and the subscripts mark the expressions in order. The final index is written N in the paper, with n shown here as its lower-case subscript form. The ellipsis covers the intervening expressions. An item in this sequence can be the special token Return or a parenthesized function application.

(F A₁ … Aₖ)

In this expression, F names a function and each A is an argument in the order that function expects. The subscript k represents the number of arguments, denoted K in the paper, and the ellipsis covers the arguments between the first and last. The allowable types include a property and a variable. The parentheses delimit the application and let the interpreter recognize where its tokens begin and end.

A completed application yields a list of entities, stored in a newly named variable. The expression's denotation is this list. A later expression can use the variable as an argument without repeating the lookup that created it. Hop, for example, follows a property from the entities in a variable. The interpreter also supports selection operations, including Filter, and the paper describes ordering by property values with comparisons defined for numbers and dates. The operation set corresponds in expressiveness to the subset of lambda calculus used in earlier work on Freebase query graphs. It gives the generator a compact way to represent the computations the authors target. Semantic Parsing via Staged Query Graph Generation.

The authors use Lisp for its expression format and execution machinery, with a purpose-built collection of operations for the task. General control flow and loops fall outside the language used here. Thus a program grows through expressions whose output can supply the input to another expression. For the generator, the sequence is read from left to right. For the meaning of the question, the sequence is built from smaller computations whose results become parts of the larger computation.

This representation matters for search because rejection can occur at the point where an unsuitable token would otherwise be chosen. A syntax check identifies what sort of token is needed. Immediately after an opening parenthesis, the generator must choose a function. After Hop, it must supply a variable. A semantic check can then use the contents of that variable to decide which properties are possible. The distinction comes down to the information the interpreter uses. Syntax depends on the type and position of the token. Semantic checking also depends on what the partial program has retrieved.

For the prefix consisting of an opening parenthesis, Hop, and a variable, the paper gives the eligible property set as follows.

{p | ∃ e, e′ such that e ∈ r and (e, p, e′) ∈ 𝕂}

Here p ranges over properties, the braces form a set, and the vertical bar means “such that.” The quantifier ∃ means that there exist entities e and e′ satisfying the following conditions. The symbol r denotes the variable's stored collection, and e ∈ r means that e is in that collection. The triple (e, p, e′) must belong to the knowledge base 𝕂. The prime distinguishes the destination e′ from the source e. A property qualifies as long as it is reachable from some entity in the collection.

This test is local to the current partial program. Two prefixes that have both reached the property slot after Hop can have very different available properties because they reached different lists. Conversely, a property can pass the interpreter's check even if it is irrelevant to the question. If the current entity has both birthplace and place-of-death links, both can be legal. The generator is responsible for using the question to rank such alternatives. The interpreter can rule out a choice that has no eligible link, while a choice supported by the graph still has to earn its place through the learned scores.

The same arrangement affects which discoveries can be made later. If a candidate never enters the set of eligible continuations, training cannot recover it by assigning it a better score. If a candidate is eligible but gives rise to a low-scoring prefix, beam search may discard it before any complete answer can be evaluated. Code assistance and beam ranking therefore act at different stages. The former defines which choices can be made from a given prefix. The latter allocates search to some of the remaining choices.

Encode the question and create references to the graph

The programmer uses an encoder and a decoder. The encoder turns the question's words into a succession of internal representations. The decoder uses those representations to generate a program one token at a time. The authors follow the general sequence-to-sequence design and use attention to let the decoder consult different positions in the question as it writes different parts of the program. Sequence to Sequence Learning with Neural Networks.

Both the encoder and decoder use a 1-layer gated recurrent unit, or GRU. A recurrent unit carries a hidden state from step to step, updating it as new input arrives. The gates are part of the update that determines how information from the previous step and the current input contributes to the next state. The encoder's update is written as follows. Learning Phrase Representations using RNN Encoder–Decoder.

hₜ₊₁ = GRU(hₜ, qₜ, θEncoder)

The step index is t. The symbols hₜ and hₜ₊₁ are the encoder states before and after the indicated update, and the subscript t + 1 denotes the next step. The vector qₜ represents the input word at that position. The symbol θEncoder stands for the encoder's trainable GRU parameters, and GRU is the function that computes the new state from those inputs.

The system begins with pretrained GloVe word embeddings. The paper uses embeddings with 300 dimensions, pretrained on 840B tokens. A projection maps the input word vectors to 50 dimensions. The hidden states of both recurrent networks and the keys assigned to program variables also have 50 dimensions. An embedding is a vector a neural network can use to represent an item, and a projection changes the vector's dimensions through a learned mapping.

Freebase properties get their own representations based on the wording in their identifiers. The authors use the domain and type words together to form one average of GloVe vectors. The property words supply a separate average. Joining the two averages yields a vector that can distinguish the general area of the vocabulary from the specific relationship. For /people/person/parents, the domain and type contribute the average of the vectors for people and person. The property contributes the vector for parents. The paper gives 600 dimensions for the combined representation in this example, followed by a projection to 50 dimensions. An identifier thereby supplies information about a property's meaning before the generator has acquired much evidence about it from the answer pairs.

Before decoding, an entity linker associates spans in the question with entities in Freebase. The graph entity and the representation of its mention then have different homes. The interpreter stores the linked entity in a variable. The programmer records a key for that variable by averaging the encoder states across the span. The paper illustrates the arrangement with a mention of the US linked to the Freebase entity m.USA. The variable name can appear in a program, and the key gives the decoder a way to score that name using the context in which the mention occurred.

Add new vocabulary by running the program

The decoder starts from the encoder's last hidden state, called h with subscript T in the architecture description. Here T marks the end of encoding. The special token GO marks the start of decoding. The decoder also uses dot-product attention, which means that scores for consulting the encoder states depend on comparisons of vectors by dot product. This provides a way to use different parts of the question for choices such as selecting a graph property and referring to an entity variable.

The paper gives the decoder recurrence in this notation.

uₜ₊₁ = GRU(uₜ, cₜ₋₁, θDecoder)

The step index is t. The vectors uₜ and uₜ₊₁ are the decoder states on either side of the update, with t + 1 marking the next step. The vector cₜ₋₁ is the embedding of the preceding output token, called aₜ₋₁ in the paper, and t − 1 indexes that preceding token. The symbol θDecoder denotes the decoder's own GRU parameters. The function GRU combines the carried state with the input embedding to produce the next state.

At a given step the decoder scores only the token choices the interpreter allows. A softmax converts these scores into probabilities by assigning a larger share to higher scores and normalizing over the eligible choices. The set can contain a function name, a property, a variable, or a special token, depending on the state of the program. Some entries, such as GO and the function names, have ordinary learned embeddings. Variables have embeddings constructed during the handling of the particular question.

When the decoder emits a closing parenthesis, the interpreter executes the expression and saves the resulting list. At that step, the decoder's hidden state becomes the key for the new variable. In the authors' notation a variable token Rᵢ is paired with a key vᵢ, where i indexes the entry. Rᵢ is the name used when referring to the saved value in a program, and vᵢ is the vector used by the decoder as the token's embedding. Adding an entry therefore gives the generator a new token it can use in a later expression.

The keys created during encoding and decoding serve the same purpose, even though their origins differ. A key for a linked entity summarizes encoder states at the mention. A key for a computed result comes from the decoder state when that expression finishes. Both are specific to the current question or program. This is the connection to pointer networks. A token can refer to an item whose representation has been built on the current example, instead of requiring a fixed vocabulary entry for each item the interpreter might retrieve. Pointer Networks.

When the generator learns to select a variable, gradients can flow back to the earlier neural state that supplied its key. The connection allows the encoder or decoder to learn representations that make useful references easier to choose later. The stored list itself remains a symbolic value in the interpreter. It does not take part in that gradient computation. A question that retrieves many entities can still refer to the resulting collection using a single variable token. The interpreter can inspect the whole list when deciding which property tokens to allow, while the generator works with the key and the resulting set of choices.

Turn answer quality into a training reward

Because the interpreter performs discrete graph operations, the authors use a policy gradient method to learn from their outcomes. REINFORCE increases or decreases the preference for whole decisions by considering the reward they produce. For NSM, each action is the choice of a program token. The current question and the preceding token choices suffice to describe the state because executing the same prefix against the same graph gives the same interpreter state.

sₜ = (x, a₀:ₜ₋₁)

The symbol sₜ denotes the state at step t, x is the question, and a₀:ₜ₋₁ is the action history from index 0 through t − 1. The colon within the subscript marks an inclusive range of positions. The tuple groups the question and the history. At this state the interpreter supplies a set A(sₜ) of valid token actions, and the chosen action aₜ must belong to that set. In the training notation T denotes the final decoding step.

The reward arrives at the end of decoding. The reference answer can contain a collection of entities or values, and the executed program may retrieve some of those values along with others. The training score is F1, which combines precision and recall to give credit for partial overlap.

rₜ = I[t = T] · F₁(x, a₀:ₜ)

Here rₜ is the reward at step t, and I is the indicator that is active when the bracketed condition holds. T is the last decoding step, and · indicates multiplication. The F₁ term scores the answer obtained by executing the action sequence a₀:ₜ against the reference for question x when the sequence ends at T. In the paper the argument is written a₀:ₜ with the endpoint fixed to capital T, representing the full program. Intermediate steps receive no reward.

R(x, a₀:ᵀ) = ∑ₜ rₜ = F₁(x, a₀:ᵀ)

The symbol R denotes total reward, x is the question, and a₀:ᵀ denotes the full sequence of program actions, with ᵀ marking the final index T. The sum ∑ₜ adds the rewards rₜ at the decoding steps. F₁ is the answer score. The equalities hold because all of the reward is assigned at the end of the program.

The programmer defines a policy, a distribution over tokens given the current state.

πθ(s, a) = Pθ(aₜ = a | x, a₀:ₜ₋₁)

Here πθ denotes the policy with trainable parameters θ, s is the current state, and a is a possible token action. Pθ denotes the probability under those same parameters. The expression aₜ = a identifies the event of choosing token a at step t. The vertical bar means that the probability is conditional on question x and the action history a₀:ₜ₋₁, whose endpoint t − 1 precedes the current step.

Pθ(a₀:ᵀ | x) = ∏ₜ Pθ(aₜ | x, a₀:ₜ₋₁)

The left side is the probability under parameters θ of producing the complete program a₀:ᵀ given question x. The product ∏ₜ multiplies the conditional probabilities of the chosen tokens aₜ in decoding order. Each token's probability is conditioned on the question and the preceding history a₀:ₜ₋₁. The interpreter's state follows from that history, so the product accounts for the legal choices along the generated path.

Jᴿᴸ(θ) = ∑ₓ E₍a₀:ᵀ ∼ Pθ(· | x)₎[R(x, a₀:ᵀ)]

The expression Jᴿᴸ is the reinforcement learning objective as a function of the trainable parameters θ. The sum ∑ₓ ranges over training questions. E denotes an expectation, or probability-weighted average. Its subscript specifies that the complete sequence a₀:ᵀ has distribution Pθ given x, and ∼ indicates this distribution. The dot is a placeholder for the program argument. The brackets contain R, the reward for that program on x. The objective rewards a generator that assigns more probability to programs yielding better answers.

The gradient uses a baseline to center the reward for a question.

B(x) = ∑ₐ Pθ(a₀:ᵀ | x) · R(x, a₀:ᵀ)

The baseline is B(x). The sum ∑ₐ here ranges over complete programs a₀:ᵀ for x. Each program's probability Pθ, determined by parameters θ, multiplies its reward R. The dot denotes multiplication and the vertical bar denotes conditioning on x. This baseline is an average under the policy for the question, so a program's reward can be evaluated relative to what the policy is currently expected to achieve.

∇θ Jᴿᴸ(θ) = ∑ₓ ∑ₐ Pθ(a₀:ᵀ | x) · [R(x, a₀:ᵀ) − B(x)] · ∇θ log Pθ(a₀:ᵀ | x)

The operator ∇θ takes a gradient with respect to θ. On the left it acts on the reinforcement learning objective Jᴿᴸ. The sums on the right range over questions x and complete programs a₀:ᵀ. The first factor is the conditional program probability. The bracketed factor subtracts the question baseline B(x) from the program reward R. The last factor is the gradient of the log of the program probability. The dots multiply the factors. Centering the reward in this way reduces variance without changing the gradient of the exact expectation. The implemented estimate then approximates this calculation with a restricted set of programs.

In the experiment, the approximation uses beam search. A beam maintains a limited number of high-scoring sequences as decoding extends them. The paper writes k for the beam size. For the REINFORCE estimate, the authors use the programs found in the beam and normalize their probabilities. The calculation thus concentrates on programs that score well enough to be under consideration by the current generator. It also depends on which programs survive earlier stages of search.

This dependency is particularly important at the start of training. With a narrow beam, all surviving candidates can have zero reward, leaving the update with no useful reward signal. A wider beam costs more and can still assign very little probability to a program with a good answer. The authors describe how a near-zero baseline then gives little influence to poor programs, while the small probability of a successful program can also leave it with little influence. Simply discovering a good program somewhere in a large beam is only part of the training problem. The program must carry enough weight to affect an update.

Find provisional targets and use them to support reinforcement learning

The authors first alternate between search and maximum likelihood. With the neural parameters held fixed, a wide beam proposes programs for each training question. The interpreter evaluates their answers, and the procedure retains the best program it has found across rounds. Reward determines which programs are best, with shorter length preferred among the highest-reward candidates. Once search has supplied a program with positive reward, the generator can be trained to reproduce that sequence as a provisional target. Questions for which search has found no positive reward contribute no target in that round.

Jᴹᴸ(θ) = ∑ₓ log Pθ(aᵇᵉˢᵗ₀:ᵀ(x) | x)

Here Jᴹᴸ is the maximum-likelihood objective and θ is the set of trainable parameters. The sum ∑ₓ runs over questions x with a positive-reward program. The expression aᵇᵉˢᵗ₀:ᵀ(x) denotes the best complete action sequence found so far for that question under the reward and length criteria. The indices run from 0 to the terminal position T. Pθ gives the conditional probability of that sequence, and log is its logarithm. The procedure increases the likelihood of those selected programs.

The authors compare this alternation to hard expectation-maximization. The unobserved program is provisionally assigned a single value, then the neural parameters are updated using that assignment. A useful property of the schedule is that the costly search can be followed by several passes over the saved targets. The selected program contributes through its log probability without the separate program-probability weight used in the reinforcement gradient. Better token predictions can yield better candidates on the next search, which in turn give the generator better targets.

The experiment uses a beam of size k = 100 for iterative maximum likelihood. Each decoding pass is followed by 20 training epochs, and Adam starts with a learning rate of 0.001. The authors give 5-8 iterations as the usual convergence range for the iterative process in their experiment. They also specify a staged search curriculum with its own schedule. The simpler phase runs for 10 iterations with Hop alone and a maximum of 2 expressions. The expanded phase allows Hop and Filter, with a maximum of 3 expressions. Its Hop choices are restricted to properties that occurred in the best program found for the question in the first phase.

That curriculum changes both the operations in each search and the graph properties the generator can explore in the expanded phase. The first phase concentrates on finding useful graph paths. The second lets the learner compose a more elaborate computation while preserving clues from the simpler search. The resulting program can gain credit by applying an additional operation to a previously discovered path. The quality of the first phase's discoveries still matters because those discoveries affect the options in the second phase.

The final phase uses augmented REINFORCE. After Nₘₗ iterations of the earlier procedure, where Nₘₗ denotes the count of maximum-likelihood search and training rounds, the authors save the best program C* for each training example with a successful search. During reinforcement learning they scale the probabilities of the programs in the current beam to total 1 − α and add probability mass α to the saved program. The symbol α denotes how much weight that program receives from the augmentation, and 1 − α is the share left for the beam distribution. The experimental setting uses α = 0.1 and a beam of size k = 5. This small beam can focus on the candidates the generator currently favors while the saved program can contribute even if the new search ranks it poorly.

The January of the training procedure is the collection of programs from one phase and their reuse in the next. The final REINFORCE run starts from randomly initialized parameters. The authors report that starting from the maximum-likelihood parameters gave poorer results and appeared to leave training in a local optimum. The transferred information is therefore the program sequence that earned reward for each question. Fresh parameters can explore different rankings while those discoveries supply examples with useful rewards.

In the final run, the authors use validation data to select the hyper-parameters before training for 200 iterations on the full training set. They follow that period with learning-rate decay until convergence. The paper gives the decay explicitly.

gₜ = g₀ × β^[max(0, t − tₛ) / m]

Here gₜ is the learning rate at training step t, and g₀ is the initial rate, set to 0.001. The sign × indicates multiplication, and the caret indicates exponentiation. The decay base β is 0.5. The function max takes the greater of 0 and t − tₛ, where tₛ is the number of training steps reached at the end of iteration 200. Division by m, set to 1000, sets the scale on which the exponent grows. The rate stays at its initial value through the fixed-rate period and decreases after it.

The paper also specifies the initialization of weight matrices.

[−√3 / d, √3 / d]

The brackets delimit the interval for uniform initialization. The square-root sign applies to 3, and d is the input dimension of the weight matrix. The negative sign gives the lower endpoint, with the positive value supplying the upper endpoint. Embeddings for the functions and special tokens start from a truncated normal distribution with mean 0.0 and standard deviation 0.1. The authors use a dropout rate of 0.5, randomly dropping parts of the neural computation during training to reduce reliance on particular activations. Their architecture places dropout at the GRU inputs and outputs and at the softmax.

Experiments and results

Which questions, graph, and supervision enter the comparison

WebQuestionsSP comes from a subset of WebQuestions. The dataset developers found that 18.5% of the original WebQuestions questions were judged unanswerable. Questions had been collected through the Google Suggest API, with answers originally gathered using Amazon Mechanical Turk. Annotators familiar with Freebase subsequently updated the answers and supplied logical forms. As a result, WebQuestionsSP makes it possible to compare training with answer labels against training with explicit semantic parses. The Value of Semantic Parse Labeling for Knowledge Base Question Answering.

The dataset has 3,098 training question-answer pairs and 1,639 test pairs. The authors set aside 620 questions from the training set for validation. The validation split supports the intermediate selection of settings and the analyses of search and ranking. For the final test comparison, the training procedure uses the full training set after settings have been chosen. The distinction matters when reading the figures. A validation score from choosing among settings and a final test score from the full training run describe different experiments.

Training on answers alone still involves preparing the inputs. NSM uses an in-house entity linker. The paper reports that its candidate entities include 94% of the annotated root entities, at a level comparable to the linking quality in the earlier staged query graph work. A root entity supplies a starting point for the query. Its presence in the candidate set allows the programmer to refer to it, with remaining decisions including which starting entity and relationship to use.

The authors replace the surface words in named-entity spans with ENT in the input sequence. In the question about who plays Meg in Family Guy, the character and show mentions are represented by that marker across their respective positions. The linker still supplies graph entities and the memory still associates their variables with the mentions. The replacement reduces the opportunity to associate a particular surface name with a remembered program. Context words such as the verb in the question can then carry more of the information needed to predict the relation. A question about another character can share these cues even though the entity values are different.

The graph is built from the last publicly available Freebase snapshot. To make random access practical during decoding, the authors remove text-valued predicates and exclude categories of predicates that largely describe the graph itself. They keep /common/topic/notable_types as an exception to the removal of the designated categories. They report a graph that fits in memory and has 23K relations, 82M nodes, and 417M edges. These quantities describe the graph used for the experiment. They give a more direct sense of the execution workload than the number of questions alone.

Many graph accesses occur while the decoder explores partial programs. A candidate can require lookups when the interpreter checks which properties are available, as well as when it executes an expression. The authors identify decoding as the main training bottleneck and partition the dataset across parallel decoders. Their implementation uses 100 decoders, 50 graph servers, and 1 trainer. The neural component is implemented in TensorFlow. They report little speedup from using a GPU for the small neural network and run the decoders and trainer on CPUs. The resource figures describe the implementation of the search procedure, whose time depends on interactions with the graph as well as neural computation.

How the paper measures answers

The authors use the official WebQuestionsSP evaluation script. For each question, precision asks how much of the returned answer agrees with the reference, and recall asks how much of the reference appears in the returned answer. F1 combines those quantities so that both extra values and missed values affect the score. The script averages the per-question F1 scores, and the paper treats that average as its primary metric. Accuracy counts answers that match exactly. For a question with several correct values, a partial answer can contribute to average F1 while failing exact-answer accuracy.

The use of F1 in training and testing makes the learning objective closely related to the principal evaluation metric. Training rewards particular executed candidate programs on questions whose answers are known. Evaluation measures the result of the ranking procedure on held-out questions. A program that would receive a high score if selected gives evidence about what search can find. The accuracy and F1 reported for the parser depend on the answer from the program it actually selects.

What NSM achieves against the baseline

The test comparison uses STAGG, the earlier leading system based on staged query graph generation. The authors compare against STAGG with weak supervision and also report its result with full supervision. Under weak supervision both systems can learn from answers, so the comparison tests how well NSM handles the task when the training signal leaves the analytical steps implicit. Under strong supervision STAGG has annotated parses to guide those steps. That result gives the paper a point of comparison for the value of stronger labels on the same benchmark.

The test comparison favors NSM over weakly supervised STAGG on every metric the paper reports. The fully supervised STAGG result is 71.7 average F1 on the test set. The authors describe NSM's gain over weakly supervised STAGG as closing half the gap in F1 between the two STAGG supervision settings. The comparison establishes progress for answer-only training on this benchmark. It also leaves fully supervised STAGG ahead on the reported test F1 comparison. The authors attribute the advance to an end-to-end learning procedure that dispenses with task-specific feature engineering and hand-crafted rules.

There are numerical validation results for different ways of reading the outcomes of search. The regular parser receives 67.2% validation F1@1, the score of its first-ranked program. For the search analysis, the authors report 89.5% validation F1 for the best programs found using the curriculum. In that evaluation, the known answer is used to identify the highest-scoring candidate. It is an oracle measurement, meaning the evaluation grants the selector information it would lack when answering a new question. These results come from different search and selection procedures, so the comparison describes the separation between demonstrated search potential and first-ranked performance.

WebQuestionsSP validation F1 for ranked predictions and curriculum search

Selecting candidates by their known answer scores gives a higher F1 than using the parser's first-ranked program.

WebQuestionsSP validation F1 for ranked predictions and curriculum searchNSM first-ranked program: 67.2NSM first-ranked program67.2Best program found with curriculum, selected by answer score (this paper): 89.5Best program found with curriculum,selected by answer score (this paper)89.5
The numbers
System or settingF1 %
NSM first-ranked program67.2
Best program found with curriculum, selected by answer score (this paper)89.5

The star marks the higher-scoring search diagnostic. The lower value is the result for the ordinary first-ranked prediction. Reading the chart as a comparison of independent deployable systems would blur the role of the reference answers. Its purpose is to show how much differently an answer can score when the choice of program is made with knowledge of the result. The authors use this difference to investigate the kinds of errors that survive code assistance and augmented training.

What the ablations show

Interpreter checks make the next decision smaller

The authors identify code assistance as a major ingredient and give a quantitative account of the property choices it removes. The graph-wide property inventory would supply 23K choices at a property step. The authors use the reported average of fewer than 100 properties linked to an entity as a point of comparison. Using reachability from an intermediate value brings the search down to a local choice. For a variable holding a list of entities, the rule considers the available properties from the entities in that list. The number of actual continuations therefore depends on what the program has already computed.

This is a measurement of the branching problem the interpreter addresses. It shows why an unrestricted property vocabulary makes beam search hard even when a question requires a short program. A beam can carry only a bounded number of prefixes forward, and many graph-wide property choices are useless from the current value. A much smaller legal set lets the same search budget consider viable alternatives. The counts characterize a direct effect of semantic checking. An isolated end-to-end score for removing that check would address a different question, namely how far answer quality changes when the other components have to work with those extra candidates.

Saving rewarding programs changes the learning comparison

The paper compares augmented REINFORCE, ordinary REINFORCE, and iterative maximum likelihood. Ordinary REINFORCE performs poorly and tends to get stuck. The paper connects this pattern to the scarcity of positive-reward programs among the candidates the untrained generator initially ranks highly. The beam can return an entirely unhelpful set even when a correct program exists somewhere in the permitted space. In that situation, improving the generator's preferences from the reward gradient is difficult because the available examples produce little informative variation in reward.

Iterative maximum likelihood gives much more direct support to the best candidates search has already found. It can learn to reproduce a program with positive reward even if the current generator assigns that program little probability. Its update focuses on the selected sequence. This leaves a weakness when the best available program owes its score to an accidental match or when several related tokens tend to be confused. A saved program can give the generator a reason to favor one choice, while the likelihood objective says less about the different rewards of plausible complete alternatives. The paper gives the related choices of parent, sibling, and child properties as examples of distinctions that can remain difficult.

Augmented REINFORCE gives the strongest reported results of these training approaches on the training and validation splits. It preserves a source of successful examples from the earlier search and evaluates the current candidates by their answer rewards. The comparison supports the combination in the tested setup. Its interpretation includes the use of fresh initialization for the reinforcement phase and the different roles of the two beam widths. The strong advisory signal is the saved sequence itself, and the current generator can still propose alternative programs for the same question.

The curriculum improves the programs search can find

The authors also compare searches with and without the curriculum. For this analysis the programs are evaluated by taking the best answer score in the beam. The curriculum yields better best-found programs across the metrics reported for that comparison. This shows that the schedule improves the candidates available to learning under the tested search procedure. A system that later has to choose among those candidates from question words and learned scores faces a further ranking problem.

The schedule changes several things together. It introduces filtering after an initial search over graph hops, increases the allowed number of expressions, and restricts the later hops using properties found earlier. These ingredients are designed to work together. The initial search can identify paths worth preserving, and the later search can add useful operations without reopening the full set of property choices. The comparison supports the combined schedule. The individual contributions of the function restriction, the length limit, and the carryover of relations remain open.

The size of the oracle score has a concrete implication for diagnosing what a learner needs. If the beam already contains an answer-producing program, the learner can potentially improve by ranking existing candidates more accurately. When the beam lacks such a program, changes in ranking can help only if supported prefixes survive long enough to form one. More expressive operations or a different exploration strategy can affect the latter case. The curriculum experiment provides evidence about candidate quality at the search stage, where those choices first matter.

Generalization still lags training performance

The paper studies techniques for reducing overfitting and reports that increasing dropout tended to help. The full configuration reaches 83.0% F1@1 on the training split and 67.2% F1@1 on the validation split. Both measurements use the first-ranked program. This makes them a comparison of the same prediction rule on examples with different roles in learning. The generator can fit a substantial share of its training questions and still lose accuracy on questions left out of that training.

Replacing names with ENT is another way to make the learned preferences depend more on reusable wording. The identity of a named entity remains available through a variable, so this change primarily affects the surface evidence the encoder receives. The dataset contains sparse evidence for some relations, including relations the authors say occur only once in the full training set. With only a few contexts for a relation, learning a good ranking for new questions remains difficult even when graph checks make most of the unrelated properties unavailable.

Expression counts and error types tell different parts of the story

The authors group predicted programs by their number of expressions. They find that 36.7% use more than one. This establishes that the system makes substantial use of the ability to refer to previous computations. The authors report little deterioration in performance as expression count increases within their comparison. They also observe that programs with three expressions focus on a more limited range of properties. Examples include questions about the actor for a character, the college a person attended, and countries bordering Russia. Programs with two expressions cover a more varied set of properties, which the authors offer as an explanation for the lower performance of that group compared with the three-expression group.

These groups differ in more than their length. A short program that uses a rare or easily confused property can present a harder ranking problem than a longer program in a familiar pattern. The study shows that the parser uses multi-expression computations and can perform well on the kinds of questions represented in those groups. Expression count provides a visible property of the output. The diversity of the questions and properties also matters when interpreting the score for each group.

Finally, the authors investigate search and ranking failures on validation questions. They interpret the 89.5% F1 search diagnostic as indicating that at least 10% of validation questions suffer from a failure to find a sufficiently rewarding program. They identify the beam width and the interpreter's limited operation set as possible sources. Their second diagnosis is that rewarding programs can be present and receive an inferior rank. The authors use the 67.2% F1 result to estimate that about 20% of validation questions fall into this category and point to overfitting and spurious programs as likely explanations. Those are the paper's diagnostic estimates. The underlying F1 measurements allow partial credit and describe answer overlap, while the estimates express the authors' interpretation in terms of questions affected.

Limitations

Limits the authors identify

Training depends on the ability of a finite search to reach a program with useful reward. The interpreter can remove invalid continuations, and the curriculum can put some useful paths within reach, but the beam can still lose promising prefixes. Increasing the beam is expensive because decoding repeatedly consults Freebase. The authors also identify the expressive scope of the interpreter as a potential bottleneck. A question whose computation requires an unavailable operation cannot be solved by a wider search over the same small language.

The paper's language is designed around operations the authors consider appropriate to the task. It excludes general programming constructs such as loops and control flow. The authors suggest that functions can be added when a task needs them and identify the ability to define new functions as a direction for future work. The experiments concern a given set of operations with an explicit curriculum. How search and training behave as the operation set expands remains an open part of the proposal.

The authors emphasize accidental agreement with the answer. Their birthplace and place-of-death example shows how a program can receive the highest possible reward for using the wrong relationship. Choosing a short high-scoring sequence as a training target can preserve such a discovery. Augmented reinforcement learning evaluates alternatives and controls how much of the update comes from a saved program, but the reward still measures the answer. When two programs give the same answer, it assigns them the same score on that question. The wording and evidence across other questions must support any preference for the intended interpretation.

The authors also give a cost to the choice of discrete operations. The programmer can learn embeddings through back-propagation and can use the interpreter's returned validity information, but the computation of a symbolic list is outside the differentiable path. This is what makes answer rewards and program search necessary for learning the parser. The paper's description of end-to-end training refers to learning the mapping from questions using the task outcome. The interpreter and its operations are supplied as part of the system, and the training algorithm learns how to use them.

Several further improvements are explicitly left open. The authors suggest learning a separate predictor for the baseline used in the reinforcement gradient. They also discuss combining several semantic representations into a prediction, an ability they identify in path ranking. NSM returns the value of the last computed variable in its selected program. A method that combines programs would have a different decision rule and would require its own evaluation.

Limits that follow from the experiment

The empirical comparison centers on WebQuestionsSP and the authors' processed Freebase graph. This establishes that the method can learn an answer-driven parser on a large knowledge base with that benchmark's questions and graph access. Transfer to a different graph, different schema, or substantially different distribution of questions would require further evidence. In particular, the property embeddings use the words in Freebase identifiers, and the interpreter's checks rely on access to the relations surrounding retrieved entities. The availability and value of these sources of guidance depend on the execution setting.

The data setup also gives the parser a substantial starting advantage from entity linking. The reported 94% concerns whether gold root entities appear in a candidate set. The figure measures coverage before program ranking, so it leaves open how frequently NSM selects the correct starting point when several are available. It also means that some intended starting points are absent. More broadly, the answer-only claim concerns the supervision used to train program generation. The pipeline still includes an entity linker, pretrained word representations, a typed operation language, and graph preprocessing.

The benchmark's main score checks answer agreement. This is an appropriate test of the task reward, and the paper gives concrete reasons to care about program quality as well. A system that obtains the same answers as the reference queries can still differ from them in the relationships it follows. Using a program that depends on an accidental coincidence makes later behavior sensitive to which entities are queried and which facts happen to be recorded. The reported answer scores leave the frequency of faithful logical forms unresolved, even though WebQuestionsSP has annotations that could support that kind of examination.

Likewise, the expression-count analysis supports a limited view of compositionality. It shows successful use of variables and multiple expressions within the tested range. The groups cover different properties and question patterns, so their aggregate scores mix program structure with the difficulty of those different items. The results leave open performance on unseen combinations of operations or on programs beyond the lengths explored in the curriculum. The distinction matters because an interpreter can execute a well-formed expression over a large collection, while learning to build a longer valid program is a separate capability.

Finally, the practical cost of search is part of the result. The graph fits in memory in the reported setup, and parallel decoders share the work of repeated execution. The implementation provides evidence that the authors could train at the stated graph size. The server and decoder counts describe the resources behind that evidence. They leave training time and resource tradeoffs under other deployments as separate empirical questions.

What came after

Learning from the programs a system discovers

The question most directly carried forward by From Language to Programs is how reinforcement learning and likelihood-based training relate when programs are learned from language. NSM uses maximum likelihood to produce a supply of candidate programs, then promotes those candidates in an answer-based policy update. The later work makes the relationship between reinforcement learning and maximum marginal likelihood its subject. In NSM terms, searching for compatible programs creates a second question about how to distribute training credit among the programs that search has found.

A Discrete Hard EM Approach for Weakly Supervised Question Answering takes up the problem of hidden intermediate choices through discrete hard expectation-maximization. It connects to NSM's use of a single provisional target in its initial training phase. Both problem formulations start from the fact that weak feedback leaves an intermediate object to be inferred. Selecting one such object for an update makes learning depend on its quality, which is the same pressure that motivates NSM to revisit its saved programs across rounds.

Unified Semantic Parsing with Weak Supervision addresses weakly supervised semantic parsing as a general task. Its connection to NSM is the distinction between the observed feedback and the symbolic analysis that must be learned from it. StructVAE instead names semisupervised semantic parsing and a tree-structured latent variable. Together they show two ways the question of missing analyses can be posed. One puts weak supervision at the center of the parsing problem, and the other emphasizes the structure assigned to the unobserved object in semisupervised learning.

Two citing studies put human bandit feedback at the center of training. Reliability and Learnability of Human Bandit Feedback studies whether this feedback can support sequence-to-sequence reinforcement learning. Improving a Neural Semantic Parser by Counterfactual Learning applies counterfactual learning to human bandit feedback for a semantic parser. The connection is the limited information available about an output. NSM can run a candidate program and score it against a reference answer. Studies centered on human feedback ask how sequence learners can improve when the judgment comes from people.

The same broader learning problem appears in Learning Math Reasoning from Self-Sampled Solutions and Beyond Human Data. The former studies learning mathematical reasoning from the learner's own correct and partially correct solutions. The latter studies scaling self-training for problem solving. NSM's iterative search also makes generated solutions part of the training material. Its specific criterion is an answer score computed by executing a graph program, whereas the titles of the later studies identify different problem-solving settings for learning from generated work.

Executable representations across tasks

Seq2SQL takes natural-language questions and produces structured queries, with reinforcement learning part of the approach. It carries the language-to-execution problem into SQL. The shared issue is whether a generated sequence will have the intended effect on structured data. Towards Complex Text-to-SQL in Cross-Domain Databases approaches more complex SQL generation through an intermediate representation and makes cross-domain databases part of the problem. Its focus connects to NSM's choice of a restricted executable representation, which shapes what a language system has to predict and how the target database enters the task.

Program Induction by Rationale Generation studies solving and explaining algebraic word problems by generating rationales. It extends the discussion of intermediate steps to a task where the steps also help explain a solution to a reader. NSM's intermediate variables were introduced to support execution and composition. An algebraic rationale puts additional emphasis on how the route to an answer can be expressed for a person following the problem.

Inferring and Executing Programs for Visual Reasoning brings program inference and execution into visual reasoning. The connection is the division between choosing a computation and applying it to information about the instance. NSM uses a Freebase interpreter to apply a program to graph values. The visual work poses the question of program structure in a different domain, where the relevant information is visual.

DROP turns the need for discrete operations into a reading-comprehension benchmark over paragraphs. It shifts the starting point of the computation from graph facts to information expressed in text. TabFact frames the corresponding task over tables as fact verification. Its output concerns whether a claim is supported by a table. These works place different demands on the material a reasoning procedure must use, while keeping attention on decisions that can depend on discrete relationships or operations.

HiTab makes hierarchical tables the setting for question answering and natural-language generation. ConvFinQA studies chains of numerical reasoning in conversational finance questions. In both, the organization of the task affects what information later steps can draw on. NSM makes this dependency explicit by assigning intermediate results to variables. These benchmarks put structure in the input or interactions among reasoning steps at the center of evaluation.

Search-based Neural Structured Learning for Sequential Question Answering brings search-based structured learning to sequential questions. The parallel with NSM is the need to make a series of decisions whose later possibilities depend on earlier choices. The later title locates the sequence at the level of question answering, while NSM's primary sequence is the program generated for a question. Learning a Natural Language Interface with Neural Programmer concerns a neighboring design for a natural-language interface. The NSM paper describes related Neural Programmer work in terms of continuous representations of intermediate selections. The relevant connection is the shared use of structured operations and the importance of how their intermediate results are represented.

What to search and what to execute against

Macro Grammars and Holistic Triggering for Efficient Semantic Parsing studies efficiency through the grammar and the way it is triggered. NSM also treats efficient search as central, using runtime graph denotations to restrict the next token. The useful comparison is between points at which a parser can reduce its choices. A grammar can affect which constructions enter consideration, while an interpreter can use a partial program's values to constrain the remaining extensions.

Span-based Semantic Parsing for Compositional Generalization puts span-based representations and generalization across compositions at the center of semantic parsing. NSM uses span information when establishing the initial entity references, then uses earlier expressions to construct new references. The later study's stated focus on compositional generalization addresses a question that NSM's expression-count analysis leaves open. A parser's ability to return a multi-step answer on familiar patterns and its ability to handle new combinations are distinct empirical properties.

Learning an Executable Neural Semantic Parser keeps executability central to the parsing problem. Binding Language Models in Symbolic Languages also takes symbolic languages as the setting for connecting neural language processing with computation. The shared design issue is how much the symbolic representation can express and how a learned component can use it to solve a task. NSM gives a concrete early example through a restricted Lisp language, a discrete interpreter, and a generator that can refer to computed values.

For question answering over graph data, Open Domain Question Answering Using Early Fusion brings knowledge bases and text together. That changes the evidence side of the task. NSM's executor uses the contents of a fixed graph, so the relevant path and values have to be available there. Early fusion instead makes the combination of structured and textual sources the named subject of the approach.

TransferNet studies multi-hop question answering over a relation graph, with transparency among its stated aims. A graph hop is also one of NSM's central operations. Saving its result as a variable makes the route to the answer inspectable as a sequence of graph operations. Case-based Reasoning for Natural Language Queries studies queries over knowledge bases through cases. This puts examples and their reuse at the center of the problem, whereas NSM retains discovered programs primarily to guide training on the questions for which they were found.

Bring Your Own KG takes up self-supervised program synthesis for zero-shot question answering over knowledge graphs. Its stated setting brings together the search for executable programs and the question of how to work with a target graph. NSM demonstrates learning executable programs with answer supervision on one prepared graph. The later work's formulation makes the supervision available for a new graph part of the question. Across this line of work, the choice of evidence source, the form of the intermediate computation, and the feedback available to learn it remain separate decisions with consequences for what a parser can discover.

Cite

Cite as Chen Liang, Jonathan Berant, Quoc Le, Kenneth D. Forbus and Ni Lao. 2017. Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision. Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/p17-1003 · arXiv 1611.00020

@inproceedings{liang2017neural,
  title = {{Neural Symbolic Machines: Learning Semantic Parsers on Freebase with Weak Supervision}},
  author = {Chen Liang, Jonathan Berant, Quoc Le, Kenneth D. Forbus and Ni Lao},
  booktitle = {Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2017},
  doi = {10.18653/v1/p17-1003},
  eprint = {1611.00020},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/p17-1003}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/liang-2017-neural-symbolic-machines-learning-semantic/

References

44 references, from the paper's own bibliography.

  1. Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. 2016. Learning to compose neural networks for question answering. CoRR abs/1601.01705. our card
  2. Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate (http://arxiv.org/abs/1409.0473). CoRR abs/1409.0473. http://arxiv.org/abs/1409.0473 (http://arxiv.org/abs/1409.0473). our card
  3. Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on freebase from question-answer pairs. In EMNLP. volume 2, page 6. our card
  4. Jonathan Berant and Percy Liang. 2015. Imitation learning of agenda-based semantic parsers. TACL 3:545–558. our card
  5. K. Bollacker, C. Evans, P. Paritosh, T. Sturge, and J. Taylor. 2008. Freebase: a collaboratively created graph database for structuring human knowledge. In International Conference on Management of Data (SIGMOD). pages 1247–1250. OpenAlex ↗ · Scholar ↗
  6. Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. 2014. Learning phrase representations using rnn encoder–decoder for statistical machine translation (http://www.aclweb.org/anthology/D14-1179). In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Doha, Qatar, pages 1724–1734. http://www.aclweb.org/anthology/D14-1179 (http://www.aclweb.org/anthology/D14-1179). our card
  7. H. Daume, J. Langford, and D. Marcu. 2009. Search-based structured prediction. Machine Learning 75:297–325. our card
  8. Li Dong and Mirella Lapata. 2016. Language to logical form with neural attention. In Association for Computational Linguistics (ACL). our card
  9. Alex Graves, Greg Wayne, and Ivo Danihelka. 2014. Neural turing machines. arXiv preprint arXiv:1410.5401 . OpenAlex ↗ · Scholar ↗
  10. Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwinska, Sergio G. Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, Adrià P. Badia, Karl M. Hermann, Yori Zwols, Georg Ostrovski, Adam Cain, Helen King, Christopher Summerfield, Phil Blunsom, Koray Kavukcuoglu, and Demis Hassabis. 2016a. Hybrid computing using a neural network with dynamic external memory (https://doi.org/10.1038/nature20101). Nature advance online publication. https://doi.org/10.1038/nature20101 (https://doi.org/10.1038/nature20101). OpenAlex ↗ · Scholar ↗
  11. Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka Grabska-Barwińska, Sergio Gómez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, et al. 2016b. Hybrid computing using a neural network with dynamic external memory. Nature . OpenAlex ↗ · Scholar ↗
  12. Geoffrey Hinton, Li Deng, Dong Yu, George E Dahl, Abdel-rahman Mohamed, Navdeep Jaitly, Andrew Senior, Vincent Vanhoucke, Patrick Nguyen, Tara N Sainath, et al. 2012. Deep neural networks for acoustic modeling in speech recognition: The shared views of four research groups. IEEE Signal Processing Magazine 29(6):82–97. OpenAlex ↗ · Scholar ↗
  13. Robin Jia and Percy Liang. 2016. Data recombination for neural semantic parsing. In Association for Computational Linguistics (ACL). our card
  14. J. Jiang, A. Teichert, J. Eisner, and H. Daume. 2012. Learned prioritization for trading off accuracy and speed. In Advances in Neural Information Processing Systems (NIPS). OpenAlex ↗ · Scholar ↗
  15. Łukasz Kaiser and Ilya Sutskever. 2015. Neural gpus learn algorithms. arXiv preprint arXiv:1511.08228 . OpenAlex ↗ · Scholar ↗
  16. 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
  17. Ni Lao, Tom Mitchell, and William W Cohen. 2011. Random walk inference and learning in a large scale knowledge base. In Proceedings of the Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, pages 529–539. OpenAlex ↗ · Scholar ↗
  18. Jiwei Li, Will Monroe, Alan Ritter, Michel Galley, Jianfeng Gao, and Dan Jurafsky. 2016. Deep reinforcement learning for dialogue generation. arXiv preprint arXiv:1606.01541 . our card
  19. P. Liang, M. I. Jordan, and D. Klein. 2011. Learning dependency-based compositional semantics. In Association for Computational Linguistics (ACL). pages 590–599. OpenAlex ↗ · Scholar ↗
  20. Arvind Neelakantan, Quoc V. Le, and Ilya Sutskever. 2015. Neural programmer: Inducing latent programs with gradient descent. CoRR abs/1511.04834. OpenAlex ↗ · Scholar ↗
  21. Mohammad Norouzi, Samy Bengio, zhifeng Chen, Navdeep Jaitly, Mike Schuster, Yonghui Wu, and Dale Schuurmans. 2016. Reward augmented maximum likelihood for neural structured prediction. In Advances in Neural Information Processing Systems (NIPS). OpenAlex ↗ · Scholar ↗
  22. Panupong Pasupat and Percy Liang. 2015. Compositional semantic parsing on semi-structured tables. In ACL. our card
  23. Jeffrey Pennington, Richard Socher, and Christopher D. Manning. 2014. Glove: Global vectors for word representation. In EMNLP. our card
  24. Marc'Aurelio Ranzato, Sumit Chopra, Michael Auli, and Wojciech Zaremba. 2015. Sequence level training with recurrent neural networks. arXiv preprint arXiv:1511.06732 . our card
  25. Scott Reed and Nando de Freitas. 2016. Neural programmer-interpreters. In ICLR. OpenAlex ↗ · Scholar ↗
  26. S. Ross, G. Gordon, and A. Bagnell. 2011. A reduction of imitation learning and structured prediction to no-regret online learning. In Artificial Intelligence and Statistics (AISTATS). OpenAlex ↗ · Scholar ↗
  27. Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. 2016. Prioritized experience replay. In International Conference on Learning Representations. Puerto Rico. OpenAlex ↗ · Scholar ↗
  28. Jürgen Schmidhuber. 2004. Optimal ordered problem solver. Machine Learning 54(3):211–254. OpenAlex ↗ · Scholar ↗
  29. David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. 2016. Mastering the game of go with deep neural networks and tree search. Nature 529(7587):484–489. OpenAlex ↗ · Scholar ↗
  30. Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In Advances in neural information processing systems. pages 3104–3112. our card
  31. Richard S. Sutton and Andrew G. Barto. 1998. Reinforcement Learning: An Introduction. MIT Press, Cambridge, MA. OpenAlex ↗ · Scholar ↗
  32. Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. 2015. Pointer networks. In Advances in Neural Information Processing Systems (NIPS). OpenAlex ↗ · Scholar ↗
  33. Yushi Wang, Jonathan Berant, and Percy Liang. 2015. Building a semantic parser overnight. In Association for Computational Linguistics (ACL). our card
  34. Jason Weston, Sumit Chopra, and Antoine Bordes. 2014. Memory networks. arXiv preprint arXiv:1410.3916 . OpenAlex ↗ · Scholar ↗
  35. Ronald J. Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. In Machine Learning. pages 229–256. OpenAlex ↗ · Scholar ↗
  36. Sam Wiseman and Alexander M. Rush. 2016. Sequence-to-sequence learning as beam-search optimization (http://arxiv.org/abs/1606.02960). CoRR abs/1606.02960. http://arxiv.org/abs/1606.02960 (http://arxiv.org/abs/1606.02960). our card
  37. Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Lukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. 2016. Google's neural machine translation system: Bridging the gap between human and machine translation (http://arxiv.org/abs/1609.08144). CoRR abs/1609.08144. http://arxiv.org/abs/1609.08144 (http://arxiv.org/abs/1609.08144). OpenAlex ↗ · Scholar ↗
  38. Wen-tau Yih, Ming-Wei Chang, Xiaodong He, and Jianfeng Gao. 2015. Semantic parsing via staged query graph generation: Question answering with knowledge base. In Association for Computational Linguistics (ACL). our card
  39. Wen-tau Yih, Matthew Richardson, Chris Meek, Ming-Wei Chang, and Jina Suh. 2016. The value of semantic parse labeling for knowledge base question answering. In Association for Computational Linguistics (ACL). our card
  40. Pengcheng Yin, Zhengdong Lu, Hang Li, and Ben Kao. 2015. Neural enquirer: Learning to query tables. arXiv preprint arXiv:1512.00965 . OpenAlex ↗ · Scholar ↗
  41. Adam Yu, Hongrae Lee, and Quoc Le. 2017. Learning to skim text. In ACL. OpenAlex ↗ · Scholar ↗
  42. Wojciech Zaremba and Ilya Sutskever. 2015. Reinforcement learning neural turing machines. arXiv preprint arXiv:1505.00521 . OpenAlex ↗ · Scholar ↗
  43. M. Zelle and R. J. Mooney. 1996. Learning to parse database queries using inductive logic programming. In Association for the Advancement of Artificial Intelligence (AAAI). pages 1050–1055. our card
  44. L. S. Zettlemoyer and M. Collins. 2005. Learning to map sentences to logical form: Structured classification with probabilistic categorial grammars. In Uncertainty in Artificial Intelligence (UAI). pages 658–666. our card