Elamur Research

A Semantic Parsing and Reasoning-Based Approach to Knowledge Base Question Answering

Paper · 2021 · Ibrahim Abdelaziz, Srinivas Ravishankar, Pavan Kapanipathi et al.

Summary

Finding the right entry in a database is only part of answering a question. Suppose someone asks for actors in Spanish films that Benicio del Toro produced. The country and producer both constrain the films, and the films in turn determine which actors qualify. A system could recognize every important phrase and still get the answer wrong by attaching a condition to the wrong entity. The authors present Deep Thinking Question Answering (DTQA), a system for question answering that works out how the parts of a question fit together before looking for answers in a knowledge base.

DTQA uses semantic parsing to turn the sentence into an Abstract Meaning Representation (AMR) graph. Its concepts and connections describe the question without using DBpedia’s vocabulary. DTQA identifies references such as the one to Spain, then traces routes from the position of the requested answer to the identified entities. These routes help the system decide which relationships to keep. Where several semantic steps express a connection that the database may represent as a single property, DTQA combines them for relation linking. Fixed rules translate the resulting constraints into logical expressions. Logical Neural Networks (LNN) retrieve the relevant facts and can use information about types and geography to draw inferences.

The stages make different decisions and leave intermediate outputs that can be examined. A parser can be trained to represent sentence meaning, a mention detector to recognize references, and a relation linker to find corresponding database properties. The complete system can therefore be assembled without training it on questions paired with finished knowledge-base queries. It still relies on training and supervision for specialized tasks, as well as hand-written rules for some of its operations.

On the QALD-9 test set of 150 questions, DTQA reaches an F-score of 30.88 and a Macro-F1-QALD score of 45.33. The corresponding gAnswer scores are 29.81 and 42.96. On the LC-QuAD 1.0 test set of 1,000 questions, DTQA has an F-score of 33.72 and QAMP scores 33.00. DTQA also leads the reported precision comparisons, while other systems achieve higher recall on both benchmarks. The results show that the full pipeline is competitive under the combined measures. The paper’s examples explain individual transformations, but the benchmark evaluation leaves open how much each stage contributes and how often logical inference changes the answer.

Deep dive: A Semantic Parsing and Reasoning-Based Approach to Knowledge Base Question Answering

See how DTQA turns questions into database constraints, uses logic to find answers, and compares with other systems on QALD-9 and LC-QuAD. · about 34 minutes to read

The problem and its context

What the question contributes and what the database supplies

A knowledge graph gives facts a structure a program can use. An entry can identify a film, for example, and a property can relate that film to someone credited as a producer. The database supplies the identifiers, the available properties, and the facts recorded using those properties. A question supplies a different kind of information. It describes which facts matter, how they must be connected, and what the reader wants returned. A system has to recover those instructions from ordinary language.

In the film question, Spain and Benicio del Toro are already specified. The actors are what the question asks the system to discover. To get from the specified entities to the answers, the system needs to make films the common subject of the country and producer conditions. If it finds an actor who appeared in a Spanish film and also appeared in a different film produced by Benicio del Toro, that alone would leave the original conditions unsatisfied. The question requires the conditions to meet at the same film. This dependency is central to the task even though a reader can grasp it without seeing any database schema.

A name and a relationship bring different problems. A name has to be resolved to a particular entry. A relationship has to be understood in context and matched to a property that may have a different label or connect its arguments in a different direction. The word “Spanish” also illustrates why recognizing a person’s name cannot be the whole of reference resolution. In the authors’ example, the word is interpreted through a link to Spain. The structure of the sentence then helps determine what the entry for Spain constrains.

DBpedia supplies the database vocabulary in the discussion of DTQA. The authors also introduce Wikidata as another example of a knowledge base that natural-language questions can target. Using a particular resource matters because a query needs its identifiers and properties. A linguistic description of someone producing a film can be understood independently of the resource, but the system needs a database-specific interpretation to use that description in a query. DTQA makes the transition between those levels an explicit step.

The correspondence can be structural as well as lexical. A linguistic analysis may give an event its own place in a graph, with separate attachments for the people, objects, and circumstances involved. A database may relate some of those things directly through a property. A match based on labels alone would miss this difference. The system needs to recognize when several pieces of a linguistic analysis jointly describe a single database relationship. It also needs to preserve an intermediate object, such as a film, when separate requirements depend on that object.

Another distinction concerns the facts needed for an answer. Some can be retrieved by finding recorded relationships that fit the question. Others may depend on how the knowledge base organizes its types or geographic information. The authors use reasoning to refer to the logical work that can use such information to infer an answer. In the proposed architecture, the question determines what has to be established, the database contributes facts, and the reasoner can apply additional relationships or rules to those facts.

The approaches the authors discuss

