<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A QA search algorithm based on the fusion integration of text similarity and graph computation⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Zhaoyu Sun</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lei Song</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jiaming Yu</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Beijing Rui Li Technology Co.</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Beijing</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>China Yujm@powerkeen.com http://www.powerkeen.com</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>The open domain Q&amp;A QA system based on knowledge graph is essentially an entity alignment and search problem. It needs to nd and extract the information contained and lacked in the question in the comparison with graph data unit. Our team proposed two search models: text similarity and graph computation. Combined them with some basic strategies, the result sets of the two are integrated, and a good effect is obtained. The open domain Q&amp;A QA system based on knowledge graph is essentially an entity alignment and search problem. It needs to nd and extract the information contained and lacked in the question in the comparison with graph data unit. The meta-knowledge form of the ”subject-predicate-object” triple of knowledge graph has a corresponding relationship with the intrinsic expression logic of natural language. The problem of simple sentence can basically be one-to-one correspondence; but for the semantically similar but literally irrelevant form or contains nodes with large information density in the graph, the alignment of the question and the graph data becomes very complicated, and the noise information in the question and the redundant and irregular data in the graph make the process become more difcult and error-prone. Our team proposed two search models: text similarity and graph computation. The former is good at solving the 1-degree problem, and the latter is good at solving the multi-degree problem which has larger number of information nodes. Combined with some basic strategies, the result sets of the two are fused, and a certain effect is obtained.</p>
      </abstract>
      <kwd-group>
        <kwd>text similarity</kwd>
        <kwd>graph computation</kwd>
        <kwd>2-degree problem</kwd>
        <kwd>entity discovery</kwd>
        <kwd>model integration</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Overview</title>
    </sec>
    <sec id="sec-2">
      <title>Text similarity search model</title>
      <p>From the perspective of the knowledge structure of existing graph, sentence is analyzed by information segmentation. The
sentence is a path composed of different knowledge nodes, and different nodes correspond to different phrases in the
sentence. Text-based search is to nd possible paths in the graph, and then take the search path with the highest similarity.</p>
      <p>The evaluation of similarity needs to consider the following aspects:
1) The similar values between graph nodes and phrases in sentence;
2) The similarity matching value of logical order between graph node and node;
3) The question type and the position of the question keyword in sentence correspond to the position of adjacent node in
graph.
3.1</p>
      <p>Entity discovery
Searching for the way that all triples are similarly aligned entities will be affected by larger noise information, resulting in
the loss of search entry, and the annotation information of object entity will also affect the ordering of search hit entities.
For example: the most similar triple of ”德国著名的汽车品牌” is as follows,
{
”id” : 37730758,
”subject” : ” &lt;著名汽车品牌图鉴&gt; ”,
”predict” : ” &lt;软件名称&gt; ”,
”object” : ”著名汽车品牌图鉴”
}, causes its entry entity (subject entity - 德国) to be lost.</p>
      <p>Therefore, entity discovery needs to rely on mention data, subject entity index data, and object entity index data. All
possible subject entities and object entities in the question are the starting point of the question. The rest information of
the question belongs to predicate information. Generally, the matching requirements of subject and object entity should be
higher than those of predicate, even predicate node information is not included in the question.</p>
      <p>1）Use object entity index to nd whole sentence entity
Long sentence may appear as object entity as a whole.</p>
      <p>For example：首位登上过时代周刊封面的华人女歌手？谁首次实现了中国的首次统一？
2) Discover entity using mention index
3) Identify the predicate entity or type entity that may appear before main entity
For example：书籍《亚利安01》的价格是多少
”书籍”、”亚利安01”were found to be entities, but the former and the latter have category relation.
1-degree problem solving The search implements the stepwise matching of the information contained in the question by
a similar matching cursor mechanism. Each time an information node is matched, the matching cursor will narrow the
description information range of the question.</p>
      <p>The 1-degree problem solving uses main entity as subject or object. The remaining information after excluding main
entity in the question is used as predicate information. The search is performed through triple index, and the search result is
veried, return to the triple, if the relationship between predicate and the remaining information in the question is inclusion
relationship or the similarity of the largest similar match string is above a certain threshold, the triple is considered to be
the answer corresponding to the question description. Then the matching cursor will move to the right. If the remaining
information in the question still contains potential predicate entity or object entity after excluding stop words, it is regarded
as a 2-degree problem and is executed by other modules; otherwise, it is regarded as 1-degree question and the search results
are returned directly.
2-degree problem solving The matching of triple to problem in 2-degree problem requires at least two triples to be satised.
Since the alignment sequence between the structure of graph and the phrases in the question is not exactly matched from
left to right, in order to avoid the complicated processing of phrase combination sequence, we will spread the nodes related
to main entity at 2 degrees. Then, calculate the similarity between each piece and the question, and select the best matching
triple as candidate answer. Combined with the structure of triples, the description of 2-degree problem can be summarized
into the following six types:
1）S-P-&lt;&gt;-P-?
2）S-&lt;&gt;-O-P-?
The main entity starts as a subject and queries its indirect attribute values.
Similar to 1), but the subject entity is not directly related to the attribute, but its object entity.
for example：澳大利亚的悉尼有什么著名景点？
3）S-P-?-P-&lt;&gt;
Similar to 1), but its problem is another subject of the object entity of main entity.
for example：周恩来的妻子曾当过什么主席？
4）O-P-S-P-?
The main entity starts as an object entity and queries its indirect attribute values.</p>
      <p>For example：小说《哈利波特》的作者是谁？郦道元的《水经注》编撰于哪个朝代？
