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

ContraCLM:面向因果语言模型的对比学习

ContraCLM: Contrastive Learning For Causal Language Model

AWS AI Labs(AWS人工智能实验室)

Nihal Jain, Dejiao Zhang, Wasi Uddin Ahmad, Zijian Wang, Feng Nan, Xiaopeng Li, Ming Tan, Ramesh Nallapati, Baishakhi Ray, Parminder Bhatia, Xiaofei Ma, Bing Xiang

AI总结:

针对因果语言模型表征判别能力弱、表达性受限的问题,提出同时覆盖词元级与序列级的对比学习框架ContraCLM,在语义文本相似性、代码搜索及HumanEval代码生成任务上均取得显著性能提升。

摘要:

尽管因果语言模型已取得令人振奋的进展,但由于判别能力较弱,其表征的表达性仍受到很大限制。为解决这一问题,我们提出了ContraCLM,这是一种同时在词元级别和序列级别开展学习的新型对比学习框架。我们在多种下游任务上对ContraCLM进行了评估。实验表明,ContraCLM增强了表征的判别性,缩小了与仅编码器模型之间的差距,使得因果语言模型更适配语言生成之外的任务。具体而言,我们在语义文本相似性任务上取得了44%的相对提升,在代码到代码搜索任务上取得了34%的相对提升。此外,通过提升表征的表达性,ContraCLM还增强了源代码生成能力,在HumanEval基准上的执行准确率实现了9%的相对提升。

英文摘要:

Despite exciting progress in causal language models, the expressiveness of the representations is largely limited due to poor discrimination ability. To remedy this issue, we present ContraCLM, a novel contrastive learning framework at both token-level and sequence-level. We assess ContraCLM on a variety of downstream tasks. We show that ContraCLM enhances discrimination of the representations and bridges the gap with the encoder-only models, which makes causal language models better suited for tasks beyond language generation. Specifically, we attain $44\%$ relative improvement on the Semantic Textual Similarity tasks and $34\%$ on Code-to-Code Search tasks. Furthermore, by improving the expressiveness of the representations, ContraCLM also boosts the source code generation capability with $9\%$ relative improvement on execution accuracy on the HumanEval benchmark.

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

↑