The paper describes graph-driven question answering and direct query prediction as the main reference points for DTQA. In the graph-driven description, the input question guides a search for a suitable portion of the knowledge-base graph. The aim is to find a structure in the database that matches what the question expresses. The paper names graph-driven approaches among the systems used for comparison, including an approach that uses message passing. The introduction uses these methods to explain the existing role of database structure in question answering.

The other approach learns to produce a query sequence from a question. SPARQL and SQL are the paper’s examples of the resulting query languages. A finished query carries several choices at once. It indicates which entities and properties to use, which variables should satisfy shared constraints, and what to return. Learning the full mapping from question wording to that sequence calls for examples at the level of the complete task. The authors identify the scarcity of such training data as a problem for this approach.

Complex questions and the need for inference are concerns in the authors’ discussion of both approaches. A question can be structurally demanding even if the answer is present in the database. Its difficulty may lie in identifying the correct instructions for retrieval. Conversely, a question with a comparatively clear interpretation can ask for a relationship that depends on other facts or rules. The challenge of representing a question and the challenge of establishing its answer can therefore arise independently.

DTQA uses a learned parser at the language end and a database graph at the retrieval end. Between them it introduces a sequence of transformations. This lets the parser be trained on semantic analysis as its own task, and lets database-specific components take responsibility for knowing the resource’s vocabulary. The paper also distinguishes DTQA from the systems it discusses by giving logical inference a dedicated component that receives the result of those transformations.

Why put a meaning graph in the middle?

Abstract Meaning Representation represents the concepts in an utterance and the semantic links among them. It is designed to give sentences with a shared meaning a common analysis even when their grammar differs. For a database question, that gives later stages a way to start from relationships such as who participates in an event or what object a condition concerns. The order in which the user put the words is evidence for interpreting those relationships, but the stages that build database constraints can work from the resulting graph.

The representation is useful for reuse because its concepts are defined for linguistic analysis. The parser can recognize an event of starring before the pipeline identifies the DBpedia property that represents a film’s cast. The event also has a location in the graph relative to the film, the sought actor, and other parts of the question. The linking stages can use that context when deciding which database structure fits.

Using AMR thus moves some of the difficulty to a well-defined interface. A parse gives the system a structured starting point, and the database still imposes its own categories and choice of properties. The authors’ path procedure addresses that interface. It starts with the graph position whose value the user asks for and works outward to the entities the question has specified. The idea is to select semantic material for what it contributes to the answer, then adapt it to the shapes and labels the database supports.

The method, step by step

From the sentence to facts the system can use

Each DTQA stage receives the output of an earlier stage and adds a particular kind of information. Parsing identifies the meaning structure. Entity linking gives parts of that structure database identifiers. Path processing works out which connections to carry forward and where to combine them. Relation linking supplies labels from the database, and logical conversion puts the constraints into a form the reasoner can use. The paper describes these operations through graph structure and examples. It gives no equations for training, relation scoring, or the logic computed inside LNN.

How DTQA turns a question into an answer

The steps in order.

How DTQA turns a question into an answerStep 1: Parse the question as an AMR graph1. Parse the question as an AMR graphStep 2: Identify entities and link them to database entries2. Identify entities and link them to database entriesStep 3: Trace routes from the unknown to linked entities3. Trace routes from the unknown to linked entitiesStep 4: Combine predicates and rank matching database properties4. Combine predicates and rank matching database propertiesStep 5: Translate aligned constraints into logical expressions5. Translate aligned constraints into logical expressionsStep 6: Retrieve relevant facts and apply logical inference6. Retrieve relevant facts and apply logical inference

Find the structure of the question

The AMR graph has a root, which gives the analysis a starting node. Its edges are directed, and following directed edges cannot bring a traversal back around to its starting point. The nodes represent concepts, and the edge labels describe how those concepts participate in the meaning of the sentence. This is the representation delivered by the parser, before DTQA has chosen which database entries or properties it will use.

The parser is transition based. It constructs the analysis through successive decisions that build up the graph. The authors use a neural parser trained end to end to do this particular job. Here the ends of the training task are language and AMR. The result is a learned component whose output can be used in a question-answering pipeline without making answer retrieval part of the parser’s training task.

A question introduces a special role for the graph. Some of its content is supplied by the user, and some of it must be filled in by the answer. In the film example, the person and the country can be resolved before a query is run. The actors are unknown. The graph marks the answer position with amr-unknown. For the alignment procedure, that node tells DTQA where to begin looking for connections to the known entities. It gives the pipeline a concrete starting point even though the actor names are still unavailable.

The paper’s examples use PropBank frame labels for several of the concepts. A frame describes a kind of event or relation and gives its participants roles. The frame identifier star-01 marks the starring relationship, and produce-01 marks production. The suffix is part of each frame’s identifier. The frame as a whole helps the system represent the meaning of the question before it commits to any particular DBpedia property.

