Elamur Research

EWEK-QA : Enhanced Web and Efficient Knowledge Graph Retrieval for Citation-based Question Answering Systems

Paper · 2024 · Mohammad Dehghan, Mohammad Alomrani, Sunyam Bagga et al.

Summary

A search result can point to the right page and still leave a question unanswered. The useful sentence might be separated from the date or name that gives it meaning. A question may also require connecting facts that appear in different places. EWEK-QA addresses both problems. It improves how a system extracts passages from webpages and adds a second source of evidence, a knowledge graph. The system then writes an answer with citations to the evidence it received. The authors ask whether this combination can improve answer quality while keeping retrieval fast enough for interactive question answering.

The web retriever proposes passages in two ways. A parser follows the structure of the page and tries to preserve whole sentences. A trained extractor looks inside the page for a span that would help answer the particular question. The system ranks their candidates together and removes near duplicates. In parallel, a graph retriever follows connections in Freebase, keeping promising paths by comparing the meaning of their entities and relations with the question. The graph retriever runs without calling a large language model. The resulting graph facts and web passages go to a single answer composer, which can cite either source.

The combined system reaches an average Hits@1 of 57.4 across the paper’s question-answering benchmarks, compared with 45.8 for the web-only WebGLM baseline and 54.3 for Think-on-Graph with ChatGPT. Hits@1 here checks whether the expected answer appears in the generated response. The advantage varies by dataset. Giving the system both sources improves its result over its own web-only configuration on WebQSP, CWQ and WebQuestions, while web evidence alone scores higher on Natural Questions. On the hand-picked set of 92 difficult questions, human judges mark 0.74 of the combined system’s answers fully correct, compared with 0.53 for WebGLM. In a separate passage evaluation, the combined web retriever generally supplies evidence that is more pertinent and more complete than the original WebGLM retriever supplies.

The speed comparison depends on which system does the searching. On the local WebQSP efficiency sample, EWEK-QA with the WebGLM-10B composer averages 40 seconds per question, while Think-on-Graph with LLaMA-2-13B averages 128.7 seconds. EWEK-QA makes one call to compose an answer, while the graph-search baseline also calls its generator during retrieval. Citation analysis shows that web passages supply most of the cited evidence, with graph facts cited on a substantial share of questions. An automated check estimates average citation support at 89.6% across the datasets it examines. The answer scores and citation check measure different things. A response can contain the expected answer while giving an inadequate citation, and a well-supported claim can still leave part of the question unanswered.

Deep dive: EWEK-QA : Enhanced Web and Efficient Knowledge Graph Retrieval for Citation-based Question Answering Systems

EWEK-QA combines web passages and knowledge graph facts to answer questions with citations, using a single call to write the answer. · about 35 minutes to read

The problem and its context

Getting an answer and showing what supports it

The paper starts from a practical difficulty. A system can produce a fluent answer from information acquired during training, but that information can be incomplete or out of date. It can also produce a plausible claim with no dependable basis. For a reader who needs to verify the result, the wording of the answer offers little help in distinguishing those cases. Looking up outside material gives the system a chance to work with information that is available at the time of the query. The paper places this approach within retrieval-augmented generation.

The authors distinguish supplying information to the generator from showing the reader where that information appears. They discuss REALM, RAG and Atlas as earlier approaches that incorporated external evidence into generation. Citation-based systems add a further requirement. They produce references alongside the answer, so that a reader can compare an assertion with a particular piece of retrieved material. These references offer a way to inspect the proposed support for an answer. The evidence itself and the scope of the cited claim still matter. The earlier retrieval work includes REALM and Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.

Several earlier systems already treated browsing or citation as part of answering. WebGPT learned to browse relevant pages and give references in its responses to open-domain questions. GopherCite used human preferences to train for responses supported by citations. The paper presents both as examples of an approach that used large generators. WebGLM pursued the same broad goal with a smaller, openly available system. This made it a natural starting point for the authors, who wanted to improve the evidence supplied to the composer while retaining the main efficiency advantage of WebGLM. The browser-assisted predecessor is WebGPT.

That choice focuses attention on an intermediate step of question answering. A system may find relevant pages yet extract poor evidence from them. A page break or a line break is a useful cue for locating a readable passage, but the text on either side may still belong together. A biographical line can provide a name while the date range that resolves the question appears elsewhere. A page about the right subject may also contain sections concerned with a completely different aspect of it. Bringing the page into the search results solves the first retrieval problem. Finding a short passage that contains the fact and the context needed to interpret it solves another.

The distinction matters because the composer receives a limited selection of passages. If a necessary detail falls outside a selected passage, a correct answer may depend on the composer supplying it from elsewhere. If the selection contains several versions of the same partial fact, giving it more passages may add little. Citation exposes this failure in a concrete form. A reference can point to a passage that names the right person or place while leaving the actual question unresolved. EWEK-QA treats passage construction as part of retrieving evidence, before the system makes any decision about what to say.

Why search a graph as well as the web?

A graph represents facts as relationships. An entity such as a film can be connected to its director and to other entities associated with the film. A question that supplies a clue about a character and another clue about the director may require finding the film that connects them. In the terminology of the paper, that is a multi-hop question. A hop follows a relation from one entity to another. More broadly, evidence for such a question can also be spread across several web passages. The important feature of the question is that resolving it takes a combination of facts. The paper uses HotpotQA to study some of these questions in an open-domain setting.

Graphs give the retrieval system a way to follow explicit links. Their usefulness depends on the entities and relationships they represent. The paper’s example involving a mosque and a mansion illustrates the coverage problem. A graph may contain architectural associations for both buildings, while web passages state the neighborhood of each. The web can furnish the comparison even if the graph facts concern the wrong relationship. A graph can be especially convenient when it happens to contain the exact chain a question calls for. These different kinds of coverage motivate searching both sources.

