arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15265cs.CL
收藏

用于改进辅助分类的多任务微调与生成对抗学习

Multitask Fine-Tuning and Generative Adversarial Learning for Improved Auxiliary Classification

Stanford University(斯坦福大学)

Christopher Sun, Abishek Satish

AI总结:

本研究提出Multitask BERT架构通过多任务微调优化情感分类等任务,并构建AC-GAN-BERT框架应用生成对抗学习生成伪嵌入进行辅助分类,验证了对抗学习方法的有效性。

摘要:

在本研究中,我们实现了一种新颖的BERT架构,用于在三个下游任务上进行多任务微调:情感分类、释义检测和语义文本相似度预测。我们的模型Multitask BERT结合了层共享和三元组架构、自定义句子对分词、损失配对以及梯度手术。这些优化在测试数据上产生了0.516的情感分类准确率、0.886的释义检测准确率和0.864的语义文本相似度相关性。我们还将生成对抗学习应用于BERT,构建了一个条件生成器模型,该模型从潜在空间映射以在$\mathbb{R}^{768}$中创建伪嵌入。这些伪嵌入与真实的BERT嵌入拼接,并传入判别器模型进行辅助分类。使用我们称之为AC-GAN-BERT的这个框架,我们进行了半监督敏感性分析,以研究增加无标签训练数据量对AC-GAN-BERT测试准确率的影响。总体而言,除了实现高性能的多任务分类系统外,我们的创新之处在于应用对抗学习构建一个模仿BERT的生成器。我们发现条件生成器成功产生了丰富的嵌入,与类标签有清晰的空间相关性,表明避免了模式崩溃。我们的发现验证了GAN-BERT方法,并指出了生成器辅助知识蒸馏的未来方向。

英文摘要:

In this study, we implement a novel BERT architecture for multitask fine-tuning on three downstream tasks: sentiment classification, paraphrase detection, and semantic textual similarity prediction. Our model, Multitask BERT, incorporates layer sharing and a triplet architecture, custom sentence pair tokenization, loss pairing, and gradient surgery. Such optimizations yield a 0.516 sentiment classification accuracy, 0.886 paraphase detection accuracy, and 0.864 semantic textual similarity correlation on test data. We also apply generative adversarial learning to BERT, constructing a conditional generator model that maps from latent space to create fake embeddings in $\mathbb{R}^{768}$. These fake embeddings are concatenated with real BERT embeddings and passed into a discriminator model for auxiliary classification. Using this framework, which we refer to as AC-GAN-BERT, we conduct semi-supervised sensitivity analyses to investigate the effect of increasing amounts of unlabeled training data on AC-GAN-BERT's test accuracy. Overall, aside from implementing a high-performing multitask classification system, our novelty lies in the application of adversarial learning to construct a generator that mimics BERT. We find that the conditional generator successfully produces rich embeddings with clear spatial correlation with class labels, demonstrating avoidance of mode collapse. Our findings validate the GAN-BERT approach and point to future directions of generator-aided knowledge distillation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