This stage can preserve useful detail about how the different parts of the question relate. A starring event involves a film and an actor, and producing concerns a film and a producer. The graph can expose the film as an intermediate concept that those relationships share. A system that proceeds by recognizing a set of labels would still have to reconstruct that shared reference. Here the output of the parser supplies the structure that the following stages are designed to retain.

The full graph can also contain material that has a different purpose from a query constraint. In the film example, the graph includes an acting predicate in addition to the starring relationship. AMR provides the language analysis in which both can appear. DTQA subsequently asks which parts connect the unknown actor to the entities that define the question. The parser and the path procedure thus address different choices about what information to represent and what information to use.

Connect mentions to entries and types

The Entity Extraction and Linking stage identifies entities and types and assigns their corresponding knowledge-base identifiers. A URI is the identifier by which a query can refer to an entry. Attaching it to a node gives later steps a fixed endpoint for a relationship. A path that reaches a linked person, for example, can become a constraint on films related to that particular person.

The paper describes mention detection and disambiguation separately. A mention detector identifies text that refers to an entity. It establishes where in the question to look for references. Disambiguation resolves the reference to a particular entity when the words themselves are insufficient to establish the identifier. The authors trained a detector based on BERT and used BLINK for named-entity disambiguation. These components supply the database references used by the rest of the system.

In the running example, the linker resolves the person mentioned in the production condition to the Benicio del Toro entry. It also connects the adjective describing the films to the Spain entry. The paper denotes these resources as dbr:Benicio del Toro and dbr:Spain. The prefix identifies a DBpedia resource in the examples. After linking, the route through the country concept has a specific endpoint even though the sentence expresses the reference adjectivally.

That change does not on its own determine where the condition belongs. Once the system has identified Spain, it still needs the path that makes Spain relevant to which films qualify. Once it has identified Benicio del Toro, it still needs the production relationship. Entity linking determines the reference. The graph and later property mapping determine how that reference participates in the query.

The authors include type extraction and linking in the same stage. A type represents a category, while a named entity identifies an individual entry. Type information can help characterize the entities involved in a question. The paper describes the output expected from this part of the architecture alongside entity links, with its concrete illustration centered on the country and producer. Its account of the named references is correspondingly more detailed than its account of how type links are selected.

The order of these operations affects what the next stage can see. Path generation uses linked entities to decide which graph routes are worth extracting, so resolving a reference does more than fill an argument near the end of query construction. It identifies a destination for the path procedure. If a mention receives no link, the route to that mention has no linked endpoint to select under the strategy the authors describe.

Follow the connections that matter to the answer

An AMR graph and a database graph can describe the same situation using different structures. A PropBank predicate can have several arguments. A DBpedia property typically relates a subject and an object. DTQA handles the mismatch with Path-based Triple Generation. A triple has a subject, a predicate, and an object. The first and last positions give the endpoints of a relationship, and the middle position describes the relationship connecting them. At this stage the system can use AMR material to describe a predicate before assigning its database property.

The path procedure begins at amr-unknown and looks for connections to the linked entities. This makes the position of the answer and the locations of the known entities the organizing features of the transformation. A path records how the question connects these positions through the graph. The resulting material can be converted into triples, each intended to contribute a corresponding constraint in the SPARQL query. A long route can supply several related constraints when the intermediate concepts are needed to express the question.

In the film example, the route toward Spain begins with the unknown actor, passes through the starring relationship to a movie, and reaches Spain through the movie’s country. The route toward Benicio del Toro shares the starring relationship and the movie. From there it follows production to the person linked by the earlier stage. The paths thus state why the known person and country matter to the unknown actor. Each reaches the answer through conditions on the film.

The shared stretch of the routes carries meaning. To satisfy the question, a candidate answer needs a connection to a film for which the relevant conditions hold together. Following independent associations from the country and producer to the actor without keeping the movie in view would leave room for the conditions to apply to different films. The graph paths give DTQA a way to keep the constraints connected while translating them into database terms.

There is also an act-01 predicate in the AMR graph for this question. The routes described by the authors do not pass through it. It is therefore omitted by the path procedure. The choice follows from the predicate’s position in the graph. The example explains why generating triples for all concepts would be a different strategy and could give the query additional conditions. An acting predicate whose position in some other question made it part of a route to a linked entity would present a different case under the described rule.

The paths in the demonstration are accounts of traversal through the meaning graph. The final database triples have their own subject and object positions. In particular, starting a traversal from the unknown actor does not force the actor to be the subject of the DBpedia starring property. The route tells the system which concepts belong in the constraint. Property alignment and conversion still have to express the relation in database terms. The paper illustrates selected paths and named mappings, leaving the full treatment of traversal direction and argument orientation unspecified.

The authors use the film example to show how the procedure chooses material from a graph and how its choices carry through to an answerable structure. They describe the method in terms of routes from the unknown to linked entities, without giving a full algorithm for competing paths. The illustration determines which routes the example uses. It leaves questions such as how to select among several valid routes between the same endpoints to the implementation.