The authors describe earlier efforts to combine graphs with language generation at several stages. Some systems used graph neural networks to bring representations of entities and relationships into training. The authors associate these approaches with substantial task-specific training. Other systems brought graph facts into the prompt, so that the generator could use them when answering. KB-Binder generated a structured query for the knowledge base. KAPING ranked nearby triples and supplied relevant ones as context. KD-CoT used graph information to check and revise a chain of reasoning. The graph-training line includes QA-GNN.

Other earlier systems sought larger structures than a set of immediately adjacent facts. MindMap used retrieved subgraphs to guide reasoning. RoG retrieved paths using plans expressed in terms of graph relations. Think-on-Graph, abbreviated ToG, used beam search to explore promising paths and called a generator to help choose which paths to pursue. It could also ask whether the current paths were sufficient to answer the question. This gave ToG a mechanism for inspecting the progress of its search. For EWEK-QA, the issue was how to retain useful graph exploration at the cost of a fast retrieval stage.

A beam search keeps a limited set of promising candidates and expands them. In a graph with many possible neighbors, these decisions recur: which relation looks relevant, which entity should be followed, and whether a discovered path answers the question. Calling a generator repeatedly makes the cost of reaching a final answer depend on the search itself. The paper also raises expense and privacy concerns about reliance on a closed service, especially for sensitive queries. EWEK-QA sets up a simpler division of labor. Retrieval identifies candidate evidence with specialized scoring components, and composition uses the retrieved material to produce the answer.

The method, step by step

From the question to the evidence

At run time, the question goes to a web branch and a Freebase branch. The web branch searches for pages, extracts candidate passages and reduces them to a short ranked selection. The graph branch starts with entities associated with the question, explores their surroundings and returns a set of facts from the paths it retains. The branches work concurrently. Once retrieval finishes, the composer gets the question and a common sequence of numbered evidence entries. This format lets the answer refer to a web passage and to a collection of graph facts in the same response.

The paper calls each web passage a quote because it is a piece of source text available for citation. A candidate quote is an intermediate result. It can come from the page’s layout or from a learned estimate of where the helpful evidence lies. Ranking and deduplication determine which candidates reach the composer. The graph branch has its own intermediate candidates, in the form of relations, entities and paths. Its output is a collection of triples. A triple names an entity, the relationship, and the entity at the other end.

How EWEK-QA retrieves evidence and writes an answer

The steps in order.

How EWEK-QA retrieves evidence and writes an answerStep 1: Search the web and identify graph starting entities1. Search the web and identify graph starting entitiesStep 2: Fetch pages and propose passages in parallel2. Fetch pages and propose passages in parallelStep 3: Filter, rerank and deduplicate the web passages3. Filter, rerank and deduplicate the web passagesStep 4: Explore graph paths using similarity to the question4. Explore graph paths using similarity to the questionStep 5: Place graph triples before numbered web passages5. Place graph triples before numbered web passagesStep 6: Compose the answer and cite its supporting entries6. Compose the answer and cite its supporting entries

Extracting web passages from layout and meaning

Bing supplies the search results. The implementation uses its search API and fetches page content with BeautifulSoup. The paper describes parallel scraping and parsing, with each page handled independently. It also describes caching search results and scraped content in a database. These are relevant design choices because web retrieval covers more work than applying a passage scorer to text that has already been collected. It includes reaching the pages and turning them into inputs the scorers can process.

The Paragraph Splitter, abbreviated PS, first looks at where the page marks off blocks of text. It uses line breaks and paragraph tags as cues. It discards passages shorter than 10 tokens. A token here is a unit of text as divided for processing, so this length rule is distinct from a character limit. A passage above 80 tokens is split into shorter passages with sentence boundaries respected. The intent is to keep useful readable units and avoid cutting off their sentences solely because a length limit has been reached.

The original WebGLM parser also used line breaks. Its implementation removed lines shorter than 50 characters and truncated long lines after their first 1200 characters. The EWEK-QA changes affect which text survives extraction and where a passage starts and ends. In a long block containing background before the requested fact, retaining the earlier characters can leave the key statement outside the resulting passage. Splitting at a sentence boundary creates separate candidates whose relevance can be judged later. The same splitting can still separate useful adjoining statements if the page places them in different blocks.

The Evidence Extractor, abbreviated EE, gives the system another way to set those boundaries. It receives the question together with page text and predicts a source span that is useful for answering. The task resembles machine reading comprehension, where a system can be trained to find the portion of a context that answers a question. Here the intended output is a passage of evidence for the composer. That passage can include the surrounding explanation needed to determine why a fact answers the question. The paper relates this design to the span-prediction setup used in BERT.

The same page can therefore yield different candidates for different questions through EE. PS will propose candidates based on how the text is arranged on that page. In the paper’s illustration of the two extraction routes, a boundary imposed by markup can leave the heuristic passage incomplete. A query-conditioned span can retain a complete piece of evidence in that situation. Conversely, a well-formed paragraph can already contain exactly the information needed. EWEK-QA makes both candidates available and lets the next stage decide which passages to keep.

Training the Evidence Extractor

The authors build supervision from MS Marco. The paper describes it as a collection of about 1M queries from Bing search logs. Each query comes with 10 candidate passages, and editors use suitable material to write an answer. A metadata field records which passages the editors used. The EWEK-QA training procedure turns those selections into examples of spans worth extracting from a webpage. The underlying data source is MS Marco.

is_selected = 1

The name is_selected denotes the metadata field for a candidate passage. The equals sign specifies the value required for inclusion. The value 1 records that the passage was used by an editor composing an answer. The authors create 110K training instances from MS Marco’s Train split using passages with this value. A query with several selected passages can contribute an instance for each selected passage and its source page.

(qᵢ, sᵢ, cᵢ)

