Elamur Research

Case-based Reasoning for Natural Language Queries over Knowledge Bases

Paper · 2021 · Rajarshi Das, Manzil Zaheer, Dung Thai et al.

Summary

A question can be easy to understand and still difficult to translate into a database query. The difficulty grows when the answer requires several relationships, when the database uses unfamiliar relation names, or when a useful example covers only part of the question. This paper studies that translation problem for question answering over large knowledge bases. Its system, CBR-KBQA, builds executable queries by drawing on previously solved questions. The central proposal is that examples should remain available during answering, so a new question can benefit directly from the programs associated with related questions.

CBR-KBQA follows the case-based reasoning pattern: retrieve useful precedents, reuse their solutions, and revise the result. A stored case contains a question and its logical form, meaning an executable representation of what the question asks. The experiments use SPARQL queries over Freebase. A neural retriever finds cases with relevant relationships; a sequence generator combines their question–program pairs into a new program; a final repair stage adjusts generated relations to edges available around the entities being queried. The system therefore combines learned representations with explicit programs and access to a symbolic database.

The experiments cover WebQuestionsSP, ComplexWebQuestions, and Compositional Freebase Questions. The authors report stronger results than their main T5-11B comparison across these benchmarks. On the hidden ComplexWebQuestions test set, CBR-KBQA obtains strict answer accuracy of 67.1, and the paper describes its advantage over the strongest earlier system as more than 11 percentage points. That strict measure requires the returned answer list to match the reference answer list completely. The separate leaderboard score is 70.4 under an evaluation procedure that can award full credit when a returned entity is among the correct answers. Keeping those measures separate matters for questions whose answers contain several entities.

The most distinctive result concerns updating the system. Its case memory can receive additional examples without changing the learned parameters. In a controlled WebQSP experiment, the authors remove training questions involving an education relation, train without them, and subsequently restore those questions to the retrieval index. With no further training, CBR-KBQA reaches 70.6% accuracy on the 86 test questions requiring that relation. A separate experiment addresses relations naturally absent from the training data: adding simple cases raises F1 from 0 to 36 on the affected questions. These findings support a practical form of controllability, in which an expert can supply a missing example and let the system reuse it. They do not establish universal generalization to arbitrary new schemas or guarantee that every added case will repair a prediction. The approach still needs annotated programs for training, reliable entity linking, useful retrieval, and a repair procedure whose scope is deliberately limited.

Interesting ideas

Retrieve by solution structure. Similar wording can conceal different computational requirements, while different names can occur in questions requiring the same relationship. CBR-KBQA trains retrieval using relation overlap between the associated programs. This gives the retrieval component a signal tied to the work the next component must perform. The broader lesson is useful wherever examples carry structured solutions: search for precedents that expose the right operations, constraints, or dependencies, rather than relying entirely on surface resemblance. A program generator, database interface, or structured prediction system can benefit from examples whose solutions contain reusable parts even when their input wording is only loosely related.

Suppress distracting identities. The retriever sometimes replaces entity mentions with a blank marker during training. This encourages attention to the requested relationship rather than to a familiar person or place. The idea applies when a prominent feature is predictive of topical similarity but unreliable as a guide to the task itself. Randomly hiding that feature can make the remaining structure more useful. The paper also shows why this should be adjustable: the best masking probability differs across its datasets. An engineer borrowing the technique should treat the amount of masking as a validation choice, since entity information can sometimes help identify the intended domain.

Compose from several precedents. A useful memory need not contain a complete solution to the new problem. CBR-KBQA presents several question–program pairs together, allowing the generator to obtain different relations from different cases. This is relevant to tasks where combinations grow faster than the inventory of basic operations. Storing every complete combination would be impractical, but maintaining examples that collectively cover the components may be enough. The design asks more of the composition mechanism than simple answer lookup does: it must preserve how the parts interact, introduce the right variables, and produce a coherent executable result.

Separate generation from environment-aware repair. A program can express a plausible interpretation while using a relation unavailable at the relevant entity. CBR-KBQA checks generated relations against the local graph and uses similarity to choose available alternatives. This separation is useful when the environment contains constraints that would be expensive or awkward to encode entirely inside the generator. The repair component can use those constraints directly. Its boundaries should remain explicit, however. Here it changes individual relations while retaining the generated program’s structure, so it addresses a particular class of grounding errors rather than serving as a general program debugger.

Keep some updates outside the parameters. New examples enter an external case index, where they can influence subsequent answers without another training run. This offers a way to distinguish learning a reusable procedure from supplying newly relevant task knowledge. The experiment with a withheld relation makes that distinction concrete: the trained system already has the ability to consult and combine cases, and the added cases provide the missing relation. Similar designs could help systems whose schemas or operational requirements change. The useful property is the presence of an explicit update mechanism that can be inspected and tested.

Evaluate the complete answer obligation. Returning a correct entity is insufficient when a question asks for a set of entities. The paper therefore emphasizes strict matching of the executed query’s answer list while also reporting other metrics for comparison. This is a reusable evaluation principle: define success around what the user requested, including completeness. Component measurements remain valuable, but retrieval coverage, correct copying, and executable output each answer different questions. Reporting them separately helps explain progress without presenting an intermediate success as a complete solution.

Deep dive: Case-based Reasoning for Natural Language Queries over Knowledge Bases

How CBR-KBQA answers knowledge-base questions by retrieving solved examples, composing queries, and repairing relations without retraining. · about 35 minutes to read

How Mova uses it

For Mova, the small transparent language system written in Rust, the paper offers a concrete architecture to consider: make solved examples explicit, retrieve them for a new request, and expose how their solutions contribute to the result. The connection is prospective. CBR-KBQA’s experiments establish properties of the authors’ system; they do not establish that Mova already has its retriever, SPARQL generator, relation embeddings, or repair procedure.

The most direct application would be an inspectable case memory. Each entry could preserve a question together with a structured interpretation and the conditions under which that interpretation applies. When answering a related question, Mova could show which cases were selected and which parts of their solutions were reused. That would make the memory operationally meaningful: a reader could examine the evidence available to the system at the moment of interpretation. Such a trace could also distinguish a missing precedent from a failure to combine precedents that were already present.

The paper suggests a particularly useful distinction for a transparent system: retrieving an example is different from adopting its whole answer. A new question may share a relationship with a stored case while referring to another entity, or may require a combination absent from any individual case. Mova could use retrieved cases as candidate pieces of an interpretation, retaining explicit links between each proposed operation and its source. This would be an adaptation of the paper’s central idea, rather than evidence that its learned composition method can be transferred unchanged into a smaller implementation.

A further possibility is to keep structural interpretation separate from database grounding. Mova could first construct a query representation and then check its relations against the available schema or graph neighborhood. The paper makes this separation precise by preserving the generated structure during repair. For a transparent implementation, that restriction has an additional attraction: the system could record that a relation changed, name the alternatives considered, and retain the original proposal for inspection. Whether such repair improves Mova would still require direct evaluation. A relation that looks similar can change the meaning of a question, so availability alone would be inadequate evidence.

The update experiment also suggests a manageable engineering objective. An expert should be able to add a small, understandable case and then test the questions it is meant to help. That objective fits a system whose behavior should be open to inspection. Yet adding an entry should not be treated as a guaranteed correction. Retrieval must find it, composition must use it appropriately, and existing questions should be checked for unintended changes. The paper demonstrates that external cases can support useful updates without retraining; for Mova, the honest next step would be to implement and measure that mechanism within its own representation and execution system.

The problem and its context

From a question to a program

