<!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>Factoid and Open-Ended Question Answering with BERT in the Museum Domain</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Md. Mahmud-uz-zaman</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefan Scha er</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tatjana Sche er</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DFKI, Alt-Moabit 91c</institution>
          ,
          <addr-line>10559 Berlin</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>German Department, Ruhr-Universitat Bochum</institution>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Most question answering tasks are oriented towards open domain factoid questions. In comparison, much less work has studied both factoid and open ended questions in closed domains. We have chosen a current state-of-art BERT model for our question answering experiment, and investigate the e ectiveness of the BERT model for both factoid and open-ended questions in the museum domain, in a realistic setting. We conducted a web based experiment where we collected 285 questions relating to museum pictures. We manually determined the answers from the description texts of the pictures and classi ed them into answerable/un-answerable and factoid/open-ended. We passed the questions through a BERT model and evaluated their performance with our created dataset. Matching our expectations, BERT performed better for factoid questions, while it was only able to answer 36% of the open-ended questions. Further analysis showed that questions that can be answered from a single sentence or two are easier for the BERT model. We have also found that the individual picture and description text have some implications for the performance of the BERT model. Finally, we propose how to overcome the current limitations of out of the box question answering solutions in realistic settings and point out important factors for designing the context for getting a better question answering model using BERT.</p>
      </abstract>
      <kwd-group>
        <kwd>question answering BERT art museums</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Despite recent technological advancement in conversational agents, the majority
