Active Learning with Query Generation for Cost-Effective Text Classification

Yifan Yan, Sheng-Jun Huang, Shaoyi Chen, Meng Liao, Jin XuAAAI 2020

Abstract

Active Learning (AL) typically involves selecting informative samples from a large unlabeled pool for human annotation. However, in text classification, this process is often hindered by the "reading tax"—the time required for annotators to process long documents—and the "search bottleneck" of scanning massive datasets. This paper introduces Active Learning with Query Generation (ALQG), a method that generates synthetic, informative queries from scratch. By approximating these queries with a small set of "summary words," ALQG reduces annotation effort while maintaining high classification accuracy. Experiments on synthetic and real-world datasets demonstrate that ALQG achieves superior cost-efficiency compared to traditional AL methods.

Introduction

In machine learning, Active Learning (AL) aims to identify the most informative data points for human labeling to accelerate model training. Despite its success, standard AL faces two significant hurdles in text classification: the Reading Tax and the Search Bottleneck. The former refers to the time-consuming nature of reading long documents to assign a label, while the latter involves the computational cost of searching through millions of unlabeled documents to find the best candidate.

To address these challenges, we propose Active Learning with Query Generation (ALQG). Instead of searching an existing pool, ALQG generates synthetic "ideal" queries and presents them to annotators as a concise list of keywords, bypassing the need for extensive reading and large-scale dataset scanning.

Methodology

ALQG operates in two primary phases: Query Generation and Summary Words Approximation.

1. Query Generation

Rather than sampling from a pool, the system utilizes a neural network to generate feature vectors representing synthetic text. This generation is optimized for three criteria:

  • Uncertainty: Points are generated near the model's decision boundary.
  • Diversity: Generated points are distributed across the feature space to avoid redundancy.
  • Representativeness: Points are constrained to remain within the manifold of realistic data.
Figure 3: Query generation progression on the Moon dataset, showing red generated points migrating toward the decision boundary.

2. Summary Words Approximation

Because raw feature vectors are unintelligible to humans, ALQG employs sparse reconstruction to find a small set of "summary words" (typically 5–20) that approximate the generated vector. For example, instead of a full article, an annotator might see: "semiconductor, computation, acquisition, process." This allows for near-instant classification (e.g., "IT") without context-heavy reading.

Figure 1: Query generation progression on the Circles dataset, illustrating how the model identifies the boundary between concentric classes.

Experimental Evaluation

Datasets and Benchmarks

The approach was evaluated on synthetic datasets (Moon and Circles) and real-world text datasets, including three Chinese datasets (IT-vs-Learning, Healthy-vs-Auto, Culture-vs-Military) and one English dataset (World-vs-Sports). ALQG was compared against random sampling, standard uncertainty sampling, and ALQG-NN (a version without summary word approximation).

Key Results

  • Cost Efficiency: ALQG consistently outperformed benchmarks in terms of Area Under Curve (AUC) and Accuracy relative to the "annotation cost" (total words read).
  • Independence from Pool Size: Since queries are generated, the computational complexity does not scale with the size of the unlabeled dataset, making it highly efficient for massive data environments.
  • Qualitative Utility: The generated summary words proved highly intuitive. For a "Military" category, the system produced terms like develop, naval vessels, military exercise, and flight crew, which are easily identifiable by human annotators.

Conclusion and Future Work

ALQG demonstrates that models do not require grammatically complete documents to learn effectively; they require semantic essence. By labeling keyword clusters, humans provide this essence at a fraction of the traditional cost.

Future research will focus on extending ALQG to multi-class problems and investigating the impact of embedding quality on summary word generation. Additionally, while simulated annotators showed promising results, further human-in-the-loop testing is required to assess the long-term cognitive load of labeling keyword lists versus full documents.

Summary updated

BibTeX
@inproceedings{yan2020active,
  author = {Yifan Yan and Sheng-Jun Huang and Shaoyi Chen and Meng Liao and Jin Xu},
  title = {{Active Learning with Query Generation for Cost-Effective Text Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6133},
}
Figure