[Paper Review] Accurate, yet inconsistent? Consistency Analysis on Language Understanding Models
This paper introduces CALUM, a framework to evaluate consistency in fine-tuned pretrained language models (PLMs) by applying semantic-preserving perturbations such as reverse and synonym substitution. Experiments reveal that current PLMs often produce inconsistent predictions for semantically identical inputs, but multi-task training with paraphrase identification tasks improves consistency by 13% on average.
Consistency, which refers to the capability of generating the same predictions for semantically similar contexts, is a highly desirable property for a sound language understanding model. Although recent pretrained language models (PLMs) deliver outstanding performance in various downstream tasks, they should exhibit consistent behaviour provided the models truly understand language. In this paper, we propose a simple framework named consistency analysis on language understanding models (CALUM)} to evaluate the model's lower-bound consistency ability. Through experiments, we confirmed that current PLMs are prone to generate inconsistent predictions even for semantically identical inputs. We also observed that multi-task training with paraphrase identification tasks is of benefit to improve consistency, increasing the consistency by 13% on average.
Motivation & Objective
- To investigate whether pretrained language models (PLMs) exhibit consistent behavior when faced with semantically identical inputs.
- To evaluate the lower-bound consistency capability of PLMs across diverse language understanding tasks and languages.
- To explore whether multi-task training with semantic textual similarity (STS) tasks improves model consistency.
- To develop a generalizable evaluation framework that does not rely on task-specific data augmentation or human-annotated perturbations.
Proposed method
- Proposes CALUM, a framework that applies marginal perturbations—such as reversing sentence order or substituting synonyms—while preserving semantic meaning.
- Uses reverse (REVERSE) and synonym-based (SIGNAL) perturbations to generate semantically equivalent input pairs for consistency evaluation.
- Employs a multi-task learning setup using MT-DNN architecture, sharing the encoder but having task-specific classifiers.
- Trains models on a main NLP task (e.g., MNLI, QNLI, RTE) alongside auxiliary STS tasks (QQP, MRPC) to assess their impact on consistency.
- Measures consistency as the proportion of predictions that remain unchanged across perturbed input pairs.
- Compares consistency and accuracy of single-task models against multi-task models (Multitask-Para and Multitask-All) across multiple backbone models (RoBERTa, Electra, GPT2).
Experimental results
Research questions
- RQ1To what extent do fine-tuned PLMs produce inconsistent predictions for semantically identical inputs?
- RQ2Can multi-task training with semantic textual similarity (STS) tasks improve the consistency of PLMs?
- RQ3How does the inclusion of STS tasks as auxiliary objectives compare to including other non-STS tasks in terms of consistency improvement?
- RQ4Does the benefit of STS-based multi-task learning generalize across different model architectures (e.g., encoder vs. decoder-based) and downstream tasks?
Key findings
- Current PLMs exhibit significant inconsistency, generating different predictions for semantically identical inputs, even across diverse tasks and languages.
- Multi-task training with STS tasks (QQP and MRPC) improves consistency by 13% on average across all evaluated tasks and models.
- The Multitask-Para model (using only STS tasks) consistently outperforms the single-task baseline in consistency, especially in the REVERSE case, indicating that STS data alone is sufficient for improvement.
- For encoder-based models (RoBERTa, Electra), the Multitask-All model (including all five tasks) achieved higher consistency than Multitask-Para, though the difference was not always significant.
- For decoder-based models (GPT2), the Multitask-Para model showed higher consistency than Multitask-All in the REVERSE case, suggesting architectural differences in how models utilize auxiliary tasks.
- The improvement in consistency was observed without a significant drop in accuracy, indicating that consistency gains do not come at the cost of performance on the main task.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.