The paper addresses knowledge-base question answering, often shortened to KBQA. A user asks a question in ordinary language, but the answer resides in a structured collection of entities and relationships. A knowledge graph represents an entity as a node and a relationship as an edge. Answering a question may require following an edge, combining several conditions, or traversing relationships through intermediate entities.

The system must therefore solve a problem of semantic parsing: turn the question into a formal representation that a database can execute. In this paper, that representation is a SPARQL program. Its entity identifiers specify which database objects the question mentions. Its relation names identify the connections to inspect. Variables stand for entities that execution must discover.

A short question can require substantial formal structure. The wording may name only the starting entity and the requested property, leaving the system to select the correct database relation. A more complex question may combine conditions whose individual meanings are straightforward but whose joint program is unfamiliar. The authors focus on this gap between understanding familiar components and reliably assembling them into a new query.

They also distinguish a relation’s intended meaning from its availability at a particular location in the database. A generated program may contain a semantically plausible relation that belongs to another domain. Their example contrasts relations associated with people and with fictional characters. The questions can ask about similar relationships even though the graph encodes them under different relation names.

Database incompleteness creates a related difficulty. A relation can be meaningful and still fail to provide the edge a program needs. The authors do not propose completing the whole knowledge base before answering. They instead look for semantically nearby relations that are actually available around the query entity. That choice makes local graph structure part of the answering process.

Why examples belong in the answering process

The paper’s starting point is case-based reasoning. In this tradition, a system approaches a new problem by finding earlier problems with useful solutions and adapting those solutions. The authors describe classical implementations as mostly symbolic and identify retrieval and solution adaptation as difficult components. Their proposal retains the overall organization while using learned representations and generation for those components.

A case must include enough information to be reusable. For KBQA, the authors choose a natural-language question paired with an executable logical form. A question alone says what someone wanted to know; its program shows how the database can be queried to obtain the answer. The latter is the transferable object. It exposes relation names and query structure that may help answer another question.

This differs from remembering a question and returning its stored answer. A previously answered question about one person does not supply the answer to a similar question about another person. It may, however, supply a program pattern containing the right relationship. The new query must substitute the appropriate entity and may also need additional conditions.

The paper’s compositional argument extends this further. A question can require several relations even when no retrieved example contains their complete combination. If the system can use partial logic from multiple cases, a memory of simpler solutions can support a more complicated program. Retrieval then provides ingredients for generation rather than a menu of complete answers.

The neighboring approaches

The authors situate their work beside REALM and Retrieval-Augmented Generation. Those systems retrieve textual passages that can support answering. CBR-KBQA retrieves solved questions and uses their programs. This is a form of retrieval-augmented generation in which the retrieved material supplies procedural structure rather than only factual evidence.

They also compare their approach with retrieve-and-edit methods for structured output. The important distinction in their account is how many precedents are available to the generator. Editing a single retrieved solution can work when that solution already resembles the desired output closely. It is less directly suited to questions needing components distributed across several examples. CBR-KBQA conditions generation jointly on the retrieved cases and then provides an explicit revision stage.

Another neighboring line of work generates queries for unfamiliar database schemas. The paper discusses RAT-SQL and related approaches that encode schema information alongside the question. The authors argue that the scale differs substantially. They cite an average of 5.8 columns for WikiTableQuestions and 28.1 columns for Spider, whereas Freebase offers relations numbering in the thousands. Their retriever serves partly as a way to narrow that large relation space.

The paper also distinguishes its task from earlier case-based knowledge-base reasoning. Those approaches retrieve related entities and obtain paths useful for completing structured triple queries. CBR-KBQA starts with natural language and produces programs that can express more than a path. The input interpretation and output expressiveness are therefore central differences in the authors’ comparison.

Program repair provides another connection. Earlier work described in the paper repairs programs through syntax, program sketches, or debugging procedures. CBR-KBQA’s repair signal comes from similarity between relations and their availability in the graph. Its contribution lies in bringing that signal into the query-generation pipeline, instead of claiming to solve every kind of generated-program failure.

Why updates matter

The authors connect this architecture to changing databases. A deployed question-answering system may encounter a relation that never appeared in its annotated training questions. A conventional response is to collect examples and fine-tune the system. The paper identifies the cost of that process and the possibility that learning the new examples damages performance on previously handled questions.

That concern connects to Overcoming catastrophic forgetting, which the authors cite when discussing interference during further training. Their alternative is to place new examples in a memory that the already trained system knows how to consult. The experiments ask whether this is a functioning update mechanism, not merely an attractive architectural description.

The resulting research question has several parts. Can the retriever find examples containing useful relations? Can generation combine those relations into a correct program? Can local alignment repair some grounding mistakes? And can an added case supply a previously unseen relation without changing the parameters? The paper’s evaluations address these questions at different levels, so their results need to be read together.

The method, step by step

The complete pipeline starts with a question, identifies its entities, retrieves relevant solved questions, generates an intermediate program, revises relations when necessary, and executes the final query. The modules have distinct responsibilities. Retrieval selects potentially useful experience; reuse constructs the proposed solution; revision grounds parts of that solution in the graph.

From a question to an executable answer

The steps in order.

From a question to an executable answerStep 1: Identify and link question entities1. Identify and link question entitiesStep 2: Encode the question for retrieval2. Encode the question for retrievalStep 3: Retrieve related questions and programs3. Retrieve related questions and programsStep 4: Combine cases into an intermediate program4. Combine cases into an intermediate programStep 5: Align relations with available graph edges5. Align relations with available graph edgesStep 6: Execute the revised query6. Execute the revised query

Define the task and its memory

The formal setup assumes access to a symbolic knowledge base and annotated question–program pairs.

D = {(q₁, ℓ₁), (q₂, ℓ₂), …, (q_N, ℓ_N)}

D is the training collection. N is its number of cases. Each qᵢ is a natural-language question, and ℓᵢ is the corresponding executable logical form. The subscript i identifies a case. In the experiments, the logical forms are SPARQL programs.

For a new question q, the system retrieves a subset D_q containing relevant cases. It first generates an intermediate logical form, called ℓ_inter in the paper. Revision produces the final logical form ℓ. That program is executed against the knowledge base K to obtain the answer list A.

These objects have different roles. The case collection contains examples of how to ask the database. The database contains the facts being queried. The generator contains learned machinery for transforming a question and its retrieved cases into a program. Maintaining these distinctions explains why adding a case can change behavior without adding facts to Freebase or retraining generation.

A logical form contains entities, relations, and variables. Entity identifiers anchor the program to known database objects. Relations describe which connections the program should inspect. Variables allow the query to refer to intermediate or answer entities without knowing their identities in advance. Reusing a program therefore requires more than copying a sequence of relation names: those names must appear in a structure that correctly connects the entities and variables.

Before generating an executable query, CBR-KBQA must connect entity mentions in the question to Freebase identifiers. A natural-language name is not necessarily a unique database reference. The authors combine the ELQ entity linker with a supplementary matching process intended to improve coverage.

The supplementary process first identifies entity spans with a named-entity tagging service. It then attempts exact matching for mentions that ELQ did not link, using surface forms associated with the FACC1 project. This supplies another route from written names to database entities.

The linked identifiers are made available to generation directly in the question string. The paper illustrates this with Jamaica, whose identifier is m.03_r3. The identifier follows the mention in the input. This reduces the need for the generator to invent or memorize an identifier from the name alone.

Entity linking should be distinguished from the retriever’s masking operation. Linking provides precise database references for query construction. Masking, used during retrieval training, discourages the retriever from treating shared names as the main reason to select a case. The same entity mention can therefore be essential to execution while being a distraction for finding reusable relational structure.

Represent questions for retrieval

The retrieval component independently encodes questions with RoBERTa-base. Each question receives a dense vector derived from the initial classification token. The vectors are normalized, and similarity is calculated with their inner product.

