Abstract
Although the pre-trained Transformers learned general linguistic knowledge from large-scale corpus, they still overfit on the lexical biases when fine-tuning on specific datasets. This problem limits the generalizability of pre-trained models, particularly when learning over out-of-distribution (OOD) data. To address this issue, this paper proposes a self-adaptive language masking (AdaLMask) paradigm to fine-tune the pre-trained Transformers. AdaLMask obviates lexical biases by eliminating the dependence on semantically inessential words. Specifically, AdaLMask learns a Gumbel-Softmax distribution to determine the desired masking positions, and the distribution parameters are optimized via a representation-invariant (RInv) objective to ensure the masked positions are semantically lossless. Four natural language processing tasks are chosen to evaluate the effectiveness of the proposed method on the robustness of lexical biases and OOD generalization. All empirical results demonstrate that the AdaLMask paradigm substantially improves the OOD generalization of pre-trained Transformers.
Funding Information
  • National Science and Technology Major (2021ZD0113301)
  • Shenzhen Science and Technology Plan (KCXFZ20230731093001002, KJZD20230923115113026)
  • National Key R&D Program of China (2022ZD0116002)
  • Science and Technology Department of Guizhou Province
  • National Social Science Foundation - Major (20&ZD226)
  • China Postdoctoral Science Foundation (2023M741843)
  • Shenzhen Colleges and Universities Stable Support Program (GXWD20231129115148001, GXWD20220811170504001)
  • Basic and Applied Basic Research Foundation of Guangdong Province (2023A1515110561)
  • Shenzhen Science and Technology Program (JCYJ20230807094318038)
  • Development and Reform Commission of Shenzhen Municipality (XMHT20190108009)
  • National Natural Science Foundation of China (62276075, 62106115, 62006062, 62176076)
  • Guangdong Provincial Key Laboratory (2022B1212010005)
  • Major Key Project of PCL (PCL2022D01, PCL2023A09)
  • Key Laboratory of Intelligent Computing in Network Environment

This publication has 37 references indexed in Scilit: