BERT Based Multilingual Machine Comprehension in English and Hindi
Paper · 2020 · Somil Gupta and Nilesh Khade
Summary
A question can be written in English even when the passage that answers it is in Hindi. The reader has to work out what the question asks, find the relevant words in the passage, and return them in the language in which they appear. This is a form of question answering called multilingual machine comprehension. It gives the system a specific passage to read and requires a direct quotation as its answer. The paper asks how well multilingual BERT, or m-BERT, can do this for English and Hindi, and what kinds of practice help it read across the language boundary.
The authors start with m-BERT, which was pretrained on Wikipedia text from 104 languages. They first teach it to select answers using English examples from SQuAD. They then continue fine-tuning on translated examples whose questions and passages are both in Hindi. In the last stage, they give it English questions paired with Hindi passages. The same answer-selection procedure applies throughout. It considers where the answer could begin and end in the passage, then returns the span with the strongest combined score. The authors test every version with English-only examples, Hindi-only examples, and questions and passages paired across languages in either direction.
Training for the task in English alone transfers imperfectly. On the translated SQuAD test set, the English-trained version falls well behind the earlier system on the variants that involve Hindi. Continuing training with Hindi examples produces stronger results. The authors report that augmented m-BERT surpasses the previous sequential system across the evaluation settings on translated SQuAD and MMQA. The strongest training route depends on the test. Hindi-only augmentation gives the best result for Hindi-only questions and passages on translated SQuAD. Adding English questions with Hindi passages then improves both mixed-language directions across the datasets, while slightly lowering the English-only and Hindi-only results relative to the preceding stage.
The authors also extend XQuAD, whose English and Hindi versions contain corresponding questions and passages and whose Hindi translations were produced by professionals. They combine questions from one version with passages and answer references from the other to create mixed-language tests. That gives later experiments a common way to examine both directions of English–Hindi comprehension. The qualitative analysis offers a separate caution about what the task measures. In the selected examples, direct factual questions fare better than questions asking why something happened. A returned phrase can show that the reader found material related to a question and still fall short of answering it.
Deep dive: BERT Based Multilingual Machine Comprehension in English and Hindi
How multilingual BERT learns to answer English and Hindi questions from passages in either language, and how the authors test that ability. · about 36 minutes to read
The problem and its context
Finding an answer inside a passage
The paper begins with a distinction between finding a document and finding the information that a person wants from that document. A search system can return relevant pages. A question-answering system is expected to return the answer itself. To do that over a collection of documents, it has to reach a useful source and then interpret what that source says. A failure at either stage can give the user a poor answer. In machine reading comprehension, the passage is supplied, so the experiment can concentrate on the second stage. This framing separates a question about reading from a question about information retrieval and search.
The output is deliberately constrained. An answer is a span, meaning a continuous stretch of the passage bounded by a beginning and an end. If a passage includes a person’s name and a longer phrase containing that name, the reader has to decide which stretch answers the question. Both stretches may be relevant, but the shorter one could fit a question asking who acted, while a larger stretch could fit a question asking what happened. The passage supplies the available words, and the question determines which of them belong in the answer. This is the aspect of natural language understanding the authors try to evaluate.
The multilingual setting changes the relationship between the inputs. In an English-only example, some of the words that indicate what the question is about may also appear in the passage. With an English question and a Hindi passage, the question still points to a particular person, event, or relationship, but the clues can take a different linguistic form. English and Hindi also use different scripts. The system must connect a request in one language with useful evidence in the other, then choose the boundaries of an answer in the passage. When the languages are reversed, the same task has to be solved with the roles switched. The direction matters because phrasing the request and supplying the evidence place different demands on the reader.
The authors motivate this problem by pointing to an imbalance in available material. A reader restricted to sources in the language of the question can miss information available in another language. They describe English as particularly well supplied with material and Hindi as having fewer resources for this kind of research. Even if a relevant English source exists, the user may want to formulate the question in Hindi. An English question can likewise have its best available evidence in Hindi. English-only reading, Hindi-only reading, and reading in each mixed-language direction are therefore separate cases in the paper’s treatment of multilingual and cross-lingual NLP.
Earlier routes to multilingual answers
The authors trace organized evaluation of multilingual question answering to a dedicated CLEF track dating to 2003. Their account describes a common strategy based on machine translation. A system can translate either the question or the source material to put both in the same language, then apply a reader designed for that language. The approach makes it possible to reuse a monolingual question-answering system. It also places translation between the original request and the answer-selection step. The approach explored in this paper instead lets the reader process a Hindi or English passage together with a question that may already be in the other language.
Work specific to Hindi had developed along several lines. The authors identify Prashnottar, introduced in 2012, as a Hindi-only question-answering system. They date the first English–Hindi multilingual question-answering framework in their account to 2018. That framework used similarity and ranking to select answers with the help of comparable documents in the two languages. Its questions and documents became the Multi-domain Multilingual QA dataset, or MMQA. The distinction between comparable documents and paired translations is important in the ensuing experiments. Two texts can concern the same subject while expressing its details in different ways. A reader may have an opportunity to find related information in both, even when a particular answer takes the form of a direct quotation in only one.
The immediate predecessor took a neural approach. It first constructed snippets from the available MMQA documents using a graph-based procedure that looked at similarities in wording and meaning between sentences. It then learned to relate the English and Hindi forms of a question through soft alignment. That alignment gave the system a way to connect words across the paired questions without assigning every word a single fixed partner. Representations of the snippets incorporated the resulting question information, and an answer-extraction component selected spans from the English and Hindi snippets together. The authors describe its main sequence-processing component as a bidirectional gated recurrent unit, or bi-GRU. It builds a representation of a sequence by processing its elements in both reading directions.
Both that predecessor and the proposed system can handle multilingual input without first translating a test item into a common language. They differ in how they get there. The predecessor uses paired questions and snippets as part of its design and learns with English and Hindi together. Gupta and colleagues start from a reader that already represents text from many languages and ask what can be obtained by presenting a single question and passage at a time. The earlier system’s joint-answering settings consequently sit outside the comparison. The overlapping task is the one in which a given question has to be answered from a specified passage.
Why try a multilingual pretrained reader?
The authors draw on earlier reports that multilingual BERT could support question answering involving English and languages such as French or Japanese. They also cite evidence of transfer to a language that had supplied no annotations for the task being evaluated. In such a test, a system first learns the operation it will be asked to perform, such as locating an answer span, from examples in an available language. It is then tested on whether it can perform that operation with text in a different language. The reported success across scripts was particularly relevant to trying the approach with English and Hindi.
That earlier work gave the authors a reason to try English training first. A multilingual reader might already encode enough relationships between languages for lessons about answer selection to carry over. Alternatively, the task could require practice reading Hindi passages, practice connecting English and Hindi within a single example, or both. Comparing successive training stages lets the authors investigate those possibilities using the same answer-extraction architecture. It also makes the relationship between the training conditions and the test conditions central to the paper. A system can have encountered Hindi during pretraining, learned how to answer questions using English passages, and still have had no supervised training in answering a Hindi question or extracting an answer from a Hindi passage.
The choice of a test set presented a separate problem. The previous system’s translated SQuAD data let the authors compare with earlier published results, but the files had to be obtained from the previous authors and repaired before use. In particular, answer strings and their stated locations could disagree with the passages. XQuAD offered professionally translated material in a compatible format, with corresponding English and Hindi items. It still needed mixed-language variants for the particular question this paper asks. The authors thus pursued both a comparison with the earlier system on its own benchmarks and an evaluation setup that future readers could use to test the language of the question and the language of the passage independently.
The method, step by step
From a question and passage to answer boundaries
Consider what the reader receives for a mixed-language example. It has a question in English and a passage in Hindi. The example asks for a span inside the Hindi text. The reader can use every word of the question to work out what to look for, and it can use the rest of the passage to interpret a possible answer. Its final decision concerns which part of that passage to return. There is no separate step that produces a translated question or translates the selected answer back into English.
The question and passage first go through tokenization, which represents each text as a sequence of units called tokens. The procedure packs those units into a single input. A special marker, [CLS], goes at the beginning, and [SEP] marks a boundary between parts such as the question and passage. The output corresponding to [CLS] can represent the whole input, as the paper’s description of the underlying BERT architecture explains. For choosing an extractive answer, the relevant outputs are the representations at passage positions.
Each input position combines information about the token, its position, and the segment it belongs to. The token contributes information about the item present in the text. Its position distinguishes occurrences and preserves where it sits in the packed sequence. The segment identifies whether it belongs to the question or the passage. This allows the reader to treat the two segments as distinct parts of one example. It also gives it a way to distinguish appearances of the same token in different positions or segments.
BERT then produces a contextual representation at each position. A contextual representation is a vector whose values can depend on the surrounding input. The token for a name, for instance, can be represented in light of the sentence in which it appears and the information requested by the question. A question that asks who performed an action can make different passage positions useful than a question that asks why the action happened. Putting the question and passage into the same sequence lets their representations be worked out together. The authors use BERT’s Transformer and attention architecture for this part of the process.
The answer layer adds two learned vectors. One scores each passage token as a possible start, and the other scores each passage token as a possible end. A possible answer combines a start and an end to define a continuous stretch of text. The answer layer combines the scores for those endpoints and uses the strongest span to make its prediction. Consequently, the question determines which evidence is relevant, the passage fixes the words that can be returned, and the two endpoint decisions determine the extent of the answer.
How multilingual BERT selects an answer span
The steps in order.
The span scorer in detail
The paper uses parallel notation for the input and output representations. Eᵢ is the input representation of the question token at position i, and E′ᵢ is the corresponding notation for a passage token on the answer side. Tᵢ and T′ᵢ denote their contextualized outputs. A prime distinguishes the passage-side symbol from the question-side symbol. The letter E also appears without a position subscript as the learned end vector. That use refers to a parameter of the output layer, while the indexed E symbols refer to input representations.
S ∈ ℝᴴ
S is the learned start vector. The membership sign ∈ means that S belongs to ℝᴴ, the space of vectors with H real-valued coordinates. H is the width of the contextual representations produced by the encoder. Matching that width lets the layer compare the start vector with any passage representation by taking their dot product.
E ∈ ℝᴴ
E is the learned end vector. The sign ∈ and the space ℝᴴ have the same meanings as for S, and H is again the representation width. Having a separate vector for the end allows the learned evidence for ending a span to differ from the evidence for starting it. A passage position can be a good endpoint for one role without getting the same score for the other.
Pᵢ = exp(S · T′ᵢ) / ∑ⱼ exp(S · T′ⱼ)
Pᵢ is the probability assigned to passage position i as the beginning of the answer, and the equals sign defines it using the expression on the right. S is the start vector and T′ᵢ is the contextual output at that position. The dot symbol · is the dot product, which pairs coordinates from the two vectors, multiplies them, and adds the products. The function exp exponentiates the resulting score. The slash means division, and ∑ⱼ adds the exponentiated scores over candidate passage positions j, using T′ⱼ for the contextual output at each such position. The denominator makes each start probability depend on the alternatives within that passage. This normalization is the softmax.
The paper describes the end calculation as the parallel operation. Written with the end vector substituted for the start vector, it takes the following form.
Pᵢᵉⁿᵈ = exp(E · T′ᵢ) / ∑ⱼ exp(E · T′ⱼ)
Pᵢᵉⁿᵈ is the probability assigned to i as the end of the answer. E is the learned end vector, and T′ᵢ is the passage output at the position whose end probability is being calculated. The equals sign defines that probability. The symbol · again denotes a dot product and exp exponentiates its score. The slash divides by the sum ∑ⱼ of exponentiated end scores, where j ranges across the candidate passage positions and T′ⱼ is the contextual output at each one. A token’s start and end probabilities come from different sets of scores even though both sets use the same contextual outputs.
For choosing an answer, the paper gives a combined score in terms of the underlying dot products.
S · T′ᵢ + E · T′ⱼ
Here i is a candidate start and j is a candidate end. S and E are the learned start and end vectors, while T′ᵢ and T′ⱼ are the contextual outputs at the proposed boundaries. The dots form the respective dot products and the plus sign adds the two scores. The reader chooses the span with the largest combined score. In the probability formulas, j was an index ranging over positions in a sum. In the span score, it identifies the particular proposed endpoint.
Training uses the sum of the log-likelihoods of the annotated start and end. For a training example with a gold span, this rewards assigning high probability to the recorded beginning and ending positions. The output layer learns what kinds of contextual representation tend to occur at the right boundaries. The parameters in the pretrained encoder are also adjusted, allowing the representation of the question and its relationship to the passage to become more useful for span selection. The authors mention overlap-based selection as a way to seek a useful contiguous answer when relevant material is discontinuous. The architecture described for the experiments still returns a single span.
What pretraining supplies
The starting point is BERT-Base, Multilingual Cased. The paper lists it as covering 104 languages and describes it as 12-layer, 768-hidden, and 12-heads, with 110M parameters. Those figures refer to the pretrained architecture. The layer count describes the encoder’s depth, the hidden width describes the size of its internal representations, and the heads are parallel attention components that can attend to different relationships in the sequence. The same starting architecture is used in the successive training conditions.
The multilingual variant uses the architecture and interfaces of monolingual BERT. In the authors’ account, the difference relevant here is the material used for pretraining. They describe the original English variant as learning from Wikipedia and BooksCorpus and the multilingual variant as learning from a collection of Wikipedia corpora in different languages. The multilingual input is a concatenation of monolingual corpora. Its Hindi and English text need not come as corresponding translations for the initial training described in the paper. The authors discuss this stage as unsupervised pretraining and name masked language modelling and natural language inference in their account of BERT’s training objectives.
From the paper’s perspective, pretraining and task training supply different things. Pretraining provides parameters that already process text in the languages of interest. The supervised question-answering examples give the system its task. They associate a question and passage with an answer, including the positions that mark the answer’s boundaries. By using the same multilingual starting point for each chain of experiments, the authors can ask what changes when task supervision begins to use Hindi. That is a more specific question than whether the pretrained reader has encountered the language at all.
The paper cites earlier cross-script transfer work as the motivation for expecting some shared structure across languages. If such structure is already available to the span reader, learning to extract answers in English may help it extract answers from Hindi even without Hindi task examples. The role of the first training stage is to measure how far that implicit transfer goes. The further stages supply explicit experience with Hindi passages and, eventually, with the question and passage in different languages. The experiment observes the consequences for answer selection. The authors do not prescribe a different internal representation or alignment mechanism for each stage.
The order of supervised training
Training begins with the original English SQuAD 2.0 training set. The paper gives its size for this experiment as 150K question-answer pairs. The resulting checkpoint is a saved version of the parameters after this first stage. The authors call it the zero-shot baseline because no Hindi question-answering examples have been used in task training. When the checkpoint is evaluated on English questions with English passages, it is being tested in the same language in which it learned the task. The zero-shot aspect concerns transfer to test inputs involving Hindi.
The next stage begins from each of those English-trained checkpoints. It continues training on the Hindi-only version of the translated SQuAD training split, which the experiment describes as around 10.5K QA pairs. Both question and passage are in Hindi, and the answer is drawn from the Hindi passage. This gives the reader supervised experience in using a Hindi question to find a Hindi answer. It also teaches the span layer how to make these boundary decisions on Hindi text. Any effect on mixed-language tests at this point is a transfer effect in the sense that no example at this stage asks the reader to bridge a language difference between its question and passage.
The last stage begins from each checkpoint that has completed Hindi-only augmentation. The authors then pair English questions with their corresponding Hindi passages and supervise the reader using the Hindi answer spans. This retains the passage language from the preceding stage but changes the language through which the information request is expressed. The trained system now has direct examples of the mixed-language operation it will face in one of the tests. The reverse direction, Hindi questions over English passages, remains an evaluation condition. The paper describes the choice of English questions over Hindi passages for the final training stage as arbitrary.
Every configuration has 10 parallel fine-tuning runs, with 30,000 steps per run. Each saved checkpoint from a preceding stage has a corresponding descendant in the next. This matters for understanding what the labels mean. The Hindi-only augmentation condition includes the earlier English training, and the mixed-language augmentation condition includes both earlier stages. The comparisons therefore concern an ordered sequence of additions. They describe what happens when a reader at a specified point in that sequence receives another period of supervision with a particular input pairing.
The authors also considered putting both languages’ question-answer material into a joint input, in the spirit of the predecessor. Their motivation was to give the reader text and its translation together, so it could learn from that explicit pairing. The reported training sequence instead keeps one question and one passage in each input. A mixed-language example still depends on correspondence between source versions during data preparation. At prediction time, the reader receives a question and a passage in the selected languages and makes its answer decision from that pair.
Keeping the answer with its passage
Constructing the variants requires preserving the relationship between the passage and its answer. In the mixed-language training direction, the English form of a question has to ask for the information annotated in the corresponding Hindi passage. The answer text and its start position belong to that Hindi passage. In the reverse evaluation direction, the Hindi form of the question is paired with the English passage, and the English answer serves as the reference. Switching the question language while keeping the passage and answer together preserves a meaningful target for extraction.
The SQuAD representation organizes questions under the passage they concern. It includes an identifier for each question and records the answer text and where it begins. That organization suits BERT’s existing question-answering interface. The interface can pack the question and passage for the encoder, while training can use the reference location to identify the correct token boundaries. The translated SQuAD tuples inherited from the earlier project already offered question, passage, answer and token positions in both languages, but several fields needed repair before they could serve this purpose.
Some translated answer strings differed from their passages by characters or spacing. Some annotated starting locations pointed to the wrong part of the passage. The authors applied pattern-based corrections to the text, including repairs to punctuation spacing and abbreviations, then looked for each corrected answer string in its context to recover the start position. They also looked up questions in SQuAD 2.0 to recover identifiers and used shared passages to group questions that had become separated. The repaired training examples supplied the augmentation variants, and the repaired test examples supplied the corresponding evaluation variants.
MMQA required a different kind of conversion because its reference answers can be phrased independently of the snippet. In that case a reference answer can be recorded as text for scoring even when it has no valid start position. The authors take advantage of the fact that the SQuAD scoring script compares answer strings for Exact Match and F1. The positions needed to supervise a span extractor are unnecessary for that comparison. This is what lets them evaluate the reader on MMQA’s references despite the mismatch between some reference answers and the form of output the reader can produce.
For XQuAD, the English and Hindi subsets already have corresponding passages and questions in the required format. The authors can retain the original English-only and Hindi-only versions, then create both mixed-language variants by bringing the appropriate question over from the other version. In this case the span stays anchored to the passage whose reference annotations accompany it. The extension is a rearrangement of aligned material for evaluation. The training stages described in the paper use SQuAD and the inherited translated subset.
Experiments and results
What the test conditions measure
The evaluation crosses the language of the question with the language of the passage. The paper writes Q for a question, P for a passage, and uses E and H to identify English and Hindi. In the English-only condition, both pieces are English, and in the Hindi-only condition, both are Hindi. The mixed conditions use an English question over a Hindi passage or a Hindi question over an English passage. In either mixed condition, the passage determines the language of the reference answer. These tests can reveal a practical asymmetry that a combined multilingual score would hide. A reader may handle Hindi as a passage language differently from how it handles Hindi as the language of a question.
Each saved checkpoint is evaluated on every language pairing for each dataset. The study reports 120 prediction sets per training setup. A prediction set contains the reader’s outputs for a particular benchmark and pairing using a particular checkpoint. The authors score each set with the SQuAD evaluation script, then average across the 10 checkpoints for the relevant dataset, training stage and evaluation condition. The resulting comparisons describe average checkpoint performance under a specified setup. They do not treat the saved readers as an ensemble that votes on each question.
Exact Match, abbreviated EM, measures the percentage of predictions that exactly match an accepted reference answer under the evaluation procedure. Where several reference answers exist, matching any of them is sufficient for that item to count as an exact match. F1 gives credit for overlap between a prediction and the reference. A phrase that includes some of the required words but misses a boundary can receive overlap credit without being an exact match. This matters because the reader can find the right part of a sentence and still choose too little or too much text. The metrics capture different consequences of that mistake.
Both scores operate on the returned answer. They can establish whether the selected text coincides with, or overlaps, the expected response. A score does not identify the path by which the reader reached the response. In particular, the evaluation does not ask whether the reader first matched a name, connected a pronoun to an earlier mention, or recognized an event through its description. Those explanations can be considered through the examples and training comparisons, while the aggregate metrics remain measurements of the observed output.
Translated SQuAD
The inherited translated SQuAD dataset was made from 18,454 randomly chosen SQuAD instances with corresponding Hindi machine translations. The paper gives the training, validation, and test sizes as 10,454, 2K, and 6K, respectively. The augmentation stages use variants of the training split. The main benchmark comparison uses variants of the test split. The English-only starting stage uses the full original English SQuAD 2.0 training set rather than just the English half of the inherited subset.
The paper puts SQuAD in context by describing version 1.0 as containing 100K+ questions and version 2.0 as adding over 50K questions with an emphasis on unanswerable cases. Those figures describe the versions of the parent benchmark. The size associated with the first stage of this experiment is the 150K QA pairs the authors report for the original English SQuAD 2.0 training set they use. The training split inherited for Hindi and mixed-language augmentation is the smaller, machine-translated collection. Distinguishing these quantities is necessary to understand why each training stage exposes the reader to a different amount of supervision.
On the translated test set, the authors compare against the sequential system’s previously reported scores and against their own English-trained checkpoint. That checkpoint performs well below the prior system in the test conditions that use Hindi. The Hindi-augmented systems supply the authors’ improvement over the sequential comparison. For the Hindi-only pairing, the paper singles out the checkpoint after Hindi-only augmentation as the best-performing training condition on this dataset. The mixed-language stage brings further gains when question and passage are in different languages, alongside a small decline in the same-language cases relative to the preceding checkpoint.
The result takes on added meaning because the clean-up procedure is specific to extractive reading. A mismatch between reference text and passage can make a correct-looking answer impossible to fit to an exact location. Repairing those inconsistencies makes it possible to train and score the m-BERT reader in the expected format. The comparison scores for the predecessor come from its publication. The result therefore documents the relative outcomes reported for this benchmark, with the inherited data reformatted for m-BERT and the earlier row taken from the original report.
MMQA
The full MMQA collection contains around 5,500 QA pairs, written by human annotators, based on 500 articles across 6 domains. Its source articles have comparable English and Hindi documents. A question can ask for a fact or request a short description. The benchmark used in this comparison is the subset of about 3960 pairs that the earlier system used. Gupta and colleagues use the snippets generated for that subset by the earlier system’s passage-selection procedure.
The benchmark files mark whether an instance is English only, Hindi only, or available in both languages. The authors use that information to construct the relevant language variants. The selection of the snippet is already done for the reader, consistent with the study’s concentration on answering from supplied context. Thus the m-BERT results on MMQA evaluate span selection from those snippets. They do not also evaluate whether m-BERT can locate the snippets among the original comparable documents.
The paper reports that augmented m-BERT improves on the earlier scores on MMQA as well as on translated SQuAD. This comparison extends the observation beyond the translated SQuAD format of the augmentation data. On MMQA, both the available evidence and the reference-writing procedure differ from that training source. Some references are direct passages of text and some may be freer descriptions. As a consequence, one contribution to the score is whether an appropriate answer can be expressed in a contiguous stretch of the supplied snippet at all.
The cross-lingual training stage again improves the mixed-language evaluation conditions in the authors’ discussion. The comparisons on MMQA therefore address more than how closely the system can reproduce the kind of training example it has just seen. The final augmentation examples come from translated SQuAD, whereas the MMQA snippets and human-written questions come from the distinct benchmark used by the predecessor. The observed direction of the result concerns this transfer between evaluation collections, as well as the transfer between the two mixed-language directions.
Extended XQuAD
The first version of the XQuAD benchmark uses 240 paragraphs and 1190 question–answer pairs taken from the SQuAD v1 development set.1. The paper describes translations into ten languages, including Hindi. Its rationale for choosing XQuAD is that professional translation supplies a more reliable basis for English–Hindi evaluation than the inherited machine-translated subset and that its fields already correspond to what an extractive BERT reader needs. The independently added part of the paper’s XQuAD evaluation is the construction of the English–Hindi and Hindi–English variants alongside the same-language versions.
The authors report m-BERT results for the successive training stages on this extended set. The discussion places XQuAD within the pattern of improvements for both mixed-language directions after the final augmentation stage. The scores serve as starting points for future comparison on the authors’ version of the benchmark. The prior sequential system does not appear as a comparator on XQuAD because its source was unavailable to the authors. The head-to-head result concerns translated SQuAD and MMQA.
The benchmarks answer related questions with different materials. Translated SQuAD supplies continuity with the earlier scores and with the training source used for Hindi augmentation. MMQA uses human-authored questions and previously generated snippets from comparable multilingual documents. XQuAD supplies aligned versions of professionally translated evaluation material and allows the language of a question to be switched while retaining its corresponding answer in the passage. A pattern reported across all three therefore spans several data preparation methods. It still concerns one language pair and the specific supplied-passage task.
How much the results establish
The paper identifies separate EM and F1 tables for each benchmark, with the earlier system’s scores included on the datasets for which they were available. The table descriptions specify what the cells measure and how checkpoint scores are averaged, but give no individual EM or F1 values. The authors’ discussion establishes the reported direction of the gains, the weaker zero-shot performance on Hindi-related translated SQuAD tests, and the tradeoff between mixed-language and same-language evaluation after the last training stage. Those statements leave the size of the score changes unquantified.
One numerical comparison the authors give is the prevalence of descriptive questions. They report 10% for the translated SQuAD data used for augmentation, citing 1.3K descriptive questions within the 10.5K training examples they discuss. For parent SQuAD, they cite a descriptive share of 11.9%. The chart shows these as reported shares of descriptive questions, rather than as scores for the systems. The composition is relevant to interpreting the results because a training collection with relatively few descriptive requests gives the reader less practice in selecting answers to that kind of question.
Descriptive question share in parent and translated SQuAD
The translated SQuAD training collection used for augmentation has the smaller reported share of descriptive questions.
The numbers
| System or setting | Descriptive questions % |
|---|---|
| Parent SQuAD | 11.9 |
| Translated SQuAD augmentation training set (this paper) | 10 |
The paper’s qualitative comparison draws predictions from the training condition that did best for the particular benchmark and language pairing examined. It shows cases with an exact match, a partial match, and a mismatch, and includes predictions from the previous system wherever a shared example was available. The selection is useful for seeing what a score means at the level of a passage. For instance, choosing a pronoun rather than the name to which it refers can yield a short and locally plausible answer that a reader finds less informative. Selecting an event related to the question can still miss the reason the question asks for. The next section examines what those examples and the staged comparisons can tell us about why the reader succeeds or fails.
What the ablations show
What changes when Hindi enters the training sequence
The paper does not report a component-removal ablation. It offers staged fine-tuning comparisons, an analysis of the frequency of descriptive questions, and a close reading of selected predictions. The stages hold the broad form of the reader and its span-selection procedure constant. What changes is the supervision it has received by the time it reaches a given test. This makes the comparisons informative about the training sequence without isolating the contribution of individual pieces of the architecture.
The zero-shot checkpoint is the first comparison point. It has encountered Hindi during pretraining and has learned the mechanics of supervised answer selection from English SQuAD. Its poorer results on the Hindi-related translated SQuAD variants show that this combination leaves a task-specific gap. The next checkpoint receives Hindi questions and Hindi passages. The rise in Hindi-only performance is evidence that practice in that setting helps the reader answer from Hindi. On translated SQuAD, the Hindi-only result favored this stage even after the mixed-language stage became available.
That comparison also helps specify what the Hindi-only data can teach. It provides the reader with examples of how a Hindi question indicates the kind of information to look for and how that information appears in a Hindi passage. It supplies answer boundaries on Hindi text. It gives no direct training example in which an English question signals which part of a Hindi passage to extract. A gain on such a test would reflect transfer from the new reading practice or the multilingual representations already available. The final stage puts the mixed-language relationship inside the supervised example, allowing a more direct comparison.
A gain in the direction omitted from training
Of the mixed-language directions, the final training stage uses English questions over Hindi passages. Improvement on the evaluation variant with this structure is consistent with the value of matching the training and test conditions. The gain on Hindi questions over English passages is informative for a different reason. The final stage contains no direct examples of that reversed pairing. The authors report improvements on both mixed-language evaluations across the datasets. The resulting reader thus benefits outside the precise mixed-language direction it practiced.
The paper suggests that either choice of mixed-language direction would have served its goal of demonstrating m-BERT’s potential, while acknowledging that the size of the gain can depend on the choice. The reported comparison establishes transfer from the chosen augmentation direction to the reversed evaluation direction. A comparison that swaps the direction of the final training data would be needed to observe the reverse training route. This qualification concerns the evidence for symmetry. The observation that the trained direction helps both evaluations stands by itself.
The small declines on same-language evaluations after the mixed-language stage help locate the tradeoff. A reader can become better at choosing spans when there is a language difference between question and passage and slightly worse when both are English or both are Hindi. That pattern suggests a specific change in task behavior following augmentation. It also means the final stage is not automatically the preferred checkpoint for every intended use. The experiment identifies which setting tends to benefit from the most recent kind of practice, while keeping the earlier training in place.
Corpus size and the training comparison
The authors also interpret their training results through the difference in scale between the original English training material and the augmentation data. In the discussion, they refer to 100K instances for SQuAD in making the size comparison and to 10.5K for augmentation. Their training protocol separately specifies 150K QA pairs for the original SQuAD 2.0 training set used at the start. The argument is that the larger English corpus provides considerably more examples from which to learn the task and that more Hindi supervision could give the later stages more room to improve.
This is a hypothesis about why the stages have different effects. The experiment changes several things together. The initial English training teaches the span task to the pretrained encoder, whereas the Hindi and mixed-language stages begin with a reader that already knows that task. The original and translated materials also differ in language and preparation. The amount of new data, the point in training at which it is introduced, and the kind of question-passage pairing all matter to the comparison. The paper provides no run in which the size of a Hindi training set is varied while that language pairing and training position are held fixed.
The design does nevertheless say something concrete about the usefulness of the available Hindi material. The reported improvements are achieved with the actual augmentation split and the order in which the authors present it. A reader can benefit from that material even though it is smaller than the original English training source and required preprocessing. The stronger conclusion that training size caused the gap between stages remains an interpretation. It motivates the paper’s proposal to explore larger multilingual training resources.
What specific predictions reveal
The authors point to cases in which the selected answer resolves a reference within the passage. In Q2, the reader returns the name Pumban Island where the earlier system’s answer is the pronoun It. The directly named place is more informative in isolation. The example is consistent with the reader connecting an anaphor, a form that refers back to something already mentioned, with the name that supplies its meaning. It also shows how answer selection can depend on finding the most useful mention rather than simply choosing the closest phrase to a cue in the question. The relevant capability is coreference resolution.
The other reference example, Q4, goes in the opposite textual direction. The reader selects Robert Lane and Benjamin Vail in preference to a preceding description of the men. The authors discuss this as an example of handling cataphora, where the fuller identifying material comes later. The result is visible in the returned phrase. Whether the reader internally resolves both expressions to the same people or reaches the names through some other textual cue remains open. Similarly, the authors’ suggestion that the earlier answer may reflect the sequential architecture is a proposed explanation drawn from the examples. There is no dedicated reference-resolution test comparing those architectures.
A different pattern emerges in questions that request an explanation. The authors’ qualitative set includes exact matches for the selected factoid questions, while only one descriptive example gets a partial match. The descriptive examples show several ways of finding related passage material without answering the question. For Q3, the authors regard the response as conceptually appropriate even though the match is incomplete. In Q5, they describe the prediction as using the idea of martyrdom where the question refers to execution. The phrases concern the same matter, but that relationship is insufficient to supply the requested explanation. The response to Q6 essentially repeats the question’s meaning using wording available in the other language.
Those examples distinguish locating related material from choosing text that performs the right explanatory work. A question asking why an event occurred generally requires a phrase that supplies a reason. A span can mention the event, use a closely related expression, or reproduce its description across languages and still omit that reason. This is why the authors connect the error analysis to the scarcity of descriptive questions in training. The errors point towards a gap involving reasoning, while the distribution of questions suggests one plausible source of insufficient practice. The paper’s evidence here comes from selected examples and the reported composition of the data. It leaves the magnitude and cause of the descriptive-question gap for a broader evaluation.
Limitations
Limits the authors identify
The authors have reservations about the translated SQuAD subset as a lasting English–Hindi benchmark. They had to obtain it from the previous authors after failing to find it at the stated location. Its machine translations also introduced problems in matching answer text to its passage. Repairing the fields is necessary for the comparison they want to make, and it adds work for anyone seeking to repeat it. Their preference for extended XQuAD is grounded in the availability of compatible data and the quality advantages they attribute to professional translation.
The reason they evaluate the earlier system on only the inherited benchmarks is distinct from the reason they prefer XQuAD for future work. The prior publication provides results on translated SQuAD and MMQA. Its source was unavailable to the authors, so they could not generate scores on the extended XQuAD conditions. The claim of an improvement over that prior system depends on the benchmarks they share. XQuAD supplies a baseline using the new approach and test variants, with the earlier comparison absent.
The authors view the amount of Hindi and mixed-language supervision as another constraint. The available augmentation set is much smaller than the English resource used to teach the task at the start. They propose considering an extension of XQuAD for training using the rest of the SQuAD corpus. That is a proposed route to more multilingual examples. The evaluation set used in the study and its new question-passage pairings do not themselves constitute such a large training resource.
The authors also identify the scarcity of descriptive questions as a problem in SQuAD and its translated derivative. Expanding training with more material of the same composition could leave the reader with relatively little practice on questions requiring explanations. The authors therefore propose evaluating the approach with enough multilingual descriptive questions for further fine-tuning. This is a separate research direction from increasing the overall number of examples. It would address the kind of supervision the reader receives, as well as its quantity.
Limits visible in the setup
The task gives the reader a passage. A system that performs well can help answer a question once the relevant context has already been selected. An application that starts with many documents would also need to find suitable material, which the span scores do not evaluate. On MMQA in particular, the snippets come from the earlier system’s selection procedure. The experiments can therefore neither compare document-retrieval strategies nor determine how answer quality would change if the passage-selection procedure delivered less relevant text.
The requirement to output a continuous quotation sets a second boundary. Some MMQA references are abstractive or may draw together material from different parts of an article. If the reference gives the right information in words that no single passage span contains, an extractive reader can have difficulty matching it even when a related span is available. The paper accommodates such cases by evaluating with reference text and omitting unavailable start positions. That preserves the evaluation examples. It also means that agreement with the references reflects both the reader’s choice of span and how well a span can express the expected answer.
The roles of translation in training and testing also matter. In translated SQuAD and the extended XQuAD conditions, mixed-language questions and passages are paired through corresponding versions of existing questions and passages. This controls which question is supposed to match which passage. A naturally occurring Hindi question asked about an independently written English text might express its request in a different way from a translated counterpart. The study gives evidence for the pairings it constructs and for the MMQA variants it can form. It provides no separate estimate of how performance depends on whether a question was written independently, translated, or paired through a corresponding reference example.
The stages show the effects of continuing from chosen checkpoints. There is no matched continuation reported in which the same saved reader trains for the same extra period on an unchanged type of example, or in which the same augmentation material is presented in a different order. The comparison therefore cannot fully separate the amount of additional optimization from the content of the new supervision. It also does not establish that Hindi-only augmentation is required before mixed-language training. What is directly supported is the performance pattern of the sequence the authors actually ran.
Similarly, the pretrained coverage of 104 languages does not make this an evaluation across all those languages. Only English and Hindi enter this experiment as question or passage languages. The reverse-direction result is strong evidence for transfer within the particular English–Hindi setup, instead of a measurement of how the same training recipe behaves with a different pair. Differences in available supervision, script, and evaluation materials would have to be examined in those other settings. The claim here can stay specific to the languages and benchmarks under study.
There is also a distinction between a difference in averages and the stability of that difference. The authors average the results over 10 checkpoints, which gives a broader view of a training condition than a single chosen checkpoint. The description of those averages does not establish how much scores vary across runs, how consistently every paired continuation improves, or how sensitive the results are to examples within a particular benchmark. Characterizations such as a marginal same-language decline or a stronger mixed-language result concern the reported aggregate pattern.
Finally, the qualitative analysis was assembled to include exact matches, partial matches, and incorrect answers. Its examples come from the best training stage for each chosen test condition. They show what kinds of success and error can occur. They cannot estimate how frequently such cases occur in a random sample of the dataset, and they cannot compare question types across one fixed checkpoint on equal terms. The descriptive question shares give evidence about composition, while the illustrated predictions give evidence about behavior on particular items. A quantitative claim about the reader’s relative accuracy on explanatory and factoid questions would require scores broken down by question type.
What came after
MahaSQuAD: Bridging Linguistic Divides in Marathi Question-Answering, from 2023, cites the English–Hindi study and brings Marathi question answering into the later research record. Its title identifies a question-answering effort centered on Marathi. The connection lies in a shared concern with developing question-answering resources and evaluation outside English. Gupta and colleagues make that concern concrete for English and Hindi by identifying the language of the question and the language of the evidence separately, then evaluating the same reader across the resulting pairings.
The citation establishes that MahaSQuAD engaged with the earlier work. Its title and citation alone leave the nature of that use unspecified. They give no basis for attributing the English-to-Hindi training sequence, the construction of mixed-language XQuAD tests, or a particular comparison with m-BERT to the Marathi study. The documented link is between an English–Hindi study that made the language of each input an explicit evaluation choice and a later work concerned with question answering in Marathi.
Cite
Cite as Somil Gupta and Nilesh Khade. 2020. BERT Based Multilingual Machine Comprehension in English and Hindi. arXiv (Cornell University).
@misc{gupta2020bert,
title = {{BERT Based Multilingual Machine Comprehension in English and Hindi}},
author = {Somil Gupta and Nilesh Khade},
year = {2020},
doi = {10.48550/arxiv.2006.01432},
eprint = {2006.01432},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2006.01432}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/gupta-2020-bert-based-multilingual-machine-comprehension/
References
- authorpersonMikel Artetxe, personSebastian Ruder, and personDani Yogatama. year2019. On the cross-lingual transferability of monolingual representations. journalCoRR volumeabs/1910.11856 (year2019). 1910.11856 our card
- authorpersonKyunghyun Cho, personBart van Merrienboer, personÇaglar Gülçehre, personFethi Bougares, personHolger Schwenk, and personYoshua Bengio. year2014. Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation. journalCoRR volumeabs/1406.1078 (year2014). 1406.1078 http://arxiv.org/abs/1406.1078 our card
- authorpersonJacob Devlin, personMing-Wei Chang, personKenton Lee, and personKristina Toutanova. year2018. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. journalCoRR volumeabs/1810.04805 (year2018). 1810.04805 http://arxiv.org/abs/1810.04805 our card
- authorpersonDeepak Gupta, personAsif Ekbal, and personPushpak Bhattacharyya. year2019. A Deep Neural Network Framework for English Hindi Question Answering. journalACM Trans. Asian Low-Resour. Lang. Inf. Process. volume19, number2, Article articleno25 (dateNov. year2019), numpages22 pages. 2375-4699 https://doi.org/10.1145/3359988 OpenAlex ↗ · Scholar ↗
- authorpersonDeepak Gupta, personSurabhi Kumari, personAsif Ekbal, and personPushpak Bhattacharyya. year2018. MMQA: A multi-domain multi-lingual question-answering framework for English and Hindi. In booktitleProceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018). OpenAlex ↗ · Scholar ↗
- authorpersonJiahua Liu, personYankai Lin, personZhiyuan Liu, and personMaosong Sun. year2019. XQA: A Cross-lingual Open-domain Question Answering Dataset. In booktitleProceedings of the 57th Annual Meeting of the Association for Computational Linguistics. publisherAssociation for Computational Linguistics, addressFlorence, Italy, pages2358–2368. https://doi.org/10.18653/v1/P19-1227 OpenAlex ↗ · Scholar ↗
- authorpersonBernardo Magnini, personDanilo Giampiccolo, personLili Aunimo, personChristelle Ayache, personPetya Osenova, personAnselmo Peñas, personMaarten de Rijke, personBogdan Sacaleanu, personDiana Santos, and personRichard Sutcliffe. year2006. The Multilingual Question Answering Track at CLEF. In booktitleProceedings of the Fifth International Conference on Language Resources and Evaluation (LREC'06). publisherEuropean Language Resources Association (ELRA), addressGenoa, Italy. http://www.lrec-conf.org/proceedings/lrec2006/pdf/816_pdf.pdf OpenAlex ↗ · Scholar ↗
- authorpersonTelmo Pires, personEva Schlinger, and personDan Garrette. year2019. How multilingual is Multilingual BERT? journalCoRR volumeabs/1906.01502 (year2019). 1906.01502 http://arxiv.org/abs/1906.01502 our card
- authorpersonPranav Rajpurkar, personRobin Jia, and personPercy Liang. year2018. Know What You Don't Know: Unanswerable Questions for SQuAD. journalCoRR volumeabs/1806.03822 (year2018). 1806.03822 http://arxiv.org/abs/1806.03822 our card
- authorpersonPranav Rajpurkar, personJian Zhang, personKonstantin Lopyrev, and personPercy Liang. year2016. SQuAD: 100, 000+ Questions for Machine Comprehension of Text. journalCoRR volumeabs/1606.05250 (year2016). 1606.05250 http://arxiv.org/abs/1606.05250 our card
- authorpersonShriya Sahu, personNandkishor Vasnik, and personDevshri Roy. year2012. Prashnottar: A Hindi Question Answering System. journalInternational Journal of Computer Science & Information Technology volume4 (date05 year2012). our card
- authorpersonWissam Siblini, personCharlotte Pasqual, personAxel Lavielle, and personCyril Cauchois. year2019. titleMultilingual Question Answering from Formatted Text applied to Conversational Agents. 1910.04659 [cs.CL] OpenAlex ↗ · Scholar ↗
- authorpersonFerhan Türe and personElizabeth Boschee. year2016. Learning to Translate for Multilingual Question Answering. journalCoRR volumeabs/1609.08210 (year2016). 1609.08210 http://arxiv.org/abs/1609.08210 OpenAlex ↗ · Scholar ↗
- authorpersonShijie Wu and personMark Dredze. year2019. Beto, Bentz, Becas: The Surprising Cross-Lingual Effectiveness of BERT. In booktitleEMNLP/IJCNLP. our card