Combine neighboring predicates when the database needs a single edge

The retained paths can still express a relation at a finer level than the database. An event predicate and its attached roles may each convey part of a connection. Searching for an independent database property for each piece would commit the system to a particular graph structure before it knows how the knowledge base records the fact. DTQA can instead collapse consecutive predicates into a composite edge description.

The cocoa-bean example shows what this means. The answer sought is an ancient empire where cocoa beans served as a means of payment. AMR gives the payment event a place between the unknown location and the thing used to pay. The connection from the unknown to the beans passes through a location relation, a payment predicate, and an instrument relation. All of these pieces matter to the meaning of the combined connection.

The paper represents that edge with the label below.

location | pay-01 | instrument

location contributes the place relation. pay-01 identifies the payment frame. instrument identifies the role played by what was used to pay. The vertical bars delimit the pieces of the composite label. The path’s endpoints remain the unknown and the cocoa-bean concept. DTQA presents the combined description to the relation linker as material for choosing a database property.

The film and payment examples show different reasons for altering a graph. The film paths omit a predicate outside the selected routes and keep the movie as an intermediate concept. The payment path compresses relationships within a route while carrying their labels forward. In the latter case the intermediate event contributes to the meaning of a database edge even though the system does not require the database to contain a separate node for the event.

The composite description also preserves information that would be lost if the linker saw only one piece in isolation. A location label alone could be consistent with many ways an empire relates to cocoa beans. Including payment and instrument narrows the kind of connection the system is looking for. The paper shows how to form that description, but it does not identify a final DBpedia mapping or give an answer for this example in its discussion of collapsing. The documented output at this point is the edge presented for linking.

Find the database properties

The Relation Extraction and Linking stage assigns database vocabulary to the descriptions produced by path generation. In the film example, the AMR frame star-01 is associated with dbo:starring, while produce-01 is associated with dbo:producer. The dbo: prefix in these examples identifies a DBpedia ontology property. The choices express what kind of relationship the system should ask the database about. Earlier links such as the one to Spain establish particular entities that can participate in those relationships.

DTQA uses SLING to make these assignments. It takes the AMR graph, the linked entities, and the selected paths as inputs. This gives it both the predicate descriptions to map and information about how they occur in the question. SLING combines several approaches to ranking candidate properties. The paper draws particular attention to statistical associations between AMR predicates and database relations.

Those associations come from a distantly supervised dataset. In distant supervision, a dataset provides indirect evidence for a correspondence. Here the paper describes it as a way to obtain co-occurrence information linking an AMR predicate with a semantically corresponding property in the knowledge base. The goal is to support a mapping on the basis of how linguistic predicates and database relations are associated in the data. The authors identify the source of the statistical evidence without detailing the dataset construction or the resulting scores.

SLING also uses lexical information from the question and its semantic predicates. A neural component contributes to the relation-linking ensemble, and an unsupervised semantic similarity component compares predicate descriptions with candidate relations using GloVe. GloVe embeddings represent words as numerical vectors that the component can use to assess similarity. The question wording can supply lexical clues in addition to the label the parser assigned to a predicate.

The evidence sources address complementary aspects of the mapping. The statistical component uses associations available through supervision, while lexical similarity can use the meanings suggested by the words of a predicate and possible property. A ranking can reflect these different signals. The paper describes the components that feed into the ensemble, with no numerical weighting or relation-scoring equation specified for DTQA.

For each predicate SLING returns a top-k list, where k denotes the number of highest-ranked relations retained. The value of k is unspecified. A ranked candidate list can contain more than one plausible property for an edge. A complete question can also contain several edges in need of links, so the choices ultimately have to fit the same logical expression. The demonstration identifies the ranked input available for this transition. It leaves the policy for resolving competing complete combinations open.

Considering the examples at this stage also shows the division of responsibility among components. Linking produce-01 to dbo:producer resolves the property vocabulary. It does not establish which film the predicate must concern, a dependency represented by the paths. The production property and the linked producer can be individually correct while a query that attaches them to the wrong film would be wrong. The combined representation has to preserve the intended endpoints as well as choose the right property.

Express the aligned question in logic

The AMR-to-Logic stage takes paths that have been aligned with the knowledge base and applies rules to build logical expressions. A predicate in the logical representation expresses a condition with arguments. In the binary case, the two positions can represent a relationship between a film and a person, for example. Some arguments refer to already identified entities. Others are variables whose values have to be found by retrieving facts that satisfy the conditions.

A variable can carry the identity of an intermediate object across a set of conditions. In the film example, the film that connects an actor to the answer must also meet the production and country requirements. Giving the film a shared role in the conditions captures the dependency that motivated the example. This is the logical significance of preserving the film while adapting the semantic graph to binary relationships.

The authors also describe higher-order functional predicates. These represent operations on sets of results, including aggregation and set manipulation. Certain questions need an operation over items matching a condition as part of the answer. Counting, for example, depends both on determining which items qualify and on asking for the size of that set. A representation that only supplies basic relationship predicates would express the qualifications but would still need a means of requesting the count.