sim(q⃗ᵢ, q⃗ⱼ) = q⃗ᵢᵀq⃗ⱼ

The vectors q⃗ᵢ and q⃗ⱼ represent questions qᵢ and qⱼ. The superscript T denotes transposition, allowing their inner product to be written compactly. The function sim returns the similarity score. Because the representations are normalized, the score corresponds to cosine similarity.

The retriever should prefer cases sharing the relevant relationship. The paper’s illustration compares questions about a musician’s brother with questions about another musician’s brother or the original musician’s father. Sharing a person’s name is weaker evidence of reusable logic than asking for the same kind of family relationship.

To encourage this behavior, detected entity spans are replaced with a blank marker at random during training. The probability is p_mask. It is set to 0.2 for ComplexWebQuestions and 0.5 for the other datasets. Random masking leaves some identity information available while repeatedly forcing the encoder to rely on the surrounding relational wording.

The authors connect this strategy to Matching the Blanks, which they cite as earlier evidence for learning relational representations that depend less on entity identity. In CBR-KBQA, the objective is specifically to improve the selection of question–program cases.

Train retrieval with the programs

The logical forms supply supervision for deciding which questions should be close in the retrieval space. For each pair, the authors compare the sets of relations used by their programs. The weight assigned to that pair is the F1 overlap of those sets.

This is a deliberately partial notion of usefulness. Two programs need not be identical for one to contribute useful relations to the other. A case containing some required relations can receive a meaningful weight, which suits a generator expected to combine material from several sources.

The retrieval loss is:

L = −Σᵢ,ⱼ wᵢ,ⱼ log[exp(sim(q⃗ᵢ, q⃗ⱼ)) / Σⱼ exp(sim(q⃗ᵢ, q⃗ⱼ))]

L is the training loss. The indices i and j range over questions in the mini-batch. The weight wᵢ,ⱼ is the F1 overlap between the relation sets in their logical forms. The function exp exponentiates a similarity score, and log is the logarithm. The denominator normalizes the score for a candidate question against the other candidates in the batch.

The loss encourages the encoder to allocate more retrieval probability to questions with greater relational overlap. The authors ensure that a query has a positive example during training. This matters because the objective needs some useful relationship between the current question and the available candidates, instead of a batch consisting entirely of irrelevant comparisons.

After training, the system precomputes and stores representations for questions in the case memory. At inference, it encodes the new question and selects the highest-scoring cases. The generator therefore receives both the selected questions and their programs. The experiments use 20 cases.

The supervision remains coarser than full program equivalence. Relation sets do not describe every detail of variable binding, condition scope, or relation order. Retrieval is consequently a filtering stage rather than a complete semantic parser. It aims to make useful ingredients available; generation must determine how those ingredients fit together.

Give generation enough context

The reuse module is an encoder–decoder Transformer. It receives the current question and the retrieved cases together, then generates an intermediate logical form. Its input can be long because each case contains a question and an executable program.

The authors explain their architectural choice through this length requirement. They describe the BART and T5 configurations under discussion as supporting encoder sequences of 512 tokens, which restricts how many complete cases can fit. The relevant issue is not simply the length of the new question. Most of the context can come from the precedents.

CBR-KBQA uses Big Bird to support longer inputs through sparse attention. The paper describes local attention between nearby tokens together with global tokens that can access the entire input. It presents this as reducing attention memory requirements from quadratic to linear and allowing more cases to be included.

The generator has 6 encoding layers and 6 decoding layers. Its parameters are initialized from BART-base. The connection to BART is therefore an initialization choice within the larger case-conditioned generation architecture.

The input arrangement is:

Input_ENC(q, D_q) = q [SEP] q′₁ [SEP] ℓ′₁ … q′ₖ [SEP] ℓ′ₖ

Input_ENC is the sequence presented to the encoder. The symbol q denotes the current question. D_q is the retrieved case collection, containing k cases. Each q′ᵢ is a retrieved question and ℓ′ᵢ is its program. The marker [SEP] separates parts of the input, and the ellipsis indicates the remaining retrieved pairs.

This arrangement makes several potential sources available simultaneously. The generator does not independently edit each case and then select among the edits. It constructs a single program while conditioning on the combined context. That is the mechanism intended to support questions whose required relations are distributed across different precedents.

Train reuse with a stabilizing term

The main training signal for generation is cross-entropy against the reference logical form. At each output position, this encourages the decoder to predict the appropriate program token. The authors add a regularization term comparing predictions made with retrieved cases to predictions made from the question alone.

The distribution with cases is:

σ = softmax(f(q, D_q))

Here, f is the sequence generator, q is the current question, and D_q is its retrieved case set. The softmax function converts decoder scores into a prediction distribution. The symbol σ denotes that distribution when the cases are included.

The question-only distribution is:

σ′ = softmax(f(q))

The same generator f now receives q without the retrieved cases. The symbol σ′ denotes its prediction distribution under that input condition. Comparing these distributions provides a constraint on how far the case-conditioned predictions move from the question-only predictions.

The combined training objective is:

L = L_CE(f(q, D_q), ℓ_q) + λ_T KLD(σ, σ′)

L is the total generation loss. L_CE is cross-entropy against the reference program ℓ_q. The function KLD measures Kullback–Leibler divergence between the prediction distributions. The coefficient λ_T controls the regularizer’s contribution.

The paper allows λ_T in the interval [0, 1] and ultimately uses 1.0 for every dataset. The authors report that this approach works better than initializing from a system trained without cases. The term should be understood as part of their empirical training recipe: it constrains the use of cases while the main objective still requires the correct case-conditioned program.

The retriever and generator are trained separately. This makes the architecture modular, but it also means the retrieval objective does not directly learn from the eventual success or failure of generated programs. The authors identify joint training as a future direction.

Revise relations using the graph

The intermediate program can contain a relation that is inappropriate for the current entity’s domain or unavailable in its local graph neighborhood. Revision attempts to replace such relations with available alternatives while retaining the program’s structure.

The preferred alignment method uses relation representations from TransE. These representations come from knowledge-base completion, where graph structure provides a learning signal. For a generated relation, the revision module compares its embedding with embeddings of incoming or outgoing relations available at the relevant entity.

Cosine similarity supplies the alignment score. If the generated relation is already present where needed, it aligns with itself. Otherwise, a similar available relation can replace it. The replacement is constrained by the graph neighborhood, so the system is not merely selecting a semantically related name from the entire relation vocabulary.

Several missing relations can require repair in the same program. The authors find beam search more effective than committing greedily to the best local match at each step. Retaining several alternatives allows the procedure to consider combinations of alignment choices instead of treating each replacement as independent.

The alternative alignment method represents relation names with RoBERTa-base. It places the classification token before the relation string and uses that token’s output representation. Similarity is again measured with cosine similarity. This approach exploits shared wording, such as the appearance of a sibling term in relations from different domains.

Neither alignment method requires additional training for the revision stage. The comparison is between existing representations applied to the repair task. The authors find the graph-derived representations more effective, suggesting that the graph supplies useful information beyond what short relation names reveal.

The repair scope is intentionally narrow. Each relation remains an individual edge in the program. Revision does not replace an edge with a multi-edge path or redesign the query’s overall structure. The final program is then executed against Freebase, and the returned entities form the predicted answer list.

Select settings with validation data

The retriever is trained for 10 epochs, using batch sizes of 32 for training and validation. Checkpoint selection uses recall@20: the proportion of reference-program relations covered by the retrieved programs. This evaluates whether retrieval supplies the generator with the relations it is likely to need.