The parentheses and commas group the parts of a training instance. The subscript i indexes the instance. The symbol qᵢ is the query, sᵢ is the passage span used by the editor, and cᵢ is the full text of the webpage from which that span came. The paper uses uᵢ for the source webpage associated with cᵢ. During training, the query and page text are the inputs and the span is the prediction target.

This setup teaches the extractor to recover material that helped somebody write an answer. The target span can be longer than the name, place or date that would receive credit in a short-answer benchmark. The training signal therefore fits the role of the extractor in EWEK-QA. It is looking for a part of the source another component can use, and that part must be locatable in the page itself.

The authors experiment with DeBERTa and Longformer for extraction. The retriever described in the main method uses a pretrained reading-comprehension version of DeBERTa adapted to this evidence task. Training lasts one epoch on four V100 GPUs, with a batch size of 32. The authors select the strongest candidate using F1 on a held-out validation set of 10k instances. That is the selection criterion for the span extractor, separate from the Hits@1 scores for final answers. The extractor used in the method is based on DeBERTa.

3 × 10⁻⁵

This is the learning rate used in extractor training. The multiplication sign combines the coefficient 3 with a power of the base 10, and the superscript −5 is the exponent. The rate sets the scale of parameter updates during training.

Filtering, reranking and removing duplicates

Extraction can produce a substantial pool of candidates. EWEK-QA first applies a cross-encoder to filter that pool. A cross-encoder jointly processes the question and a passage so it can score how well they go together. The filter is a six-layer MiniLM with 22M parameters. It retains the most promising 70 passages for a second cross-encoder, a larger DeBERTa with 900M parameters. The authors train both scoring components on MS Marco for passage ranking. The first scorer is based on MiniLM.

The two stages serve different purposes. The filter reduces the number of question–passage pairs that reach the more expensive scorer. The reranker can then spend more computation distinguishing among plausible candidates. This order matters when running both PS and EE. Adding a source of candidates could raise the cost of ranking each page’s output. Applying the large scorer to the shorter list lets the system pursue broader extraction while keeping its reranking workload bounded.

After reranking, a deduplicator compares passages with one another. It uses a six-layer MiniLM as a bi-encoder, which produces a separate embedding for each passage. An embedding is a numerical representation used here to compare the meaning of text. The system can use a passage’s representation in comparisons with multiple other passages. This is a different task from scoring how pertinent a passage is to a question. A pair of passages can both score well for relevance while giving the composer essentially the same evidence. The deduplicator relies on semantic similarity.

cosine similarity > 0.9

Cosine similarity compares the direction of the embeddings of a pair of passages. The greater-than sign indicates that the removal rule applies above the threshold, and 0.9 is the cutoff used in the paper. A pair that exceeds it triggers removal of redundant material. Such redundancy can occur when the two extractors select overlapping text from the same page. The procedure aims to leave room for other useful passages.

The final web retrieval settings specify the top 5 relevant quotes with a maximum length of 128 tokens. This maximum applies to the material selected for use. The Paragraph Splitter’s 80-token rule applies earlier, when that branch constructs its candidates. The pipeline therefore has limits at multiple points, each acting on a different set of texts. An early boundary rule influences what the scorer has available, and the final budget limits how much ranked evidence the composer receives.

Finding a small part of Freebase

The graph branch is called ToG-E because it adapts the beam search used by Think-on-Graph. The search starts from entities associated with the question. For HotpotQA and Natural Questions, where the experiments lack supplied starting entities, the authors use ReFinED to identify Wikidata entities mentioned in a query. They map those entities to Freebase using the Freebase ID relation. Queries with no Freebase entity found through this process are discarded in the experimental setup. Wikidata supplies the mapping step, and Freebase is the graph searched for answer evidence.

At each expansion, the search considers promising relations and entities connected to its current candidates. ToG-E embeds the question as well as the candidate relation and entity text. The cosine similarity of these embeddings to the question provides scores for pruning, the step that discards less promising choices. A relation whose meaning is close to what the question asks can be favored over a relation that merely happens to be attached to the right person or place. Entity scoring provides a further way to focus the search. These representations come from Sentence-BERT.

For a reader following the algorithm, it helps to distinguish the width from the depth of the search. Width controls how many promising paths can survive each round. Depth controls how far the search is allowed to follow connections. The experiments set both maximum width and maximum depth to 3. Keeping paths makes it possible to retrieve facts beyond the immediate neighbors of an entity. Keeping only a narrow beam means an early ranking decision can determine whether a later, more useful connection is ever seen.

Original ToG asks a generator to score candidates and to assess whether the paths found so far can answer the question. It can stop before the maximum depth. It can also seek a response from knowledge stored by the generator if it judges the retrieved facts insufficient. ToG-E replaces the pruning calls with embedding similarity, omits the generator-based stopping check, and returns the resulting subgraph as triples even when their relevance is uncertain. Its output is evidence for another stage to consider. The authors report that this graph retrieval procedure needs no supervised training on a graph question-answering dataset.

The paper characterizes the call cost of ToG’s repeated graph exploration with the following expression.

O(N D)

The symbol O denotes an asymptotic order of growth. N is the beam width, D is the maximum search depth, and the adjacent symbols indicate multiplication. The expression describes how the number of costly calls can grow as the search keeps more paths or explores them for more steps.

2N D + D + 1

This is the paper’s stated upper count of calls for ToG. N and D again denote beam width and maximum depth. The product 2N D scales with both search controls, D adds a term that scales with depth, and 1 is the constant call term. The plus signs add these contributions. This bound concerns calls in the ToG procedure. Actual runs can stop early, so the bound and the experimentally observed average measure different things.

Composing an answer from both sources

The final input places the graph triples together in the first evidence entry when graph retrieval is enabled. Web quotes occupy the following entries. Putting the triples in a reference slot gives the answer composer a way to cite graph evidence using the same convention it uses for passages. Because the triples are bundled, a reference to that entry can point to several facts at once. The reader can inspect those facts for the asserted connection.

