article Open access

From Robustness to Improved Generalization and Calibration in Pre-trained Language Models

  • Transactions of the Association for Computational Linguistics
  • Association for Computational Linguistics
Research footprint

At a glance

Citations
2
References
74
Comments
0
Paper overview

Abstract

Abstract Enforcing representation smoothness in pre-trained language models (PLMs) through Jacobian and Hessian regularization provides an effective approach for enhancing both robustness and generalization. Although such regularization methods have proven effective in computer vision, their application in natural language processing, where PLM inputs are derived from a discrete domain, poses unique challenges. We introduce JacHess, a regularization approach for PLMs that minimizes the norms of the Jacobian and Hessian matrices in intermediate representations, using embeddings as substitutes for discrete token inputs. JacHess supports dual-mode regularization, alternating between fine-tuning with labeled data and regularization with unlabeled data. We evaluate JacHess on the GLUE benchmark and demonstrate that it consistently and significantly improves in-distribution generalization and enhances performance under domain shift. Across diverse PLMs, JacHess outperforms comparable representation-based regularization methods and unregularized fine-tuning, while also improving model calibration. Our findings, coupled with a computationally efficient estimator for the Jacobian and Hessian norms, position JacHess as a robust and widely applicable solution for enhancing PLM performance.

Record transparency

Publication details

DOI
10.1162/tacl_a_00739
OpenAlex
W4409218954
Document type
article
Language
EN
Source
Transactions of the Association for Computational Linguistics
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.