Adapting Decoder-Based Language Models for Diverse Encoder Downstream Tasks

Paul Suganthan, Fedor Moiseev, Le Yan, Junru Wu, Jianmo Ni +5 more
3/4/2025
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Decoder-based transformers, while revolutionizing language modeling and scaling to immense sizes, have not completely overtaken encoder-heavy architectures in natural language processing. Specifically, encoder-only models remain dominant in tasks like classification, regression, and ranking. This is primarily due to the inherent structure of decoder-based models, which limits their direct applicability to these tasks. In this paper, we introduce Gemma Encoder, adapting the powerful Gemma decoder model to an encoder architecture, thereby unlocking its potential for a wider range of non-generative applications. To optimize the adaptation from decoder to encoder, we systematically analyze various pooling strategies, attention mechanisms, and hyperparameters (e.g., dropout rate). Furthermore, we benchmark Gemma Encoder against established approaches on the GLUE benchmarks, and MS MARCO ranking benchmark, demonstrating its effectiveness and versatility.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{suganthan2025adapting,
  title  = {Adapting Decoder-Based Language Models for Diverse Encoder Downstream Tasks},
  author = {Paul Suganthan and Fedor Moiseev and Le Yan and Junru Wu and Jianmo Ni and Jay Han and Imed Zitouni and Enrique Alfonseca and Xuanhui Wang and Zhe Dong},
  year   = {2025},
  eprint = {2503.02656},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.02656v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.02656.svg)](https://codeofpaper.com/paper/2503.02656)

Discussion