MCP
arXivarXiv
Preprint
Published: October 3, 2022
cs.CL
v2

ContraCLM: Contrastive Learning For Causal Language Model

Abstract
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%44\% relative improvement on the Semantic Textual Similarity tasks and 34%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%9\% relative improvement on execution accuracy on the HumanEval benchmark.
0
AI overview
Reviews
Citation graph
Structured
This paper does not have an AI preview yet
Links
arXiv
arXiv
↗
PDF
↗
ACL Anthology
Conference paper
ACL Anthology
›
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first