The logical representation maps deterministically to SPARQL. Once a logical expression is fixed, the conversion uses prescribed query constructs. The authors name COUNT for counting, ORDER BY for ordering, and FILTER for imposing a condition on values. Those constructs indicate what the translation can express. The earlier steps still determine whether the fixed expression describes the question correctly. A mistaken relation link can therefore lead to a query that obeys the conversion rules and expresses a different constraint from the one the user intended.

The account identifies the conversion as rule based and explains the kinds of predicates it supports. It gives neither a complete rule inventory nor a finished query that can be used to verify every detail of argument placement in the running example. The concrete contribution of the stage in the architecture is a logic interface for the aligned graph. Subsequent retrieval and inference can use that interface without having to interpret the original wording again.

Retrieve groundings and use domain information

LNN takes the logical expressions as input and can access the knowledge base. The paper describes an architecture in which neurons implement operations with a defined interpretation in weighted fuzzy logic or in classical first-order logic. First-order logic can express conditions about objects and the relations among them. Fuzzy logic allows truth to be represented by degrees. The authors describe those as capabilities of the reasoning architecture. They do not give numerical truth values or weights for the examples in DTQA.

The reasoner retrieves predicate groundings through SPARQL. A grounding gives a predicate concrete arguments. A logical condition may ask which films and people stand in a particular relation, for instance, while a database fact instantiates it with specific entries. Access to these instances supplies the facts on which the reasoner can operate. The paper describes retrieval at the level of predicates, so the link to SPARQL has a role within reasoning as well as in the conversion from the logical formalism to a query.

For type-based and geographic reasoning, the system draws on ontological information in the knowledge base. That information concerns how categories and relationships are organized. The authors also manually supplied general axioms for geographic scenarios. An axiom serves as a rule available to the reasoner. Given facts that fit the rule, the reasoner can use them to establish a further condition relevant to the question. The manually added axioms are therefore part of the resources available at answer time.

There are two distinct dependencies in such an operation. The logical expression must request the right relationship or condition, and the facts and rules must support establishing that condition. A good inference procedure can help with the latter once it has been given a suitable logical expression. It needs the earlier stages to identify what the inference is supposed to establish. The architecture makes that dependency visible by putting the logic interface between question interpretation and reasoning.

The paper gives examples of alignment from the question side and identifies the kinds of inference used on the database side. It leaves the individual geographic axioms, their triggers, and a complete derivation of an inferred answer unspecified. The visible path from the question to a predicate should therefore be read as an interpretation trace. A trace of the subsequent inference would also show the facts and rules that established the answer.

Where learning and manual work enter

The authors’ training claim concerns supervision at the level of the complete question-answering task. The parser learns to produce AMR graphs. The mention detector learns a narrower recognition task, and BLINK supplies named-entity disambiguation. SLING draws on statistical supervision for predicate-to-property mapping and combines it with additional lexical evidence. The outputs of these components can be put together without training a single procedure on natural-language questions paired with complete knowledge-base queries.

Several decisions come from the architecture or from rules. The unknown-to-entity path criterion defines which parts of the graph to process. Predicate collapsing handles relationships whose semantic description spreads across consecutive predicates. The AMR-to-Logic stage provides fixed transformations, and the geographic reasoning resources include axioms written by the authors. Reuse here involves both trained components and structured engineering.

The resulting division of work also explains the paper’s use of interpretability. A parsed graph can be inspected before any database mapping. Entity links, paths, and candidate properties offer different places to examine what the system understood. The final logic shows what conditions are passed to retrieval and inference. These are objects an investigator can refer to when tracing a decision, even when some of the components that produced them learned their own parameters.

Experiments and results

Test sets and systems in the comparison

The evaluation is at the level of final answers. The test set for QALD-9 contains 150 questions in the version the authors use. The LC-QuAD 1.0 test set contains 1,000 questions. On each benchmark, the system has to make all the intermediate decisions needed for its answer. The evaluation therefore puts parsing, database alignment, and execution together, as they would be used to answer a question.

The QALD-9 comparison includes gAnswer and WDAqua alongside DTQA. The authors describe gAnswer as a graph-driven approach and identify it as a leading baseline for QALD. On LC-QuAD, the comparison includes QAMP and WDAqua. QAMP is the graph-driven system the paper describes as using message passing and identifies as a leading system on that dataset. WDAqua is the table’s label for the baseline that appears on both benchmarks.

The baseline lineup matters to the meaning of the result. The ordinary F-score comparisons assess DTQA against systems the authors choose for their benchmark performance, with a different leading comparison in each setting. The shared WDAqua entries give both evaluations a point of reference, while each benchmark has its own questions and scores. The experimental table is a comparison of completed systems. The end-to-end query prediction approaches mentioned in the introduction have no result column.

