ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answering
Paper · 2022 · Yu Gu and Yu Su
Summary
A question about a large database can be easy to ask and hard to turn into a query. The word “father,” for example, can require a system to follow a family relation in a particular direction and then apply a gender constraint that the question leaves implicit. ArcaneQA tackles this kind of question answering over Freebase, a knowledge graph whose facts connect entities to other entities or to values. The task is to produce a formal query that the database can execute. The authors focus on two problems that make this difficult at Freebase’s scale. There are many possible queries, and the words in a question can plausibly refer to several different relations or classes.
ArcaneQA builds a query from smaller pieces. Whenever it finishes a piece, it executes that piece against Freebase and uses the result to work out which extensions are available. If the current piece returns a region and the next operation follows a relation, the decoder can look for relations connected to that region. BERT reads the question together with the admissible vocabulary at the current step. Its representations therefore change as the search moves from one part of the query to another. The database narrows the choices, and the wording of the question helps the decoder choose among them. The paper also puts queries from different benchmarks into a shared S-expression notation and extends it to handle implicit entity constraints and time constraints.
The authors evaluate the approach on GrailQA, GraphQ, and WebQSP. ArcaneQA improves on earlier systems on GraphQ, matches RnG-KBQA in the reported WebQSP answer-set F1 comparison, and trails it by 0.7% in overall GrailQA test F1 as the paper reports the gap. GrailQA exact match, which rewards reproducing the annotated query, favors RnG-KBQA by more than answer F1 does. The paper gives an example in which ArcaneQA uses a different query and still retrieves the correct answer. On GrailQA validation questions that call for a superlative such as ARGMAX or ARGMIN, ArcaneQA has a pronounced advantage over RnG-KBQA, whose initial enumeration omits those operations. In an online test with caching disabled, ArcaneQA also runs about an order of magnitude faster than BERT+Ranking and RnG-KBQA.
Replacing BERT’s joint encoding with fixed representations on GrailQA and GraphQ, and with trainable word representations on WebQSP, lowers answer F1 on all the evaluated benchmarks. Within GrailQA the reported declines are larger for unfamiliar combinations of schema items and for previously unseen schema items than for questions drawn from the training distribution. Even with contextual encoding, the system can select the wrong relation or lose the correct entity before decoding begins. The authors make the implementation and converted annotations available in the dki-lab/ArcaneQA repository.
Deep dive: ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answering
ArcaneQA builds Freebase queries by executing partial programs and using their results to decide which schema terms to consider next. · about 39 minutes to read
The problem and its context
From a question to a database operation
A knowledge base organizes information into facts that a query can address directly. According to the authors, Freebase spans more than 100 domains and contains 3 billion facts and upwards of 45 million entities. A reader who asks a question in ordinary language can leave several details unstated that a database query has to specify. The query needs to identify which entity the reader has in mind, which relation connects it to a possible answer, and which restrictions apply to those answers. A request for an extreme value adds a further decision about what to compare. A question about the highest value among a group, for instance, calls for both a way to assemble the group and a way to order its members.
The paper treats this as semantic parsing. A parser translates a question into a logical form, a structured expression that specifies what operations to run. The paper also calls this expression a query or a program. The answer comes from executing it against the knowledge base. That separation gives the system two jobs. It must construct something the database can interpret, and the expression it constructs must capture the information the reader wants. A database can execute a query successfully even when the resulting entities answer a different question.
The authors place their work in a line of research that includes Semantic Parsing on Freebase from Question-Answer Pairs. They compare knowledge-base parsing with translating text into SQL over a more moderate schema. In both cases, a question may use words that differ from the database labels. The number and diversity of Freebase’s categories and relations make the mismatch especially consequential. A database identifier is useful to the parser only when it can distinguish that identifier from the many others that could fit the wording or the current state of the query.
The paper calls the correspondence between language and schema schema linking. A schema item is a class or a relation. An entity link establishes which individual record a mention refers to. A schema link determines which category or kind of connection the question calls for. For instance, identifying the record for Tulum Valley gives a parser somewhere to start. Identifying the wine subregion relation determines what to do with it. ArcaneQA takes entity links as inputs and does much of the work of matching schema implicitly while building the program. The distinction matters because an error in the starting record can change the schema choices that become available later.
Why a list of complete candidate queries is costly
Earlier systems commonly controlled the search by enumerating candidate programs and ranking them. They could use the graph to build connected candidates, then award higher scores to the candidates that fit the question. In the paper’s account, this had an important advantage over free sequence generation. A candidate built from facts already in the knowledge base starts with a degree of grounding. The system can devote its scoring effort to programs with a basis in the graph.
The set of candidate queries grows as the number of relations and possible ways to combine them increases. The authors describe approaches that handle this growth by fixing the shape of the queries they will enumerate. In one example, the main chain could contain at most two relations, with constraints attached to it. That decision limits the enumeration, and it makes a question expressible only if its intended query fits the available shapes. Enumeration also takes time for each question when those candidates have to be gathered online. A good ranker can only choose among the candidates it receives.
RnG-KBQA adds a revision stage to that arrangement. Its T5 component can edit a program found by enumeration and can thereby generate a result outside the original set of finished candidates. The input to revision still comes from enumeration. To understand the distinction, consider a function that is missing from the enumerated set. A pure ranker has no candidate using that function. A revision system has a chance to introduce it, provided its initial candidates give it enough information to make the edit. The diversity of those candidates remains important even though revision can change them.
Some earlier systems made candidates progressively using beam search, retaining selected partial possibilities as they went. The paper describes methods that search relation paths and QGG, which uses a core relational path with constraints. The limitation in these cases comes from the allowed shape of a partial or completed query. Search can proceed efficiently within that shape. Expressions that need a different composition expose the consequences of choosing it.
What constraints and language context each contribute
A sequential parser can also produce a logical form token by token. Grammar rules can prevent it from emitting an argument where only a function name is allowed or leaving an expression open when decoding ends. Those checks address well-formedness. Further checks can ask whether a given relation actually extends the result obtained so far. A relation can be legal as a query argument in general and still have no pertinent edge at the current point in Freebase. The authors describe ReTraCk as a flexible generator with grammar-level restrictions. They identify earlier work on neural semantic parsing as a precedent for consulting the contents of the knowledge base during generation. ArcaneQA develops that idea for a broader set of operations and uses the graph’s answers to decide what BERT should read.
The other line of prior work concerns encoding questions together with their schema. With joint encoding, the representation of a word can depend on the candidate relation names beside it, and the representation of a relation name can depend on the question. The paper points to earlier success with this idea in semantic parsing. Freebase presents a practical obstacle because its schema is too large to put beside the question in a single input. Some prior methods use BERT features in a downstream classifier. Others first identify a subset of schema and then jointly encode it with the question. If that initial selection drops a needed relation, the encoder starts without it.
ArcaneQA makes the subset a consequence of the partial query. A relation that is irrelevant while identifying a region can become relevant when the decoder has moved on to properties of the wines associated with it. This lets the system use language context at the point where a schema choice arises. It also means that the order and quality of preceding decisions affect what the encoder gets to see. The authors connect this design to learning to search, where producing a structured output involves a sequence of decisions made while interacting with an environment.
Why new combinations matter
The authors distinguish ordinary in-distribution evaluation from two forms of generalization, following earlier GrailQA work. In an independent and identically distributed, or i.i.d., setting, training and test examples are treated as draws from the same distribution. Compositional generalization asks whether the system can use familiar schema items in combinations or query structures that training did not show it. Zero-shot generalization asks whether it can work with schema items that were unseen during training.
The distinction is particularly relevant for a knowledge base intended to cover many areas. The set of questions people can ask extends beyond any annotated training collection. A parser could learn consistent associations between wording and familiar program patterns and still struggle when a familiar operation needs a new argument or when the appropriate relation has no example in training. The authors want a system that can consult the graph for plausible local choices and read the question afresh alongside those choices. Whether this helps, and under what conditions, depends on the evaluation split and on which part of the parsing process is being tested.
The method, step by step
What a partial program represents
A useful way to read an ArcaneQA program is to distinguish the expression from the values it returns. A small expression might identify a starting entity or follow one relation from an existing set. Its denotation is its execution result, such as a set of entities returned by Freebase. A later expression can use the earlier expression as an argument. The decoder can also use the earlier denotation to check which arguments could extend it. A partial program thus provides both a piece of the final query and information about where the search can go next.
The authors describe two kinds of information in a knowledge base. The first consists of relational facts. A subject entity connects through a relation to an entity or a literal, such as a numerical value or a date. The second consists of class assertions that associate entities with categories. The formal description of the relational facts is:
𝒦ᵣ ⊆ ℰ × ℛ × (ℰ ∪ ℒ)
Here 𝒦ᵣ is the set of relational facts. ℰ is the entity set, ℛ the set of binary relations, and ℒ the literal set. The product sign × forms the possible ordered triples from the indicated sets. The union sign ∪ allows the last component to come from either the entity set or the literal set. The subset sign ⊆ says that the recorded facts are among those possible triples.
𝒦𝒸 ⊆ ℰ × 𝒞
Here 𝒦𝒸 is the collection of class assertions, ℰ again denotes entities, and 𝒞 denotes classes. In this formula × forms entity–class pairs, and ⊆ identifies the recorded assertions as a subset of those pairs. The paper calls the whole knowledge base 𝒦. Its schema items are the classes in 𝒞 and the relations in ℛ. That vocabulary describes what kinds of connections or memberships an entity can participate in, while the facts record which ones actually hold in the database.
A common notation for the queries
The authors use S-expressions, parenthesized forms that put an operation together with its arguments. A nested expression supplies the result of an inner operation to an outer one. This is convenient for bottom-up generation because the parser can finish an inner expression, save it, and refer to it later. Intermediate steps can be linearized into a sequence of tokens while still describing a query whose internal structure branches.
JOIN follows a relation from an entity set to a related set. AND intersects sets, and a class in an AND expression can stand for the set of entities belonging to that class. COUNT returns how many members are in its argument set. ARGMAX and ARGMIN select by an extreme value, while LT, LE, GT, and GE express comparisons against values. Direction is part of a relation’s interpretation. The paper uses the suffix _inv for the inverse, replacing a separate R operation. The two spellings let a query express a traversal in either direction without adding another function to apply.
The extensions CONS and TC handle restrictions that require other kinds of arguments. CONS lets a program refer to an entity that was implied by the question. In the paper’s example about Elie Wiesel’s father, a JOIN using the children relation and Elie Wiesel assembles the relevant candidates. A CONS step uses the gender relation and the entity Male to restrict them. The named person gives the query a starting point, and the meaning of “father” supplies the additional condition. The authors collect such entities from WebQSP training examples by checking whether the question explicitly mentions them. This gives the extension a source of possible implicit arguments within that dataset.
TC similarly applies a constraint whose value is temporal. With the same notation available across datasets, a time restriction can appear as part of the query the parser must construct. The authors supply S-expression annotations for WebQSP, GraphQ, and ComplexWebQ. ComplexWebQ is part of that annotation work and stays outside the reported evaluation. GrailQA already supplies the starting point for the notation. The additions are intended to cover a wider range of the operations found in the question collections.
From linked entities to a completed expression
The decoder starts from the outputs of an entity linker. Each initial entity can serve as a starting argument. The parser generates expressions token by token, and a closing parenthesis signals that a subprogram is ready to execute and add to the store of earlier subprograms. The final program may use earlier pieces in more than one place in its construction. The end-of-sequence token tells the decoder that it has finished.
How ArcaneQA builds a Freebase query
The steps in order.
The retrieve, encode, and predict steps recur as the expression grows. Some positions are decided by grammar alone. After an opening parenthesis the decoder chooses a function name. After a function name it chooses a preceding subprogram to expand. Once a subprogram has closed, the options described in the paper are to open another subprogram or end generation. COUNT illustrates a position where the function and its initial argument determine the remaining syntax. It requires no additional argument, so the only admissible next token at that point is the closing parenthesis.
Other positions require the actual graph. In the wine example, take Tulum Valley as the denotation of the earlier piece and JOIN as the selected function. The question is now which relation can connect to that denotation. The example has four choices, including appellation and wine_sub_region. ArcaneQA obtains the relevant options from Freebase. The choices arise from the current argument and the selected function, so a different denotation or a different function can produce a different set of next tokens.
This is the sense in which the authors call the process dynamic program induction. ArcaneQA constructs the program by selecting local extensions, and the set of extensions depends on what the preceding expressions do. For a JOIN, a relation that has no qualifying connection to the current result need never enter the scoring step. For an intersection, admissibility checks can prevent an argument mismatch of the kind the paper illustrates in its baseline analysis. A graph-supported choice may still be semantically wrong for the question. The constraint establishes a basis for the operation in the database, and the decoder must learn which supported choices answer the question.
The word bottom-up describes the order of composition. An outer operation can consume an already completed inner result. The parser also emits ordinary syntax tokens in order, so bottom-up composition does not require it to manipulate a complete query tree in a single decision. Its history includes a succession of tokens and a store of reusable subprograms. This combination gives the system local decisions with structured consequences.
How the paper writes the sequence
The input question and the output program are both written as sequences. The authors express the input as:
q = (x₁, …, x₍|q|₎)
Here q is the question, and x₁ and the following x entries are its tokens in order. The bars in |q| give the length of the question. The ellipsis … stands for the intervening tokens. Parentheses group the sequence and commas separate its elements.
o = (o¹₁, …, o¹₍|o¹|₎, …, oᵏ₁, …, oᵏ₍|oᵏ|₎) = (y₁, …, y₍|o|₎)
Here o is the full output sequence. The superscript on o identifies a subprogram, and the subscript identifies a token within it. The final subprogram has index k, the number of subprograms. The notation |o¹| denotes the length of the first subprogram, and |oᵏ| gives the length of the last one. The y tokens index the same sequence from beginning to end without restarting at subprogram boundaries. The ellipses mark unlisted tokens and subprograms, and the parentheses and commas organize the sequences.
|o| = ∑ᵏᵢ₌₁ |oⁱ|
Here |o| is the total output length, i indexes subprograms, and k is the last subprogram index. The summation sign ∑ adds the lengths |oⁱ|, beginning at the first subprogram and ending at subprogram k. The token count makes the sequential prediction problem explicit even though the program can refer back to structured intermediate results.
p(o ∣ q) = ∏ₜ₌₁^|o| p(yₜ ∣ y₍<t₎, q)
Here p denotes a conditional probability, with the vertical bar separating what is predicted from what is given. The product sign ∏ multiplies the probabilities for all output steps t, starting at the first token and ending at the length |o|. The token predicted at step t is yₜ, and y₍<t₎ denotes all preceding output tokens. The question q is available throughout. This is the sequence-to-sequence factorization used by the authors, whose attention-based formulation follows work including Neural Machine Translation by Jointly Learning to Align and Translate.
A step can refer to a token from the vocabulary 𝒱 or a stored result in the subprogram set 𝒮. The vocabulary contains schema identifiers and syntax such as function names and parentheses, as well as the end marker. At the start, 𝒮 contains the identified entities. When execution creates a new intermediate result, that subprogram becomes available for later composition. The probability factorization describes how full sequences receive probabilities. The constrained search specifies which options are considered at a given position in such a sequence.
How BERT sees a different question context at each step
For vocabulary choices, ArcaneQA constructs a BERT input from the original question and the current list of admissible tokens. A candidate schema identifier may itself consist of several pieces under BERT’s subword tokenization. The paper writes the input schematically at the level of question tokens and candidate items:
[CLS], x₁, …, x₍|q|₎, [SEP], sᵗ₁, …, sᵗₘ, [SEP]
Here [CLS] is BERT’s initial marker and each [SEP] is a separator. The x entries give the question q, whose token length is |q|. The s entries are vocabulary candidates, with superscript t indicating the current decoding step and the subscript distinguishing individual candidates. The count m is the number of admissible vocabulary tokens for the step. The ellipses mark intervening entries.
BERT’s self-attention gives question tokens and candidate schema identifiers a way to influence one another’s representations. The same question can therefore yield different vectors at successive stages. While the parser is trying to choose a region relation, the current candidates give the question a region-oriented context. When the parser is deciding among properties applicable later in the query, the input contains a different vocabulary. The question wording stays the same while the alternatives alongside it change.
The authors feed BERT’s question-side outputs into an LSTM encoder. An LSTM is a recurrent network that carries a state while processing a sequence. The paper writes the resulting question representation as:
Qₜ = (𝐱₁, …, 𝐱₍|q|₎)
Here Qₜ collects the contextual question vectors for decoding step t. Each bold 𝐱 is the resulting vector at the corresponding question position. The indices run across the |q| tokens, and the ellipsis represents the intervening positions. These are encoded vectors, whereas the x tokens in the BERT input denote the pieces being encoded.
For the vocabulary side, the authors average the BERT vectors corresponding to each admissible token’s constituent wordpieces. Each averaged vector occupies one row of a matrix:
Wₜ ∈ ℝᵐˣᵈ
Here Wₜ is the matrix of candidate vectors at step t. The membership sign ∈ says it belongs to the indicated space of real matrices, denoted by ℝ. The shape m by d gives one row for each of the m current vocabulary candidates and d components for each candidate vector. The two matrices serve different purposes. Qₜ supports attention over question positions, while Wₜ supplies a representation for each admissible vocabulary output. The paper’s account of joint encoding concerns this vocabulary list. It separately identifies preceding subprograms as options in the decoder’s broader output space.
How the decoder scores a step
The decoder is also an LSTM. It uses its preceding state and the input assembled after the previous prediction to compute a new state.
hₜ = LSTMθ(hₜ₋₁, cₜ₋₁)
Here hₜ is the decoder’s hidden state at step t, and hₜ₋₁ is its state at the preceding step. The vector cₜ₋₁ is the input carried forward from that preceding step. LSTMθ is the decoder’s recurrent update with learned parameters θ. The parentheses enclose its arguments and the comma separates them.
p(yₜ = sᵗᵢ ∣ q, y₍<t₎) = [Softmax(Wₜ hₜ)]ᵢ
Here p gives the probability of choosing sᵗᵢ, the vocabulary candidate at row i in the admissible list for step t, as output token yₜ. The probability is conditional on q, the question, and y₍<t₎, the preceding tokens. The product Wₜ hₜ gives a score for each row of the candidate matrix Wₜ against the current state hₜ. Softmax converts those scores into probabilities over the scored candidates. The bracketed index i selects the probability of that particular candidate. Moving to a different stage of the query can change which rows are present as well as their encoded values.
The decoder also attends to the question. Its state produces scores at the different question positions, and the scores become weights.
aₜ = softmax(Qₜ hₜ)
Here aₜ is the vector of attention weights at step t. The multiplication Qₜ hₜ scores the rows of the contextual question representation Qₜ against the decoder state hₜ. The softmax operation normalizes the scores across the question positions.
qₜ = (aₜ)ᵀ Qₜ
Here qₜ is the attended question vector for step t. The superscript ᵀ transposes the attention vector aₜ so that its weights can multiply the question representation Qₜ from the left. Matrix multiplication then sums the question vectors with the corresponding weights. The lower-case qₜ denotes a vector summarizing the question for this step. The unindexed q in the probability equations denotes the original question.
cₜ = [[Wₜ]ⱼ ; qₜ]
Here cₜ is the input assembled for the following decoder update. The inner brackets select row j of Wₜ, the contextual vector for the vocabulary token predicted at this step. The semicolon is the paper’s concatenation operator. It joins that selected vector to the attended question vector qₜ inside the outer brackets. Consequently the next state can use information about the choice that was just made and the question positions that were salient at the time.
There are two attention operations in this account. BERT’s self-attention operates over the question and vocabulary candidates together while building their representations. The decoder’s attention uses its own evolving state to summarize the encoded question. The first supplies contextual vectors. The second reads the question representation in light of the current generation history. A change in an earlier subprogram can affect both by altering the admissible set as well as the decoder’s history.
What training and inference require
The authors train ArcaneQA on paired questions and annotated programs. A target program supplies a sequence of correct tokens after decomposition. Cross-entropy training raises the probability of the annotated token at each step relative to the current alternatives. Because the set of alternatives depends on the program history, the training task can ask the decoder to discriminate among nearby schema possibilities instead of repeatedly comparing a gold token against the same full vocabulary. The appendix tests expanding those alternatives and reports the consequences for held-out performance.
At inference, the entity linker may return an extra entity or a mistaken link. ArcaneQA initializes separate decoding hypotheses from all subsets of the entities the linker returns. The authors consider this practical because the linker typically identifies no more than two entities per question. Varying the subset gives decoding a chance to proceed without an irrelevant candidate. All these hypotheses are still made from the linker’s output. If it omits the entity required by the annotated query, changing subsets cannot introduce that entity as a starting argument.
The setup varies with the datasets. For GrailQA the authors add predicted Freebase classes as a special kind of starting item. A BERT-based classifier supplies these classes as clues to the answer type. On WebQ, the appendix describes replacing linked mentions with their types. For instance, the mention “Barack Obama” can become “US president.” The authors keep words such as government and zip when the linker has a tendency to mark them as mentions even though replacing them could erase information needed to understand the question. They keep the original mentions for GrailQA and GraphQ because they observed no improvement from anonymization there.
The vocabulary also depends on the benchmark. GrailQA uses schema from Freebase Commons. GraphQ uses schema from all of Freebase. For the WebQ setting the authors build the vocabulary from training data, consistent with its in-distribution emphasis. On GrailQA and GraphQ, manually written patterns extract date-time and numerical literals, with the paper reporting coverage of around 98% of literals. A date or numerical restriction can only enter a query through the mechanisms the system supplies for recognizing such values.
The implementation uses PyTorch, AllenNLP, and Hugging Face’s bert-base-uncased checkpoint. The authors use Adam with an initial learning rate of 0.001 for their own parameters and use a rate of 2e-5 for BERT fine-tuning. Memory usage limits the full system to a batch size of 1, so the authors accumulate gradients over 16 steps. The version without BERT trains with batch size 32 and Adam at an initial learning rate of 0.001. Both encoder and decoder use hidden size 768 in both versions, and the dropout rate is 0.5. The authors select hyper-parameters using development performance. These settings form part of the comparison between the full system and the simpler encoding alternative.
Experiments and results
What the benchmarks measure
The three evaluation benchmarks put different demands on the parser. GrailQA includes counting, comparisons, and superlatives, and separates questions into i.i.d., compositional, and zero-shot generalization categories. The authors use it as their main test of how performance changes across these settings. Its test results come from the benchmark’s leaderboard setup, while the public validation set supports analyses by query structure and inspection of individual errors. A result on a selected type of validation question therefore describes a different population from an overall test result.
GraphQ focuses on non-i.i.d. generalization. Its original queries use Freebase version 2013-07, and the experiments use the conversion to Freebase 2015-08-09. This creates an evaluation issue because 188 GraphQ test questions could not be converted. Following the earlier protocol, the authors count those questions as 0 in test F1. They also report a variant that excludes the unconverted questions. The distinction prevents a converted-only score from being confused with the score on the benchmark’s full test set. That issue comes from the query and database versions rather than from a choice of graph traversal by the decoder.
WebQSP is the subset of WebQ with annotated logical forms used in the experiments. Its questions come from Google query logs and include information needs that require temporal restrictions. The paper describes the setting as primarily i.i.d., while also pointing to such restrictions as a sign of the variety in real questions. The collection sizes the authors give are 64,331 questions for GrailQA, 5,166 for GraphQ, and 4,737 for WebQ. The last figure describes the parent WebQ collection. WebQSP is the annotated subset named in the experiments.
GrailQA has two official measures. Exact match, or EM, is the accuracy of matching the annotated program. Answer-set F1 compares what the predicted query returns with the reference answers. Precision reflects how much of the returned set belongs in the reference, and recall reflects how much of the reference set the query recovers. These are different ways to judge a parser. EM tracks agreement with a particular program annotation. F1 captures answer agreement even when the program gets there by a different route. The paper reports F1 for GraphQ and WebQSP. For WebQSP it also distinguishes the official evaluation, which can consider several annotated parses, from a version restricted to the top-1 target parse.
What the comparisons hold constant
The authors reuse RnG-KBQA’s entity-linking results for GrailQA and QGG’s for WebQSP. For GraphQ they use the entity links from the earlier GrailQA study. This matters because the starts of the search can be as consequential as the rules for extending it. If two parsers receive different candidates for the entity in a question, differences in their scores can come from the input to decoding. Sharing entity-linking results makes the corresponding comparisons more informative about the rest of the system. The paper marks GrailQA comparisons that use the baseline links and specifies when it is comparing runs on the same links.
BERT+Transduction and BERT+Ranking are useful reference systems because they put BERT in otherwise different decoding arrangements. BERT+Transduction generates a token sequence with joint encoding. Its search and vocabulary do not adjust to earlier predictions in the way ArcaneQA’s do. BERT+Ranking scores an enumerated set of queries. This gives ArcaneQA both a generation comparison and a comparison with a ranker that begins from graph-derived candidates.
ReTraCk gives a closer comparison to constrained generation. It uses grammar-level decoding constraints. RnG-KBQA is a stronger comparison for testing the consequences of enumeration because it can edit a candidate with T5. QGG trims a search with beam search over restricted query graphs, and SPARQA uses BERT features for ranking. Together these baselines separate some common ways of controlling search, such as constraining grammatical structure, starting from complete enumerated candidates, and pursuing a narrower class of graphs. Each still has its own architecture, so a difference between full systems is evidence about the combined design instead of an isolated estimate for one mechanism.
Answer quality across the datasets
On GraphQ, the authors report an improvement over the prior result of over 10% in test F1, describing the gain in those terms. The result is of particular interest because GraphQ emphasizes distribution shifts and the full-set convention penalizes all systems for the questions missing from the conversion. ArcaneQA also improves on SPARQA. The authors interpret this comparison as evidence for using BERT to jointly represent questions and schema instead of using it only to supply features for rankers. The search procedure differs too, so the result bears on the systems as a whole.
On WebQSP, the paper reports equal answer F1 for ArcaneQA and RnG-KBQA in its overall comparison. It reports an F1 advantage of 4.3% over ReTraCk. This result places the two approaches that can construct complex programs close together on a benchmark that emphasizes the training distribution. Questions can still call for relatively specific restrictions, as the temporal examples show. The overall result tells us how frequently the systems return appropriate answers across that benchmark. It cannot tell us how much of the result comes from any particular WebQSP operation.
On GrailQA’s test set, ArcaneQA is 0.7% lower in overall F1 than RnG-KBQA according to the paper’s comparison. The authors report an overall F1 advantage of 1.9% over ReTraCk when using the same entity-linking results. They also report gains over BERT+Ranking at each generalization level. The chart uses the authors’ reported F1 gains for that named baseline and compares the generalization settings directly.
ArcaneQA’s reported F1 gain over BERT+Ranking by GrailQA test setting
The reported gain over BERT+Ranking is largest on the in-distribution questions.
The numbers
| System or setting | F1 gain % |
|---|---|
| ArcaneQA, i.i.d. (this paper) | 12.5 |
| ArcaneQA, compositional | 9.6 |
| ArcaneQA, zero-shot | 3.1 |
These quantities are gains over BERT+Ranking, so the longest bar tells the reader where ArcaneQA’s reported margin over that baseline is greatest. It is a different comparison from asking where contextual encoding matters most. That question is addressed by replacing the encoder within ArcaneQA, and the paper’s results have a different ordering in that comparison. The choice of reference system determines what the figures measure. BERT+Ranking already uses BERT, but it searches over previously enumerated complete programs.
The GrailQA comparison with RnG-KBQA also varies by metric. The authors describe ArcaneQA’s overall test EM as lower by 5%, with a gap of around 10% on zero-shot test questions. The overall answer F1 gap is smaller. They also report better compositional generalization than RnG-KBQA in their discussion of query flexibility. On the public GrailQA validation set, ArcaneQA’s answer F1 exceeds RnG-KBQA’s. The ordering on validation is useful context for the paper’s fine-grained findings, and the leaderboard test comparison remains a distinct result.
Why an answer and its query can receive different scores
To explain some of the discrepancy, the authors examine a GrailQA validation question about what the video game Supreme Commander influenced. The annotated program follows the relevant influence relation and intersects the resulting set with the video game class. ArcaneQA returns an expression that follows a series of influence relations, including inverses. Freebase returns the correct answer for the question when that alternative expression is executed.
This example gives a concrete reason for inspecting F1 and EM together. Alternative paths can converge on the same answers in a particular graph. The predicted form in this case earns credit for the answer and loses credit for the program match. It may use a more circuitous route than the annotation, and success on the evaluated graph alone does not establish that the two expressions have the same meaning in every possible database. The paper uses the example to show how flexibility can produce a mixture of genuine successes and departures from the annotated structure. It leaves the prevalence of such cases open.
The result on compositional questions is relevant to that interpretation because such questions can require the decoder to organize familiar operations in unfamiliar ways. A system that can produce new structures has room to arrive at a correct answer through another route. The exact-match gap also leaves room for other explanations, including actual mistakes. In particular, a correct answer for an individual alternative form cannot explain every instance in which the aggregate EM and F1 figures diverge.
Online inference time
The efficiency experiment runs each system on 1,000 randomly sampled questions. They all contact the same Virtuoso SPARQL endpoint, use a GTX 2080 Ti, and operate without offline caching. The reported measure is average time per question. This setup includes the online work of obtaining graph information, which is important when comparing a system that enumerates candidates with one that obtains extensions during generation.
ArcaneQA is about an order of magnitude faster than BERT+Ranking and RnG-KBQA in this experiment. The authors attribute the difference to avoiding the expensive advance queries used to enumerate two-hop candidates. ArcaneQA also sends Freebase queries during decoding, but those queries serve the partial expressions the system is pursuing. The timing result shows that repeated contextual encoding and execution checks can coexist with lower total online time under the tested arrangement. Counting only decoder computations would have missed the costs the paper sets out to compare.
QGG’s timing is comparable to ArcaneQA’s, and the authors report ArcaneQA as the fastest among the systems timed. They connect QGG’s efficiency to the way beam search reduces the active candidates and to its use of a core path with constraints. QGG and ArcaneQA therefore limit search for different reasons. For QGG, restricting the graph shape keeps the search manageable. ArcaneQA frequently has a small local choice because the function and current argument already constrain the applicable extensions. The measured advantage over the enumeration-heavy baselines is a result about their end-to-end performance with the same database endpoint and with caches disabled.
What the ablations show
Context helps most when familiar cues are scarce
The authors replace BERT’s joint encoding with GloVe vectors for question words and vocabulary tokens. These are representations whose values do not depend on which question and admissible candidates appear together at a particular decoding step. The rest of the design still uses dynamic program induction to restrict the vocabulary. The test therefore probes what happens when the system keeps access to graph-constrained options but loses the full question-and-candidate contextual encoder.
The paper reports overall F1 declines of 14.6% on GrailQA, 11.1% on GraphQ, and 6.5% on WebQSP, in that dataset order. On the GrailQA test breakdown, the reported losses are 6.8% for i.i.d. generalization, 15.9% for compositional generalization, and 17.5% for zero-shot generalization. The GrailQA breakdown makes the pattern especially clear. The input signal removed by the substitution is more consequential on the categories where the parser must use unfamiliar arrangements or schema identifiers. Graph constraints can still produce a plausible list of choices, but the replacement leaves the decoder with weaker evidence about which choice the wording calls for.
The authors freeze GloVe embeddings for GrailQA and GraphQ to reduce adaptation to the training distribution. On WebQSP they update the embeddings during training. The appendix reports 123,652,608 trainable parameters for the full system and 261,900 for the version without BERT in its accounting with frozen vectors. The latter rises to 121,205,100 parameters if the GloVe vectors are included. These counts clarify how much the stated trainable totals depend on whether the embedding table can be updated. The substitution changes pretraining, context dependence, and what can be fitted during training. The performance differences establish the importance of the full encoding arrangement, and the size of the contribution from its individual ingredients remains open.
The attention visualization gives a different kind of evidence. The paper shows attention between question words and schema candidates at different stages in the wine example. The annotated relation is wine_sub_region at an earlier choice and percentage_alcohol at a later one. This is consistent with the input design. The changing candidate list can make different parts of the question salient as the program grows. The visualization shows how the alignments look for the example. The benchmark comparisons supply the broader evidence that changing the encoder affects performance.
What execution checks prevent
The closest comparison the authors give for removing dynamic program induction is BERT+Transduction. With the same entity links, ArcaneQA’s GrailQA test F1 is reported as 30.4% higher overall. The paper describes its zero-shot F1 performance as twice as good in that comparison. The systems differ in how early decisions affect later options. In BERT+Transduction, the vocabulary available during decoding is independent of the choices that have already been made. In ArcaneQA, the parser can ask the graph which choices are available in the context of the chosen function and partial expression.
An example about a concert movie associated with Sundance Channel illustrates the effect. The baseline generates an intersection whose arguments are incompatible for the intended purpose. Its expression combines film.film.music with a traversal involving Sundance Channel and film.film.produced_by, yielding an empty result. Under ArcaneQA’s checks, the incompatible argument is excluded at the point where the intersection is built. The example identifies a specific failure that local checking can prevent. It also illustrates why checking only a completed query can be less helpful. Once a generator has used its search effort on invalid combinations, discarding those finished queries cannot supply a useful alternative on its own.
The BERT+Transduction comparison is a baseline comparison that the authors use to approximate an ArcaneQA without dynamic induction. It changes more than one aspect of how the search and encoder interact. In ArcaneQA, shrinking the vocabulary also changes the context that BERT receives. The strong gap is consistent with the benefit of deciding availability during generation, and the contrast alone cannot tell how much comes from pruning invalid tokens, from encoding a cleaner list of candidates, or from the interaction of the two.
Where complete candidate lists become restrictive
The validation breakdown on GrailQA groups queries by complexity and by the functions they use. A category labeled None contains queries using AND and JOIN without one of the other designated functions. This grouping makes it possible to ask whether an overall score hides very different behavior on cases such as superlatives. The comparisons with BERT+Ranking bear on the limits of a system that stops with an enumerated candidate set. RnG-KBQA uses the same enumeration component and adds revision, giving the authors a way to examine how far revision can compensate.
The most striking comparison in the paper concerns ARGMAX and ARGMIN. The authors describe RnG-KBQA’s F1 on the GrailQA validation superlative group as lower than ArcaneQA’s by over 50%. They point out that the enumeration used by RnG-KBQA produces no candidates with a superlative. Its revision stage can still modify what it receives, and the relatively strong results across other query types show that this strategy works well in many cases. The superlative result identifies a case where the missing operation in the starting inventory has a large association with the final score. ArcaneQA has this operation in its grammar and can construct it when the program and graph permit the relevant expansion.
A superlative also places different demands on the parser from those of a longer relational path. The decoder has to identify the set whose members are being compared and the property that orders them. Adding another JOIN to a candidate path does not by itself express that request. The analysis therefore helps explain why increasing the reach of an enumerator and increasing the variety of query operations it proposes are separate interventions. The paper’s evidence is specific to the GrailQA validation group and the enumerator used by the compared systems.
Whether training needs more negative examples
A final comparison concerns the size of the candidate set seen during training. With the standard procedure, the correct token competes with the admissible tokens for the current step. The authors ask whether a small set gives the system too few negative examples. They train a variant with additional schema items reachable within two hops of the topic entity. The added items may be graph-near in that broader sense while being irrelevant to the current subprogram.
With the expanded training vocabulary, the paper reports test EM of 55.4 and test F1 of 63.6 in its GrailQA training-scheme analysis. The authors suggest that supplying extra candidates during training could change BERT’s contextual representations in a way that ordinary inference does not reproduce. To test that explanation, they also give BERT the extra items at inference and mask those items before the final softmax. The extra items can affect the encoded vectors, while the output distribution still excludes them. This variant obtains test EM of 55.6 and test F1 of 63.7.
The authors describe the expanded schemes as falling short of their proposed training arrangement. The masking comparison is informative because it distinguishes the items used as encoder context from the items eligible for selection. Merely withholding an extra item from the final output distribution cannot undo its influence on the representations of the other items. Including the extra context at both stages yields only a small change in the reported test scores. The authors leave the best way to train a strongly supervised constrained decoder as an open question.
Limitations
Limits the authors identify
Entity linking is an early source of error. The paper examines 100 randomly sampled errors from GrailQA’s validation set and attributes about half to incorrect entity links. In one example, a question about game expansions mentions John Elliott. The linker selects the politician with that name, while the intended record is the game publisher. A decoder operating from the politician can check which paths extend that record, but doing so gives it evidence about a different person. Trying subsets can exclude an unwanted candidate and cannot recreate the absent publisher link.
The authors suggest investigating tighter integration of entity linking with program induction. In the John Elliott example, the relations available around a game publisher could help support that candidate when the question concerns game expansions. Letting the parser see both entities would make the graph context available to the decision about which person the question names. The tested pipeline makes that decision upstream. The example supports the motivation for integration, while the paper’s results concern the pipeline as implemented.
The error analysis also finds persistent schema-linking mistakes, particularly for unfamiliar schema items on zero-shot questions. Dynamic contextual encoding provides a signal about how a candidate name fits the question, and it can fail even when the correct name is available. The authors propose investigating more explicit schema linking. They also flag the higher zero-shot EM in the GrailQA validation results compared with the test results as an observation that needs further study. This split-level variation matters when validation examples are used to explain the generalization behavior of the parser.
There is a further implementation limit on how thoroughly ArcaneQA consults large intermediate denotations. The authors give a nationality traversal from USA whose result contains over 500,000 entities. They judge it impractical to query all of them through SPARQL for the admissible schema and instead query 100 sampled entities in very large cases. They suggest more efficient indexing as another way to retrieve those choices. Sampling makes the checks manageable, and it can omit a relation available only through entities outside the sample. It thus affects coverage of the graph-grounded choices that the ideal expansion rule would consider.
The authors qualify their coverage of implicit entities, too. WebQSP is the only evaluated dataset for which they identify this feature, and the implicit-entity inventory is gathered from training examples through the question-mention heuristic. CONS gives such a restriction a formal place in the query, while finding a suitable implicit entity remains a separate empirical problem. The paper’s success on WebQSP gives evidence for this implementation in that dataset setting. A general method for finding implied entities is beyond the reported experiment.
Limits of the evaluation design
Graph-based admissibility shows that an operation has support in the knowledge base under the applicable constraints. The intended query is a stronger criterion. A wrong relation can be perfectly well grounded, and a partial program can continue along graph-supported branches after taking a semantically wrong turn. This follows directly from the division of work in ArcaneQA. The graph supplies candidates that can be used, and the decoder chooses among them based on the wording and the generation history. Correctness depends on both, as well as on the underlying data the query can reach.
The benchmarks all keep the evaluation within Freebase. That gives the comparisons a common database and lets the authors test differing forms of question-level generalization. Success on GrailQA’s zero-shot split concerns relations or classes unseen in its training setting. It does not measure transfer to a knowledge base with a different schema, different names, or different patterns of missing facts. The vocabulary rules also vary across the three benchmark setups. The reported scores are results for those configurations, each combining a parser, a particular search vocabulary, and dataset-specific inputs.
The answer and program metrics leave different questions unanswered. EM can penalize a program that retrieves the correct answer by a different route. Conversely, matching the answer set in the current Freebase snapshot does not prove that a predicted query expresses the intended relationship. The Supreme Commander example demonstrates the former possibility. It gives no estimate of how many other predictions use equivalent or coincidentally successful programs. Claims about semantic equivalence would require checking more than agreement on the single answer set used by F1.
The manual error analysis starts from failed validation examples. Its estimate of the prevalence of entity-linking errors therefore describes the sampled failures, rather than the fraction of all GrailQA questions subject to such errors. Likewise the selected attention visualization shows that particular candidates receive meaningful attention in one example. It does not establish a quantitative rate of successful schema linking independently of generation. The controlled substitution motivates the encoder, while the visualization and error sample help explain particular behaviors.
Finally, the timing experiment reports averages for one online arrangement with a common endpoint and no caches. Those averages establish which systems take longer on the timed sample. They do not characterize the distribution of response times, including unusually expensive cases such as the large denotation that triggers sampling. A deployment that builds candidate caches in advance or uses different graph indexing may expose a different balance between enumeration, execution, and repeated encoding. ArcaneQA’s training memory requirement also concerns a separate resource from online latency. Faster answers in the reported test coexist with a training setup that needed gradient accumulation.
What came after
Later work citing ArcaneQA spans direct work on executable queries, other ways to reason over graphs, and broader evaluations and surveys. The closest technical links concern decisions that ArcaneQA makes in a particular way. It uses execution to select allowable query extensions, receives supervision from annotated question–program pairs, and starts from a particular knowledge base and vocabulary. The later titles identify different parts of that setup as subjects of study. A citation establishes a connection to the paper, while the titles alone establish the scope of that connection only at the level of the problem and the named methods.
Subgraph-Guided Executable Logical Form Generation (2026) returns directly to generating executable logical forms for knowledge-base question answering. Its title identifies a subgraph as the source of guidance. This gives it a clear point of contact with ArcaneQA, which consults the graph while selecting admissible extensions to partial expressions. Both address how graph information can influence what query is generated. The shared issue is the relationship between the graph evidence supplied to the generator and the logical form it can produce. The title identifies the subgraph as central, without specifying whether its generator uses ArcaneQA’s token-level rules.
Bring Your Own KG (2024) frames zero-shot graph question answering as self-supervised program synthesis. Its point of contact with ArcaneQA is the use of a program as the intermediate representation for answering a question. The difference visible in the problem statements is the source of supervision. ArcaneQA learns from annotated programs for questions in its training setting. The later title makes self-supervision central and calls attention to the supplied knowledge graph. This extends the discussion around zero-shot question answering to the conditions under which programs can be learned as well as to how a decoder handles an unfamiliar schema choice.
Which bird does not have wings (2026) focuses on negative constraints in knowledge-graph questions. Its title names schema-guided semantic matching and self-directed refinement as the approaches it examines. The connection to ArcaneQA lies in making the intended operation and the appropriate schema fit each other. ArcaneQA’s representation makes implicit entity restrictions and temporal restrictions explicit. The later work foregrounds the distinct case in which a question asks for the absence of a property. Its focus also makes clear why different constraints merit separate treatment. Establishing the presence of a recorded connection and interpreting a request involving absence are different demands on a graph-based question-answering procedure.
KG-Agent (2025) takes up efficient autonomous reasoning over knowledge graphs. ArcaneQA offers an earlier example of a question-answering procedure that repeatedly interacts with a graph as its internal state changes. KG-Agent’s title frames the broader organization around an agent and complex reasoning. The connection is the challenge of using graph access to support a sequence of decisions. ArcaneQA’s decisions have a specific destination, an executable S-expression, which helps delimit its contribution within that wider problem.
Graph Retrieval-Augmented Generation: A Survey (2024) situates the paper among work on graph-based retrieval-augmented generation. ArcaneQA provides a concrete case in which graph retrieval happens inside generation. The graph supplies admissible schema tokens for the next decision after a partial program has been executed. The survey’s scope is broader, encompassing generation informed by graphs. Its citation connects query generation under graph constraints with the broader question of how retrieved graph information enters a generative procedure.
AgentBench (2023) concerns the evaluation of agents. From the standpoint of ArcaneQA, the relevant overlap is evaluation of a procedure that must make successive decisions while interacting with structured information. ArcaneQA’s results offer examples of separate measures for the final answer, the produced program, and the time taken. AgentBench’s title places evaluation at the level of the agent. The citation connects these settings without establishing that AgentBench adopts ArcaneQA’s decoder or its exact measures.
The Survey of Inductive Reasoning (2026) places ArcaneQA in a wider discussion of induction. ArcaneQA gives that idea a concrete interpretation. The parser constructs an executable expression from the wording of a question, previous choices, and the facts it can query. The survey’s title concerns inductive reasoning more generally, so its citation chiefly shows the reach of the paper beyond direct comparisons on Freebase benchmarks. Across these citing works, the clearest technical continuities are the use of graph evidence during generation, the choice of supervision for building programs, and the need to represent particular kinds of constraints explicitly.
Cite
Cite as Yu Gu and Yu Su. 2022. ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answering. Proceedings of the 29th International Conference on Computational Linguistics.
@inproceedings{gu2022arcaneqa,
title = {{ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answering}},
author = {Yu Gu and Yu Su},
booktitle = {Proceedings of the 29th International Conference on Computational Linguistics},
year = {2022},
eprint = {2204.08109},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2204.08109}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gu-2022-arcaneqa-dynamic-program-induction-contextualized/
References
- Abdalghani Abujabal, Mohamed Yahya, Mirek Riedewald, and Gerhard Weikum. 2017. Automated template generation for question answering over knowledge graphs (https://doi.org/10.1145/3038912.3052583). In Proceedings of the 26th International Conference on World Wide Web, WWW ’17, page 1191–1200, Republic and Canton of Geneva, CHE. International World Wide Web Conferences Steering Committee. OpenAlex ↗ · Scholar ↗
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate (http://arxiv.org/abs/1409.0473). In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings. our card
- Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on Freebase from question-answer pairs (https://www.aclweb.org/anthology/D13-1160). In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1533–1544, Seattle, Washington, USA. Association for Computational Linguistics. our card
- Jonathan Berant and Percy Liang. 2014. Semantic parsing via paraphrasing. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1415–1425. our card
- Nikita Bhutani, Xinyi Zheng, and HV Jagadish. 2019. Learning to answer complex questions over knowledge bases with query composition. In Proceedings of the 28th ACM International Conference on Information and Knowledge Management, pages 739–748. OpenAlex ↗ · Scholar ↗
- Nikita Bhutani, Xinyi Zheng, Kun Qian, Yunyao Li, and H. Jagadish. 2020. Answering complex questions by combining information from curated and extracted knowledge bases (https://doi.org/10.18653/v1/2020.nli-1.1). In Proceedings of the First Workshop on Natural Language Interfaces, pages 1–10, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. 2008. Freebase: a collaboratively created graph database for structuring human knowledge. In Proceedings of the 2008 ACM SIGMOD international conference on Management of data, pages 1247–1250. OpenAlex ↗ · Scholar ↗
- Qingqing Cai and Alexander Yates. 2013. Semantic parsing Freebase: Towards open-domain semantic parsing (https://www.aclweb.org/anthology/S13-1045). In Second Joint Conference on Lexical and Computational Semantics (*SEM), Volume 1: Proceedings of the Main Conference and the Shared Task: Semantic Textual Similarity, pages 328–338, Atlanta, Georgia, USA. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Shuang Chen, Qian Liu, Zhiwei Yu, Chin-Yew Lin, Jian-Guang Lou, and Feng Jiang. 2021. Retrack: A flexible and efficient framework for knowledge base question answering. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations, pages 325–336. OpenAlex ↗ · Scholar ↗
- Zi-Yuan Chen, Chih-Hung Chang, Yi-Pei Chen, Jijnasa Nayak, and Lun-Wei Ku. 2019. Uhop: An unrestricted-hop relation extraction framework for knowledge-based question answering. arXiv preprint arXiv:1904.01246. OpenAlex ↗ · Scholar ↗
- Jianpeng Cheng, Siva Reddy, Vijay Saraswat, and Mirella Lapata. 2019. Learning an executable neural semantic parser. Computational Linguistics, 45(1):59–94. our card
- Rajarshi Das, Manzil Zaheer, Dung Thai, Ameya Godbole, Ethan Perez, Jay-Yoon Lee, Lizhen Tan, Lazaros Polymenakos, and Andrew McCallum. 2021. Case-based reasoning for natural language queries over knowledge bases. arXiv preprint arXiv:2104.08762. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding (https://doi.org/10.18653/v1/N19-1423). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. our card
- Li Dong and Mirella Lapata. 2016. Language to logical form with neural attention. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 33–43. our card
- Li Dong, Jonathan Mallinson, Siva Reddy, and Mirella Lapata. 2017. Learning to paraphrase for question answering (https://doi.org/10.18653/v1/D17-1091). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 875–886, Copenhagen, Denmark. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson F. Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. 2018. AllenNLP: A deep semantic natural language processing platform (https://doi.org/10.18653/v1/W18-2501). In Proceedings of Workshop for NLP Open Source Software (NLP-OSS), pages 1–6, Melbourne, Australia. Association for Computational Linguistics. our card
- Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang, Xifeng Yan, and Yu Su. 2021. Beyond iid: three levels of generalization for question answering on knowledge bases. In Proceedings of the Web Conference 2021, pages 3477–3488. OpenAlex ↗ · Scholar ↗
- Wonseok Hwang, Jinyeung Yim, Seunghyun Park, and Minjoon Seo. 2019. A comprehensive exploration on WikiSQL with table-aware word contextualization. arXiv preprint arXiv:1902.01069. our card
- Yunshi Lan and Jing Jiang. 2020. Query graph generation for answering multi-hop complex questions from knowledge bases (https://doi.org/10.18653/v1/2020.acl-main.91). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 969–974, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Yunshi Lan, Shuohang Wang, and Jing Jiang. 2019a. Knowledge base question answering with topic units.(2019). In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, pages 5046–5052. OpenAlex ↗ · Scholar ↗
- Yunshi Lan, Shuohang Wang, and Jing Jiang. 2019b. Multi-hop knowledge base question answering with an iterative sequence matching model. In 2019 IEEE International Conference on Data Mining (ICDM), pages 359–368. IEEE. OpenAlex ↗ · Scholar ↗
- Chen Liang, Jonathan Berant, Quoc Le, Kenneth D. Forbus, and Ni Lao. 2017. Neural symbolic machines: Learning semantic parsers on Freebase with weak supervision (https://doi.org/10.18653/v1/P17-1003). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 23–33, Vancouver, Canada. Association for Computational Linguistics. our card
- Jeffrey Pennington, Richard Socher, and Christopher Manning. 2014. GloVe: Global vectors for word representation (https://doi.org/10.3115/v1/D14-1162). In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1532–1543, Doha, Qatar. Association for Computational Linguistics. our card
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683. our card
- Siva Reddy, Oscar Täckström, Slav Petrov, Mark Steedman, and Mirella Lapata. 2017. Universal semantic parsing (https://doi.org/10.18653/v1/D17-1009). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 89–101, Copenhagen, Denmark. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Ohad Rubin and Jonathan Berant. 2021. SmBoP: Semi-autoregressive bottom-up semantic parsing (https://doi.org/10.18653/v1/2021.naacl-main.29). In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 311–324, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Torsten Scholak, Nathan Schucher, and Dzmitry Bahdanau. 2021. Picard: Parsing incrementally for constrained auto-regressive decoding from language models. arXiv preprint arXiv:2109.05093. OpenAlex ↗ · Scholar ↗
- Semantic Machines, Jacob Andreas, John Bufe, David Burkett, Charles Chen, Josh Clausman, Jean Crawford, Kate Crim, Jordan DeLoach, Leah Dorner, Jason Eisner, Hao Fang, Alan Guo, David Hall, Kristin Hayes, Kellie Hill, Diana Ho, Wendy Iwaszuk, Smriti Jha, Dan Klein, Jayant Krishnamurthy, Theo Lanman, Percy Liang, Christopher H. Lin, Ilya Lintsbakh, Andy McGovern, Aleksandr Nisnevich, Adam Pauls, Dmitrij Petters, Brent Read, Dan Roth, Subhro Roy, Jesse Rusak, Beth Short, Div Slomin, Ben Snyder, Stephon Striplin, Yu Su, Zachary Tellman, Sam Thomson, Andrei Vorobev, Izabela Witoszko, Jason Wolfe, Abby Wray, Yuchen Zhang, and Alexander Zotov. 2020. Task-oriented dialogue as dataflow synthesis (https://doi.org/10.1162/tacl_a_00333). Transactions of the Association for Computational Linguistics, 8:556–571. our card
- Yu Su, Huan Sun, Brian Sadler, Mudhakar Srivatsa, Izzeddin Gür, Zenghui Yan, and Xifeng Yan. 2016. On generating characteristic-rich question sets for QA evaluation (https://doi.org/10.18653/v1/D16-1054). In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 562–572, Austin, Texas. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Danny Sullivan. 2020. A reintroduction to our Knowledge Graph and knowledge panels. blog.google (https://blog.google/products/search/about-knowledge-graph-and-knowledge-panels/). OpenAlex ↗ · Scholar ↗
- Yawei Sun, Lingling Zhang, Gong Cheng, and Yuzhong Qu. 2020. Sparqa: Skeleton-based semantic parsing for complex questions over knowledge bases (https://arxiv.org/pdf/2003.13956.pdf). In Proceedings of the Thirty-Fourth National Conference on Artificial Intelligence, AAAI'20. AAAI Press. OpenAlex ↗ · Scholar ↗
- Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks (http://papers.nips.cc/paper/5346-sequence-to-sequence-learning-with-neural-networks.pdf). In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27, pages 3104–3112. Curran Associates, Inc. our card
- Bailin Wang, Richard Shin, Xiaodong Liu, Oleksandr Polozov, and Matthew Richardson. 2020. RAT-SQL: Relation-aware schema encoding and linking for text-to-SQL parsers (https://doi.org/10.18653/v1/2020.acl-main.677). In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7567–7578, Online. Association for Computational Linguistics. our card
- Chenglong Wang, Kedar Tatwawadi, Marc Brockschmidt, Po-Sen Huang, Yi Mao, Oleksandr Polozov, and Rishabh Singh. 2018. Robust text-to-sql generation with execution-guided decoding. arXiv preprint arXiv:1807.03100. OpenAlex ↗ · Scholar ↗
- Tianbao Xie, Chen Henry Wu, Peng Shi, Ruiqi Zhong, Torsten Scholak, Michihiro Yasunaga, Chien-Sheng Wu, Ming Zhong, Pengcheng Yin, Sida I Wang, et al. 2022. Unifiedskg: Unifying and multi-tasking structured knowledge grounding with text-to-text language models. arXiv preprint arXiv:2201.05966. our card
- Xi Ye, Semih Yavuz, Kazuma Hashimoto, Yingbo Zhou, and Caiming Xiong. 2021. Rng-kbqa: Generation augmented iterative ranking for knowledge base question answering. arXiv preprint arXiv:2109.08678. OpenAlex ↗ · Scholar ↗
- Wen-tau Yih, Ming-Wei Chang, Xiaodong He, and Jianfeng Gao. 2015. Semantic parsing via staged query graph generation: Question answering with knowledge base (https://doi.org/10.3115/v1/P15-1128). In Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 1321–1331, Beijing, China. Association for Computational Linguistics. our card
- 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 (https://doi.org/10.18653/v1/P16-2033). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 201–206, Berlin, Germany. Association for Computational Linguistics. our card
- Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, Zilin Zhang, and Dragomir Radev. 2018. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-SQL task (https://doi.org/10.18653/v1/D18-1425). In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 3911–3921, Brussels, Belgium. Association for Computational Linguistics. our card
- John M Zelle and Raymond J Mooney. 1996. Learning to parse database queries using inductive logic programming. In Proceedings of the thirteenth national conference on Artificial intelligence, pages 1050–1055. our card
- Luke S Zettlemoyer and Michael Collins. 2005. Learning to map sentences to logical form: structured classification with probabilistic categorial grammars. In Proceedings of the Twenty-First Conference on Uncertainty in Artificial Intelligence, pages 658–666. our card
- Rui Zhang, Tao Yu, He Yang Er, Sungrok Shim, Eric Xue, Xi Victoria Lin, Tianze Shi, Caiming Xiong, Richard Socher, and Dragomir Radev. 2019. Editing-based sql query generation for cross-domain context-dependent questions. arXiv preprint arXiv:1909.00786. our card
- Victor Zhong, Caiming Xiong, and Richard Socher. 2017. Seq2sql: Generating structured queries from natural language using reinforcement learning. arXiv preprint arXiv:1709.00103. our card