The default composer is WebGLM-10B. It was fine-tuned to answer questions from a set of 5 to 10 relevant passages and to ground the response in them. The appendix shows how the authors present the references and question as separate parts of its prompt. The alternative LLaMA-2-13B composer receives instructions to cite the numbered entries it uses. In either case, composition is the single large generation call in EWEK-QA. The design asks the composer to base the response on the collected evidence. Its actual use of that evidence is examined with the citation analysis.

For the comparison of composers, the authors also use WebGLM-2B and adapt the chat version of LLaMA-2-13B. The latter is fine-tuned on WebGLM-QA, which supplies questions, reference passages, and answers written to be grounded in those passages. The fine-tuning uses 8 V100 GPUs. This experiment separates changing the writer of the answer from changing the retrieval method. The authors identify EWEK-QA as the project name under which they plan to release the code. Their alternative composer is based on Llama 2.

Experiments and results

Datasets, comparison systems and scoring

The automatic evaluation asks whether the complete system can answer questions from both graph-oriented and open-domain benchmarks. The graph group consists of WebQSP, CWQ, GrailQA and SimpleQA. The open-domain group consists of HotpotQA, WebQuestions and Natural Questions. The authors use Freebase for graph evidence throughout. For HotpotQA, they withhold the context that comes with the questions so the experiments test retrieval as well as composition. For HotpotQA and Natural Questions, the entity mapping requirement affects which questions enter the reported evaluation. The open-domain group includes Natural Questions.

The main evaluation uses full test sets for WebQSP and CWQ. For Natural Questions, it uses a random subset of 400 examples. The general sampling rule for the remaining datasets is 1000 random instances, chosen to manage the computational cost of evaluation. This matters when comparing results with studies that run on different subsets or give systems different evidence. The paper also has a separate local efficiency comparison whose table describes its Hits@1 scores as measured on 1000 samples. The main and local comparisons are best read using the conditions attached to each.

The automatic metric, Hits@1, awards credit when the expected answer appears inside the generated response. It works with a citation-based system that produces prose, since a response can contain a short target answer along with an explanation. The metric counts the answer hit. It does not award separate credit for the explanation or its references. The paper defines the per-question rule as follows.

Hits@1 = 1 if the target answer occurs in the response, otherwise 0

Hits@1 is the answer-hit metric. The @1 is part of its reported name. The equals sign introduces the scoring rule for an individual question. The value 1 records that the expected answer appears, and 0 records that it does not. The dataset results report performance across the evaluated questions.

Two prompting baselines use ChatGPT without external retrieval. Standard input-output prompting presents examples of the expected task. Chain-of-thought prompting encourages a written reasoning process. The paper uses 6 in-context examples for the prompting comparison. These baselines show how much progress prompting makes under the test conditions when the system has no retrieved evidence to consult. The earlier prompting approaches are Language Models are Few-Shot Learners and Chain-of-Thought Prompting.

The external-knowledge baselines answer in different ways. WebGLM composes from web passages. ToG uses graph search guided by a generator and can answer after evaluating the retrieved paths. KD-CoT uses external evidence to support its reasoning traces. DeCAF jointly produces an answer and a query representation for graph-based answering, with dataset-specific fine-tuning. The authors reproduce the method outputs for their evaluation except for DeCAF and KD-CoT. They score existing DeCAF outputs with their evaluation script and take KD-CoT figures from its paper. The comparisons consequently include systems with different training and evaluation provenance.

EWEK-QA is tested with graph triples alone, web quotes alone, and both sources together. Its default composer is also the WebGLM-10B composer used by the WebGLM baseline. This makes the web-only comparison informative about their different retrieval pipelines. The comparison with ToG has broader differences, including how graph exploration is scored and how the response is produced. The authors use ChatGPT for ToG in the main accuracy comparison and LLaMA-2-13B for ToG in the local efficiency comparison.

Automatic answer accuracy

The mean Hits@1 across the benchmark suite is 57.4 for EWEK-QA with both sources, 50.2 for EWEK-QA with web evidence, and 45.2 for EWEK-QA with graph evidence. WebGLM averages 45.8, while ToG with ChatGPT averages 54.3. The prompting baselines average 40.1 for standard prompting and 41.0 for chain-of-thought prompting. In this evaluation, the larger change comes from the retrieval and composition setup than from asking the no-retrieval baseline to write out its reasoning.

Average Hits@1 across the question-answering benchmarks

EWEK-QA with web and graph evidence has the highest reported average among systems scored across the full benchmark suite.

Average Hits@1 across the question-answering benchmarksStandard prompting with ChatGPT: 40.1Standard prompting with ChatGPT40.1Chain-of-thought prompting with ChatGPT: 41.0Chain-of-thought prompting with ChatGPT41.0WebGLM: 45.8WebGLM45.8Think-on-Graph with ChatGPT: 54.3Think-on-Graph with ChatGPT54.3EWEK-QA with graph evidence: 45.2EWEK-QA with graph evidence45.2EWEK-QA with web evidence: 50.2EWEK-QA with web evidence50.2EWEK-QA with web and graph evidence (this paper): 57.4EWEK-QA with web and graph evidence(this paper)57.4
The numbers
System or settingHits@1 accuracy %
Standard prompting with ChatGPT40.1
Chain-of-thought prompting with ChatGPT41.0
WebGLM45.8
Think-on-Graph with ChatGPT54.3
EWEK-QA with graph evidence45.2
EWEK-QA with web evidence50.2
EWEK-QA with web and graph evidence (this paper)57.4

WebQSP and CWQ illustrate two ways that combining sources helps. On the full WebQSP test set, WebGLM scores 63.5, EWEK-QA with web evidence scores 68.0, and the combined configuration scores 71.3. ToG with ChatGPT scores 74.1, and DeCAF reports 76.6. On the full CWQ test set, EWEK-QA with graphs alone scores 40.1 and with web passages alone scores 48.1. Together they reach 52.5, compared with 42.3 for WebGLM and 46.7 for ToG with ChatGPT. DeCAF’s 56.6 is higher. The combined configuration improves the general-purpose WebGLM pipeline on both benchmarks, while the strongest specialist result on each belongs to DeCAF.