The paper gives the test counts and the system-level results. It does not describe the tests through distributions of parsing constructions, forms of inference, or logical operators. The benchmark labels identify where the results come from. They do not tell the reader how much opportunity each test gives to a particular step in DTQA. For instance, an aggregate score alone cannot reveal whether the results depend heavily on the ability to reason geographically.

How to read the measures

The table reports precision, recall, and F-score on both benchmarks. Precision reflects the correctness of what the system returns. Recall reflects how well it recovers the expected answers. F-score is a combined measure, so an ordering by F-score can differ from an ordering by either of its constituent concerns. These measures give the reader a way to see both the overall comparison and the balance between returning correct answers and finding the answers expected by the test.

On QALD-9 the authors add Macro-F1-QALD, which they identify as a recommended measure for QALD evaluation. The paper reports it alongside the ordinary F-score as a separate outcome. The demonstration does not specify the full aggregation procedures for the reported metrics. The scores should be read under their table labels, with the published F-scores taken as reported values. The evaluation gives no Macro-F1-QALD scores for LC-QuAD.

QALD-9

On the QALD-9 test set, DTQA has the highest ordinary F-score shown in the paper. gAnswer follows, and WDAqua has the lowest F-score of the compared systems. The additional QALD measure gives the systems the same ordering.

QALD-9 test F-score by system

DTQA ranks ahead of gAnswer and WDAqua on the combined measure.

QALD-9 test F-score by systemWDAqua: 24.99WDAqua24.99gAnswer: 29.81gAnswer29.81DTQA (this paper): 30.88DTQA (this paper)30.88
The numbers
System or settingF-score
WDAqua24.99
gAnswer29.81
DTQA (this paper)30.88

Macro-F1-QALD on the QALD-9 test set

The additional QALD measure also places DTQA first.

Macro-F1-QALD on the QALD-9 test setWDAqua: 28.87WDAqua28.87gAnswer: 42.96gAnswer42.96DTQA (this paper): 45.33DTQA (this paper)45.33
The numbers
System or settingMacro-F1-QALD
WDAqua28.87
gAnswer42.96
DTQA (this paper)45.33

The QALD-9 precision values are 31.41 for DTQA, 29.34 for gAnswer, and 26.09 for WDAqua. On recall, gAnswer scores 32.68, DTQA scores 32.16, and WDAqua scores 26.7. Thus the precision leader and the recall leader differ. The favorable outcome for DTQA on the combined measures goes with stronger precision than either listed baseline and weaker recall than gAnswer.

The two combined measures support the comparison from different reported perspectives, but they come from the same benchmark. The result establishes the ordering under each measure on this test. It leaves open how frequently DTQA and gAnswer return different correct answers, whether they fail on the same questions, and how their behavior varies with the size of the expected answer set. Recovering those details would require more than the aggregate entries.

This matters because questions in the comparison are counted through answer performance. A lower recall score reflects weaker recovery under the reported evaluation. The table does not identify the process behind that result. A system could miss an answer after an incorrect property link, fail to produce a suitable query, or request appropriate facts and recover an incomplete set. Those are different explanations for a shortfall that looks similar in an aggregate comparison. No question-level diagnosis is supplied here.

LC-QuAD 1.0

DTQA again has the highest reported F-score on the LC-QuAD 1.0 test set. QAMP is the next system under that metric, followed by WDAqua. The result shows that the architecture’s favorable combined performance is present in both benchmark comparisons, with a different leading alternative on each.

LC-QuAD 1.0 test F-score by system

DTQA leads on F-score, while QAMP leads the accompanying recall comparison.

LC-QuAD 1.0 test F-score by systemWDAqua: 28.00WDAqua28.00QAMP: 33.00QAMP33.00DTQA (this paper): 33.72DTQA (this paper)33.72
The numbers
System or settingF-score
WDAqua28.00
QAMP33.00
DTQA (this paper)33.72

The precision scores on LC-QuAD are 33.94 for DTQA, 25.00 for QAMP, and 22.00 for WDAqua. The recall ordering runs the other way. QAMP has a recall of 50.00, WDAqua has 38.00, and DTQA has 34.99. QAMP is therefore the strongest system for recall in this table, and DTQA places behind both comparison systems on that measure. A reader interested primarily in answer coverage would draw a different ranking from a reader using the combined measure.

The authors describe DTQA as outperforming the alternatives across the metrics. The numerical results support its lead in precision and F-score on both datasets and in Macro-F1-QALD on QALD-9. They give the recall lead to gAnswer on QALD-9 and to QAMP on LC-QuAD. Keeping the measures separate preserves the main positive result while accounting for the difference between combined performance and coverage.

What the full-system comparison supports

The authors interpret the results on the different datasets in light of AMR’s ability to represent varied sentence structures. The evaluation shows that the assembled system can compete on each test set. It gives a practical demonstration that a general semantic parser can serve as the first stage of a database question-answering pipeline whose final stage has access to a reasoner. The ranking of finished systems supplies the evidence for that claim.