5）O-&lt;&gt;-?-P-O1
6）O-P-?-&lt;&gt;-O1
The main entity starts as an object entity, and with the aid of other entities in the question, queries its subject entity.
Similar to 5), but predicate information is the parent attribute of main entity.
for example：有哪些位于湖北的公司？</p>
      <p>In general, 2-degree problem is divided into three steps: 1) spread 2-degree solution space; 2) pre-screening result set of
question similar match; 3) based on the pre-screening result set from 2), similar match is graded according to 6 types of
template, and the triple with the highest degree of matching is considered a candidate answer.</p>
    </sec>
    <sec id="sec-3">
      <title>Graph computation model</title>
      <sec id="sec-3-1">
        <title>4.1 Structure chart of model</title>
      </sec>
      <sec id="sec-3-2">
        <title>Original problem</title>
      </sec>
      <sec id="sec-3-3">
        <title>Pre-solution space</title>
      </sec>
      <sec id="sec-3-4">
        <title>Single hop problem solving</title>
      </sec>
      <sec id="sec-3-5">
        <title>Double hop problem solving</title>
      </sec>
      <sec id="sec-3-6">
        <title>Two types of predicting answers</title>
      </sec>
      <sec id="sec-3-7">
        <title>Quantitative characteristics CNN</title>
      </sec>
      <sec id="sec-3-8">
        <title>Similarity features</title>
      </sec>
      <sec id="sec-3-9">
        <title>Perceptron</title>
        <p>The entity in the question can basically use pkuorder as a dictionary for entity connection. The generation method of
presolution space is: for possible entities, go to the database to search its child nodes or parent nodes as the rst hop node, and
then search for the child node of the rst hop node. It acts as the second hop node. The corresponding graphs of different
entity entries are stored separately.</p>
        <p>For example, the question ”董卿主持的正在播出的节目是?”,when we take ”董卿” as entity entry, we can get the
following pre-solution graph.</p>
        <p>董卿
职业
主持人</p>
        <p>起源地
代表人物
主持人
元宵晚会
播出状态
主持人
美国
朱军
播出中
周涛</p>
        <p>This example explains why two directions are used in the rst hop. Because ”元宵晚会的主持人是董卿” and ”董卿主持了元宵晚会”,
the same fact is expressed, but we can’t determine which mode is used for database to store this knowledge. The pre-solution
tree is usually more than one. For this problem, the ”节目” can also generate a pre-solution tree.</p>
        <p>A QA search algorithm based on the fusion integration of text similarity and graph computation
4.3</p>
        <p>The similarity features of quantitative characteristics
For example, ”Double hop problem”:
”张柏芝、谢霆锋合作的动作电影里的服装是谁设计的”.</p>
        <p>Let us remember a knowledge triplet as S P O
Structural features First, we will get two pre-solution trees with Cecilia Cheung and Nicholas Tse as entries. For the subtree
with the form of S1 P1 O P2 S2on each pre-solution tree, it is a subtree of, where S1=”&lt;张柏芝&gt;” or ”&lt;谢霆锋&gt;”.
We use the following characteristics to calculate seq, the jaccard distance of seq, S1 + P1 + P2, the number of common
characters ofseq, S1 + P1 + P2 + O + S2), hint, seq, the edit distance of S1 + P1 + P2, Les, seq and the most important thing
is that we introduce a denition called placeholder. That is, these cue words such as ”是谁,是什么,哪里,何时,哪个,有什么”in
the question. It is found that there is often important information of answer reminder near the cue word. For this problem,
”design” is a very important message. If the P2 of the subtree S1 P1 O P2 S2 contains design, then its score should
be very high. Specically, we nd a substring Sattach in the sentence for P2, so that the string can coincide with the head or
tail of P2, and then take the distance between the string Sattach and the placeholder as a feature.</p>
        <p>Node consolidation We got an array with elements (path : S1 P1 O P2 S2, jaccard, hint, les, placeholder)
(using S2 as a possible answer node). But it is noticed that what the question asked was the
”张柏芝,谢霆锋共同主演的电影”. As the bridge node O, ”无极” will actually connect with ”张柏芝” and ”谢霆锋” as S1.
In the case of bridge node O is the same as answer S2, we will merge the two candidate answers and recalculate relevant
features.</p>
        <p>Pruning Since the previous entity link used an exhaustive matching method, the size of the candidate answers is very large