On the other graph benchmarks, the graph-only EWEK-QA configuration has the stronger result within the EWEK-QA family. On GrailQA, it scores 70.0, the combined configuration scores 60.4, and ToG with ChatGPT scores 70.8. On SimpleQA, the graph-only configuration scores 57.9 and the combined version scores 50.9, while ToG with ChatGPT scores 56.7. WebGLM scores 34.3 on GrailQA and 29.7 on SimpleQA. These datasets show the value of graph retrieval particularly clearly. They also show that adding web evidence can lower the score when a graph already supplies strong evidence.

The open-domain results change the picture. On WebQuestions, EWEK-QA reaches 61.2 with both sources, compared with 58.1 for its web-only configuration, 59.3 for ToG with ChatGPT, and 54.3 for WebGLM. On HotpotQA, the combination scores 43.6 and the web-only EWEK-QA configuration scores 42.9. WebGLM scores 38.7, ToG with ChatGPT scores 28.3, and EWEK-QA with only triples scores 20.6. The gap between EWEK-QA’s own graph and web configurations on HotpotQA puts the source of the gain in context. The improved web passages do much of the work on this open-domain multi-hop task.

Natural Questions is the open-domain case in which EWEK-QA’s web-only setting is strongest. Its Hits@1 is 64.7, compared with 62.5 for the combined setting and 57.6 for WebGLM. ToG with ChatGPT gets 44.8 and EWEK-QA with graph evidence gets 17.8. The evidence source that best fits the question distribution can be more important than simply giving the composer additional material. Across the suite, the hybrid configuration offers the highest reported overall average. Per-dataset scores give a more exact account of where that advantage comes from.

What human judges count as correct

The authors also ask human annotators to assess complete answers. Four professional annotators work on the answer and passage evaluations. The paper describes their selection from 20 candidates, task-specific examples and instructions, and monitoring by a domain expert. The answer evaluation uses a purpose-built set of 92 challenging queries, which allows the authors to include cases where a correct response needs more than a recognizable answer string.

Of the 40 questions in the set, 20 are factual questions adapted from SimpleQA and CWQ, while the other 20 come from CWQ and require factual reasoning. The authors add 17 deliberately verbose factual queries and 20 reasoning questions with a yes-or-no answer. Another 15 queries concern relatively recent facts. The mixture gives the test a broader range of answer forms than a test restricted to short graph entity names.

The annotators choose among fully correct, partially or fully incorrect, and unable to answer. The last category, called IDK in the paper, is reserved for responses that indicate an inability to answer. A correct answer can include additional information. A response that gets only part of the required answer right falls into the incorrect category. The instructions aim to make the entire response complete and accurate.

Human-judged correct answers on the challenging query set

The combined EWEK-QA configuration has the highest share of answers judged fully correct.

Human-judged correct answers on the challenging query setStandard prompting with ChatGPT: 0.41Standard prompting with ChatGPT0.41Chain-of-thought prompting with ChatGPT: 0.40Chain-of-thought prompting with ChatGPT0.40Think-on-Graph: 0.50Think-on-Graph0.50WebGLM: 0.53WebGLM0.53EWEK-QA with graph evidence: 0.52EWEK-QA with graph evidence0.52EWEK-QA with web evidence: 0.58EWEK-QA with web evidence0.58EWEK-QA with web and graph evidence (this paper): 0.74EWEK-QA with web and graph evidence(this paper)0.74
The numbers
System or settingproportion correct
Standard prompting with ChatGPT0.41
Chain-of-thought prompting with ChatGPT0.40
Think-on-Graph0.50
WebGLM0.53
EWEK-QA with graph evidence0.52
EWEK-QA with web evidence0.58
EWEK-QA with web and graph evidence (this paper)0.74

The distribution of the remaining judgments matters. ToG has an IDK proportion of 0.25, while WebGLM and the combined EWEK-QA system each have 0.00. The combined system has an incorrect proportion of 0.26, compared with 0.47 for WebGLM. On this set, the combined system’s improvement shows up as fewer answers judged wrong. The authors suggest that ToG’s greater share of IDK responses may relate to what happens when its graph search is unsuccessful and it turns to information stored in the generator. That explanation is their interpretation of the outputs.

The paper’s film example shows how an answer can appear plausible while connecting the wrong facts. The question uses the character Ajila and director Angelina Jolie to identify a film. WebGLM answers Girl, Interrupted and elaborates on Jolie’s character in that film. ToG and EWEK-QA answer In the Land of Blood and Honey. The EWEK-QA response includes evidence references. The value of the example lies in the distinction between recognizing the famous name and making the particular connection the question requires. The aggregate evaluations indicate how frequently systems succeeded across the tested queries.

How much time the systems take

In the local efficiency experiment, the authors compare ToG and EWEK-QA with open generators. On the WebQSP efficiency sample, ToG with LLaMA-2-13B averages 128.7 seconds and 5.6 large generation calls per query, with Hits@1 of 45.6. EWEK-QA with WebGLM-10B averages 40 seconds, uses 1 generation call and records 72.9 Hits@1. WebGLM averages 44 seconds and also uses 1 call, with Hits@1 of 65. The two comparisons expose different aspects of the result. Much of the contrast with ToG concerns repeated generation during graph search. The comparison with WebGLM holds the number of generation calls and the composer fixed while changing which evidence is available.