Generator selection instead uses accuracy after executing generated programs. That choice aligns selection more closely with the end task. A syntactically plausible program or a useful set of retrieved relations is insufficient if execution returns the wrong answer list.

For WebQSP, which has no validation split in the authors’ setup, 300 training instances are reserved for validation. The generator is trained for 15K gradient steps on WebQSP and 40K on the other datasets. The chosen decoding beam size is 5. These settings describe the tested system; they are not evidence that every component is insensitive to training or search choices.

Experiments and results

Data and evaluation

All experiments query full Freebase, described as containing over 45 million entities and 3 billion facts. This matters because relation selection and entity grounding occur in a large graph, rather than in a small database constructed for an individual question.

WebQSP contains 4737 natural-language questions, spans 56 domains, and covers 661 distinct relations. Most questions require up to 2 graph hops. A hop corresponds to following a knowledge-base edge, so even relatively short questions can involve an intermediate entity instead of a direct lookup.

ComplexWebQuestions, or CWQ, extends WebQSP to require more complex reasoning. Its question types include composition at 45%, conjunction at 45%, comparative questions at 5%, and superlatives at 5%. Answering can require up to 4 hops. The benchmark therefore tests whether a system can assemble larger query structures from familiar kinds of relationships.

Compositional Freebase Questions, or CFQ, is designed to assess compositional generalization. The authors evaluate its MCD splits, where the important challenge is producing unfamiliar combinations of components. In all these datasets, the annotated logical form is an executable SPARQL query.

The primary measure is strict exact-match accuracy over answers obtained by execution. The authors execute both the predicted program and the reference program against their Freebase installation. A prediction counts as correct only when the resulting answer lists match fully.

They also report precision, recall, and F1 for comparison with earlier systems. These measures allow partial credit when only part of the correct answer set is recovered. Hits@1, used by systems that rank answer entities, measures something different again: whether the highest-ranked entity is correct. It does not establish that all required entities were returned.

The distinction is especially important for a question asking for several countries or people. A ranking system can place a correct entity first while omitting other correct entities. Strict answer matching makes completeness part of success, which better reflects the behavior of an executable query intended to retrieve the whole answer.

Comparisons and main benchmark findings

The main neural comparison is T5-11B, fine-tuned on question–logical-form pairs for each dataset. The paper connects this baseline to the unified text-to-text approach and to earlier findings about compositional KBQA. Its purpose is to test whether the case-based architecture can outperform a substantially larger sequence generator.

The authors also compare against systems that operate more directly on the knowledge base. Their discussion names STAGG as a system benefiting from high recall through such access. CBR-KBQA instead obtains much of its program content from the retrieved examples, with the graph used explicitly during revision and execution.

On WebQSP, the paper reports a strict exact-match advantage of more than 6 points over the strongest comparison. It also states that the revise procedure improves the T5 baseline. This latter comparison is important because it separates the repair idea from the full case-based architecture: local relation alignment can help programs produced by another generator.

On the hidden CWQ test set, the paper’s strict answer accuracy is 67.1. The authors describe the improvement over the best earlier system as more than 11 percentage points. Their official leaderboard result is 70.4, but that score uses a more permissive rule for questions with multiple correct answers. The strict result is the appropriate figure when discussing complete answer-list recovery.

For CFQ, the authors report that CBR-KBQA outperforms the T5-11B comparison across the MCD evaluations. Their error analysis also reveals an output-type issue: for some yes/no questions, generation produced a list of relevant entities instead of a Boolean response.

They address this with a rule-based question-type classifier. When a question is classified as requiring yes/no output, a nonempty predicted entity list becomes yes and an empty list becomes no. If the system already produced a Boolean response, it is retained. This postprocessing belongs to the reported CFQ setup and should be included when interpreting its performance.

The benchmark evidence supports the combined system, including its linked entity identifiers, retrieved cases, generation architecture, revision, and task-specific output handling. The paper’s stronger conclusions about particular components come from the controlled comparisons discussed separately, rather than from overall scores alone.

Restoring a relation excluded from training

The controlled update experiment removes every WebQSP training question whose program uses people.person.education. This excludes 136 questions from training. The corresponding test subset contains 86 questions requiring the removed relation.

Before those cases are restored, both the case-based system and a transformer baseline struggle with the subset. The experiment then adds the excluded cases to the retrieval memory and rebuilds the index. CBR-KBQA’s learned parameters remain fixed.

After this update, CBR-KBQA reaches 70.6% accuracy on the 86 affected test questions. The important condition is that the relation becomes available through retrieved examples after training. The result shows that the trained reuse mechanism can incorporate a relation newly introduced through the case memory.

The transformer baseline requires further training to use the new examples. Training only on the restored instances damages its performance on the original questions. The authors also try mixing new and original examples in a 1:2 proportion, but report that the resulting performance remains below both the baseline’s original level and the case-based system’s performance.

This is a controlled demonstration of an update mechanism, not a test of arbitrary database expansion. The new cases are known to contain the missing relation, and the evaluation targets questions whose programs require it. Within those conditions, the result gives direct evidence that useful task information can enter through memory rather than parameter updates.

Adding simple cases for naturally unseen relations

The human-in-the-loop experiment starts from a naturally occurring coverage gap. WebQSP’s test questions contain 94 relations absent from the training questions’ programs. The authors construct simple cases to make these relations available to retrieval.

They first search SimpleQuestions, a collection described as containing more than 100K questions associated with individual Freebase facts. Where that collection lacks a suitable example, they manually write a question and its corresponding SPARQL query from the relation description.

For WebQSP, the process obtains 292 questions from SimpleQuestions and adds 72 manually written questions. The manual work is performed by 2 graduate students. The average addition is 3.87 cases for each missing relation.

Added cases for unseen WebQSP relations, answer F1

Supplying simple cases enables useful answers without another training run.

Added cases for unseen WebQSP relations, answer F1Before adding cases: 0Before adding cases0CBR-KBQA with added cases (this paper): 36CBR-KBQA with added cases (this paper)36
The numbers
System or settingF1
Before adding cases0
CBR-KBQA with added cases (this paper)36

The chart concerns questions affected by unseen relations, rather than overall WebQSP performance. It also reports F1, whereas the controlled education-relation experiment reports accuracy. Those differences in subset and metric prevent a direct comparison between the headline outcomes.

The case supply differs as well. The controlled experiment restores 136 examples for the education relation; the human-in-the-loop setting averages 3.87 per missing relation. The authors explicitly connect the more limited case coverage to the lower result in the latter experiment.

The outcome is still substantial evidence for the architectural claim. A system trained before these cases were available can retrieve them and use their relations in new programs. At the same time, the remaining errors show that supplying a few relevant examples does not solve retrieval, composition, grounding, and execution automatically.

What the ablations show

Training retrieval improves relation coverage

The retriever comparison asks whether the relation-overlap objective adds value beyond the pretrained encoder. RoBERTa-base already supplies useful question representations without task-specific fine-tuning. Training nonetheless improves coverage of the relations required by reference programs.

WebQuestionsSP retrieval, reference-relation recall

Relation-based supervision improves the retriever’s coverage of needed relations.

WebQuestionsSP retrieval, reference-relation recallRoBERTa-base without retrieval fine-tuning: 86.6RoBERTa-base without retrievalfine-tuning86.6CBR-KBQA trained retriever (this paper): 90.4CBR-KBQA trained retriever (this paper)90.4
The numbers
System or settingrecall %
RoBERTa-base without retrieval fine-tuning86.6
CBR-KBQA trained retriever (this paper)90.4

The measure concerns the content of retrieved programs. It does not mean that the complete question is answered correctly at that rate. A relation can be present in the retrieved context yet be ignored, combined incorrectly, or placed in the wrong part of the generated program.

