mlsanityData to 14 Oct 2026

Small Character Models Match Large Word Models for Autocomplete Under Memory Constraints

arXiv 2210.03251 ↗First posted 6 Oct 2022cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Autocomplete is a task where the user inputs a piece of text, termed prompt, which is conditioned by the model to generate semantically coherent continuation. Existing works for this task have primarily focused on datasets (e.g., email, chat) with high frequency user prompt patterns (or focused prompts) where word-based language models have been quite effective. In this work, we study the more challenging open-domain setting consisting of low frequency user prompt patterns (or broad prompts, e.g., prompt about 93rd academy awards) and demonstrate the effectiveness of character-based language models. We study this problem under memory-constrained settings (e.g., edge devices and smartphones), where character-based representation is effective in reducing the overall model size (in terms of parameters). We use WikiText-103 benchmark to simulate broad prompts and demonstrate that character models rival word models in exact match accuracy for the autocomplete task, when controlled for the model size. For instance, we show that a 20M parameter character model performs similar to an 80M parameter word model in the vanilla setting. We further propose novel methods to improve character models by incorporating inductive bias in the form of compositional information and representation transfer from large word models. Datasets and code used in this work are available at https://github.com/UBC-NLP/char_autocomplete.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 41 references that are in the map. First posted on arXiv 6 Oct 2022.

Builds on

24 of 41 references.

References · 24

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  5. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
  8. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  9. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  10. 2020Efficient Transformers: A Surveycited by 790
  11. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
  12. 2013One Billion Word Benchmark for Measuring Progress in Statistical Language Modelingcited by 308
12 more
  1. 2020The Pushshift Reddit Datasetcited by 292
  2. 2020SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruningcited by 234
  3. 2018Adaptive Input Representations for Neural Language Modelingcited by 226
  4. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 185
  5. 2021Charformer: Fast Character Transformers via Gradient-based Subword Tokenizationcited by 160
  6. 2021Efficient Deep Learning: A Survey on Making Deep Learning Models Smaller, Faster, and Bettercited by 154
  7. 2018Character-Level Language Modeling with Deeper Self-Attentioncited by 138
  8. 2019Gmail Smart Compose: Real-Time Assisted Writingcited by 98
  9. 2021Is GPT-3 Text Indistinguishable from Human Text? Scarecrow: A Framework for Scrutinizing Machine Textcited by 89
  10. 2019Bridging the Gap for Tokenizer-Free Language Modelscited by 21
  11. 2020Efficient Neural Query Auto Completioncited by 10
  12. 2020Efficient and Effective Query Auto-Completioncited by 4

Built on by

Not cited yet.