For decades, the standard recipe for Information Extraction (IE)—whether identifying named entities, extracting relations, or parsing event structures—relied on sequence labeling. Models walked through a text token by token, assigning tags like B-PER or I-ORG using a conditional random field or a linear classification head.
While familiar, this paradigm suffers from three fundamental design flaws:
- The Overlap Blindspot: Traditional sequence labeling assumes each token belongs to at most one label. It breaks down entirely when entities are nested (e.g., identifying "California" as a location inside "University of California" as an organization).
- The Semantic Void: Class labels are treated as arbitrary, orthogonal indices. The model receives no intrinsic hint that a
PERtag represents a person with a name, nationality, and occupation. - Rigid Schemas: Adding a new entity type or relation requires modifying the model architecture (the classification head) and retraining from scratch, preventing zero-shot or few-shot generalization.
A powerful paradigm shift resolves these limitations by reframing information extraction as an extractive question-answering (QA) or Machine Reading Comprehension (MRC) task. Instead of asking "What is the class of this token?", we ask "Where is the answer to this specific query?"
The Core Mechanism: From Tokens to Spans
In the MRC formulation, the input sequence is a concatenation of a query ($Q$) and the context text ($C$). Instead of predicting a label for every token in $C$, the model uses a pointer network to predict two probabilities for each token position: the probability that it is the start of the target span, and the probability that it is the end.
Input: [CLS] Who is the founder of Apple? [SEP] Steve Jobs co-founded Apple in 1976. [SEP]
| |
Start Probabilities: 1.0 0.0
End Probabilities: 0.0 1.0
This simple architectural shift instantly solves the nested entity problem. As demonstrated by Na et al. in JBNU-CCLab at SemEval-2022 Task 12, querying for different entity types independently allows a single token to participate in multiple, overlapping spans. For instance, Yang et al. leveraged this capability in Large-scale Multi-granular Concept Extraction Based on Machine Reading Comprehension to extract multi-granular, overlapping concepts from the same text fragment without mutual interference.
Injecting Semantics via Queries
By turning labels into natural language queries, we can feed the model rich prior knowledge about what it is looking for. The query can take several forms depending on the task and the available data:
1. Formal Definitions
Instead of using a cryptic tag like DISEASE, Tang et al. showed in Improving deep learning method for biomedical named entity recognition by using entity definition information that using the formal annotation guideline definition as the query significantly improves extraction accuracy. The model uses its pre-trained language understanding to map the semantic intent of the definition directly to the text context.
2. Parameterized Questions
For relation extraction, a relation like per:cities_of_residence(X, Y) can be transformed into a natural language question. As pioneered by Levy et al. in Zero-Shot Relation Extraction via Reading Comprehension, if the model already knows $X$ ("Steve Jobs"), it can be queried with: "Where did Steve Jobs live?" The model then extracts the span corresponding to $Y$.
3. Attribute Names and Prompts
In specialized domains like e-commerce or legal tech, queries can simply be attribute keys or clause descriptions. Xu et al. applied this in Scaling up Open Tagging from Tens to Thousands to scale attribute value extraction to thousands of distinct product attributes using a single unified MRC model. Similarly, Hendrycks et al. demonstrated in CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review that complex legal clauses can be reliably extracted by prompting models with category descriptions.
Why It Works: Zero-Shot Generalization
The true superpower of the query-based span extraction framework is its ability to generalize to unseen categories without retraining.
In a traditional sequence labeler, the weights of the final classification layer are tied to a fixed set of labels. If you introduce a new label, you must add a new classification node and train it with supervised examples.
In an MRC framework, the model's parameters are focused on learning the interaction between the query and the context. It learns a generalized skill: how to locate information that satisfies a textual description.
Traditional IE: Context ---> [ Encoder ] ---> [ Fixed Class Head (PER, ORG, LOC) ]
Query-Based IE: Query ---\
---> [ Encoder ] ---> [ Universal Pointer Head (Start/End) ]
Context ---/
Because the extraction logic is driven by the query's language, the model can handle entirely new extraction tasks out-of-the-box. For example, Zifeng Wang et al. used this property in QueryForm to achieve zero-shot information extraction from novel form layouts and document types simply by altering the input query.
Chaining Queries for Complex Structures
Many information extraction tasks require capturing relationships between multiple entities or events. The MRC framework handles this elegantly through multi-round querying or dual-MRC pipelines, where the answer from the first round determines the query for the second.
Consider Aspect Sentiment Triplet Extraction (ASTE), where the goal is to extract an aspect (e.g., "food"), the opinion ("delicious"), and the sentiment (positive). In A Joint Training Dual-MRC Framework for Aspect Based Sentiment Analysis, Shen designed a system that operates in two conversational turns:
- Round 1 Query: "What are the aspect terms in this review?" $\rightarrow$ Extracts: "food"
- Round 2 Query: "What is the opinion and sentiment for the aspect [food]?" $\rightarrow$ Extracts: "delicious"
This multi-step approach is equally potent for event extraction. As shown by Uddin et al. in Asking and Answering Questions to Extract Event-Argument Structures, once an event trigger is identified, role-specific questions (e.g., "Who was the perpetrator?", "What weapon was used?") can be systematically fired to extract arguments, even when they reside across sentence boundaries. Gao et al. also leveraged this in Question-Driven Span Labeling Model for Aspect Opinion Pair Extraction, demonstrating that targeted natural language queries resolve ambiguities in sentences containing multiple overlapping or nested relationships by focusing the model's attention mechanism squarely on specific anchors.
By converting structural classification into a sequence of reading comprehension steps, the MRC paradigm replaces rigid, task-specific architectures with a flexible, language-driven interface capable of parsing the most intricate textual landscapes.