CFQ retrieval, reference-relation recall

Fine-tuning also improves relation coverage on the compositional benchmark.

CFQ retrieval, reference-relation recallRoBERTa-base without retrieval fine-tuning: 94.8RoBERTa-base without retrievalfine-tuning94.8CBR-KBQA trained retriever (this paper): 98.4CBR-KBQA trained retriever (this paper)98.4
The numbers
System or settingrecall %
RoBERTa-base without retrieval fine-tuning94.8
CBR-KBQA trained retriever (this paper)98.4

Together, these comparisons support training retrieval for its downstream purpose. General question similarity is already helpful, but relation-based supervision makes the selected cases more likely to contain the required ingredients. They do not establish that relation overlap is a complete measure of case usefulness, since program structure still matters.

Cases help beyond the generator architecture

The authors train and evaluate a baseline with the same reuse component but no retrieved cases. This is a useful control because otherwise a benchmark improvement could be attributed entirely to architectural or initialization differences.

The no-case baseline is competitive, but the authors find that retrieved examples improve performance, particularly on WebQSP. This supports the claim that the memory contributes information at answering time rather than merely accompanying a strong generator.

The comparison also clarifies what the system learns. Its generator retains substantial ability to map a question to a program without examples. Cases supplement that ability by making useful programs available in the input. CBR-KBQA therefore combines parametric learning with explicit experience; it does not eliminate the need for either.

The regularizer and the number of cases

A further ablation removes the Kullback–Leibler term and trains generation using cross-entropy alone. This targets the extra constraint connecting case-conditioned and question-only predictions. The paper includes this comparison as part of its justification for the combined training objective.

The authors also report that the regularized approach works better than initialization from a generator trained without cases. The practical implication is that how the system learns to consult examples matters. Merely providing a long context containing solved questions is not the complete training method.

Varying the number of retrieved cases tests another part of the design. On WebQSP, the authors report improving performance as more neighbors are supplied. This is consistent with their reason for choosing a longer-context architecture: additional cases can expose relations or program fragments absent from the closest example.

That trend should be kept within the tested setting. More retrieved material can also introduce irrelevant relations and increase the work required for generation. The paper demonstrates a benefit over its evaluated choices; it does not establish unlimited improvement as memory context grows.

Revision contributes independently

The revision experiments compare generation with and without local relation alignment. The authors report improvements on WebQSP and CWQ. They also apply revision to T5-generated programs, where it improves CWQ F1 by more than 3 points.

The latter result broadens the significance of repair. It indicates that local graph alignment addresses an error type shared by different generators. A program can have a useful overall structure while containing relations that need grounding to the current entity’s neighborhood.

The authors compare TransE alignment with alignment based on RoBERTa representations of relation strings. TransE performs better. Their explanation is that graph structure carries useful relational information, whereas short names give a language encoder limited context.

This remains a task-specific result. It shows an advantage for the tested graph-derived embeddings in this alignment procedure. It does not show that textual relation representations are generally unhelpful or that every structural embedding would behave similarly.

The paper also reports that beam search is more effective than greedy alignment when several edges need repair. This suggests interaction among replacement decisions. A locally attractive substitution may lead to an unhelpful overall query, so retaining alternatives can improve the eventual choice.

Familiar relations in unfamiliar combinations

The authors separately examine evaluation questions whose relation combinations never occurred in training. In this setting, the necessary relations are familiar individually, but their joint use is new.

CBR-KBQA outperforms the T5 comparison on this subset. The finding supports the intended role of multiple cases: a required relation can come from one precedent and another relation from a different precedent, with generation composing them into a fresh program.

This differs from the unseen-relation experiment. Novel composition asks whether known ingredients can be assembled differently. Adding a missing relation asks whether a new ingredient can be introduced through the memory after training. The paper offers evidence for both, but through distinct experimental setups.

Copying unseen entities

The appendix also measures copying of entities not encountered during training. On WebQSP, CBR-KBQA copies the unseen entity correctly in 86.8% of cases, reported as 539/621. The transformer baseline obtains 84.9%, or 527/621.

This is a narrower success than answering the whole question. Correct entity copying can coexist with an incorrect relation or query structure. Even so, it tests an important prerequisite for execution: a generated query must preserve the identifier of the entity the user actually mentioned.

The authors emphasize that unseen entities differ from unseen relations. An entity identifier can already be available in the linked question input, so the system can copy it without adding cases to the memory. The relation update experiments therefore test an additional capability beyond copying new input identifiers.

Limitations

Limits identified by the authors

The first stated limitation is supervision. CBR-KBQA learns from questions paired with executable programs, and producing such annotations can be expensive. The case memory is informative precisely because each precedent exposes a solution, but that requirement increases the cost of building the initial system.

The authors propose learning directly from question–answer pairs as future work. They connect that direction to Semantic Parsing on Freebase from Question-Answer Pairs and related approaches. Their current experiments do not establish that the same case-reuse mechanism can be trained equally well without program annotations.

The second stated limitation is separate training of retrieval and reuse. Retrieval learns from relation overlap, while generation learns to produce reference programs from retrieved context. The modules are compatible, but their objectives are not jointly optimized around final answer success.

End-to-end learning is therefore another proposed direction. It could potentially adjust retrieval according to which cases actually help generation. The paper leaves that possibility open instead of presenting the modular design as a settled optimum.

The authors also identify a boundary in revision. Their alignment changes individual relations without changing query structure. Mapping a generated edge to a longer graph path is future work. A missing connection requiring a different structural route cannot be repaired by the current edge-substitution mechanism.

Their appendix further acknowledges that generated programs can fail through syntax errors or unsatisfiable conditions. The implemented repair focuses on errors addressable by local relation alignment. It is consequently a specialized repair stage, even though the broader motivation concerns generated programs that fail to execute usefully.

Limits visible in the setup

A first interpretive limit is dependence on entity linking. The program generator receives database identifiers supplied by an external linking process. If the wrong entity is linked or a needed mention remains unresolved, a correct relation structure may still query the wrong location.

The paper describes its linking pipeline, but the overall KBQA results should not be interpreted as isolating language-to-program reasoning from this prerequisite. Linking, generation, revision, and execution jointly determine whether the returned answer list is correct.

A second limit is retrieval coverage. Cases can help only when useful material is selected. Adding a case to memory creates an opportunity for reuse; it does not ensure that the case will be retrieved for every question it could help.

Even successful retrieval is insufficient. The generator must recognize the relevant fragment, avoid distracting fragments, and connect the selected relations correctly. High reference-relation recall therefore supports an explanation of available information instead of guaranteeing answer accuracy.

A third limit concerns what “unseen” means. The controlled experiment removes a relation from the annotated training questions and later introduces cases using it. That demonstrates adaptation to a relation newly available through memory. It does not establish unrestricted handling of arbitrary new query operators, execution languages, or database organizations.

The human-in-the-loop experiment also uses knowledge of which relations are missing. The added cases are selected or written to cover those gaps. This is appropriate for studying expert intervention, but it differs from a fully autonomous system that discovers every coverage problem and authors reliable repairs without assistance.

The required expertise matters. The manually constructed examples depend on understanding the Freebase relation and supplying the correct entity identifier and SPARQL structure. The paper makes the cases simple, reducing the annotation burden, but it does not remove the need for schema knowledge.

Correctness and stability require narrower claims

The update mechanism avoids changing learned parameters, so it avoids the particular parameter-update process that causes forgetting in the comparison experiment. That is a meaningful advantage. It should not be expanded into a guarantee that external memory updates cannot harm earlier predictions.