On the WebQuestions efficiency sample, ToG with LLaMA-2-13B averages 124.4 seconds and 5.7 generation calls, with Hits@1 of 37.8. WebGLM with WebGLM-10B averages 45 seconds and has Hits@1 of 54.3. The combined EWEK-QA system with that same composer averages 35 seconds and achieves Hits@1 of 61.2. The paper characterizes the speedup against local ToG across its setup as between ∼ 3× and ∼ 6×. The endpoint depends on which EWEK-QA composer is used. The results describe elapsed time in the tested setup, inclusive of retrieval and composition.

The authors separately time the web retrievers on 230 randomly selected Natural Questions queries using V100 GPUs. WebGLM averages 12.2093 seconds per query and the EWEK-QA web retriever averages 11.4965 seconds. EWEK-QA’s retrieve-and-rerank stage averages 1.0043 seconds and deduplication averages 0.12887 seconds. The paper reports web extraction and crawling under different stage groupings for the systems, so the totals support the cleanest direct comparison. The parallel handling of pages and extraction streams, followed by cheap filtering and more selective reranking, allows the expanded web pipeline to operate at a similar overall cost in this experiment.

What the ablations show

Evidence source changes the result

The source comparison gives the clearest controlled view of the hybrid design. Each EWEK-QA configuration has the same default composer, and the authors vary whether it receives graph evidence, web evidence or both. The combined setting improves on either single source on the human test and in the suite-wide automatic average. On individual datasets, the effect depends on what the strongest source already provides. The graph-only scores on GrailQA and SimpleQA are a reminder that supplemental web passages can compete with good graph evidence. On Natural Questions it is the web-only configuration that supplies the strongest result.

The comparison also puts the graph retriever’s efficiency in context. A fast graph search can be worth running as a source of evidence for some questions even when its independent answer score is weak on open-domain benchmarks. WebQuestions illustrates this pattern. Graph-only EWEK-QA scores below its web-only configuration, and the best result comes when the composer receives both. This aggregate pattern is compatible with graph facts helping on some questions for which the strong web system has trouble. Establishing that mechanism question by question would require linking each change in correctness to the material retrieved for that particular answer.

The appendix’s example about the Laleli Mosque and Esma Sultan Mansion illustrates how a composer can get evidence for a comparison despite graph retrieval that mainly follows other relationships. The graph facts refer to architecture, religion and associated entities. The web passages place the mansion in Ortakoy and the mosque in Laleli. Their addresses answer the neighborhood comparison. The example makes it easy to see why retrieving entities associated with both buildings can still be insufficient. The needed relation is where each building is located at the level the question asks about.

What each web extraction route contributes

The passage evaluation compares WebGLM with EWEK-QA using EE alone, PS alone, and both extractors. The authors annotate passages for random queries from ELI5 and Natural Questions, reporting 200 queries across the datasets. They report one set of results for the highest-ranked passage and another for the top 5. This matters because a weak first result can coexist with useful evidence later in the list. Evaluating several passages also reveals the usual quality of the set that could reach the answer composer.

Pertinence combines topical relevance with how much of the question a passage answers. The scale goes from 0 to 3. A passage about a different subject that supplies no answer gets 0. A passage on the right subject with no answer gets 1, partial help gets 2, and a passage that answers the question completely gets 3. This gives credit to evidence that helps even if another passage is needed. It also makes an important distinction between topical similarity and actual usefulness.

The appendix defines answer span through an annotation task. Annotators highlight the parts of the passage that answer the question, including more than one span when unrelated material separates them. The score is a share of the passage characters. The results discussion also describes the score in terms of text used verbatim by the composer. The appendix provides the operational procedure for the human judgments. Under that procedure, a high score indicates a passage concentrated on material that answers the question.

answer-span score = highlighted character count ÷ passage character count

The expression on the left names the passage’s answer-span score. The equals sign gives its definition. The numerator counts the characters in the text the annotator highlights as answering the question. The division sign expresses that length as a share of the character count of the complete passage. The score is in the interval [0, 1].

Self-containment focuses on completeness. A passage scores 0 if the answer is absent or partial, and 1 if the passage contains the answer correctly. A short passage can have a substantial answer span while leaving out a necessary qualification. A longer passage can cover the question completely and still have a smaller fraction of its text highlighted. Keeping the two measurements separate helps explain why configurations can rank differently under each.

Self-containment of the highest-ranked Natural Questions passage

Combining the Paragraph Splitter and Evidence Extractor produces the highest self-containment, while the extractor alone trails WebGLM.

Self-containment of the highest-ranked Natural Questions passageWebGLM: 0.49WebGLM0.49EWEK-QA with Evidence Extractor: 0.35EWEK-QA with Evidence Extractor0.35EWEK-QA with Paragraph Splitter: 0.73EWEK-QA with Paragraph Splitter0.73EWEK-QA with both extractors (this paper): 0.8EWEK-QA with both extractors (thispaper)0.8
The numbers
System or settingmean self-containment
WebGLM0.49
EWEK-QA with Evidence Extractor0.35
EWEK-QA with Paragraph Splitter0.73
EWEK-QA with both extractors (this paper)0.8

On Natural Questions, the best-ranked passage from the combined extractor has pertinence of 2.66 and answer span of 0.53, against 2.07 and 0.28 for WebGLM. The Paragraph Splitter alone reaches pertinence of 2.51 and answer span of 0.47. The Evidence Extractor alone reaches pertinence of 1.76 and answer span of 0.37. The weak first-place pertinence and self-containment for EE alone show that learning question-conditioned boundaries does not guarantee a high-quality top selection. On this dataset, the structural cues in PS make a strong contribution, and taking candidates from both sources gives the best first passage by each of the reported measures.

On the highest-ranked ELI5 passage, the combined setting has pertinence of 2.23 and self-containment of 0.58, compared with 1.76 and 0.35 for WebGLM. The best answer-span result there is 0.57 for PS alone, while the combined setting scores 0.5. That exception illustrates why answer density and completeness can point in different directions. The combined system can give the composer a more complete passage even if the selected passage includes a larger share of surrounding material.

