Papers
arxiv:2410.24159

GPT or BERT: why not both?

Published on Oct 31
· Submitted by stefan-it on Nov 4

Abstract

We present a simple way to merge masked language modeling with causal language modeling. This hybrid training objective results in a model that combines the strengths of both modeling paradigms within a single transformer stack: GPT-BERT can be transparently used like any standard causal or masked language model. We test the pretraining process that enables this flexible behavior on the BabyLM Challenge 2024. The results show that the hybrid pretraining outperforms masked-only or causal-only models. We openly release the models, training corpora and code.

Community

Paper submitter

Very cool idea! Can't wait to try out the implementation, as soon as it is released.

·
Paper author

Hi Stefan, thanks for submitting this paper here, we will release the code in a few days, after some quick cleaning :) By the way, I'm one of the authors, I think you assigned it to a different David Samuel ;)

This is an automated message from the Librarian Bot. I found the following papers similar to this paper.

The following papers were recommended by the Semantic Scholar API

Please give a thumbs up to this comment if you found it helpful!

If you want recommendations for any Paper on Hugging Face checkout this Space

You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend

Sign up or log in to comment

Models citing this paper 2

Datasets citing this paper 2

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2410.24159 in a Space README.md to link it from this page.

Collections including this paper 3