An enlarged index can alter which examples rank highest. A newly selected case can change the generator’s output, including on questions that previously worked. The paper demonstrates useful targeted updates; a general stability guarantee would require additional evidence about the effects of memory changes across the rest of the workload.

Likewise, inspectable cases provide a partial explanation of behavior. A user can see which programs were available and may diagnose the absence of a needed relation. This supports interpretability at the level of retrieved evidence.

The neural generator’s internal use of that evidence is less explicit. The presence of a relation in a retrieved program does not on its own prove that the generator used that particular occurrence to produce its answer. The architecture exposes useful intermediate objects without making every computational step symbolically transparent.

Revision also introduces semantic risk. An available relation can resemble the generated relation yet express a different constraint. Executability is a necessary operational property, but it is not equivalent to fidelity to the question. The authors’ inclusion of failed alignments is therefore important to understanding the procedure’s scope.

Finally, the authors argue that their smaller system’s success is encouraging for computational efficiency and environmental cost. The reported comparisons show that parameter scale alone does not determine benchmark performance. They do not supply a complete environmental accounting of training, indexing, retrieval, graph access, and execution.

The strongest supported claim is thus specific and useful: a trained case-reuse system can benefit from explicit solved examples, combine relations across them, repair some grounding mistakes, and exploit newly added cases without another training run. Each capability remains conditional on the representations, supervision, and execution setting tested.

What came after

Retrieval as a decision about useful experience

The later citation trail reaches work on selecting examples for inference. Learning To Retrieve Prompts for In-Context Learning places retrieval of prompts at the center of its stated problem. The connection to CBR-KBQA is the importance of choosing which prior examples a system sees when handling a new input.

CBR-KBQA provides a concrete version of that problem because every retrieved example includes an executable solution. Its relation-overlap objective asks what makes a precedent operationally useful. A citation from later prompt-retrieval work establishes that the paper entered that research conversation; it does not, on its own, establish reuse of the same loss or case representation.

Unified Demonstration Retriever for In-Context Learning and Finding Support Examples for In-Context Learning occupy another part of this trajectory. Their titles identify demonstration retrieval and support-example selection as their subjects. These are natural points of contact with the paper’s distinction between general similarity and usefulness for solving the current problem.

The important inheritance to examine in such work is whether retrieved examples serve as complete templates, partial ingredients, or evidence that guides another procedure. CBR-KBQA explicitly supports the partial-ingredient interpretation. The citation relationships do not establish that every later retriever makes that same choice.

Structured knowledge grounding

UnifiedSKG broadens the setting to structured knowledge grounding: responding to requests using databases, knowledge graphs, or tables. Its task range includes text-to-SQL parsing, knowledge-base question answering, table-to-text generation, and fact checking.

That broader framing helps locate CBR-KBQA’s contribution. Its examples connect language to a structured operation over an external knowledge source. The general question is how to ground a request in the right formal objects; CBR-KBQA’s answer is to retrieve solved requests and compose their programs. UnifiedSKG’s citation places that answer within a wider family of structured-grounding tasks, without establishing that its own system adopts the same pipeline.

Sequence-to-Sequence Knowledge Graph Completion and Question Answering connects through its stated combination of graph completion and question answering. CBR-KBQA had already brought representations learned for completion into the answering pipeline, using them for relation repair. The later title identifies a shared task neighborhood, while the citation alone leaves the precise technical relationship unspecified.

Examples and reasoning in other settings

In-Context Learning for Few-Shot Dialogue State Tracking shows the citation trail extending to dialogue systems. Its title concerns learning from examples in a task where the output records the state of an interaction. The relevant connection is the use of available precedents to support structured interpretation under limited task examples.

Text Classification via Large Language Models reaches a different output setting. Classification does not require the SPARQL composition and graph repair used here. Its citation is therefore evidence that the paper was relevant beyond executable knowledge-base queries, rather than evidence that the entire architecture transferred to classification.

Language Models as Inductive Reasoners and Large Language Models are In-Context Semantic Reasoners rather than Symbolic Reasoners place the citation in discussions of reasoning from examples. CBR-KBQA offers a particularly inspectable experimental distinction for those discussions: combining familiar relations is different from obtaining a relation absent during training. Its separate experiments prevent those abilities from being treated as interchangeable.

Retrieval and graph reasoning as broader themes

Retrieval-Augmented Generation for AI-Generated Content: A Survey places the work in a broader retrieval-oriented literature. CBR-KBQA illustrates why the contents of a retrieval memory matter: passages provide textual evidence, whereas question–program pairs can provide reusable computational structure.

Paths-over-Graph identifies knowledge-graph-supported reasoning as its subject. RGR-KBQA explicitly concerns generating logical forms for question answering with knowledge-graph enhancement. Their citation links establish continued relevance of graph-grounded reasoning and formal query generation. They do not establish that either work reproduces CBR-KBQA’s relation alignment or memory-update experiment.

Across these later connections, the durable research idea is precise: a system can learn a procedure for using experience while keeping some of that experience outside its parameters. CBR-KBQA makes that proposal testable through explicit cases, executable outputs, component comparisons, and targeted memory updates. Its lasting value is the set of separable questions that follow: which examples should be retrieved, which parts can be composed, what the environment can repair, and how a user can supply missing knowledge without rebuilding the entire system.

Cite

Cite as 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. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.emnlp-main.755 · arXiv 2104.08762

@inproceedings{das2021case,
  title = {{Case-based Reasoning for Natural Language Queries over Knowledge Bases}},
  author = {Rajarshi Das, Manzil Zaheer, Dung Thai, Ameya Godbole, Ethan Perez, Jay Yoon Lee, Lizhen Tan, Lazaros Polymenakos and Andrew McCallum},
  booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.755},
  eprint = {2104.08762},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2021.emnlp-main.755}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/das-2021-case-based-reasoning-natural-language/

References