Across the top 5 Natural Questions passages, the combined configuration reaches pertinence of 2.36, answer span of 0.47 and self-containment of 0.64. WebGLM scores 1.86, 0.3 and 0.38, respectively. On the top 5 ELI5 passages, the combination scores 2.02 for pertinence, 0.5 for answer span and 0.43 for self-containment, against 1.71, 0.35 and 0.34 for WebGLM. These comparisons show that the result is visible in the selected passage set as a whole as well as in the first item. The experiment varies the candidate extraction routes. It does not independently switch off every change to parsing, scoring or deduplication.

What changes when the composer changes

The local experiment also varies the answer composer with the combined evidence pipeline in place. On WebQSP, EWEK-QA with LLaMA-2-13B scores 73.2 Hits@1 at 29 seconds per query. With WebGLM-10B it scores 72.9 at 40 seconds, and with WebGLM-2B it scores 68.9 at 21 seconds. All three use a single generation call. Within these results, use of the smallest composer gives the lowest runtime, with a lower Hits@1 than the other EWEK-QA composers. The fine-tuned LLaMA-2-13B version has the strongest WebQSP score among these settings.

On WebQuestions, the ordering by accuracy changes. WebGLM-10B as EWEK-QA’s composer has Hits@1 of 61.2 at 35 seconds per question. LLaMA-2-13B has 60.8 at 26 seconds, and WebGLM-2B has 58.4 at 20 seconds. The smallest composer again gives the lowest measured runtime. Which of the larger options scores highest depends on the dataset. Together the comparisons show that the retrieval pipeline can be used with several composers and that the choice still affects both speed and accuracy. The runs use specific fine-tuned composers, so the results address those tested replacements.

There is also a comparison in which ToG and EWEK-QA both use LLaMA-2-13B. The former calls its generator during graph exploration and reasoning, whereas EWEK-QA’s composer uses the evidence after retrieval. The resulting speed advantage is consistent with the differing number of calls. The answer scores also reflect different retrieval sources, prompts and adaptation of the composer. Separating those factors would take a comparison in which the graph-search procedure changes while the rest of the answer setup is held fixed.

Which evidence appears in citations

The authors examine the evidence cited by the composer on CWQ and WebQSP, and on WebQuestions and HotpotQA. They distinguish replies citing only web passages, replies citing only graph triples, replies citing both, and replies with no citations. Most questions across the datasets receive citations to web evidence alone. On WebQSP, web-only citations occur on 70% of questions. Graph facts are cited on 29% of questions on that dataset, counting responses that also reference the web. Even on this graph-oriented benchmark, web passages are frequently sufficient for the evidence the composer chooses to cite.

The paper also asks how often the evidence it gives to the composer is used as a citation. Across the datasets in this analysis, 65% of the supplied quotes are cited on average. Both PS and EE produce passages that appear in final citations. This connects the passage ablation with an observable part of the answer pipeline. The EE branch can contribute useful selected evidence in spite of its weaker performance by itself on some passage comparisons. A citation records that the composer pointed to that evidence. It leaves open whether the same answer would have been produced if the evidence had been withheld.

To check support, the authors take cited statements and their associated evidence and ask GPT-3.5 whether the evidence supports the statement. The reported average citation accuracy is 89.6%. WebQuestions scores 93.2 and WebQSP scores 92.7. CWQ scores 86.6 and HotpotQA scores 86.1. These judgments make the citation source counts more interpretable by checking the relationship between the cited material and the words around the reference. The check concerns whether the paired evidence supports the statement. It does not examine every claim that lacks a citation, and it does not turn support into a judgment of complete answer correctness.

Limitations

Limits identified by the authors

The authors point first to the narrowness of the automatic scoring rule. Hits@1 can miss an answer that expresses the correct fact with wording different from the expected answer. This matters for EWEK-QA because the composer returns natural prose, and for multi-hop questions because the correct relationship may be expressed in a complete sentence rather than with the benchmark’s preferred phrase. The authors therefore propose expanding human evaluation to obtain a more dependable picture of answer quality. Their existing human judgments illustrate what this can add on a deliberately challenging set.

The second stated limitation is the graph’s coverage of recent information. The retrieval experiments use Freebase and do not search a more current graph such as Wikidata for answer evidence. This affects questions about facts that change over time. Wikidata’s involvement in mapping starting entities serves a separate purpose. It helps the system find entries in Freebase. The age and availability of the facts reached after that mapping remain properties of the graph actually searched. The paper also identifies stronger embeddings for graph retrieval as a direction for improving the method.

Limits visible in the design and evaluation

The benchmark means and the human study answer different questions. The automatic results cover a mixture of full test sets and sampled subsets. For two open-domain datasets the setup also filters out queries that cannot be mapped to Freebase entities. This restricts what can be inferred about an arbitrary incoming question, especially one where graph retrieval cannot find a starting point. The human study takes a hand-picked mix of difficult questions. Its 0.74 correct proportion shows how the hybrid system fares on that mix. A population rate for everyday search questions would require a sample drawn for that purpose.

The presence check in Hits@1 has another implication beyond the alternative wording issue the authors raise. A response can mention the expected answer and also include a contradictory assertion, an incorrect explanation or an unsupported citation. It may still receive credit on the automatic test. The complete-answer annotation is better suited to that kind of failure because partially wrong answers receive an incorrect judgment. The citation analysis adds a different check, focused on cited claims and the associated evidence. Taken together, the tests address several aspects of quality, with each result bounded by its own scoring rule.

The graph search makes decisions using the similarity of individual candidates to the question. A relation needed in the middle of a useful path can be difficult to identify by that criterion. Its label may look unrelated until a later connection reveals why it matters. With a fixed beam, a valuable intermediate candidate can be pruned before that later connection is explored. ToG-E also omits a judgment of whether its paths suffice. It can return topically related triples that contribute little to the answer, as the mosque-and-mansion example illustrates. The stronger scores for EWEK-QA with a single source on some datasets show that the composer does not consistently neutralize any added evidence that fails to help.

