MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities
Not on the map. Why?
Abstract (arXiv)
While originally designed for unidirectional generative modeling, decoder-only large language models (LLMs) are increasingly being adapted for bidirectional modeling. However, unidirectional and bidirectional models are typically trained separately with distinct objectives (generation and representation learning). This separation overlooks the opportunity for developing a more versatile language model and for these objectives to complement each other. In this work, we propose MAGNET, a method for adapting decoder-only LLMs to generate robust representations and infill missing text spans. MAGNET employs three self-supervised training objectives and introduces an attention mechanism that combines bidirectional and causal attention, enabling unified training across all objectives. Our results demonstrate that LLMs adapted with MAGNET (1) surpass strong text encoders on token-level and sentence-level representation learning tasks, (2) generate contextually appropriate text infills by leveraging past and future contexts, (3) perform open-ended text generation without excessive repetition of words or phrases, and (4) preserve the knowledge and reasoning capability gained by the LLM during pretraining.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 43 of its 56 references that are in the map. First posted on arXiv 15 Jan 2025.
Builds on
43 of 56 references.
References · 43
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2016Pointer Sentinel Mixture Modelscited by 3,096
31 more
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,031
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 834
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 670
- 2019Neural Text Generation with Unlikelihood Trainingcited by 503
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
- 2016A Corpus and Evaluation Framework for Deeper Understanding of Commonsense Storiescited by 417
- 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 361
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 347
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 333
- 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 276
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
- 2022CM3: A Causal Masked Multimodal Model of the Internetcited by 142
- 2020Enabling Language Models to Fill in the Blankscited by 122
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2020On Learning Universal Representations Across Languagescited by 58
- 2020Blank Language Modelscited by 43
- 2023BeLLM: Backward Dependency Enhanced Large Language Model for Sentence Embeddingscited by 32
- 2024Looking Right is Sometimes Right: Investigating the Capabilities of Decoder-only LLMs for Sequence Labelingcited by 24
- 2023Meet in the Middle: A New Pre-training Paradigmcited by 22
- 2024OneGen: Efficient One-Pass Unified Generation and Retrieval for LLMscited by 14
- 2023FiLM: Fill-in Language Models for Any-Order Generationcited by 13
- 2024ULLME: A Unified Framework for Large Language Model Embeddings with Generation-Augmented Learningcited by 6
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025New Encoders for German Trained from Scratch: Comparing ModernGBERT with Converted LLM2Vec Modelscited by 5
- 2025Learning to Look at the Other Side: A Semantic Probing Study of Word Embeddings in LLMs with Enabled Bidirectional Attentioncited by 1
- 2025FuDoBa: Fusing Document and Knowledge Graph-based Representations with Bayesian Optimisationcited by 0
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classificationcited by 0
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Trainingcited by 0
- 2026KItCAT: Knowledge Injection via Input Corruption for Auto-regressive Training31 Aug 2026
- 2026DECSELFMASK: Leveraging Unlabeled Text via Self-Relevance-Guided Masking for Decoder-Only Classification8 Jun 2026
- 2025Learning to Look at the Other Side: A Semantic Probing Study of Word Embeddings in LLMs with Enabled Bidirectional Attention2 Oct 2025
- 2025FuDoBa: Fusing Document and Knowledge Graph-based Representations with Bayesian Optimisation9 Jul 2025
- 2025New Encoders for German Trained from Scratch: Comparing ModernGBERT with Converted LLM2Vec Models19 May 2025
Similar, not cited
Close in wording, no citation either way
- 2025GEM: Empowering LLM for both Embedding Generation and Language Understanding
- 2026LLM2Vec-Gen: Generative Embeddings from Large Language Models
- 2026PARTREP: Learning What to Repeat for Decoder-only LLMs
- 2026Repurposing Pre-trained LLMs as High Fidelity Continuous Text Autoencoders
- 2024Bitune: Leveraging Bidirectional Attention to Improve Decoder-Only LLMs
- 2024LMFusion: Adapting Pretrained Language Models for Multimodal Generation
- 2025Efficient Knowledge Feeding to Language Models: A Novel Integrated Encoder-Decoder Architecture
- 2024RetroLLM: Empowering Large Language Models to Retrieve Fine-grained Evidence within Generation