A stronger attribution would require keeping the rest of DTQA fixed while changing how the question is represented. The reported comparisons give every system its own combination of decisions about interpreting the question and retrieving facts. They also leave the distributions of syntactic and semantic constructions unmeasured. The results on both datasets are consistent with the authors’ explanation about sentence structure, while the effect of representation by itself remains undetermined.

The scores are point results. The paper gives no intervals or repeated-run analysis to characterize their variability. The clearest comparison is therefore the displayed ordering of systems on the named test sets under the reported measures. The differences among the measures are observable directly. The stability or cause of the ranking would require evidence the evaluation does not supply.

What the ablations show

The paper reports no ablations, and its analyses consist of worked examples of graph alignment and benchmark comparisons among complete systems.

What is visible in the worked examples

In the film example, the authors show parts of the parse that survive and a predicate that is omitted. That makes the basis of path selection inspectable. A reader can see that the starring connection is retained because it leads toward a linked country and a linked producer through the film. The acting predicate falls outside those routes. The example gives a concrete test of whether the stated selection idea explains the shown transformation.

This is evidence about the mechanism on that graph. A performance comparison for path selection would need a version of the same system that uses a different rule about which parts of the parse to keep. Such a comparison could expose the tradeoff at issue. Keeping additional material might introduce conditions that the question never required. Keeping too little might remove a condition needed to restrict the answers. The paper gives a case where leaving material out has an intelligible purpose. It leaves the prevalence and practical effects of both possibilities unmeasured.

The cocoa-bean example examines a transformation within a retained route. Its contribution is to show exactly which semantic pieces become a composite edge and why they belong together. The example illustrates how the relation linker can receive a compact description that still contains the notions of place, payment, and instrument. It ends at the description of the edge, so it leaves the quality of the eventual link and the effect on answer accuracy unresolved. There is no benchmark comparison to show how performance changes when predicates are kept separate.

The examples also distinguish evidence about selection from evidence about mapping. The named mappings for starring and production in the film question show what SLING supplies after the paths have been obtained. They do not compare the statistical source, the neural component, or the embedding-based source within SLING. A candidate property may have support from several of them. The reported system-level evaluation provides no way to decide whether a given source of evidence was decisive.

What the comparisons leave open about reasoning

The inclusion of a reasoner makes a more focused comparison possible in principle. Given the same linked predicates and constraints, retrieval with and without type or geographic inference could yield different answers. Such a comparison would help establish whether the inference mechanisms change the benchmark outcome. The paper instead presents scores from the full configuration and explains what resources LNN can draw upon.

That distinction is especially important for an answer supported by an axiom. An example of a complete derivation would identify the facts retrieved, the rule applied, and the conclusion those facts support. The film and cocoa-bean examples address interpretation and alignment. They reveal how information gets to the later stages, while leaving any contribution of geographic or type reasoning to those examples unspecified. The evaluation similarly leaves open the share of benchmark answers attributable to an inference.

Precision and recall supply a system-level pattern that is informative without having the status of an ablation. DTQA leads precision on the reported tests, and other systems lead recall. Path selection is one possible place to look for a mechanism affecting coverage, because it chooses which constraints to translate. Entity linking, relation ranking, logical conversion, and retrieval also have direct effects on which answers can be returned. Assigning the pattern to any one of these stages would require intermediate error data or a controlled change to the pipeline. The comparison gives the outcome such an analysis would need to explain.

Limitations

Constraints acknowledged by the authors

The authors explicitly identify the mismatch between AMR and a database such as DBpedia. One part of the mismatch concerns the organization of arguments. A frame may collect several arguments around an event, while a database property typically connects a pair of items. The other concerns detail. The graph’s semantic analysis may distinguish pieces of a relationship that the database expresses together. Path extraction and predicate collapsing are responses to these difficulties. The paper illustrates their use on particular graph structures and leaves their coverage across other structures open.

The authors also state that the geographic reasoning uses manually added axioms. The system’s access to those rules depends on the work that went into specifying them. That qualification matters when considering questions that would need a different kind of inference, or a knowledge base with a different organization of geographic facts. The paper establishes the presence and manual origin of general axioms for the geographic scenarios, with their content and scope left undescribed.

The training advantage the authors identify is specific to the absence of a full question-to-query training requirement. They make clear that the components are trained for their own tasks. The parser, the detector of entity mentions, and the relation linker all rely on specialized learning or evidence. The account gives a division of labor for supervision. It leaves the total amount of data and manual preparation needed to assemble the system unquantified.

Limits of the evidence about which questions benefit

