Masked Language Modeling (MLM) is widely used to pretrain language models. The standard random masking strategy in MLM causes the pre-trained language models (PLMs) to be biased toward high-frequency tokens. Representation learning of rare tokens is poor and PLMs have limited performance on downstream tasks. To alleviate this frequency bias issue, we propose two simple and effective Weighted Sampling strategies for masking tokens based on the token frequency and training loss. We apply these two strategies to BERT and obtain Weighted-Sampled BERT (WSBERT). Experiments on the Semantic Textual Similarity benchmark (STS) show that WSBERT significantly improves sentence embeddings over BERT. Combining WSBERT with calibration methods and prompt learning further improves sentence embeddings. We also investigate fine-tuning WSBERT on the GLUE benchmark and show that Weighted Sampling also improves the transfer learning capability of the backbone PLM. We further analyze and provide insights into how WSBERT improves token embeddings.
Stability-Weighted Decoding for Diffusion Language Models
Department of XXX, University of YYY, Location, Country(XXX系,YYY大学,Location,Country);School of ZZZ, Institute of WWW, Location, Country(ZZZ学院,WWW研究所,Location,Country);Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hong Kong, China(数据科学与人工智能系,香港理工大学,香港,中国)
Improving Sampling for Masked Diffusion Models via Information Gain
Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系);Massachusetts Institute of Technology(麻省理工学院);Shanghai Jiao Tong University(上海交通大学);Beihang University(北航);College of AI, Tsinghua University(清华大学人工智能学院)
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学首都人工智能学院);Beijing Key Laboratory of Research on Large Models and Intelligent Governance(北京大模型与智能治理重点实验室);Engineering Research Center of Next-Generation Intelligent Search and Recommendation, MOE(下一代智能搜索与推荐工程技术研究中心,教育部);Huawei Noah’s Ark Lab(华为诺亚实验室)
Exposing the Implicit Energy Networks behind Masked Language Models via Metropolis--Hastings
Carnegie Mellon University(卡内基梅隆大学);Deepmind(深度思维);UC San Diego(加州大学圣地亚哥分校)
虽然最近的工作表明,由无处不在的掩蔽语言建模(MLM)目标训练的模型的分数有效地区分了可能的序列和不可能的序列,但这些MLM是否指定了可能序列空间上的原则概率分布仍然是一个悬而未决的问题。在本文中,我们解释MLMs的能量为基础的序列模型,并提出了两个能源参数化可从训练MLMs。为了正确地从这些模型中抽取样本,我们开发了一个基于Metropolis-Hastings Monte Carlo算法的易处理的抽样方案。在我们的方法中,从用于训练掩蔽语言模型的相同掩蔽条件中提出样本,并且根据目标分布基于它们的能量值来接受或拒绝它们。我们通过探索从这些基于能量的模型中提取的样本的质量来验证所提出的参数化的有效性,这些样本用于开放式无条件生成和机器翻译的条件生成任务。我们从理论上和经验上证明了我们的采样算法,表明掩蔽条件本身不会产生其平稳分布是我们的目标分布的马尔可夫链,并且我们的方法比最近提出的其他无向生成方法生成更高质量的样本(Wang et al.,2019年,Ghazvininejad等人,2019年)。