Consistency Regularization for Extractive Question Answering: A Reproduction and Empirical Study with ELECTRA
Keywords:
Extractive Question Answering, Semi-Supervised Learning, Consistency Regularization, Electra Fine-Tuning, Squad DatasetAbstract
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
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
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All papers should be submitted electronically. All submitted manuscripts must be original work that is not under submission at another journal or under consideration for publication in another form, such as a monograph or chapter of a book. Authors of submitted papers are obligated not to submit their paper for publication elsewhere until an editorial decision is rendered on their submission. Further, authors of accepted papers are prohibited from publishing the results in other publications that appear before the paper is published in the Journal unless they receive approval for doing so from the Editor-In-Chief.
IJISAE open access articles are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This license lets the audience to give appropriate credit, provide a link to the license, and indicate if changes were made and if they remix, transform, or build upon the material, they must distribute contributions under the same license as the original.