The test results characterize the full system on QALD-9 and LC-QuAD 1.0. They come without a breakdown by the kinds of question DTQA was designed to handle. For instance, the method can represent counting, ordering, and filtering, but the evaluation provides no separate result for any of those operations. Representing an operation is necessary for using it correctly. Its reliability also depends on recognizing when the question calls for it, forming the right set of inputs, and applying it to the intended values.

The same applies to the claim about different sentence structures. A semantic representation is meant to lessen the dependence of query construction on surface grammar. The reported evaluation does not group questions by construction or measure how far the questions differ from the material used to train individual components. The results demonstrate use across the benchmark settings. They leave the authors’ proposed explanation about structural generalization untested as a distinct hypothesis.

There is also no question-level analysis of the higher precision and weaker recall relative to the recall leaders. The aggregate figures give no account of where the missing answers originate. For instance, linking the right entities can coexist with choosing the wrong property, and a correct property can coexist with a missing condition. In a question with several conditions, an early mistake can make the final set very different from what the question asks for. These are possible consequences of the design. Their relative frequency is unknown.

Interpretability has a related evidential limit. The architectural description identifies intermediate forms through which a decision can be traced. It does not report a study in which people use those forms to explain an answer, find the source of a mistake, or correct it. The visibility of a graph or logical expression makes such an investigation possible. It leaves open how much of a learned component’s decision can be explained from its output, and how easily an investigator can follow errors through several dependent stages.

Limits of the demonstration of logical inference

The connection from logic to facts is described at the level of components. A reasoner receives expressions and retrieves groundings, and the account names type and geographic reasoning as capabilities used by DTQA. It leaves unanswered how frequently a benchmark result requires any rule beyond the facts accessible through the query, or how often a rule repairs a gap in those facts. The evaluation provides no answer-level indication of where an inference contributed.

A further question concerns how upstream uncertainty reaches the reasoner. Relation linking produces ranked alternatives. LNN supports weighted logical operations. The paper gives no procedure connecting the ranking of relation candidates to logical weights or specifying how different candidate expressions are compared during reasoning. A reader can understand that each stage has these capabilities while leaving their possible coordination undecided.

The rule-based conversion raises a separate issue of coverage. The authors describe a deterministic translation into SPARQL and name several constructs, but the complete set of translation rules and the conditions for choosing them are unspecified. This is enough to understand the role of logical conversion in the architecture. It leaves the treatment of question structures beyond the demonstrations hard to reconstruct from the paper alone.

Transfer, reproduction, and operating cost

The pipeline is explained through DBpedia, with entity identifiers, property mappings, and ontological information tied to that resource. The parser gives the architecture one task-general component. Entity links, property alignments, and reasoning resources still depend on the target knowledge base. The introduction’s mention of Wikidata establishes its relevance to the task in general. The reported evaluation leaves transfer to it, and the work of adapting the linkers and rules, open.

A complete reproduction would also need details below the architectural level. Among the unspecified choices are the number of relation candidates retained, the handling of combinations of candidates, and the full set of rules used to generate and execute logical expressions. The account of training gives the kinds of resources used for individual components without a consolidated specification of their data and settings. This limits how precisely a reader can recreate the evaluated configuration from the demonstration alone.

The paper supplies benchmark comparisons for answer quality. It gives no runtime or resource measurements for the sequence of parsing, linking, query translation, retrieval, and inference. The cost of the different stages could matter to someone choosing how to use the architecture, especially when candidate relations or further database accesses are involved. The experiments leave that practical comparison open alongside the question of how much supervision and manual rule construction the full system requires.

What came after

Leveraging Abstract Meaning Representation for KBQA cites the DTQA paper and is also dated 2021. Its subject carries forward the question of how to use a general representation of sentence meaning for knowledge-base question answering. The connection is specific to the intermediate representation. Both titles frame AMR as a means of getting from what a question expresses to information a knowledge base can supply.

That relationship is the extent of the documented continuation here. The citing work’s title and citation establish its focus, while its treatment of path extraction, relation linking, and logical inference remains unspecified. In particular, the citation leaves open whether it adopted the same answer-to-entity paths or used the same reasoner. The shared publication year also leaves the sequence of technical development unresolved.

Cite

Cite as Ibrahim Abdelaziz, Srinivas Ravishankar, Pavan Kapanipathi, Salim Roukos and Alexander Gray. 2021. A Semantic Parsing and Reasoning-Based Approach to Knowledge Base Question Answering. Proceedings of the AAAI Conference on Artificial Intelligence.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1609/aaai.v35i18.17988

@inproceedings{abdelaziz2021semantic,
  title = {{A Semantic Parsing and Reasoning-Based Approach to Knowledge Base Question Answering}},
  author = {Ibrahim Abdelaziz, Srinivas Ravishankar, Pavan Kapanipathi, Salim Roukos and Alexander Gray},
  booktitle = {Proceedings of the AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i18.17988},
  url = {https://doi.org/10.1609/aaai.v35i18.17988}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/abdelaziz-2021-semantic-parsing-reasoning-based-approach/