Skip to main content
QUICK REVIEW

[Paper Review] Investigating the Effectiveness of Representations Based on Pretrained Transformer-based Language Models in Active Learning for Labelling Text Datasets

Jinghui Lu, Brian Mac Namee|arXiv (Cornell University)|Apr 21, 2020
Topic ModelingComputer Science48 references13 citations
TL;DR

This paper evaluates the effectiveness of pre-trained transformer-based models—particularly BERT-like architectures— as text representations in active learning for text classification. It demonstrates that these models, especially RoBERTa with averaged word embeddings and uncertainty sampling, significantly outperform traditional methods like bag-of-words and word2vec, and introduces Adaptive Tuning Active Learning (ATAL), which fine-tunes embeddings during active learning to further improve performance.

ABSTRACT

Active learning has been shown to be an effective way to alleviate some of the effort required in utilising large collections of unlabelled data for machine learning tasks without needing to fully label them. The representation mechanism used to represent text documents when performing active learning, however, has a significant influence on how effective the process will be. While simple vector representations such as bag-of-words and embedding-based representations based on techniques such as word2vec have been shown to be an effective way to represent documents during active learning, the emergence of representation mechanisms based on the pre-trained transformer-based neural network models popular in natural language processing research (e.g. BERT) offer a promising, and as yet not fully explored, alternative. This paper describes a comprehensive evaluation of the effectiveness of representations based on pre-trained transformer-based language models for active learning. This evaluation shows that transformer-based models, especially BERT-like models, that have not yet been widely used in active learning, achieve a significant improvement over more commonly used vector representations like bag-of-words or other classical word embeddings like word2vec. This paper also investigates the effectiveness of representations based on variants of BERT such as Roberta, Albert as well as comparing the effectiveness of the [CLS] token representation and the aggregated representation that can be generated using BERT-like models. Finally, we propose an approach Adaptive Tuning Active Learning. Our experiments show that the limited label information acquired in active learning can not only be used for training a classifier but can also adaptively improve the embeddings generated by the BERT-like language models as well.

Motivation & Objective

  • To evaluate whether pre-trained transformer-based language models improve active learning performance over classical vector representations like bag-of-words and word2vec.
  • To assess the trade-off between performance and computational cost using lightweight BERT variants such as DistilBERT and ALBERT.
  • To compare the effectiveness of [CLS] token embeddings versus averaged word-level embeddings in BERT-like models.
  • To investigate whether fine-tuning the pre-trained model during active learning can further enhance performance.
  • To propose and evaluate a novel adaptive tuning mechanism that leverages label information not only for classification but also for improving embeddings.

Proposed method

  • The study employs multiple active learning selection strategies, including uncertainty sampling, to evaluate different text representations.
  • It uses pre-trained transformer models—RoBERTa, BERT, DistilBERT, and ALBERT—to generate contextualized embeddings for text documents.
  • Two representation strategies are compared: using the [CLS] token embedding and averaging all token embeddings across the sequence.
  • Adaptive Tuning Active Learning (ATAL) is proposed, where the model is fine-tuned incrementally using newly labeled data during each active learning cycle.
  • Performance is evaluated using accuracy+ on eight diverse text classification datasets, with learning curves tracked over increasing labeled data.
  • A fully fine-tuned RoBERTa model serves as an upper bound for performance comparison.

Experimental results

Research questions

  • RQ1RQ1: Are representations from pre-trained transformer-based language models more effective than traditional vector representations (e.g., bag-of-words, word2vec) in active learning for text labelling?
  • RQ2RQ2: Can lightweight BERT variants (e.g., DistilBERT, ALBERT) maintain high performance while reducing computational cost in active learning?
  • RQ3RQ3: Is the [CLS] token representation or the averaged word-level representation more effective for document-level classification in BERT-like models?
  • RQ4RQ4: Can fine-tuning the pre-trained model during active learning improve the quality of embeddings and overall performance?

Key findings

  • RoBERTa with averaged word embeddings consistently outperformed other models, achieving the highest accuracy+ across most datasets.
  • ATAL, which fine-tunes the model using labeled data during active learning, significantly improved performance over standard active learning, especially on challenging datasets like Multi-domain Customer Review and Additional Customer Review.
  • On five out of eight datasets, ATAL outperformed standard active learning by a large margin, with performance gains visible as early as 200 labeled instances.
  • In three easy datasets (Guardian 2013, AG News, Dbpedia), both standard and ATAL methods reached near-perfect accuracy quickly, showing that ATAL does not degrade performance.
  • DistilBERT and ALBERT offered competitive performance with significantly reduced computational cost, making them viable alternatives when GPU memory is limited.
  • The averaged embedding representation was more effective than the [CLS] token representation across all evaluated models and datasets.

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.