87 references, from the paper's own bibliography.

  1. Agnar Aamodt and Enric Plaza. 1994. Case-based reasoning: Foundational issues, methodological variations, and system approaches. AI communications. OpenAlex ↗ · Scholar ↗
  2. Jacob Andreas, Marcus Rohrbach, Trevor Darrell, and Dan Klein. 2016. Neural module networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). OpenAlex ↗ · Scholar ↗
  3. Matej Balog, Alexander L Gaunt, Marc Brockschmidt, Sebastian Nowozin, and Daniel Tarlow. 2016. Deepcoder: Learning to write programs. arXiv preprint arXiv:1611.01989. OpenAlex ↗ · Scholar ↗
  4. Jonathan Berant, Andrew Chou, Roy Frostig, and Percy Liang. 2013. Semantic parsing on freebase from question-answer pairs. In EMNLP. our card
  5. Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. 2008. Freebase: A collaboratively created graph database for structuring human knowledge. In ICDM. OpenAlex ↗ · Scholar ↗
  6. Antoine Bordes, Nicolas Usunier, Sumit Chopra, and Jason Weston. 2015. Large-scale simple question answering with memory networks. arXiv preprint arXiv:1506.02075. OpenAlex ↗ · Scholar ↗
  7. Antoine Bordes, Nicolas Usunier, Alberto Garcia-Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data. In Neurips. our card
  8. Ziqiang Cao, Wenjie Li, Sujian Li, and Furu Wei. 2018. Retrieve, rerank and rewrite: Soft template based neural summarization. In ACL. our card
  9. Danqi Chen, Adam Fisch, Jason Weston, and Antoine Bordes. 2017. Reading wikipedia to answer open-domain questions. In ACL. our card
  10. Walter Daelemans, Jakub Zavrel, Peter Berck, and Steven Gillis. 1996. Mbt: A memory-based part of speech tagger-generator. In WVLC. our card
  11. Rajarshi Das, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. 2019. Multi-step retriever-reader interaction for scalable open-domain question answering. In ICLR. our card
  12. Rajarshi Das, Ameya Godbole, Shehzaad Dhuliawala, Manzil Zaheer, and Andrew McCallum. 2020a. A simple approach to case-based reasoning in knowledge bases. In AKBC. OpenAlex ↗ · Scholar ↗
  13. Rajarshi Das, Ameya Godbole, Nicholas Monath, Manzil Zaheer, and Andrew McCallum. 2020b. Probabilistic case-based reasoning for open-world knowledge graph completion. In Findings of EMNLP. OpenAlex ↗ · Scholar ↗
  14. Li Dong and Mirella Lapata. 2016. Language to logical form with neural attention. In ACL. our card
  15. David Ferrucci, Eric Brown, Jennifer Chu-Carroll, James Fan, David Gondek, Aditya A. Kalyanpur, Adam Lally, J. William Murdock, Eric Nyberg, John Prager, Nico Schlaefer, and Chris Welty. 2010. Building watson: An overview of the deepqa project (https://doi.org/10.1609/aimag.v31i3.2303). AI Magazine, 31(3):59–79. OpenAlex ↗ · Scholar ↗
  16. Jonathan Frankle and Michael Carbin. 2019. The lottery ticket hypothesis: Finding sparse, trainable neural networks (http://arxiv.org/abs/1803.03635). In ICLR. OpenAlex ↗ · Scholar ↗
  17. Daniel Furrer, Marc van Zee, Nathan Scales, and Nathanael Schärli. 2020. Compositional generalization in semantic parsing: Pre-training vs. specialized architectures. arXiv preprint arXiv:2007.08970. OpenAlex ↗ · Scholar ↗
  18. Evgeniy Gabrilovich, Michael Ringgaard, and Amarnag Subramanya. 2013. Facc1: Freebase annotation of clueweb corpora, version 1 (release date 2013-06-26, format version 1, correction level 0). OpenAlex ↗ · Scholar ↗
  19. Jiatao Gu, Yong Wang, Kyunghyun Cho, and Victor OK Li. 2018. Search engine guided neural machine translation. In AAAI. OpenAlex ↗ · Scholar ↗
  20. Kavi Gupta, Peter Ebert Christensen, Xinyun Chen, and Dawn Song. 2020. Synthesize, execute and debug: Learning to repair for neural program synthesis. In Neurips. OpenAlex ↗ · Scholar ↗
  21. Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Ming-Wei Chang. 2020. Realm: Retrieval-augmented language model pre-training. In ICML. our card
  22. Tatsunori B Hashimoto, Kelvin Guu, Yonatan Oren, and Percy Liang. 2018. A retrieve-and-edit framework for predicting structured outputs. In Neurips. OpenAlex ↗ · Scholar ↗
  23. Geoffrey E Hinton and David C Plaut. 1987. Using fast weights to deblur old memories. In Proceedings of the ninth annual conference of the Cognitive Science Society. OpenAlex ↗ · Scholar ↗
  24. Nabil Hossain, Marjan Ghazvininejad, and Luke Zettlemoyer. 2020. Simple and effective retrieve-edit-rerank text generation. In ACL. OpenAlex ↗ · Scholar ↗
  25. Jinru Hua, Mengshi Zhang, Kaiyuan Wang, and Sarfraz Khurshid. 2018. Towards practical program repair with on-demand candidate generation. In international conference on software engineering, pages 12–23. OpenAlex ↗ · Scholar ↗
  26. Yuncheng Hua, Yuan-Fang Li, Reza Haffari, Guilin Qi, and Wei Wu. 2020. Retrieve, program, repeat: complex knowledge base question answering via alternate meta-learning. In International Joint Conference on Artificial Intelligence 2020, pages 3679–3686. Association for the Advancement of Artificial Intelligence (AAAI). OpenAlex ↗ · Scholar ↗
  27. Wonseok Hwang, Jinyeong Yim, Seunghyun Park, and Minjoon Seo. 2019. A comprehensive exploration on wikisql with table-aware word contextualization. arXiv preprint arXiv:1902.01069. our card
  28. Vladimir Karpukhin, Barlas Oğuz, Sewon Min, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In EMNLP. our card
  29. Daniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman, Daniel Furrer, Sergii Kashubin, Nikola Momchev, Danila Sinopalnikov, Lukasz Stafiniak, Tibor Tihon, Dmitry Tsarkov, Xiao Wang, Marc van Zee, and Olivier Bousquet. 2020. Measuring compositional generalization: A comprehensive method on realistic data. In ICLR. OpenAlex ↗ · Scholar ↗
  30. Urvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer, and Mike Lewis. 2021. Nearest neighbor machine translation. In ICLR. OpenAlex ↗ · Scholar ↗
  31. Urvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer, and Mike Lewis. 2020. Generalization through memorization: Nearest neighbor language models. In ICLR. our card
  32. James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. 2017. Overcoming catastrophic forgetting in neural networks. PNAS. our card
  33. Janet L Kolodner. 1983. Maintaining organization in a dynamic long-term memory. Cognitive science. OpenAlex ↗ · Scholar ↗
  34. Brenden M Lake and Marco Baroni. 2018. Generalization without systematicity. In ICML. OpenAlex ↗ · Scholar ↗
  35. Yunshi Lan and Jing Jiang. 2020. Query graph generation for answering multi-hop complex questions from knowledge bases. In ACL. OpenAlex ↗ · Scholar ↗
  36. Yunshi Lan, Shuohang Wang, and Jing Jiang. 2019. Knowledge base question answering with topic units. In IJCAI. OpenAlex ↗ · Scholar ↗
  37. Juliana S Lancaster and Janet L Kolodner. 1987. Problem solving in a natural task as a function of experience. Technical report, Georgia Tech CS Department. OpenAlex ↗ · Scholar ↗
  38. Xuan-Bach D Le, Duc-Hiep Chu, David Lo, Claire Le Goues, and Willem Visser. 2017. S3: syntax-and semantic-guided repair synthesis via programming by examples. In Foundations of Software Engineering. OpenAlex ↗ · Scholar ↗
  39. David B Leake. 1996. Cbr in context: The present and future. Case-based reasoning: Experiences, lessons, and future directions. OpenAlex ↗ · Scholar ↗
  40. Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. 2015. Deep learning. nature. OpenAlex ↗ · Scholar ↗
  41. Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020a. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In ACL. our card
  42. Patrick Lewis, Ethan Perez, Aleksandara Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen-tau Yih, Tim Rocktäschel, et al. 2020b. Retrieval-augmented generation for knowledge-intensive nlp tasks. In Neurips. our card
  43. Patrick Lewis, Pontus Stenetorp, and Sebastian Riedel. 2020c. Question and answer test-train overlap in open-domain question answering datasets. arXiv preprint arXiv:2008.02637. our card
  44. Belinda Z Li, Sewon Min, Srinivasan Iyer, Yashar Mehdad, and Wen-tau Yih. 2020. Efficient one-pass end-to-end entity linking for questions. In EMNLP. our card
  45. Chen Liang, Jonathan Berant, Quoc Le, Kenneth D Forbus, and Ni Lao. 2016. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. arXiv preprint arXiv:1611.00020. our card
  46. Xi Victoria Lin, Richard Socher, and Caiming Xiong. 2020. Bridging textual and tabular data for cross-domain text-to-sql semantic parsing. In Findings of EMNLP. our card
  47. Xi Victoria Lin, Chenglong Wang, Luke Zettlemoyer, and Michael D Ernst. 2018. Nl2bash: A corpus and semantic parser for natural language interface to the linux operating system. In LREC. our card
  48. Joao Loula, Marco Baroni, and Brenden M Lake. 2018. Rearranging the familiar: Testing compositional generalization in recurrent networks. In EMNLP Blackbox NLP Workshop. our card
  49. Michael McCloskey and Neal J Cohen. 1989. Catastrophic interference in connectionist networks: The sequential learning problem. In Psychology of learning and motivation. OpenAlex ↗ · Scholar ↗
  50. Bonan Min, Ralph Grishman, Li Wan, Chang Wang, and David Gondek. 2013. Distant supervision for relation extraction with an incomplete knowledge base. In NAACL-HLT. our card
  51. Sewon Min, Victor Zhong, Luke Zettlemoyer, and Hannaneh Hajishirzi. 2019. Multi-hop reading comprehension through question decomposition and rescoring (https://doi.org/10.18653/v1/P19-1613). In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6097–6109, Florence, Italy. Association for Computational Linguistics. our card
  52. Ngonga Ngomo. 2018. 9th challenge on question answering over linked data (qald-9). language. OpenAlex ↗ · Scholar ↗
  53. Maximilian Nickel, Volker Tresp, and Hans-Peter Kriegel. 2011. A three-way model for collective learning on multi-relational data. In ICML. OpenAlex ↗ · Scholar ↗
  54. Gaurav Pandey, Danish Contractor, Vineet Kumar, and Sachindra Joshi. 2018. Exemplar encoder-decoder for neural conversation generation. In ACL. OpenAlex ↗ · Scholar ↗
  55. Panupong Pasupat and Percy Liang. 2015. Compositional semantic parsing on semi-structured tables. In ACL. our card
  56. Hao Peng, Ankur Parikh, Manaal Faruqui, Bhuwan Dhingra, and Dipanjan Das. 2019. Text generation with exemplar-based adaptive decoding. In NAACL. OpenAlex ↗ · Scholar ↗
  57. Ethan Perez, Patrick Lewis, Wen-tau Yih, Kyunghyun Cho, and Douwe Kiela. 2020. Unsupervised question decomposition for question answering (https://doi.org/10.18653/v1/2020.emnlp-main.713). In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 8864–8880, Online. Association for Computational Linguistics. our card
  58. Stanislas Polu and Ilya Sutskever. 2020. Generative language modeling for automated theorem proving (http://arxiv.org/abs/2009.03393). our card
  59. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. JMLR. our card
  60. Edwina L Rissland. 1983. Examples in legal reasoning: Legal hypotheticals. In IJCAI. OpenAlex ↗ · Scholar ↗
  61. Brian H Ross. 1984. Remindings and their effects in learning a cognitive skill. Cognitive psychology. OpenAlex ↗ · Scholar ↗
  62. Apoorv Saxena, Aditay Tripathi, and Partha Talukdar. 2020. Improving multi-hop question answering over knowledge graphs using knowledge base embeddings. In ACL. our card
  63. Roger C Schank. 1982. Dynamic memory: A theory of reminding and learning in computers and people. cambridge university press. OpenAlex ↗ · Scholar ↗
  64. Henk Schmidt, Geoffrey Norman, and Henny Boshuizen. 1990. A cognitive perspective on medical expertise: theory and implications. Academic medicine. OpenAlex ↗ · Scholar ↗
  65. Peter Shaw, Ming-Wei Chang, Panupong Pasupat, and Kristina Toutanova. 2020. Compositional generalization and natural language variation: Can a semantic parsing approach handle both? arXiv preprint arXiv:2010.12725. our card
  66. Livio Baldini Soares, Nicholas FitzGerald, Jeffrey Ling, and Tom Kwiatkowski. 2019. Matching the blanks: Distributional similarity for relation learning. In ACL. our card
  67. Richard Socher, Danqi Chen, Christopher D Manning, and Andrew Ng. 2013. Reasoning with neural tensor networks for knowledge base completion. In Neurips. our card
  68. 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. In EMNLP. OpenAlex ↗ · Scholar ↗
  69. Alane Suhr, Ming-Wei Chang, Peter Shaw, and Kenton Lee. 2020. Exploring unexplored generalization challenges for cross-database semantic parsing. In ACL. OpenAlex ↗ · Scholar ↗
  70. Haitian Sun, Tania Bedrax-Weiss, and William W Cohen. 2019a. Pullnet: Open domain question answering with iterative retrieval on knowledge bases and text. In EMNLP. OpenAlex ↗ · Scholar ↗
  71. Haitian Sun, Bhuwan Dhingra, Manzil Zaheer, Kathryn Mazaitis, Ruslan Salakhutdinov, and William W Cohen. 2018. Open domain question answering using early fusion of knowledge bases and text. In EMNLP. our card
  72. Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2019b. Rotate: Knowledge graph embedding by relational rotation in complex space. In ICLR. our card
  73. Alon Talmor and Jonathan Berant. 2018. The web as a knowledge-base for answering complex questions. In NAACL-HLT. our card
  74. Kristina Toutanova and Danqi Chen. 2015. Observed versus latent features for knowledge base and text inference. In Continuous Vector Space Models and their Compositionality Workshop. our card
  75. Petar Velickovic, Guillem Cucurull, A. Casanova, A. Romero, P. Liò, and Yoshua Bengio. 2018. Graph attention networks. In ICLR. OpenAlex ↗ · Scholar ↗
  76. 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. In ACL. our card
  77. Jason Weston, Emily Dinan, and Alexander Miller. 2018. Retrieve and refine: Improved sequence generation models for dialogue. In ConvAI Workshop EMNLP. our card
  78. Sam Wiseman and Karl Stratos. 2019. Label-agnostic sequence labeling by copying nearest neighbors. In ACL. OpenAlex ↗ · Scholar ↗
  79. Tomer Wolfson, Mor Geva, Ankit Gupta, Yoav Goldberg, Matt Gardner, Daniel Deutch, and Jonathan Berant. 2020. Break it down: A question understanding benchmark. Transactions of the Association for Computational Linguistics, 8:183–198. our card
  80. Wen-tau Yih, Matthew Richardson, Christopher Meek, Ming-Wei Chang, and Jina Suh. 2016. The value of semantic parse labeling for knowledge base question answering. In ACL. our card
  81. Dong Yu, Kaisheng Yao, Hang Su, Gang Li, and Frank Seide. 2013. Kl-divergence regularized deep neural network adaptation for improved large vocabulary speech recognition. In ICASSP. OpenAlex ↗ · Scholar ↗
  82. Tao Yu, Rui Zhang, Kai Yang, Michihiro Yasunaga, Dongxu Wang, Zifan Li, James Ma, Irene Li, Qingning Yao, Shanelle Roman, et al. 2018. Spider: A large-scale human-labeled dataset for complex and cross-domain semantic parsing and text-to-sql task. In EMNLP. our card
  83. Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. 2020. Big bird: Transformers for longer sequences. In Neurips. our card
  84. John M Zelle and Raymond J Mooney. 1996. Learning to parse database queries using inductive logic programming. In NCAI. our card
  85. Jingyi Zhang, Masao Utiyama, Eiichro Sumita, Graham Neubig, and Satoshi Nakamura. 2018. Guiding neural machine translation with retrieved translation pieces. In NAACL. our card
  86. Victor Zhong, Caiming Xiong, and Richard Socher. 2017a. Seq2sql: Generating structured queries from natural language using reinforcement learning. arXiv preprint arXiv:1709.00103. our card
  87. Victor Zhong, Caiming Xiong, and Richard Socher. 2017b. Seq2sql: Generating structured queries from natural language using reinforcement learning. CoRR, abs/1709.00103. our card