Linguistically-Based Deep Unstructured Question Answering
Paper · 2018 · Ahmad Aghaebrahimian
Summary
A question-answering system can locate the relevant information and still return an awkward answer. It may include an unnecessary qualifier, stop before a phrase is complete, or choose boundaries that overlap the reference answer without expressing it cleanly. “Linguistically-Based Deep Unstructured Question Answering” addresses this boundary problem by changing what the system is allowed to select. Instead of treating every possible stretch of words as equally eligible, it proposes answers from the grammatical units identified by a constituency parser. These units include noun phrases, verb phrases, and other parts of a sentence that form a syntactic whole.
The paper combines this restriction with a learned comparison procedure. Each candidate answer is represented in relation to both the question and the sentence containing it. An attention mechanism helps emphasize the candidate’s relevant content under each of these perspectives. The question indicates what information is wanted; the sentence supplies the local meaning of the proposed answer. The system combines these perspectives, scores the resulting candidates, and returns the strongest constituent. Its central contribution is therefore a combination of explicit linguistic boundaries and question- and sentence-sensitive answer representations.
The experiments compare constituent selection with word-boundary prediction, and attention to the question alone with attention to both question and sentence. On the development split of SQuAD, the strongest configuration obtains exact match of 80.72 % and F1 of 83.25 %. The paper’s human reference scores are 82.30 % for exact match and 91.22 % for F1. The authors describe their result as approaching human performance, but the comparison needs both metrics: proximity on exact match does not establish equally close performance on token overlap. On the evaluation split of MS MARCO, the proposed configuration reports BLEU of 42.1 and ROUGE of 42.7, which the paper presents as competitive with its R-net comparison.
The findings support a specific claim about question answering: grammatical structure can provide a useful answer-selection constraint, especially when exact boundaries matter. They also expose the constraint’s cost. Some reference answers are not constituents, the parser can produce unsuitable boundaries, and an earlier sentence-selection stage can remove the correct answer before phrase selection begins. The paper offers evidence for syntax-guided extraction under these conditions, instead of a demonstration that grammatical phrases always coincide with the answers people want.
Interesting ideas
Choose candidates with structure. A task can become easier when its output space reflects something known about acceptable results. Here, parser-produced phrases replace unrestricted word spans as answer candidates. This can remove distracting alternatives and encourage complete expressions. The broader lesson applies to information extraction, document analysis, and systems that must return bounded pieces of evidence: candidate generation can encode useful knowledge before ranking begins.
Represent a candidate from complementary perspectives. A phrase’s suitability depends on the request and on the statement in which it occurs. The paper makes these dependencies explicit through separate question-aware and sentence-aware representations. Elsewhere, the same principle can guide a passage selector that checks both relevance to a query and faithfulness to its surrounding document. Complementary views help when an isolated expression is ambiguous or deceptively similar to the requested information.
Test restrictions and scoring changes separately. The paper crosses an answer-representation choice with an attention choice. This makes it possible to inspect whether gains accompany the structural restriction, the additional context-sensitive attention, or their combination. The design is reusable whenever a system changes both its candidate set and its decision procedure. Without such comparisons, an improvement can be attributed to the wrong component.
Keep evaluation references independent of training repairs. The authors replace unsuitable training answers with nearby constituent candidates, but retain the original development answers for scoring. This preserves an important distinction between making supervision usable and redefining success. The principle applies to automatically corrected annotations, normalized text, and constrained output tasks: training adaptations should not silently make the evaluation target easier.
Measure exactness alongside partial correctness. Token overlap rewards an answer that contains useful material, while exact match requires the selected expression to agree with the reference after evaluation normalization. The paper uses their relationship to examine answer boundaries. In other extraction tasks, reporting a strict metric alongside a partial-credit metric can reveal whether a system finds the right content but packages it poorly. Neither metric alone explains every quality issue.
Diagnose failures at the stage that creates them. The error analysis distinguishes incorrect sentence selection, non-constituent answers, nested candidate boundaries, parsing problems, and unfamiliar words. These failures require different remedies. A better phrase scorer cannot recover an answer excluded by sentence selection, and better embeddings cannot create a missing constituent boundary. Stage-specific diagnosis is useful throughout pipelines that turn documents into structured answers.
Deep dive: Linguistically-Based Deep Unstructured Question Answering
How constituency parsing and attention guide phrase extraction in question answering, with results, controlled comparisons, and limits. · about 38 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its native reading path already connects dependency trees, pragmatic frames, and a representation of the text’s world. That provides several points of contact with this paper, although dependency structure is different from constituency structure, and the paper’s neural scoring architecture is not established as part of Mova’s native readers. The connections below are proposals grounded in those existing mechanisms. Their status marks describe overlap with the documented system; they do not establish that this paper caused an implementation or that a proposed transfer has improved a measurement.
Idea: Generate answer candidates from grammatical units. Where: Linguistic Constituents and System Architecture. Area: syntax and answer extraction. Mova: частково є (en dependency trees and prag frames). Mova could derive explicit answer candidates from the roles and phrases represented by its native analysis. This would transfer the paper’s structural restriction without assuming that a dependency subtree is interchangeable with a constituency node. Candidate provenance should identify the rule and the boundary it produced. Why Mova: a bounded, inspectable candidate set fits its preference for explicit linguistic rules and makes boundary errors easier to explain.
Idea: Measure candidate coverage before improving selection. Where: Datasets, the comparison between reference answers and parsed constituents. Area: evaluation. Mova: нове. A proposed reader diagnostic could first ask whether its candidate inventory contains an acceptable answer, then separately assess whether its selector chooses it. The digest does not establish that this distinction is already reported for answer phrases. An absent candidate and an incorrectly ranked candidate should remain different outcomes. Why Mova: it would prevent repeated changes to inference rules when the missing capability is actually the representation of an answer.
Idea: Use the question and the containing statement as separate sources of evidence. Where: Representation Learning and the answer-encoding architecture. Area: semantics and ranking. Mova: частково є (fastread question-to-document frame alignment and prag event frames). A transparent implementation could score a candidate’s agreement with the requested role separately from its support in the source sentence. These scores need not use attention or dense vectors. Why Mova: separate relevance and source-support checks would expose cases where a phrase resembles the question but has the wrong role in the event.
Idea: Preserve distinct views before combining them. Where: Representation Learning, the combined answer representation. Area: architecture. Mova: частково є (source-bound groupants and typed observations). Rather than immediately collapsing question compatibility and sentence compatibility into a single judgment, Mova could retain both observations and the rule that combines them. Existing groupant machinery provides a related discipline for declaring observations and their scope. Why Mova: a disagreement between views could become an explicit gap or abstention reason instead of disappearing inside a final score.
Idea: Treat structural restriction and ranking as independent design choices. Where: Experiment, the word-based and constituent-based comparisons. Area: experimental design. Mova: частково є (regression gates and held-out self-play experiments). A proposed answer-reader experiment could hold ranking fixed while changing candidates, then hold candidates fixed while changing the scorer. This extends existing measurement discipline to the particular distinction made by the paper. Why Mova: it would show whether a gain comes from excluding poor outputs or from better recognition of the correct one.
Idea: Compare question-only reasoning with question-and-context reasoning. Where: Experiment, the uni-attention and bi-attention settings. Area: evaluation. Mova: частково є (world readers and independent checks). Mova could disable the contextual compatibility check while preserving the question matcher, then compare decisions on unchanged questions. The analogy concerns evidence sources, instead of a claim that Mova implements the paper’s attention layers. Why Mova: it would test whether an added contextual rule contributes useful information instead of merely increasing procedural complexity.
Idea: Keep training substitutions separate from evaluation truth. Where: Datasets, constituent replacement during training. Area: data and assessment. Mova: вже є (mova-enrich staging, separate admission, and frozen assessment boundaries). The paper reinforces the reason for preserving original assessment targets even when teaching material needs normalization or repair. A phrase chosen as usable supervision should retain its relationship to the original answer. Existing separation is relevant, but there is no demonstrated application of this paper’s constituent-substitution procedure in Mova.
Idea: Record the approximation introduced by repaired supervision. Where: Datasets, replacement with a small, similar constituent. Area: annotation provenance. Mova: частково є (source fingerprints, versioned supervision, and reviewed annotation proposals). A proposed answer-candidate dataset could distinguish exact reference matches from approximate substitutes and record what changed. The paper’s need for substitution makes this uncertainty visible, although its replacement description leaves operational details open. Why Mova: explicit repair provenance would help keep a convenient teaching target from becoming an unsupported linguistic fact.
Idea: Measure strict answer boundaries alongside content overlap. Where: Result and Conclusion, the interpretation of exact match and F1. Area: evaluation. Mova: нове. A proposed phrase-reader report could show both whether the complete answer matches and whether it contains the relevant content. The digest establishes other detailed evaluations, but not this particular paired diagnostic for extracted answer strings. Why Mova: it would distinguish missing meaning from extra or omitted boundary material while avoiding the assumption that either metric proves naturalness.
Idea: Evaluate grammatical appearance separately from correctness. Where: Conclusion, the discussion of human-like answers. Area: evaluation and interaction. Mova: нове. If Mova adds phrase extraction, it could assess whether an answer is a coherent expression independently of whether it answers the question. The paper motivates this distinction but does not provide a separate human naturalness study. Why Mova: a fluent-looking constituent can still identify the wrong participant, place, or event, so grammatical appearance should not authorize a confident answer.
Idea: Attribute errors to pipeline stages. Where: Ablation and Error Analysis. Area: diagnosis. Mova: вже є (fastread miss classification and parser audit diagnostics). The paper’s categories align with Mova’s existing effort to distinguish representational, inferential, parameter, and parsing failures. Its particular contribution is a concrete reminder to include answer-sentence selection and answer-boundary coverage in that diagnosis. The transfer would refine an established mechanism rather than introduce the general idea of classified failures.
Idea: Treat upstream sentence selection as part of answer quality. Where: Datasets and Ablation and Error Analysis. Area: retrieval and reading. Mova: частково є (world reading paths and source-bound evidence). A proposed extraction report could retain the selected sentence, alternatives considered, and the reason for discarding them. The paper shows why a phrase extractor’s result cannot be understood without its input-selection stage. Why Mova: it would keep a local extraction failure from being confused with a failure to retrieve the supporting statement.
Idea: Report performance by grammatical answer type. Where: Table 1 and Figure 4. Area: statistics and syntax. Mova: частково є (en tag and relation audits). Mova could group answer-reader outcomes by the requested or selected role and by the candidate’s syntactic form. This would extend existing linguistic diagnostics to answer selection. Why Mova: aggregate accuracy can hide a reader that handles names and quantities well but regularly fails on clauses, events, or qualified descriptions.
Idea: Separate a category’s frequency from its conditional success rate. Where: Figure 4 and its explanation. Area: statistics. Mova: нове. A proposed report could distinguish how much a category contributes to all correct answers from how reliably the reader handles examples in that category. These questions need different denominators. Why Mova: a common answer type can dominate the total result without being easy, while a rare category can be handled well without visibly affecting the headline score.
Idea: Preserve nested candidates until the question resolves their scope. Where: Ablation and Error Analysis, overlapping constituents. Area: syntax and inference. Mova: нове. A proposed candidate inventory could retain both a narrow phrase and a larger phrase that contains it, with an explicit scope relation. Selection would depend on what the question asks, rather than on a universal preference for minimal expressions. Why Mova: its logical reading could use requested roles and modifiers to justify why a qualifier belongs in the answer.
Idea: Keep unsupported answer shapes visible. Where: Datasets and the analysis of non-constituent answers. Area: representation limits. Mova: частково є (gap reporting and bounded task admission). A syntax-guided reader could mark that no admitted candidate expresses the required answer instead of forcing the closest grammatical phrase. This would apply an existing failure-handling principle to extraction boundaries. Why Mova: explicit coverage failures suit a system that should preserve missing knowledge or missing structure rather than invent a successful result.
Idea: Make normalization answer-aware. Where: Datasets, character removal and numerical replacement. Area: data processing. Mova: нове. The paper’s preprocessing suggests an experiment, not a normalization policy to copy: Mova could test whether simplifying numeric forms helps candidate recognition while retaining the original quantities and surface text. No benefit is established by the digest. Why Mova: exact quantities matter to its mathematical readers, so lexical simplification should not erase the information needed to answer or explain.
Idea: Preserve an original surface form behind normalized analysis. Where: Datasets, preprocessing before parsing and extraction. Area: provenance and output. Mova: частково є (dictindex exact sentence evidence and stable occurrence provenance). Mova could attach every normalized candidate to its original source span, enabling readable output and audit. The dictionary index already preserves exact evidence, although it is not an implementation of this paper’s answer pipeline. Why Mova: source-linked surfaces would allow internal simplification without quietly rewriting the evidence shown to the user.
Idea: Compare candidates against their alternatives. Where: Training, correct and incorrect constituents with a hinge objective. Area: learning and ranking. Mova: частково є (perceptron-based choices, top-K judging, and held-out self-play). A transparent scorer could learn or test which features distinguish an accepted answer from competing candidates in the same sentence. This need not reproduce the neural objective. Why Mova: local contrasts can expose the exact role, modifier, or relation that makes an otherwise plausible answer unsuitable.
Idea: Prefer informative mistakes over arbitrary negative examples. Where: Training, randomly chosen incorrect constituents. Area: learning. Mova: нове. As a hypothesis beyond the paper’s demonstrated setup, Mova could compare random alternatives with confusing candidates such as nested phrases or participants sharing a type. This should be presented as a proposed extension, since the paper does not report such a comparison. Why Mova: difficult alternatives could focus rule development on real ambiguities instead of candidates already rejected by obvious type constraints.
Idea: Keep similarity conventions mathematically explicit. Where: Training, the GESD expression and hinge function. Area: mathematics and implementation verification. Mova: частково є (math exact expressions and groupant checks). The paper’s printed similarity and loss expressions motivate a check that better candidates receive a better objective value under the actual implementation. A proposed test could use simple ordered candidate cases rather than only a final training score. Why Mova: declared score direction would prevent a sign or naming mismatch from undermining an otherwise interpretable ranking rule.
Idea: Check vector evidence against the logical role it is supposed to support. Where: Representation Learning and Training. Area: semantics and system integration. Mova: нове. If an optional learned similarity component is explored, its output could remain a bounded ranking observation instead of a native proof of an event or fact. The digest does not establish this specific adapter. Why Mova: it would let statistical evidence assist selection while preserving the distinction between resemblance, source support, and a justified answer.
Idea: Use answer-type distributions to guide dictionary work. Where: Table 1 and the error analysis of unknown words. Area: lexicography and coverage. Mova: частково є (dictindex occurrence evidence and Nautilus review). Mova could inspect unfamiliar words appearing in failed answer candidates, then route supported lexical gaps into its existing dictionary-review process. The paper motivates the coverage question, not a license to admit definitions automatically. Why Mova: reader failures could identify useful dictionary priorities while reviewed corpus evidence remains the basis for admission.
Idea: Isolate parser quality from downstream reasoning. Where: Ablation and Error Analysis, parsing failures. Area: syntax and evaluation. Mova: вже є (en audits, French repair evaluation, and checked tree agreement). The paper supports the existing distinction between an incorrect linguistic structure and an incorrect decision over that structure. For answer extraction, the same discipline would require checking whether the parser exposed the necessary boundary before judging the reader. It does not establish that better parsing always yields better answers.
Idea: Evaluate only the answer users actually receive. Where: Experiment, checking the highest-ranked answer. Area: evaluation. Mova: частково є (retained reader decisions and independent assessment). A proposed candidate-reader report could distinguish the returned answer from alternatives that happened to include a correct one. Candidate availability is useful diagnostically, but it is different from successful selection. Why Mova: this would keep exploratory branching or a strong candidate inventory from being mistaken for reliable final decisions.
Idea: Adapt supervision to the benchmark without equating benchmark meanings. Where: Datasets, the different SQuAD and MS MARCO procedures. Area: evaluation design. Mova: частково є (separate readers, dataset-specific measurements, and assessment boundaries). A span-extraction task and a task whose references need not occur verbatim in the passage should retain distinct success criteria. Why Mova: it would prevent an overlap-based result from being presented as evidence of exact extraction or of reasoning beyond the source.
Idea: Test structural constraints where references are not extractive. Where: Datasets and Result, the MS MARCO experiment. Area: generalization. Mova: нове. A proposed study could ask how much a phrase-only reader loses when acceptable answers require reformulation or material from several statements. This is an evaluation proposal, not evidence that Mova can perform those operations. Why Mova: it would identify when the system should return source evidence, request another capability, or report that its output representation is insufficient.
Idea: Treat reduced search space as a hypothesis about efficiency. Where: Conclusion, the efficiency argument for constrained candidates. Area: performance evaluation. Mova: частково є (bounded execution and mova-twin cost measurements). Mova could measure candidate counts, parsing cost, selection cost, and total latency separately. The paper supplies a rationale for efficiency but no runtime comparison establishing it. Why Mova: an explicit measurement would show whether a structural restriction saves work overall or merely moves it into preprocessing.
Idea: Reuse linguistic structure without adopting the full neural architecture. Where: Linguistic Constituents and Conclusion. Area: architecture and logical modules. Mova: частково є (en, prag, world, and layers). The paper’s strongest transferable principle is that permissible answer shapes can encode linguistic knowledge. Mova could implement that principle through typed roles, deterministic candidate rules, and checked statistical preferences. Why Mova: this follows its current direction toward rules and statistics while preserving a testable connection to the paper’s actual mechanism.
Idea: Keep proposed dependency integration distinct from completed constituency work. Where: Conclusion and Future Work. Area: research scope. Mova: вже є (documented separation between implemented mechanisms and direction). Mova already uses dependency structures, but that does not mean it implements the dependency-enhanced system proposed at the paper’s end. The relevant lesson is to state precisely which representation is operational and which integration remains a hypothesis. A shared linguistic motivation is not evidence of the same algorithm or the same measured effect.
The problem and its context
Finding information is different from selecting an answer
The paper concerns answers extracted from ordinary text. A system receives a question, identifies relevant material, and must select an expression that answers it. The expression can be longer than a named entity and need not correspond to a database field. The authors use “non-factoid” for this setting, contrasting it with the entity-centered and structured-data settings they discuss under factoid answering.
That terminology is best understood through the operational distinction the paper makes. Its task is not to formulate an unrestricted response from general knowledge. It is to identify a useful answer within textual evidence. The context might be a sentence, a paragraph, or a larger body of material, but the proposed architecture ultimately works with candidate answers from a selected sentence.
The introduction separates the broad pipeline into related problems. Information retrieval supplies potentially useful context. Sentence selection identifies the sentence most likely to contain the answer. Phrase extraction then chooses the shorter expression that should be returned. A system can succeed at one stage and fail at the next. A sentence may discuss exactly the right event, while the selected answer names the wrong participant or includes the wrong modifiers.
This matters because the last stage determines what the user sees. A passage containing the answer is useful evidence, but it is not automatically a good direct response. The paper’s motivation is that answer extraction needs both semantic relevance and appropriate boundaries.
Why existing task settings left a boundary problem
The related-work discussion distinguishes selecting a sentence from extracting an answer phrase. It also discusses answer triggering, where the relevant answer sentence might be absent. These tasks ask different questions of a system. Choosing among supplied sentences does not require deciding where an answer begins and ends within a sentence. Recognizing that no sentence works introduces another decision again.
Cloze-style reading tasks simplify the output space differently. As the paper describes them, the answer is chosen from a limited collection of entities. This can be a useful test of reading, but it does not reproduce a situation in which neither the answer’s boundaries nor its grammatical form is supplied beforehand. A practical reader may need to return a date expression, a description, or a phrase expressing an event.
The authors connect the growth of reading-comprehension research to datasets such as Teaching Machines to Read and Comprehend and The Goldilocks Principle. They also contrast SQuAD’s scale with earlier resources, including MCTest. These references establish the setting in which data-intensive extraction became practical. The present paper’s contribution concerns the choice of representations and candidates within that setting.
Attention was established; its use here was different
The paper describes recurrent and convolutional architectures as common approaches to representing questions and contexts. Instead of operating directly with explicit linguistic symbols throughout inference, these systems encode text into learned vectors and compare or combine those representations.
Attention provides a way to make such representations selective. Relevant positions can contribute more strongly than irrelevant ones. The related-work discussion places attention at several points in answer extraction: locating answers, matching a question to its context, and assigning a distribution over context positions.
For example, the paper cites BiDAF among attention-based approaches, and Dynamic Coattention Networks among systems concerned with answer localization. It discusses Match-LSTM and Answer Pointer in connection with question-conditioned predictions over context words. It also mentions memory-based and reinforcement-learning mechanisms as other ways of strengthening reading architectures.
The proposed distinction is candidate-centered. A constituent is not merely a fixed phrase vector compared with a question. Its representation is computed with attention to the question and, separately, to its containing sentence. The candidate is therefore interpreted under the information request and under the statement that gives it meaning.
This is narrower than claiming to introduce attention to reading comprehension. The authors explicitly place their work among existing attention-based systems. Their argument concerns the combination of candidate-level bilateral attention with a linguistically constrained output space.
What constituency contributes
A constituency analysis represents a sentence through nested grammatical units. A noun phrase may contain a smaller noun phrase; a sentence can contain a verb phrase and other constituents. The parser’s output therefore supplies candidate boundaries at several levels of scope.
The paper introduces constituency through linguistic tests such as substitution and expansion. Its example about relay plans, an announcement, a date, and a location illustrates how some parts can be moved or internally elaborated while remaining coherent units. The operational point is that a grammatical phrase is more than a conveniently adjacent group of words.
The authors expect such units to align with natural answers. Their dataset analysis offers partial support, but also shows why this is an inductive preference instead of a universal rule. Many answers match parser constituents directly; others differ only in material disregarded during evaluation; some do not match the available structures.
Earlier syntax-oriented work is not absent from their account. The paper discusses a TreeLSTM approach that incorporates structure while still predicting answer endpoints, and a constituent-centered approach using a more elaborate tree-based encoding. The authors position their own method as a simpler direct use of parser-derived chunks.
The resulting research question is concrete: does selecting among explicit grammatical candidates, while representing each candidate relative to question and sentence, outperform less structured alternatives in the reported extraction settings?
The method, step by step
From a question to a finite answer inventory
The pipeline begins before the attention architecture. For SQuAD, a separate sentence-selection system chooses an answer sentence. The paper reports accuracy of 94.4 % for that selector. The extraction architecture then works on the sentence it receives, not on an unrestricted collection of documents.
Questions and sentences undergo preprocessing. The authors remove non-alphanumeric characters and replace numeric values with ‘9’. They explain this as an attempt to reduce vocabulary variation while still preparing text for parsing. This is a substantial representation choice: different numbers become alike at the lexical-input level. The paper does not provide a separate experiment isolating its consequences.
The text is tokenized and constituency-parsed using Stanford CoreNLP. The sentence’s parse tree supplies terminal and nonterminal candidates. A terminal can correspond to an individual word with a grammatical label; a nonterminal covers a larger phrase or clause. The system is therefore not restricted to long phrases, nor does it select only noun phrases.
Syntax-guided answer extraction
The steps in order.
This sequence separates candidate construction from candidate ranking. Parsing decides which spans exist in the inventory. The learned architecture decides which available span best fits the question. The final decision cannot recover a span that the earlier construction step never supplied.
Making the training targets fit the candidate inventory
The authors compare SQuAD reference answers with the constituents extracted from their corresponding sentences. Exact constituent matches account for 72% of answers. Another 21% have small boundary differences, such as a determiner or punctuation, that the evaluation procedure may disregard. The remaining 7% involve shapes such as part of a larger constituent or a combination of smaller ones.
For training, a nonmatching answer is replaced by a small, similar constituent. This gives the learning procedure a target that the architecture can actually select. It also means the target used for optimization may differ from the answer originally annotated by a person.
The development references remain unchanged. This is essential to interpreting the result: evaluation still asks whether the system’s constituent output agrees with the original answer. It does not simply reward agreement with the substituted training representation.
The paper describes the replacement policy at a high level. It does not fully specify a reproducible similarity function for deciding among all nearby constituents. As a result, the conceptual procedure is clearer than every operational detail of target construction.
MS MARCO needs another adaptation because its reference answers need not appear as contiguous passages in the supplied text. During training, the authors choose the constituent receiving the highest BLEU score against the reference. This is a surrogate target: it identifies the available phrase that best resembles the answer according to that metric, instead of guaranteeing an exact extractive realization.
Turning words into learned representations
The encoder starts with a vocabulary-indexed representation of each word. A word’s initial vector identifies its entry in the vocabulary; an embedding matrix maps that sparse identity into a dense representation.
Wᵢ,ₜ = EᵀWₖ
Here, Wₖ is the one-hot vector for vocabulary item k. E is the embedding matrix, and Eᵀ denotes its transpose in the paper’s notation. Wᵢ,ₜ is the resulting word embedding at position t in example i. The embedding dimension is written as dₑ, and the vocabulary is V.
The paper initializes these representations with GloVe vectors. The GloVe study is the cited source of those pretrained embeddings. Their parameters remain trainable, so the question-answering objective can alter the initial representation.
Words are then processed in both directions by long short-term memory networks. An LSTM is a recurrent computation that updates a hidden representation as it reads a sequence. Reading forward makes earlier positions available to later states; reading backward gives a complementary view from the other end.
→encᵢ,ₜ = LSTM(→encᵢ,ₜ₋₁, Wᵢ,ₜ)
The rightward arrow identifies the forward sequence. The current state →encᵢ,ₜ depends on the preceding forward state →encᵢ,ₜ₋₁ and the current word embedding Wᵢ,ₜ. The symbol LSTM denotes the recurrent update operation.
→encᵢ = SWMP(→encᵢ,ₜ)
SWMP is the paper’s stepwise max-pooling operation. It combines information from the forward sequence of hidden states into the forward sequence representation →encᵢ. The paper presents pooling as an alternative to using only the final recurrent state.
←encᵢ,ₜ = LSTM(←encᵢ,ₜ₊₁, Wᵢ,ₜ)
The leftward arrow identifies backward processing. At position t, the backward state uses the state from the next position in ordinary reading order, ←encᵢ,ₜ₊₁, together with the current embedding. This gives the encoding access to information encountered from the opposite direction.
←encᵢ = SWMP(←encᵢ,ₜ)
The backward states are pooled in the same manner. The result ←encᵢ summarizes the backward sequence. Pooling over states allows information from different positions to affect the final representation instead of requiring everything to survive until an endpoint.
encᵢ = [→encᵢ ; ←encᵢ]
Square brackets with a semicolon mean concatenation. The forward and backward summaries are placed together to form encᵢ, the complete representation of the sequence in example i. This concatenation preserves the distinction between the directional summaries within a larger vector.
The same basic encoding procedure represents the question and its selected sentence. The resulting vectors are combined:
encᵢ^QS = [encᵢ^Q ; encᵢ^S]
Q indicates the question, and S indicates its answer sentence. Thus encᵢ^Q is the question encoding, encᵢ^S is the sentence encoding, and encᵢ^QS is their joint representation. The superscripts label the represented inputs rather than powers.
Giving each answer candidate its own attentive representation
A constituent candidate is itself a sequence of words. Its words pass through recurrent encoding, but its final representation also depends on the question and sentence. The answer encoder contains separate attention components for these sources.
The question-aware component asks which aspects of the candidate matter for the information request. The sentence-aware component asks which aspects matter when the candidate is understood within its containing statement. These are complementary conditions. A phrase may look relevant to a question in isolation while occupying an unsuitable role in the sentence.
The paper connects this mechanism to attentive pooling. Attention uses the recurrent output sequences and the conditioning representation to emphasize relevant information. The description establishes the roles of the components, although not every attention operation is spelled out in a complete mathematical sequence. It would be inappropriate to supply an unreported attention formula and present it as the authors’ implementation.
The final answer representation concatenates the outputs:
hᵢ^AQS = [hᵢ^AQ ; hᵢ^AS]
A identifies the candidate answer. hᵢ^AQ is its question-aware representation, and hᵢ^AS is its sentence-aware representation. Their concatenation hᵢ^AQS combines both views for example i.
This is where the proposed bilateral mechanism differs from the question-only condition. The latter removes the sentence-attentive answer module. It still operates within a sentence-selection pipeline, so “question-only” should not be read as an absence of sentence input throughout the system. It identifies the removed attention pathway.
Scoring compatibility
The system compares the combined question-and-sentence representation with the candidate’s attentive representation. The paper uses a function it calls GESD, combining a dot-product term with a Euclidean-distance term.
DIS(Q, A) = 1 / (1 + exp(−(Q · A))) × 1 / (1 + ‖Q − A‖)
Q and A here stand for the vectors being compared, rather than raw text. Q · A is their dot product. exp is the exponential function, and ‖Q − A‖ is the Euclidean norm of their difference. The multiplication sign combines the sigmoid-shaped dot-product factor with the inverse-distance factor.
The name DIS suggests distance, and the prose repeatedly uses distance terminology. Mathematically, however, the displayed expression behaves as a compatibility score: a smaller Euclidean separation increases its inverse-distance factor, while a larger dot product increases the other factor. This distinction matters when reading the training objective.
The dot product is also not, by itself, a pure angular comparison. Its value depends on vector magnitudes as well as orientation. The safe interpretation is that the score combines an inner-product preference with a preference for nearby representations.
Learning from correct and incorrect constituents
For each question and sentence, training constructs a positive candidate and incorrect alternatives. The positive is the matching or substituted answer constituent. Negative candidates come from other constituents, with the representation-learning discussion describing random incorrect selection.
The printed hinge expression is:
L = Σᵢ max(0, m + DIS(encᵢ^QS, hᵢ^A+QS) − DIS(encᵢ^QS, hᵢ^A−QS))
L is the accumulated loss, and Σᵢ means summation over training examples. max selects the larger of its arguments. m is the margin controlling separation between positive and negative cases. A+ marks the correct candidate, and A− marks an incorrect candidate. encᵢ^QS is the question-and-sentence representation, while the two h terms are the corresponding attentive answer representations.
There is an important mathematical ambiguity here. With DIS interpreted as an ordinary distance, this sign pattern encourages the positive to be closer than the negative. With DIS interpreted as the compatibility function actually displayed above, minimizing the printed expression pushes in the opposite direction from the stated ranking intention. The paper also says prediction selects the highest-scoring constituent.
The intended learning goal is clear: correct answers should outrank incorrect ones. The printed score definition and loss orientation do not together settle how that goal was implemented. Without implementation evidence, changing the expression would amount to correcting the paper by assumption. The appropriate reading preserves both formulas and recognizes their unresolved convention.
Training settings and prediction
The experiments use 300-dimensional GloVe embeddings and 128-dimensional LSTMs. Optimization uses Adam with learning rate=0.001, β₁ = 0.9, and β₂ = 0.999. Batch size is 32, and dropout is 0.5 in the embedding and recurrent layers.
These settings describe the learned architecture tested in the paper. The encoder weights, attention-related parameters, and embeddings are optimized together. This joint training is the relevant sense in which the architecture is end-to-end; it does not mean that sentence selection and constituency parsing are learned as part of the same objective.
At prediction time, the constituent-based system scores the available candidates and returns the strongest one. Evaluation concerns the highest-ranked answer, not whether a correct answer appears somewhere among alternatives.
The word-based comparison changes the output procedure. Constituents are replaced with individual sentence tokens, and the architecture learns scores for answer-start and answer-end positions. The selected endpoints define the returned span. This comparison therefore changes both the candidate representation and the boundary decision, a point that matters when attributing the results.
Experiments and results
What the datasets test
The paper describes SQuAD as containing 107,785 question-answer pairs associated with 536 Wikipedia articles. It reports training, development, and test proportions of 80%, 10%, and 10%. The actual results discussed here come from the development split, which the authors use for system evaluation.
The scale matters to their argument because the architecture learns text representations from many question-answer examples. The linguistic restriction does not replace data-driven training. It supplies a particular output structure within a learned extraction system.
The parsed answer inventory contains 48 constituent labels, including terminal and nonterminal categories. Noun phrases dominate the reported distribution: NP accounts for 59 % in training and 62 % in development. Because exact matches to constituents determine the development distribution, it should not be regarded as fully characterizing every reference answer without regard to whether it is representable.
Other categories illustrate that the task is not simply named-entity selection. The training distribution assigns ROOT 8%, NNP 5%, and NN 4%. The inventory also contains verb phrases, prepositional phrases, sentence-level structures, and other labels. These categories can overlap structurally within a parse even though an individual selected candidate has a particular label.
MS MARCO imposes a different condition. Questions have several associated passages, and reference answers do not necessarily appear as source spans. The architecture still returns a constituent, but its evaluation measures similarity to a reference that may be phrased differently. The experiment therefore tests the usefulness of extractive candidates under less strictly extractive supervision.
What the metrics reward
For SQuAD, the authors use the official exact-match and F1 evaluation. Exact match asks whether the returned answer agrees with the reference under the scorer’s normalization. This is particularly relevant to a method intended to improve boundaries.
F1 gives partial credit through overlap between answer tokens and reference tokens. The paper describes a macro-averaged result, so this is an average across answer instances rather than simply a pooled count of all matched tokens.
The distinction helps explain why a method can look strong on one measure without matching another system’s pattern on the other. A narrow expression may be exactly right on many examples but incomplete on failures. A broader expression may often include correct material while carrying extra words. Both behaviors can affect the relationship between exact match and F1.
For MS MARCO, the paper uses BLEU and ROUGE through the official evaluation procedure. These metrics suit the stated fact that references need not be literal spans. They still measure textual agreement rather than independently verifying every semantic claim made by a returned answer.
The paper does not report a separate user study of naturalness. Its discussion of human-like answers is primarily motivated by constituent boundaries and the pattern of automatic scores. That is a useful hypothesis, but it should remain distinct from direct evidence about reader preference.
The controlled SQuAD comparisons
The paper compares question-only attention and bilateral attention under both word-based and constituent-based prediction. This gives a direct view of how the choices interact within its architecture.
Answer representation and attention, SQuAD development exact match
Constituent selection with bilateral attention obtains the strongest exact-match result.
The numbers
| System or setting | exact match % |
|---|---|
| Question-only attention, word-based | 55.12 |
| Bilateral attention, word-based | 59.84 |
| Question-only attention, constituent-based | 73.82 |
| Bilateral attention, constituent-based (this paper) | 80.72 |
The ordering supports both components of the authors’ argument. Adding sentence-directed attention improves the reported score within the word-based setting. Constituent-based prediction is stronger than the word-based alternative under question-only attention. Combining constituent candidates with bilateral attention produces the best result in this comparison.
These observations do not require attributing the entire improvement to a single mechanism. The candidate representation changes how answers are formed, while the attention comparison changes how candidates are conditioned on their context. The strongest configuration combines them.
The corresponding F1 results follow the same ordering:
Answer representation and attention, SQuAD development F1
The combined configuration also leads on token overlap within the controlled comparison.
The numbers
| System or setting | F1 % |
|---|---|
| Question-only attention, word-based | 57.98 |
| Bilateral attention, word-based | 63.08 |
| Question-only attention, constituent-based | 77.43 |
| Bilateral attention, constituent-based (this paper) | 83.25 |
The agreement in ordering matters. The exact-match gain is not accompanied by a reversal on token overlap. At the same time, the relative pattern of the metrics is central to the authors’ interpretation: constituent selection appears especially favorable when success requires a well-bounded complete answer.
No uncertainty estimates accompany these comparisons. The paper uses strong language about improvement, but it does not report repeated-run variation or a statistical testing procedure for these particular results. The score ordering is directly supported; the robustness of its magnitude across runs is not established.
Comparisons with previously reported systems
The comparison table also includes systems outside the controlled architecture variants. Logistic regression is listed with exact match of 40.00 % and F1 of 51.00 %. This provides a much weaker reference than the neural comparisons, rather than isolating any particular component of the proposed method.
TreeLSTM is reported at exact match of 69.10 % and F1 of 78.38 %. CCNN is listed at exact match of 74.1 % and F1 of 82.6 %. These are relevant to the paper’s interest in structural information, but their differences from the proposed architecture extend beyond a single controlled switch.
For BiDAF, the table gives exact match of 72.6 % and F1 of 80.7 %. R-net is reported at exact match of 75.60 % and F1 of 82.80 %. The proposed configuration exceeds those listed values on the SQuAD development comparison.
The human reference remains important. The proposed system’s exact match is 80.72 %, compared with human exact match of 82.30 %. Its F1 is 83.25 %, compared with human F1 of 91.22 %. These pairs support a carefully bounded description: the system approaches the listed human exact-match result more closely than it approaches the listed human F1 result.
They do not establish human-level comprehension. The task is extractive, the context is constrained, and the answer sentence is selected through a separate system. Human performance here is a benchmark reference under a particular scoring setup, not a general measure of understanding.
MS MARCO tests a less extractive condition
The strongest proposed configuration reports BLEU of 42.1 on the MS MARCO evaluation split. The R-net comparison is 42.2. These reported values support the paper’s description of competitiveness instead of a claim that its architecture leads that comparison.
The ROUGE comparison has the same qualitative interpretation:
Extractive constituent answers, MS MARCO evaluation ROUGE
The proposed system is competitive with the reported R-net comparison.
The numbers
| System or setting | ROUGE |
|---|---|
| R-net | 42.9 |
| Bilateral attention, constituent-based (this paper) | 42.7 |
This result is informative because the architecture remains constrained to source constituents even when a reference may require different wording. It shows that such candidates can receive substantial overlap credit in that setting.
It does not show that the system can generate information absent from the selected constituent. Choosing the candidate with the best training BLEU creates usable supervision, but it cannot make the output representation express a paraphrase or a combination of passages that is unavailable as a candidate.
The paper’s discussion emphasizes competitive results on this dataset. It gives less detail about passage handling than about the SQuAD sentence-selection procedure. That limits how precisely one can reconstruct the complete MS MARCO pipeline from the architectural account alone.
What the ablations show
The main comparisons test the proposed components
The central controlled analysis is the comparison between word-based and constituent-based outputs under the alternative attention settings. It tests whether structural candidates remain useful without the full bilateral mechanism and whether sentence-directed attention helps when the output representation stays fixed.
The constituent advantage appears in the question-only setting as well as in the combined setting. This supports the interpretation that the output restriction contributes something beyond the added sentence-attention module.
Similarly, bilateral attention improves the word-based configuration, which suggests that its value is not confined to a constituency-specific representation. The best reported result combines the mechanisms, but the comparisons do not imply that either component is useless on its own.
There is nonetheless a design qualification. The word-based architecture predicts endpoints, while the constituent-based architecture ranks complete candidate units. The comparison therefore tests a package of representation and decision changes. It does not isolate candidate grammaticality while holding every aspect of prediction identical.
The paper does not provide comparable ablations for max pooling, preprocessing, pretrained embeddings, or the choice of GESD. Those components belong to the tested system, but their individual necessity is not measured by the reported comparisons.
Grammatical categories reveal uneven difficulty
Figure 4 examines answer categories from another angle. It distinguishes the share of successful outputs contributed by a type from the success rate on examples of that type.
These are easy to confuse. A frequent category can contribute many correct answers even if the system is only moderately reliable on it. A rare category can have a high success rate and still make little difference to the overall total.
The figure’s explanation gives NP as an example. Noun phrases make up 50% of the correctly extracted answers, while the system retrieves about 87% of the NP answers available in the dataset. The former describes the composition of successful output; the latter describes performance conditioned on answer type.
The authors identify noun phrases as the dominant category. They also discuss proper nouns, verb phrases, and prepositional phrases as other meaningful parts of the answer distribution. This supports their motivation for a broad constituent inventory rather than an inventory consisting only of entities.
The analysis suggests that cardinal-number answers are easier than ROOT or full-sentence answers. The paper does not turn this observation into a complete causal explanation. Possible differences in length, frequency, and semantic complexity are not independently isolated.
Though the section describes constituent-type ablation, the accessible account of Figure 4 emphasizes category contributions and category-specific retrieval. It does not provide a clear removal experiment for every constituent label. The strongest warranted interpretation is a stratified performance analysis, rather than a fully specified causal estimate of each label’s necessity.
Error categories identify the constraint’s failure modes
Incorrect sentence selection is an upstream failure. Once the wrong sentence has been chosen, the candidate extractor may never see the reference answer. The authors identify this as an important source of errors, reinforcing that phrase extraction cannot be assessed in isolation from its input-selection stage.
Non-constituent answers expose a representational limit. If the reference boundary is absent from the parse-derived inventory, improved scoring cannot create it. The training substitution procedure softens this problem for learning but does not remove it from evaluation, where the original references remain in place.
Nested constituents expose a different problem. The answer may exist in the inventory, but several overlapping candidates are plausible. The authors note cases in which their preference for a smaller constituent loses necessary material from a larger correct answer.
Parser errors undermine the structural premise itself. A syntactic constraint helps only when the supplied structure includes useful boundaries. An incorrect parse can exclude the right phrase or elevate an inappropriate one.
Unknown words affect the learned representations. If their embeddings are poorly trained, the architecture may fail to recognize a candidate’s relation to the question even when its boundaries are available. This is a scoring limitation instead of a proof that constituent selection is unsuitable.
These categories show why a single headline score is insufficient for directing improvements. Some failures call for better retrieval, some for a richer candidate representation, and some for better linguistic analysis or lexical coverage. The error analysis is useful precisely because those remedies are not interchangeable.
Limitations
Limits acknowledged by the authors
The paper recognizes that not all answers align with constituents. Its SQuAD analysis identifies exact matches, near matches, and answers that require other boundaries. This is a basic limit of the output representation, not simply an occasional ranking mistake.
The authors also identify the risk of selecting the wrong containing sentence. Their architecture assumes that extraction begins from a useful sentence, while their actual pipeline relies on an imperfect selector. End-to-end answer quality therefore includes an upstream dependency outside the proposed phrase encoder.
Nested candidates create a scope problem. The smallest grammatical expression is not necessarily the most informative correct answer. A modifier can be dispensable in one question and essential in another. The authors’ discussion of overlapping constituents directly acknowledges that grammatical completeness does not settle answer scope.
Parsing errors and unfamiliar words are further stated limitations. The former can corrupt candidate construction; the latter can weaken semantic comparison. Neither is eliminated by using linguistic structure.
The future-work proposal to incorporate dependency relations also indicates the current scope. The completed method uses constituency-derived candidates. A more extensive combination with dependency information is a proposed development, not a measured component of the reported architecture.
Limits visible in the evaluation design
The SQuAD scores are development-set results. They should not be presented as scores on a separate hidden test split. The paper’s use of the development data for reporting is explicit.
The comparison also depends on an external sentence selector. The phrase architecture is jointly trained internally, but the full route from a question and a repository to an answer is not shown as one learned system. Describing the entire pipeline as end-to-end without qualification would obscure the separate parsing and sentence-selection stages.
Training references are altered to fit constituent candidates. This makes optimization possible, but it changes what the learner is taught on nonmatching examples. The development references are correctly retained, yet a complete account would ideally make the replacement criterion and replacement uncertainty more explicit.
The normalization procedure removes character distinctions and collapses numeric values. The paper explains why it wants to control vocabulary, but it does not isolate whether these operations help or harm particular answer types. The consequences for original surface-form recovery are also not fully described.
The MS MARCO setting introduces another mismatch between architecture and target. A constituent-only output can resemble a nonextractive reference without reproducing its full meaning. BLEU and ROUGE make that similarity measurable, but they do not demonstrate the ability to synthesize an answer unavailable as a source phrase.
Cross-system comparisons have the usual scope of reported benchmark values. The paper’s own architecture variants provide the strongest evidence about its design choices. Comparisons with separately developed systems involve additional differences in encoding, training, and decision procedures that are not controlled away.
Claims the measurements do not establish
The authors connect a relatively close relationship between exact match and F1 with cleaner, more natural answers. That interpretation is plausible, but the metrics do not directly measure naturalness. They describe agreement with reference text under particular scoring rules.
A small separation between these metrics can arise for different reasons. It may reflect precise answers, but it can also reflect a pattern in which correct outputs match completely while incorrect outputs overlap little. The aggregate relationship alone does not determine how pleasant or coherent the returned phrases are for users.
Similarly, a grammatical constituent is not necessarily an appropriate answer. It can name the wrong entity, describe an irrelevant event, or omit a qualifier required by the question. The parser supplies a boundary prior, not a semantic guarantee.
The human comparison should also remain local to the reported task and metric. Strong exact match on extractive questions does not demonstrate comparable reasoning across unfamiliar tasks, nor does it imply equivalent handling of questions whose answers are absent.
The paper argues that a smaller candidate space should improve efficiency. It does not provide runtime measurements showing the total effect, including parsing. Search-space reduction is a defensible architectural rationale, but actual speed, memory use, and preprocessing cost remain unquantified.
Finally, the printed compatibility function and hinge loss leave a mathematical convention unresolved. The intended ranking behavior is described clearly, yet the displayed expressions do not unambiguously implement that intention together. This limits reconstruction of the training method and should be distinguished from the empirical score table, which reports the authors’ experimental outcomes.
What remains uncertain rather than disproved
Several missing comparisons should be treated as open questions. The paper does not show whether a more flexible candidate inventory would preserve the exact-match advantage while recovering non-constituent answers. It also does not show whether better constituency parsing would translate proportionally into better extraction.
The contribution of pretrained lexical information is not isolated. GloVe supplies the initialization, and the embeddings continue to change during training, but no reported comparison separates those effects from the structural constraint.
The answer-type analysis identifies uneven behavior without fully explaining it. Cardinal numbers and larger sentence structures differ in several ways. A category-specific result can motivate further investigation, but it cannot by itself identify which property causes the difference.
These uncertainties do not erase the controlled results. They define the boundary around them: the evidence favors the combined architecture under the reported settings, while leaving its broader reliability, efficiency, and causal decomposition only partly resolved.
What came after
The paper closes with a proposal to add dependency relations and test a larger architecture on additional question-answering datasets. That is its stated next direction. It would extend the linguistic information available beyond constituent boundaries, but the paper does not report the resulting system or an outcome from that extension.
A verified account of subsequent work building on this approach is not established here. The earlier architectures discussed throughout the paper are predecessors or contemporaneous comparisons; they should not be recast as later confirmations of its findings.
The useful unresolved question is whether explicit answer structure can remain beneficial while becoming less restrictive. The reported experiments show an advantage from choosing grammatical candidates, and the error analysis shows exactly why that choice sometimes fails. Any continuation would need to preserve the benefit on answer boundaries while addressing absent candidates, nested scope, and imperfect linguistic analysis. Those are research questions left by the paper, rather than results it already demonstrates.
Cite
Cite as Ahmad Aghaebrahimian. 2018. Linguistically-Based Deep Unstructured Question Answering. Proceedings of the 22nd Conference on Computational Natural Language Learning.
@inproceedings{ahmad2018linguistically,
title = {{Linguistically-Based Deep Unstructured Question Answering}},
author = {Ahmad Aghaebrahimian},
booktitle = {Proceedings of the 22nd Conference on Computational Natural Language Learning},
year = {2018},
doi = {10.18653/v1/k18-1042},
url = {https://doi.org/10.18653/v1/k18-1042}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/aghaebrahimian-2018-linguistically-based-deep-unstructured-question/