Empowering Character-level Text Infilling by Eliminating Sub-Tokens
Not on the map. Why?
Abstract (arXiv)
In infilling tasks, sub-tokens, representing instances where a complete token is segmented into two parts, often emerge at the boundaries of prefixes, middles, and suffixes. Traditional methods focused on training models at the token level, leading to sub-optimal performance in character-level infilling tasks during the inference stage. Alternately, some approaches considered character-level infilling, but they relied on predicting sub-tokens in inference, yet this strategy diminished ability in character-level infilling tasks due to the large perplexity of the model on sub-tokens. In this paper, we introduce FIM-SE, which stands for Fill-In-the-Middle with both Starting and Ending character constraints. The proposed method addresses character-level infilling tasks by utilizing a line-level format to avoid predicting any sub-token in inference. In addition, we incorporate two special tokens to signify the rest of the incomplete lines, thereby enhancing generation guidance. Extensive experiments demonstrate that our proposed approach surpasses previous methods, offering a significant advantage. Code is available at https://github.com/SenseLLM/FIM-SE.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 33 of its 45 references that are in the map. First posted on arXiv 27 May 2024.
Builds on
33 of 45 references.
References · 33
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
21 more
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2023Baichuan 2: Open Large-scale Language Modelscited by 664
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2019MASS: Masked Sequence to Sequence Pre-training for Language Generationcited by 345
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2022CM3: A Causal Masked Multimodal Model of the Internetcited by 142
- 2023Continual Pre-Training of Large Language Models: How to (re)warm your model?cited by 135
- 2019Insertion Transformer: Flexible Sequence Generation via Insertion Operationscited by 123
- 2023Meet in the Middle: A New Pre-training Paradigmcited by 22
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025WebGen-Bench: Evaluating LLMs on Generating Interactive and Functional Websites from Scratchcited by 66
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2025K-COMP: Retrieval-Augmented Medical Domain Question Answering With Knowledge-Injected Compressorcited by 2
- 2026In-Place Instruction Following in Diffusion Language Modelscited by 0
- 2026MultiTalk: Scaling Full-Duplex Speech Models to Long, Multi-Party, Bilingual Conversationcited by 0
- 2026MultiTalk: Scaling Full-Duplex Speech Models to Long, Multi-Party, Bilingual Conversation29 Sep 2026
- 2026In-Place Instruction Following in Diffusion Language Models7 Sep 2026
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025WebGen-Bench: Evaluating LLMs on Generating Interactive and Functional Websites from Scratch6 May 2025
- 2025K-COMP: Retrieval-Augmented Medical Domain Question Answering With Knowledge-Injected Compressor23 Jan 2025