Consistency Regularization for Extractive Question Answering: A Reproduction and Empirical Study with ELECTRA

Authors

  • Dattatreya Raychowdhuri

Keywords:

Extractive Question Answering, Semi-Supervised Learning, Consistency Regularization, Electra Fine-Tuning, Squad Dataset

Abstract

This study reproduces and adapts the idea of consistency-based semi-supervised learning, in the spirit of Unsupervised Data Augmentation (UDA), to a question answering (QA) setup using ELECTRA-small on the SQuAD v1.1 dataset. The original UDA method showed that enforcing prediction consistency between original and augmented inputs can improve robustness in text classification. A lightweight consistency loss is implemented at the level of start and end logits for extractive QA and evaluated against a strong fine-tuned ELECTRA baseline. Building on the Transformer architecture and drawing from related semi-supervised approaches such as Virtual Adversarial Training, Mean Teacher, and MixMatch, the study examines whether consistency regularization can improve extractive QA performance. To remain within realistic computational limits, a hyperparameter sweep over the consistency weight λ is conducted on a subset of the data, followed by training a single full model using the best λ. Overall, the consistency-regularized model slightly underperforms the full baseline in EM and F1 but remains competitive despite using fewer training epochs, while exhibiting broadly similar behavior across long-answer, short-question, and negation-focused slices. The discussion considers why the UDA-style signal appears less pronounced in the clean, in-domain SQuAD setting and outlines how a more faithful reproduction, such as stronger augmentations or out-of-domain evaluation, could produce clearer gains, particularly when combined with more recent pre-trained language models.

Downloads

Download data is not yet available.

References

Ashish Vaswani et al., "Attention Is All You Need," Advances in Neural Information Processing Systems, 2017. Available: https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf

Jacob Devlin et al., "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding," Proceedings of NAACL-HLT, 2019. Available: https://aclanthology.org/N19-1423.pdf

Qizhe Xie et al., "Unsupervised Data Augmentation for Consistency Training," Advances in Neural Information Processing Systems, 2020. Available: https://arxiv.org/pdf/1904.12848

Takeru Miyato et al., "Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning," IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. Available: https://arxiv.org/pdf/1704.03976

Antti Tarvainen et al., "Mean Teachers Are Better Role Models: Weight-Averaged Consistency Targets Improve Semi-Supervised Learning Results," Advances in Neural Information Processing Systems, 2017. Available: https://papers.nips.cc/paper_files/paper/2017/file/68053af2923e00204c3ca7c6a3150cf7-Paper.pdf

David Berthelot et al., "MixMatch: A Holistic Approach to Semi-Supervised Learning," Advances in Neural Information Processing Systems, 2019. Available: https://proceedings.neurips.cc/paper_files/paper/2019/file/1cd138d0499a68f4bb72bee04bbec2d7-Paper.pdf

Kevin Clark et al., "ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators," International Conference on Learning Representations, 2020. Available: https://arxiv.org/pdf/2003.10555

Pranav Rajpurkar et al., "SQuAD: 100,000+ Questions for Machine Comprehension of Text," Proceedings of EMNLP, 2016. Available: https://arxiv.org/pdf/1606.05250

Pranav Rajpurkar et al., "Know What You Don't Know: Unanswerable Questions for SQuAD," Proceedings of ACL, 2018. Available: https://aclanthology.org/P18-2124.pdf

Yinhan Liu et al., "RoBERTa: A Robustly Optimized BERT Pretraining Approach," arXiv preprint arXiv:1907.11692, 2019. Available: https://arxiv.org/pdf/1907.11692

Downloads

Published

10.08.2026

How to Cite

Dattatreya Raychowdhuri. (2026). Consistency Regularization for Extractive Question Answering: A Reproduction and Empirical Study with ELECTRA. International Journal of Intelligent Systems and Applications in Engineering, 14(1s), 2173–2179. Retrieved from https://mail.ijisae.org/index.php/IJISAE/article/view/8498

Issue

Section

Research Article