The passage study gives evidence for the combined web retriever, with limited visibility into several individual decisions. It tests the two routes that propose passages, and it compares the new retriever with WebGLM. It does not give separate effects for the new use of paragraph tags, the sentence-boundary rule, the two-stage ranking design, and the deduplication threshold. Several decisions can interact. A chunking change may only help if the reranker recognizes the newly available passage. A deduplicator can remove clearly redundant text and can also remove passages whose subtle differences matter. The paper’s results characterize the evaluated pipeline and its extractor configurations.

The evaluation of passage quality also has a limited interpretation as evidence about answer quality. An annotator can find that a passage would help answer a query even if the composer overlooks it. A passage that directly addresses a question can itself make a questionable assertion. The ELI5 examples make relevance judgments concrete, but the quality of the underlying sources is a separate issue. The paper checks how pertinent and complete the passages are and whether cited evidence supports generated text. Independent verification of source claims would be an additional evaluation.

Citation accuracy likewise depends on the judge and the unit of evidence. The judge is GPT-3.5, given a cited statement and its paired context. The reported proportion is an estimate under that protocol. It does not account for unsupported claims that receive no citation, and a successful support judgment does not guarantee that the evidence was the actual source of the statement. When the paired context is the bundled graph entry, the citation also leaves the reader to identify which individual triple supports the claim. The format is convenient for composing a single answer from mixed evidence, with a coarser reference for graph facts than for individually numbered web passages.

The efficiency results belong to the implementations and conditions tested. The paper measures parts of the system on V100 GPUs, uses Bing for search, and describes caching and parallel fetching. Those details affect elapsed time alongside the number of generation calls. The direct answer-composer comparisons show substantial timing changes while the retrieval method and the number of calls stay the same. The graph procedure’s removal of repeated generation calls is a property of the method. The reported seconds per query and the relative speedups characterize the experiment that measured them.

What came after

The subsequent citing work spans several questions that EWEK-QA brings together. One is how to incorporate structured retrieval into a system that writes answers. Another is how to recover a connected body of evidence economically. A third is how to make an answer’s relationship to evidence visible to a reader. The citation links establish that these works cite EWEK-QA. Descriptions of their topics establish where that citation is relevant. The specific role of EWEK-QA in each later method or experiment is undetermined.

The earliest citing survey concerns the field of graph retrieval-augmented generation. EWEK-QA provides an example of a graph retriever used inside a system that also searches unstructured text. Its graph output is a collection of facts supplied to a composer, and graph retrieval has its own scoring and search procedure. This places the paper at the intersection of obtaining evidence from a graph and making it usable in generation. The broader topic is the subject of Graph Retrieval-Augmented Generation: A Survey.

Work on super-relations takes up reasoning over knowledge graphs. The point of contact is the treatment of relations during graph exploration. EWEK-QA ranks candidate relations and entities by their similarity to the question and follows the surviving paths. A work organized around super-relations addresses another aspect of how relations figure in graph reasoning. Its citation situates EWEK-QA alongside work on the structure of the connections used to reach an answer. The later study is Reasoning over Knowledge Graphs with Super-Relations.

Another survey focuses on attribution, citation and quotation in evidence-based generation. EWEK-QA connects these topics through the numbered passages it gives the composer and the later check of whether cited text is supported. It is a case where retrieving useful material, citing it in an answer and assessing support are distinct operations. Its analysis of reference use illustrates why counts of web and graph citations are best read alongside an assessment of what each reference supports. The citing survey is Attribution, Citation, and Quotation.

COSMOS concerns subgraph retrieval using connectivity-oriented submodular maximization. Its title identifies a shared problem at the retrieval stage. A large graph offers many candidate facts, and a system needs a small selection in which the useful facts can be considered together. ToG-E approaches this by extending a beam of promising paths. COSMOS is organized around connectivity in the selection of a subgraph. Their relationship through citation puts ToG-E’s path-based retrieval in the context of other approaches to choosing connected evidence. The later work is COSMOS.

Thought-Action Graph Reasoning concerns faithful and efficient reasoning through reuse of past experience. Its link with EWEK-QA is clearest in the shared concern with reducing the work needed to produce an answer that can be inspected. In EWEK-QA, efficiency comes from assigning graph exploration to embedding-based retrieval and calling the composer after evidence collection. The later work’s stated focus is reuse of prior experience in graph-based reasoning. That makes it a connection through the cost and fidelity of reasoning, alongside the connections through evidence selection and citation. The citing work is Thought-Action Graph Reasoning.

Cite

Cite as Mohammad Dehghan, Mohammad Alomrani, Sunyam Bagga, David Alfonso-Hermelo, Khalil Bibi, Abbas Ghaddar, Yingxue Zhang, Xiaoguang Li, Jianye Hao, Qun Liu, Jimmy Lin, Boxing Chen, Prasanna Parthasarathi, Mahdi Biparva and Mehdi Rezagholizadeh. 2024. EWEK-QA : Enhanced Web and Efficient Knowledge Graph Retrieval for Citation-based Question Answering Systems. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.acl-long.764

@inproceedings{dehghan2024ewek,
  title = {{EWEK-QA : Enhanced Web and Efficient Knowledge Graph Retrieval for Citation-based Question Answering Systems}},
  author = {Mohammad Dehghan, Mohammad Alomrani, Sunyam Bagga, David Alfonso-Hermelo, Khalil Bibi, Abbas Ghaddar, Yingxue Zhang, Xiaoguang Li, Jianye Hao, Qun Liu, Jimmy Lin, Boxing Chen, Prasanna Parthasarathi, Mahdi Biparva and Mehdi Rezagholizadeh},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.764},
  url = {https://doi.org/10.18653/v1/2024.acl-long.764}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/dehghan-2024-ewek-qa-enhanced-web-efficient/