of museums still o er only prerecorded audio guides to visitors as an aid for
a better experience. However, these audio scripts are long and visitors have
no way to select information according to their needs. A study shows that use
of chatbots can assist visitors better, educate them and help to improve their
overall experience in museums [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. A museum chatbot is di erent in nature from
general chatbots because it is presented a picture and visitors are expected to
ask questions related to the artwork. A comprehensive study with more than 5
thousand unique sessions in the Pinacoteca museum in Brazil was performed to
discover the type of questions people ask using chatbots in a museum [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. They
Copyright c 2021 for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).
have found 8 types of questions are asked, including fact, author, visual, style,
context, meaning, play and outside. Among these, meaning constitutes around
60% of the questions. We can additionally classify possible questions into factoid
and open-ended, according to the amount of facts required to answer them [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
According to this classi cation, open-ended questions are more frequent than
factoid questions in the museum domain. Additionally, they have also discovered
that di erent artworks did not have e ect on the distribution of content types
of the questions.
      </p>
      <p>
        Any information providing chatbot can be considered as a question
answering system because the fundamental components of a chatbot are processing the
question and providing an answer. Question answering is a branch of
information retrieval [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] where questions are automatically answered in natural language.
It has three components, question processing, document processing and answer
processing [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The most common way of processing the answer is by selecting the
answer from a given context. This task is alternatively called reading
comprehension [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. A popular model for reading comprehension type question answering is
BERT [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] which is built over some recent remarkable research works [
        <xref ref-type="bibr" rid="ref10 ref13 ref15 ref18">13, 10, 18,
15</xref>
        ]. It combines the concept of language modeling, transfer learning and
bidirectional modeling and has performed even better than human level performance
in some NLP tasks3.
      </p>
      <p>
        A literature study consisting of 1842 papers published up to 2017 suggests
that any closed domain question answering is rare [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However, there are some
BERT based implementations focusing on factoid [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] and open-ended
questions [
        <xref ref-type="bibr" rid="ref11 ref12 ref14">11, 12, 14</xref>
        ] separately. For example, in open domain tasks which consist
mostly of open-ended questions, a BERT implementation had the best
performance [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Still, it would be quite rare to nd any research to deal with both
in the context of a realistic domain like the museum. This previous research
motivates us to address the following research questions:
      </p>
      <p>RQ 1: Is BERT able to tackle both factoid and open-ended questions or
do we need speci c modules?
RQ 2: What are the special characteristics when dealing with a speci c
test domain (museum) with a very small dataset?
RQ 3: Does the structure and content of the available data (in our case,
the picture and its description) have any e ect on the performance of
the system?
2</p>
    </sec>
    <sec id="sec-2">
      <title>BERT Notable properties</title>
      <p>
        BERT introduced us actively to a new era of transfer learning [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], by
transferring knowledge that has been already been learned from other tasks. To be
more speci c, its inductive transfer not only improves learning in standard
supervised tasks but also helps overcome the problem of small datasets. BERT is
      </p>
      <sec id="sec-2-1">
        <title>3 https://rajpurkar.github.io/SQuAD-explorer/</title>
        <p>
          trained in two stages. At the rst pre-training stage, the model is trained using
semi supervised learning [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] using a huge online dataset. The model is trained
on a certain task that enables it to grasp patterns in language. Next, there is
supervised training on a speci c task with a labeled dataset.
        </p>
        <p>The capability of BERT lies in the pre-training tasks. It was trained on these
two pre-training tasks:
1. Masked language model: Some parts from the input sentences were masked
and the task was to predict the missed word. This task helped the model to
learn the word from the context.
2. Next sentence prediction: In this tasks two sentences were fed in the system
and the training objective was to predict if the two sentences were
consecutive. This task also helps to understand the context better.</p>
        <p>The training enables the model to identify the role of a word in a sentence
and to learn connections between sentences. Both are important for question
answering, since both the question and the context are passed to the model. The
answer is a span from the context. In question answering, BERT uses a start and
end token classi er to extract the answer from the context. From the pre-training
task, the model learns the language in general which helps to extract answer from
the question. The clue from the question can be identi ed in the context. In our
experiment we also going to explore how this relationship between the question
and the context works.</p>
        <p>
          Lastly it is important to mention that BERT is a huge model. If we have a
speci c NLP task for which it has been trained, we are going to get high quality
results. But if it does not t exactly with the training paradigm, it is quite
unlikely to expect the same outcome. Surely we can train a new model from
scratch with our own dataset but it will require the dataset and computational
resources to be huge [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. The other additional problem we have to deal with is
that BERT limits the input to 512 tokens, so it becomes hard for longer contexts.
We describe how we deal with this problem in Section 3.2.
3
3.1
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Experimental methods</title>
      <sec id="sec-3-1">
        <title>Task and dataset description</title>
        <p>We carry out an online evaluation of a museum domain chatbot, where users are
able to freely ask questions related to pictures they are seeing. We collaborate
with the German Stadel4 museum and are able to use their carefully curated
textual description of the meaning and signi cance of each picture as information
base. The texts cover basic, religion, culture and artist information about each
picture, and are used as contexts from which to retrieve answers.</p>
        <p>In our online experiment, we presented participants with 5 pictures in turn
and prompted them to ask 3 questions for each by freely typing into a text box.
19 participants fully completed this experiment, so the total number of questions</p>
        <sec id="sec-3-1-1">
          <title>4 https://www.staedelmuseum.de/en</title>
          <p>collected was 285 (19*5*3). Since we used a pretrained English BERT model,
we automatically translated the questions from German into English rst. There
were some translation errors in the automatic translations. We assume that the
model is robust to minor linguistic errors in the questions, but we excluded 9
translations that contained major translation errors. This leaves a total of 276
questions submitted to BERT.</p>
          <p>At this stage of data collection, the rst author manually classi ed the
questions into 2 classes, factoid and open-ended. In addition, we manually checked
whether the submitted questions are answerable from the context or
unanswerable. Answerable questions are those questions whose answers are found in the
context (provided by the museum description). Finally, we also manually mark
the correct answer span for each answerable question from the context.</p>
          <p>All questions were then processed to generate answers from the BERT model.
If the generated answer is meaningful and matches exactly or partially with our
manually annotated span, we consider it as \correct", otherwise \incorrect".
3.2</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>Model description</title>
        <p>
          We used the default 24 layer BERT model pre-trained with the SQuad question
answering dataset [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]. The default model is pre-trained with English texts while
we need to process both inputs and outputs in German. We used the Google
translation API5 to translate between German and English.
        </p>
        <p>BERT needs both question and context as an input. When a picture was
chosen, the corresponding context is selected. The maximum number of tokens
allowed for any BERT model is 512. Most of the contexts were more than 512
tokens, in which case we divided the context into sub parts and tested the question
with each context part separately. Both question and context are then passed to
the BERT model. The model returns start and end token positions of the answer
in softmax distributions. We then extract the best span from the contexts. When
the start and end token does not create a meaningful span (e.g., both point to
position 0 or the same index), we consider the output as \none". In the case of
non-answerable questions, only a \none" output will be considered correct. On
the contrary, when we retrieve a \none" output for answerable questions, it is
considered incorrect.
4
4.1</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Evaluation and analysis</title>
      <sec id="sec-4-1">
        <title>Overall data distribution</title>
        <sec id="sec-4-1-1">
          <title>5 https://pypi.org/project/googletrans/</title>
          <p>We can subdivide the overall data into answerable and non-answerable
questions. Tables 2 and 3 show the performance of answerable and non-answerable
questions. Out of all 276 questions, around 3 quarters were answerable. Among
these questions, around two third were factoid questions. On the other hand
in non-answerable questions, the number of factoid and open-ended questions
was quite similar. Out of 66 non-answerable questions, 36 were factoid and 30
open-ended.</p>
          <p>The accuracy in the case of answerable questions is around 5 points higher
than in the full data, while in case of non-answerable questions, it fell from
58% to 42%. The accuracy for factoid questions in the answerable class also
increased from around 71% to 78%. On the other hand, the accuracy in
openended questions remains similar. In the case of non-answerable questions, the
accuracy for factoid questions fell signi cantly compared to the overall accuracy
while the number slightly increased for the open-ended questions.</p>
          <p>Next we investigate the performance of the experiment in relation to the
pictures (Figure 1). We are providing two graphs, one considering all questions
(Figure 1a) and the other considering only the answerable ones (Figure 1b). We
see that in both gures four of the pictures had more correctly answered
questions than incorrect questions. In both gures, the number of incorrect answers
is higher for the \market" picture. But it is also evident that the di erence
between the frequency of correct and incorrect responses was reduced for
answerable questions. When we studied the details of the un-answerable, incorrectly
answered questions for \market" picture, we found that these questions were
mainly related to visual aspects of the picture and some random facts which
were not present in the context. If we consider the artwork itself, the picture was
about a market scene with at least 10{15 people in it which was quite di erent
from other pictures in its visual complexity. On the other hand, the provided
context from the museum was divided into a general description and religious
background. Apparently, the type of picture or the content of the picture may
have an in uence on the questions that users tend to ask. Additionally, in
designing the knowledge base one also needs to take care to align the contexts with
the possible questions which might be asked.
4.2</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>Answerable questions: detailed analysis</title>
        <p>In this section, we are going to uncover the subtypes of questions which play a
role in the performance of the model. This will enable future improvements of
question answering solutions on real-world document sets. We are considering
only answerable questions because the answer can be identi ed by a human from
the given context. This analysis also uncovers the most common questions asked
in factoid and open-ended domains. We will further analyze the questions with
connection to the context in the next section which will also help us identify any
useful patterns connecting the question and the context.</p>
        <p>Table 4 shows the questions which are answered correctly in answerable
questions. Out of a total of 133 correct questions, most of the questions are factoid.
The question type \Who painted the picture / when was the picture painted" is
the most common question overall. We consider these two questions under one
category because the answer to these two questions resides in same sentence in
the context, typically the rst. The next most asked factoid question is \Who
is the person" (inquiring about a person depicted in the picture). Fact-1sent
are questions that can be answered from a single source context sentence. In
fact, all the categories fact-a, fact-b, fact-museum and fact-title belong to this
question category. The other category fact-tracearound captures questions where
the answer does not occur in a single sentence. Rather there are traces pointing
towards the answer in either the previous or following sentences or both.</p>
        <p>The other section in Table 4 categorizes correct, answerable, open-ended
questions, whose total number is smaller than the number of factoid questions
asked. Among the correctly answered open-ended questions, the most common
question was \what is happening in the picture". We are calling this question
type \open-happening". The category names open-happening, open-whowhere
and open-meaning came directly from the question itself. The other 2 categories
came from the question's connection with the context. When we have a clue
about the topic of the question in the context, we call the question cluematch. As
these questions belong to the open-ended category, we call them open-cluematch.
When the clue is only partial, it is called cluepartial. In examples 3 and 4 of
section 4.3, we give examples of direct clue and partial clue cases.</p>
        <p>Table 5 shows the questions answered incorrectly among the answerable
questions. Out of a total of 77 wrongly answered answerable questions, most are
openended. Among the factoid questions, the question which is answered incorrectly
most often is \Who is the person or lady". This category of question was also
common in correctly answered questions. The next category where the count is
8 belongs to fact-a. This category question was the highest in the factoid correct
class. Fact-partans means the question was answered partially. Fact-none
questions are those where we get a \none" output although we do have an answer
in the context. The other category fact-tracemissed is related to the context:
when we have a trace in the context but BERT missed the trace and provided
incorrect output.</p>
        <p>The second part in Table 5 belongs to the incorrectly answered open-ended
questions. The category names open-happening, open-whowhere, open-meaning,
and open-summary come from the question itself. The other categories are named
after their purposes. Open-tracemissed is the category of questions which is
similar to factoid-tracemissed, where the model missed the clue given in the
question. Open-partans relates to answers which were unacceptable due to
incompleteness. The last category Open-cluepartial means those questions where
the clue from the question partially matches the context. Like the correctly
answered open-ended questions, the highest number of wrong answers are also in
the open-happening category.
4.3</p>
      </sec>
      <sec id="sec-4-3">
        <title>Question categories discovered in connection with the context</title>
        <p>In this sections we will discuss the question categories separately for factoid and
open-ended questions. First we group the categories into 3 sections according
to how often questions from this category were answered incorrectly (Table 6).
The value in the bracket denotes the count of correct or wrong outcomes. For
the categories in the middle column we mention both the counts of correct and
wrong responses. Then we derive the relationships of these categories with the
context.</p>
        <p>Factoid question categories The categories fact-a and fact-b are frequently
answered both correctly and incorrectly. Out of a total of 174 factoid questions,
113 belong to these two categories. Fact-a is mostly answered correctly. The
question categories which are always correct are fact-museum, fact-title,
fact1sent and fact-tracearound. The questions where we got a partial answer, got
\none" output and where we missed the traces are incorrect in our experiment.
It is quite obvious that when we get \none" as an output it must be considered
wrong in the answerable question class. It is also notable that only 3 out of 174
factoid questions produced a \none" output.</p>
        <p>The factoid question categories described are sometimes directly related to
the question, but sometimes related to the purpose. For example, fact-museum is</p>
        <p>Factoid
Open-ended</p>
        <p>Only correct Correct and wrong Only wrong
fact-museum(3) fact-a(75c 8w) fact-partans(2)
fact-title(6) fact-b(17c 15w) fact-none(3)
fact-1sent(5) fact-tracemissed(3)
fact-tracearound(1)
Open-cluematch(7) Open-happening(9c 21w) Open-summary(8)</p>
        <p>Open-whowhere(2c 2w) Open-partans(9)
Open-cluepartial(6c 1w) Open-tracemissed(3)</p>
        <p>Open-meaning(2c 7w)
directly a museum question. But fact-none can be any question where the output
is none. All the factoid categories can be further divided into 2 classes based on
how many sentences from the context are needed to answer them: fact-1sent
and fact-multi. Fact-1sent means questions where the answer comes in a single
sentence from the context. Fact-multi is where the answer combines multiple
sentences. Fact-a, fact-b, fact-museum, fact-title and fact-1sent always belong to
fact-1sent. Fact-tracearound is a typical example of the fact-multi class. These
types of questions have traces from the context in multiple sentences.
Factpartans, fact-none and fact-tracemissed categories can be either fact-multi and
fact-1sent questions. This categorization will help us understand and generalize
the performance of the questions in relation with the context.</p>
        <p>To have a better understanding of these question categories, let us explain
the two categories with two examples. In example 1, the answer of the question
comes directly from a single sentence. On the other hand in example 2, the
answer to the question \Is it a historical person?" requires multiple sentences
to have a meaningful answer. The answer could be directly given either yes/no
but since we are picking a span from the context, it needs more than a single
sentence.</p>
        <p>Example 1 (Fact 1 sentence). A single sentence is good enough for the answer.
Question : Which artist has painted the picture?
Context: [...] Adriaen Brouwer painted this picture around 1636/38. [...]
Example 2 (Fact multi sentence). Multiple sentences are needed for answering
a factoid question
Question : Is it a historical person?
Context: [...] The portrait depicts Simonetta Vespucci, a beauty praised
throughout Florence { not in the sense of a portrait, but as an idealized gurine of an
ancient nymph. [...]</p>
        <p>Table 7 re ects how these broad two categories a ect the performance on
the factoid questions. Though we have few instances of fact-multi questions, we
can see that it is unlikely to get a good output in these cases. On the contrary,
where we have traces in a single sentence in factoid questions, we get a higher
number of correct answers.</p>
        <p>Open-ended question categories In case of open-ended questions, there are
fewer instances of correct answers compared with the wrong answers. Four
categories, open-happening, open-whowhere, open-cluepartial and open-meaning,
have both correct and incorrect intances. Open-cluematch is the only category
which has all the questions asked (7) correct. Open-whowhere has equal
numbers in correct and incorrect. But the other two categories, open-happening and
open-meaning, have more incorrect than correct questions in the experiment.
In our experiment we have 6 instances of open-cluepartial cases where we got
correct answers. The other three categories open-summary, open-partans and
open-tracemissed have only incorrect outputs.</p>
        <p>All the open-ended questions require multiple sentences from the context to
be answered correctly, so the broad factoid classi cation will not work for them.
However, we can di erentiate them based on the clue given in the question. For
example, if the question asks for something speci c, like \Why is the sky blue?"
we can mark these as DirectClue, since a direct clue (\sky") is given which may
match some part of the context explicitly. On the other hand, when the question
asks \What is the history of the picture?", its answer can cover a large part of
the context. But it is unlikely that a mention of the word \history" will be there
in the context. We call these cases IndirectClue. In examples 3 and 4, we have
examples of these questions.</p>
        <p>Example 3 (Direct Clue). \Painting a sh" is considered a direct clue. We are
here looking for speci c information.</p>
        <p>Question: why did the artist paint sh?
Outcome: on behalf of a guild who wanted to decorate their rooms with the
image.</p>
        <p>Example 4 (Indirect clue). The question does not directly relate to the sentence
in the context.</p>
        <p>Question: Does it have a deeper meaning?
Outcome: [...] the picture should perhaps keep her memory . through the
representation as an ancient nymph she was simultaneously raptured and glori ed
.</p>
        <p>The categories open-whowhere, open-cluepartial and open-cluematch belong
to the DirectClue group, because we typically have a speci c clue in the question.
On the other hand, open-meaning, open-happening and open-summary do not
seek any speci c information. Open-partans and open-tracemissed will appear
in both broad categories.</p>
        <p>In Table 8, we depict the performance for open-ended questions divided into
the two classes, DirectClue and IndirectClue. Unsurprisingly, we receive better
output in the case of DirectClue questions, while we got correct answers in just
one fth of the IndirectClue cases.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experiments for improving outputs</title>
      <p>We can use the detailed analysis of error categories from the previous sections to
improve the performance of the outcome for factoid and open-ended questions
(see Table 6). Among the factoid questions, fact-partans, fact-none and
facttracemissed questions are always incorrect. The same is the case for open-ended
questions open-summary, open-partans and open-tracemissed. Partial answers
and missing traces from the question are common in both groups. In this Section
we report on our experiments to solve partial answer and fact-none problems.
We are leaving open-summary for future work because the question has little
information to elaborate. The other category which we are leaving is tracemissed.
This type of question, like cluematch or cluepartial questions, is hard to answer
because the helpful information for answering these questions is implicit.</p>
      <p>In the category of partial answers, the model actually found the point where
the answer resides. But due to incompleteness, the answer becomes unacceptable.
In example 5, we can see the answer was initially very short. But when we added
the sentence consisting of the word and the next sentence, the answer becomes
acceptable.</p>
      <p>Example 5 (Adding context). Adding more context with the partial answer can
result in better output
Question: What kind of sh?
Category: Open-partans
Context: Still life with sh on a kitchen bench. A few eels meander on the left
side of the sales bench, in the middle a shimmering carp hangs on a thread, on
the right the rich esh of a sliced salmon lights up. The Antwerp painter Jacob
Foppens van Es presents a selection of di erent sh species on this virtuoso still
life. [...] Outcome: salmon
Operation: including the current sentence and next sentence in output
Outcome: A few eels meander on the left side of the sales bench, in the middle a
shimmering carp hangs on a thread, on the right the rich esh of a sliced salmon
lights up. The Antwerp painter Jacob Foppens van Es presents a selection of
di erent sh species on this virtuoso still life.</p>
      <p>Another category of incorrectly answered questions is fact-non. This is
because the system could not nd any hints towards the answer in the context.
In example 6, we see that there is no reference of the word \bottle" in the
context. Absence of a clear trace resulted in a \none" output. The sentence close
to the answer is elliptical in that the bottle is not mentioned. If we adapt the
provided context to make this explicit, the answer is correctly retrieved. This
example shows an important characteristic of the BERT span picking method.
We can see that there exists a cause-e ect relationship in the model. If we add
additional information in a coherent manner or break the internal rigidity, It can
be achievable to enrich the context without a ecting earlier performance.
Example 6 (Adding traces can improve output). Having an explicit trace is
crucial for retrieving an output. If we add a trace in the clue sentence we get an
output.</p>
      <p>Question: What's in the bottle?
Category: fact-none
Context: Adriaen Brouwer, The Bitter Potion (1076). The bitter potion that the
ragged young man has just consumed makes his facial features derailed. You can
almost taste it. [...] Outcome: none
Operation - Adding a trace in the next sentence: Adriaen Brouwer, The Bitter
Potion (1076). The bitter potion that the ragged young man has just consumed
makes his facial features derailed. You can almost taste it from the bottle.
Outcome: the bitter potion
6</p>
    </sec>
    <sec id="sec-6">
      <title>Conclusions and future directions</title>
      <p>We have studied the e ectiveness of BERT for both factoid and open-ended
questions, applied to one real-world domain. We have focused mainly on those
questions which are answerable. We have found that we get much better results
for factoid questions. But in our experiment we have also found that BERT was
able to answer open-ended questions in around 36% of cases. Based on these
results we can answer our rst research question, \Is BERT able to tackle both
factoid and open-ended questions", negatively.</p>
      <p>For the second research question, \What are the special characteristics when
dealing with a speci c domain and small dataset", we carried out a detailed
error analysis to identify which types of questions pose speci c problems. First
we categorised di erent subtypes of questions. Then we further grouped the
categories according to their di culty. Among the factoid questions, we have found
two groups: Questions which can be answered from one sentence in the
context (fact-1sent), and questions which need multiple sentences from the context
(fact-multi). In our experiment, questions which can be answered from just one
sentence are more often answered correctly. Answers which involve multiple
sentences from the context are quite di cult in this experiment. In the light of this,
we can predict that the performance on open-ended questions will be
comparatively lower, because they need multiple sentences from the context due to the
nature of the question. In our observation from the experiment, this expectation
was con rmed. Overall less than 40% of open-ended answers were acceptable.</p>
      <p>With respect to the connection to the context, open-ended questions can
be divided into two broad categories: questions which explicit clues which are
mentioned in the context (DirectClue) and those which ask for more broader
answers without any lexical hints (IndirectClue). In our experiment, open-ended
questions with direct clues had more acceptable outcomes. We also had positive
outcomes in 11 cases out of 72 broader indirect open-ended questions. Among
these questions, 9 were from open-happening and 2 from Open-meaning.</p>
      <p>For the last research question, \Does the structure and content of the
available data have any e ect on the performance of the system", we compared the
performance of the questions across di erent pictures. In our experiment we have
found the performance of just one picture was di erent from the other pictures.
For this picture, most of the questions were related to visual facts (e.g., \how
many people are there?") or facts which were not present in the provided
context. When we analyzed it more carefully, we found that the picture was di erent
(market scene consisting of several people) and most of the questions asked were
un-answerable from the context. This leads us to conclude that the speci c data
provided can have a large e ect on the performance of a question answering
system applied to a real world domain.</p>
      <p>From the results of the experiment we can also draw connections with the
training objective of BERT. The masked language model has a greater in uence
on identifying answers in a single sentence, whereas the next sentence prediction
can be related to identifying the context. It creates a kind of cause and e ect
relation which we also mentioned in our analysis as clue. So if the clue from the
question is matched in the context, it is more likely to give an acceptable answer.
But when the clue is much broader, like \the history" or \hidden meaning", we
are less likely to get a good answer, because the model is optimized to point to a
speci c clue reference. When we need multiple clues, the model can not retrieve
the answer. In our observation, when we need more than two sentences from the
context to answer a question, we expect to get unacceptable output.</p>
      <p>Finally, nding a partial answer is a problem for both factoid and
openended questions. For example, when we ask \Who painted", the model retrieves
the painter because in the context \x was painted by y", the part \painted
by" plays an important role to determine the outcome. This phenomenon is
obviously great in factoid questions, but for open-ended questions the scenario
is often not so straight forward. In our experiment we showed that if we add
to the context to make it more explicit, we can get an acceptable outcome.
In open-ended questions, questions which are very common but yield incorrect
answers are those which require broader answers consisting of a span of multiple
sentences. We name this as indirect Clue. In the future it can be further analyzed
whether we gain performance bene ts if instead of providing a single indirect
clue question, we generate multiple questions in relation to the main question
and combine the generated outcome.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. Antonio,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Soares</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Parreiras</surname>
          </string-name>
          ,
          <string-name>
            <surname>F.</surname>
          </string-name>
          :
          <article-title>A literature review on question answering techniques, paradigms and systems</article-title>
          .
          <source>Journal of King</source>
          Saud University-Computer and Information Sciences pp.
          <volume>806</volume>
          {
          <issue>809</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Barth</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Candello</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cavalin</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pinhanez</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Intentions, meanings, and whys: Designing content for voice-based conversational museum guides</article-title>
          .
          <source>In: Proceedings of the 2nd Conference on Conversational User Interfaces</source>
          . pp.
          <volume>1</volume>
          {
          <issue>8</issue>
          (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Cao</surname>
            ,
            <given-names>Y.g.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cimino</surname>
            ,
            <given-names>J.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ely</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu</surname>
          </string-name>
          , H.:
          <article-title>Automatically extracting information needs from complex clinical questions</article-title>
          .
          <source>Journal of Biomedical Informatics</source>
          <volume>6</volume>
          (
          <issue>43</issue>
          ),
          <volume>962</volume>
          {
          <fpage>971</fpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Dai</surname>
            ,
            <given-names>A.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Le</surname>
            ,
            <given-names>Q.V.</given-names>
          </string-name>
          :
          <article-title>Semi-supervised sequence learning</article-title>
          .
          <source>In: Advances in neural information processing systems</source>
          . pp.
          <volume>3079</volume>
          {
          <issue>3087</issue>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Dettmers</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Tpus vs gpus for transformers (bert) | tim dettmers</article-title>
          . https://timdettmers.com/
          <year>2018</year>
          /10/17/tpus-vs
          <article-title>-gpus-for-transformers-bert/ (10</article-title>
          <year>2018</year>
          ), (Accessed on 09/20/2020)
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Devlin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chang</surname>
            ,
            <given-names>M.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toutanova</surname>
            ,
            <given-names>K.N.</given-names>
          </string-name>
          :
          <article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>
          .
          <source>In: Proceedings of NAACLHLT</source>
          . pp.
          <volume>4171</volume>
          {
          <issue>4186</issue>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Gribanova</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Chatbots as a tool to enhance visitor experience in museums. a case study in the panorama museum</article-title>
          .
          <source>In: ISCONTOUR 2020 Tourism Research Perspectives: Proceedings of the International Student Conference in Tourism Research</source>
          . p.
          <fpage>62</fpage>
          . BoD{Books on Demand (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Hashemi</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Aliannejadi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zamani</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Croft</surname>
          </string-name>
          , W.B.:
          <article-title>Antique: A non-factoid question answering benchmark</article-title>
          .
          <source>In: European Conference on Information Retrieval</source>
          . pp.
          <volume>166</volume>
          {
          <fpage>173</fpage>
          . Springer (
          <year>2020</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Hirschman</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Light</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Breck</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Burger</surname>
            ,
            <given-names>J.D.</given-names>
          </string-name>
          :
          <article-title>Deep read: A reading comprehension system</article-title>
          .
          <source>In: Proceedings of the 37th annual meeting of the Association for Computational Linguistics</source>
          . pp.
          <volume>325</volume>
          {
          <issue>332</issue>
          (
          <year>1999</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Howard</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ruder</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Universal language model ne-tuning for text classi cation</article-title>
          .
          <source>In: Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)</source>
          . pp.
          <volume>328</volume>
          {
          <issue>339</issue>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>He</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Multi-task deep neural networks for natural language understanding</article-title>
          .
          <source>In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics</source>
          . pp.
          <volume>4487</volume>
          {
          <issue>4496</issue>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Nogueira</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cho</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scholar</surname>
            ,
            <given-names>C.A.G.</given-names>
          </string-name>
          :
          <article-title>Passage re-ranking with bert</article-title>
          .
          <source>arXiv preprint arXiv:1901</source>
          .
          <volume>04085</volume>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Peters</surname>
            ,
            <given-names>M.E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Neumann</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Iyyer</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gardner</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Clark</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zettlemoyer</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Deep contextualized word representations</article-title>
          .
          <source>arXiv preprint arXiv:1802</source>
          .
          <volume>05365</volume>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Qiao</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiong</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>Understanding the behaviors of bert in ranking</article-title>
          . arXiv preprint arXiv:
          <year>1904</year>
          .
          <volume>07531</volume>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Radford</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Narasimhan</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salimans</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Improving language understanding by generative pre-training (</article-title>
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Rajpurkar</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , Zhang, J.,
          <string-name>
            <surname>Lopyrev</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liang</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          : Squad:
          <volume>100</volume>
          ,000+
          <article-title>questions for machine comprehension of text</article-title>
          .
          <source>arXiv preprint arXiv:1606.05250</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Torrey</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shavlik</surname>
          </string-name>
          , J.:
          <article-title>Transfer learning</article-title>
          .
          <source>In: Handbook of research on machine learning applications and trends: algorithms</source>
          , methods, and techniques, pp.
          <volume>242</volume>
          {
          <fpage>264</fpage>
          . IGI global (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Vaswani</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shazeer</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parmar</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Uszkoreit</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jones</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gomez</surname>
            ,
            <given-names>A.N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kaiser</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Polosukhin</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Attention is all you need</article-title>
          .
          <source>In: Advances in neural information processing systems</source>
          . pp.
          <volume>5998</volume>
          {
          <issue>6008</issue>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Yang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xie</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tan</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiong</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lin</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          :
          <article-title>End-to-end open-domain question answering with bertserini</article-title>
          .
          <source>In: NAACL-HLT (Demonstrations)</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>