Copy Is All You Need
Not on the map. Why?
Abstract (arXiv)
The dominant text generation models compose the output by sequentially selecting words from a fixed vocabulary. In this paper, we formulate text generation as progressively copying text segments (e.g., words or phrases) from an existing text collection. We compute the contextualized representations of meaningful text segments and index them using efficient vector search toolkits. The task of text generation is then decomposed into a series of copy-and-paste operations: at each time step, we seek suitable text spans from the text collection rather than selecting from a standalone vocabulary. Experiments on the standard language modeling benchmark (WikiText-103) show that our approach achieves better generation quality according to both automatic and human evaluations. Besides, its inference efficiency is comparable to token-level autoregressive models thanks to the reduction of decoding steps. We also show that our approach allows for effective domain adaptation by simply switching to domain-specific text collection without extra training. Finally, we observe that our approach attains additional performance gains by simply scaling up to larger text collections, again without further training.footnoteOur source codes are publicly available at urlhttps://github.com/gmftbyGMFTBY/Copyisallyouneed.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 36 of its 40 references that are in the map. First posted on arXiv 13 Jul 2023.
Builds on
36 of 40 references.
References · 36
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
24 more
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2022A Survey on Retrieval-Augmented Text Generationcited by 157
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2020Learning Dense Representations of Phrases at Scalecited by 91
- 2018Retrieve and Refine: Improved Sequence Generation Models For Dialoguecited by 82
- 2018A Retrieve-and-Edit Framework for Predicting Structured Outputscited by 73
- 2022RankGen: Improving Text Generation with Large Ranking Modelscited by 72
- 2023Inference with Reference: Lossless Acceleration of Large Language Modelscited by 63
- 2021Neural Machine Translation with Monolingual Translation Memorycited by 61
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2018Skeleton-to-Response: Dialogue Generation Guided by Retrieval Memorycited by 49
- 2018Response Generation by Context-aware Prototype Editingcited by 40
- 2022Nonparametric Masked Language Modelingcited by 39
- 2018Phrase-Indexed Question Answering: A New Challenge for Scalable Document Comprehensioncited by 23
- 2016Learning Recurrent Span Representations for Extractive Question Answeringcited by 14
- 2021Exploring Dense Retrieval for Dialogue Response Selectioncited by 11
- 2022Effidit: Your AI Writing Assistantcited by 8
Built on by
Citing papers per year: 2023: 3; 2024: 18; 2025: 1; 2026: 3.
25 papers.
Sort:
By area:
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,185
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 148
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2024From Matching to Generation: A Survey on Generative Information Retrievalcited by 89
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 78
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2023Thought Propagation: An Analogical Approach to Complex Reasoning with Large Language Modelscited by 37
- 2024With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generationcited by 36
- 2024Block-Attention for Efficient Prefillingcited by 34
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 26
13 more
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answeringcited by 25
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMscited by 22
- 2024Grounding by Trying: LLMs with Reinforcement Learning-Enhanced Retrievalcited by 17
- 2024RuleRAG: Rule-Guided Retrieval-Augmented Generation with Language Models for Question Answeringcited by 13
- 2024Retrieval is Accurate Generationcited by 10
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2024Multi-modal Retrieval Augmented Multi-modal Generation: Datasets, Evaluation Metrics and Strong Baselinescited by 9
- 2024Hierarchical Skip Decoding for Efficient Autoregressive Text Generationcited by 7
- 2024PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognitioncited by 6
- 2025Protein Design with Dynamic Protein Vocabularycited by 5
- 2024Scaling the Vocabulary of Non-autoregressive Models for Efficient Generative Retrievalcited by 2
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNetscited by 0
- 2026AutoIndex: Learning Representation Programs for Retrievalcited by 0
- 2026AutoIndex: Learning Representation Programs for Retrieval21 Jul 2026
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNets11 Feb 2026
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models12 Jan 2026
- 2025Protein Design with Dynamic Protein Vocabulary25 May 2025
- 2024Multi-modal Retrieval Augmented Multi-modal Generation: Datasets, Evaluation Metrics and Strong Baselines25 Nov 2024
- 2024Grounding by Trying: LLMs with Reinforcement Learning-Enhanced Retrieval30 Oct 2024
- 2024RuleRAG: Rule-Guided Retrieval-Augmented Generation with Language Models for Question Answering15 Oct 2024
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answering4 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024Block-Attention for Efficient Prefilling14 Sep 2024
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMs9 Aug 2024
- 2024Scaling the Vocabulary of Non-autoregressive Models for Efficient Generative Retrieval10 Jun 2024
13 more
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution29 May 2024
- 2024From Matching to Generation: A Survey on Generative Information Retrieval23 Apr 2024
- 2024Hierarchical Skip Decoding for Efficient Autoregressive Text Generation22 Mar 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024Retrieval is Accurate Generation27 Feb 2024
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights26 Feb 2024
- 2024PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognition7 Feb 2024
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens30 Jan 2024
- 2024With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation21 Jan 2024
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey18 Dec 2023
- 2023Thought Propagation: An Analogical Approach to Complex Reasoning with Large Language Models6 Oct 2023
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore8 Aug 2023
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
- 2024Block-Attention for Efficient Prefillingcited by 34
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMscited by 22
- 2024RuleRAG: Rule-Guided Retrieval-Augmented Generation with Language Models for Question Answeringcited by 13
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generationcited by 10
- 2024Multi-modal Retrieval Augmented Multi-modal Generation: Datasets, Evaluation Metrics and Strong Baselinescited by 9
- 2024Multi-modal Retrieval Augmented Multi-modal Generation: Datasets, Evaluation Metrics and Strong Baselines25 Nov 2024
- 2024RuleRAG: Rule-Guided Retrieval-Augmented Generation with Language Models for Question Answering15 Oct 2024
- 2024Preference-Guided Refactored Tuning for Retrieval Augmented Code Generation24 Sep 2024
- 2024Block-Attention for Efficient Prefilling14 Sep 2024
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMs9 Aug 2024
- 2024Reliable, Adaptable, and Attributable Language Models with Retrieval5 Mar 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 26
- 2024Hierarchical Skip Decoding for Efficient Autoregressive Text Generationcited by 7
- 2024PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognitioncited by 6
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution29 May 2024
- 2024Hierarchical Skip Decoding for Efficient Autoregressive Text Generation22 Mar 2024
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights26 Feb 2024
- 2024PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognition7 Feb 2024
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 148
- 2024From Matching to Generation: A Survey on Generative Information Retrievalcited by 89
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2024With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generationcited by 36
- 2024Grounding by Trying: LLMs with Reinforcement Learning-Enhanced Retrievalcited by 17
- 2024Retrieval is Accurate Generationcited by 10
- 2025Protein Design with Dynamic Protein Vocabularycited by 5
- 2024Scaling the Vocabulary of Non-autoregressive Models for Efficient Generative Retrievalcited by 2
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNetscited by 0
- 2026AutoIndex: Learning Representation Programs for Retrievalcited by 0
- 2026AutoIndex: Learning Representation Programs for Retrieval21 Jul 2026
- 2026Flow of Spans: Generalizing Language Models to Dynamic Span-Vocabulary via GFlowNets11 Feb 2026
- 2025Protein Design with Dynamic Protein Vocabulary25 May 2025
- 2024Grounding by Trying: LLMs with Reinforcement Learning-Enhanced Retrieval30 Oct 2024
- 2024Scaling the Vocabulary of Non-autoregressive Models for Efficient Generative Retrieval10 Jun 2024
- 2024From Matching to Generation: A Survey on Generative Information Retrieval23 Apr 2024
- 2024Retrieval is Accurate Generation27 Feb 2024
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokens30 Jan 2024
- 2024With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation21 Jan 2024
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore8 Aug 2023