at this step. If the classier is trained on this, the training will fail due to the category imbalance. Inspired by the
decisionmaking tree model, we use heuristic rules for pruning. Using the mean value of one or several indicators as a benchmark, we
search for magnication a, so that the number of pre-selected answers which are greater than amean is less than 80. Thus,
we control the positive and negative ratios of training.</p>
        <p>Similarity features Using pure quantitative characteristics makes us lose a lot of information, so it is necessary to input
new features for the nal perceptron. Here CNN is used to measure the similarity between the path of candidate answers
S1P1OP2, S1P1 and questions seq. Using single hop, double hop to solve each problem will get answer and relevant path,
training is performed by using path, seq as X, the F1 of answer as Y.
5
5.1</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Fusion integration</title>
      <sec id="sec-4-1">
        <title>Fusion strategy based on problem type features</title>
        <p>Answer type is determined according to the cue words of the question (”是谁, 什么时间, 哪个国家” etc.), and the one accord
with the type is prioritized to be selected. For example, in the case of a character, ”董卿” has an attribute of ”类型-&gt; 人物”,
thus, we can judge that this entity is a character. In fact, attribute needs to be reconstructed, and the type in pkutype has error
information. We can reconstruct the type in an iterative way and clean the noise. Specically, starting from the attribute of
”人物”, we can get a bunch of entities, and then this bunch of entities will generate a bunch of predicates P. We sort the
predicates and use some features like tf-idf to screen out common features (such as ”中文名”), so we build the mapping of
the ”人物” type to the predicate. We can in turn reconstruct the pkutype through the predicate set so as to eliminate noise.
5.2</p>
        <p>Fusion strategy based on graph traversal path
When the path that generates the answer accords well with the problem (information is neither too much or too little), then
the problem is a priority.
5.3</p>
        <p>Voting
If there are two models that choose the same answer, then the nal answer will be this answer.
6</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experimental data</title>
      <p>The similarity model and the graph computation perceptron model were evaluated on the validation set and the test set,
respectively, and the fusion integration test was performed on the test set. The test data is shown in the table below.</p>
      <p>The test data shows that the similarity and graph calculation perceptron models have their own strong characteristics,
and the two have complementary characteristics. After fusion integration, scores are improved.</p>
    </sec>
    <sec id="sec-6">
      <title>7 Summary and outlook</title>
      <p>This paper proposes a comparison analysis of implementation problems and graph knowledge between two search models:
text similarity model and graph calculation model. It is observed in the experiment that text similarity model has certain
advantages in the aspect of full enquiry investigation. Full-text indexing works well for entity discovery and alignment in
large-scale triple data. In the solving process, full-text indexing combined with synonyms can get the effective primary
selection of answer sets and narrow the screen space of the result sets. The graph calculation perceptron model effectively utilizes
the association features between nodes, when combined with the entity and problem type information, it can effectively
determine the scope of answer entity. In the process of solving complex problems, both models use the link mode between
entities in the graph structure to nd the best matching path, and extract answer entities according to problem type and
object. The results of the two models are consolidated and integrated according to entity type and path, which can improve
the results.</p>
      <p>Meanwhile, it is found that some problems can be improved in the optimization process of models: 1) the performance
of similar dynamic solution space generation and pre-screening calculation processing is low; 2) a more optimized learning
style can be adopted in the weight parameter optimization of similarity values of the entities with different roles in the link
mode between entities. In addition, how the relative relationship between entity and predicate in the syntactic parse tree can
be further explored as a feature of assisted optimization.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Yih</surname>
            <given-names>W</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            <given-names>M W</given-names>
          </string-name>
          ,
          <string-name>
            <surname>He</surname>
            <given-names>X</given-names>
          </string-name>
          , et al.
          <article-title>Semantic parsing via staged query graph generation: question answering with knowledge base</article-title>
          .
          <source>In: Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics</source>
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Zhu</surname>
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ren</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tian</surname>
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            <given-names>Y. A Graph</given-names>
          </string-name>
          <string-name>
            <surname>Traversal</surname>
          </string-name>
          <article-title>Based Approach to Answer Non-Aggregation Questions over DBpedia</article-title>
          . In: Qi G.,
          <string-name>
            <surname>Kozaki</surname>
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pan</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
            <given-names>S</given-names>
          </string-name>
          . (eds)
          <article-title>Semantic Technology</article-title>
          .
          <source>JIST</source>
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Berant</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chou</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frostig</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liang</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Semantic parsing on freebase from question-answer pairs</article-title>
          .
          <source>In: EMNLP</source>
          , pp.
          <fpage>1533</fpage>
          -
          <lpage>1544</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Unger</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bühmann</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ngomo</surname>
            ,
            <given-names>A.-C.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gerber</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cimiano</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Template-based question answering over RDF data</article-title>
          .
          <source>In: Proceedings of the 21st International Conference on World Wide Web</source>
          , pp.
          <fpage>639</fpage>
          -
          <lpage>648</lpage>
          . ACM (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>