Skip to main content
QUICK REVIEW

[Paper Review] Unifying Question Answering, Text Classification, and Regression via Span Extraction

Nitish Shirish Keskar, Bryan McCann|arXiv (Cornell University)|Apr 19, 2019
Topic ModelingComputer Science30 references28 citations
TL;DR

This paper proposes a unified framework for question answering, text classification, and regression using span extraction as a common output mechanism. By reformulating all three tasks as span-extraction problems with a shared BERT-based architecture, the method achieves superior or comparable performance across benchmarks, especially in low-data and multi-task settings, demonstrating that task-specific output heads are unnecessary and suboptimal compared to a unified span-extractive inductive bias.

ABSTRACT

Even as pre-trained language encoders such as BERT are shared across many tasks, the output layers of question answering, text classification, and regression models are significantly different. Span decoders are frequently used for question answering, fixed-class, classification layers for text classification, and similarity-scoring layers for regression tasks, We show that this distinction is not necessary and that all three can be unified as span extraction. A unified, span-extraction approach leads to superior or comparable performance in supplementary supervised pre-trained, low-data, and multi-task learning experiments on several question answering, text classification, and regression benchmarks.

Motivation & Objective

  • To eliminate task-specific output heads (e.g., classification or regression layers) in NLP models.
  • To unify question answering, text classification, and regression under a single span-extraction framework.
  • To evaluate whether intermediate-task training (STILTs) improves performance across all three task types when using span extraction.
  • To explore cross-task transfer by combining question answering and text classification datasets in multi-task learning.
  • To assess robustness of the span-extractive approach under limited training data.

Proposed method

  • Reformulate text classification and regression tasks as span-extraction problems by appending class labels or bucketed values to the input sequence.
  • Use a pre-trained BERT encoder to encode input text, with span extraction performed via start and end token prediction over the input sequence.
  • For classification, include all class labels as span candidates in the input text; for regression, use discretized value buckets as candidates.
  • Apply intermediate-task training (STILTs) by fine-tuning on auxiliary tasks before final task fine-tuning, using the same span-extractive head.
  • Train a fully joint multi-task model across all tasks using shared parameters and a single span-extractive head.
  • Optimize using standard span-extraction loss (e.g., cross-entropy over start and end positions) without task-specific classification or similarity layers.

Experimental results

Research questions

  • RQ1Can text classification and regression be effectively unified with question answering through a common span-extraction framework?
  • RQ2Does intermediate-task training (STILTs) improve performance when applied to span-extractive models across QA, classification, and regression tasks?
  • RQ3Can combining question answering and text classification datasets in multi-task learning yield better performance than using either alone?
  • RQ4Does a fully joint span-extractive model outperform task-specific models, despite potential negative transfer?
  • RQ5How does the span-extractive approach compare to traditional task-specific heads in low-data regimes?

Key findings

  • The span-extractive approach outperforms or matches task-specific models on GLUE benchmarks, especially in low-data and multi-task settings.
  • Intermediate-task training (STILTs) significantly improves performance across all three task types when using span extraction, demonstrating its effectiveness beyond traditional classification and regression heads.
  • Combining question answering and text classification datasets in multi-task learning leads to improved performance on both, with gains exceeding 9% accuracy on some tasks.
  • A fully joint span-extractive model achieves stronger multi-task performance than single-task models, though it underperforms on individual tasks like SQuAD and MNLI, indicating trade-offs in multi-task learning.
  • The span-extractive approach proves more robust than task-specific heads under limited training data, showing improved generalization.
  • Simpler, more concise input formulations (e.g., shorter class descriptions) yield better performance than detailed explanations, due to reduced span search space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.