With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation
Not on the map. Why?
Abstract (arXiv)
Long text generation, such as novel writing and discourse-level translation with extremely long contexts, presents significant challenges to current language models. Existing methods mainly focus on extending the model's context window through strategies like length extrapolation. However, these approaches demand substantial hardware resources during the training and/or inference phases. Our proposed method, Temp-Lora, introduces an alternative concept. Instead of relying on the KV cache to store all context information, we embeds this information directly into a temporary Lora module. In the process of long text generation, this module is progressively trained with text generated previously. This approach not only efficiently preserves contextual knowledge but also prevents any permanent alteration to the model's parameters given that the module is discarded post-generation. Extensive experiments on the PG19 language modeling benchmark and the GuoFeng discourse-level translation benchmark validate the effectiveness of Temp-Lora. Our results show that: 1) Temp-Lora substantially enhances generation quality for long text, as indicated by a 13.2% decrease in perplexity (PPL) on a subset of PG19, and a 29.3% decrease in PPL along with a 113.2% increase in BLEU score on a subset of GuoFeng, 2) Temp-Lora is compatible with and enhances most existing long text generation methods, and 3) Temp-Lora can greatly reduce computational costs by shortening the context window. For example, we can ensure a moderate improvement in generation quality (a decrease of 3.8% in PPL) while enabling a 51.5% memory usage reduction and a 60.0% decrease in latency for inference.
Key facts. Cited by 37 papers in the map (data through 14 Oct 2026). Builds on 23 of its 38 references that are in the map. First posted on arXiv 21 Jan 2024.
Builds on
23 of 38 references.
References · 23
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Reformer: The Efficient Transformercited by 1,668
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,033
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 244
11 more
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2023Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMscited by 178
- 2022A Survey on Retrieval-Augmented Text Generationcited by 158
- 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 111
- 2021Neural Machine Translation with Monolingual Translation Memorycited by 61
- 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 44
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 33
- 2023Copy Is All You Needcited by 27
- 2023Findings of the WMT 2023 Shared Task on Discourse-Level Literary Translation: A Fresh Orb in the Cosmos of LLMscited by 25
- 2021TranSmart: A Practical Interactive Machine Translation Systemcited by 17
- 2022Effidit: Your AI Writing Assistantcited by 8
Built on by
Citing papers per year: 2024: 11; 2025: 12; 2026: 14.
37 papers.
Sort:
By area:
- 2024AutoSurvey: Large Language Models Can Automatically Write Surveyscited by 119
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 43
- 2025A Survey of Test-Time Compute: From Intuitive Inference to Deliberate Reasoningcited by 40
- 2024NovelQA: Benchmarking Question Answering on Documents Exceeding 200K Tokenscited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024SlowFast-VGen: Slow-Fast Learning for Action-Driven Long Video Generationcited by 28
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answeringcited by 26
- 2025Dynamic Parametric Retrieval Augmented Generation for Test-time Knowledge Enhancementcited by 25
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Modelscited by 23
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracingcited by 18
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
- 2026Latent Context Compilation: Distilling Long Context into Compact Portable Memorycited by 13
25 more
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2025Learning to Reason from Feedback at Test-Timecited by 10
- 2026Locas: Your Models are Principled Initializers of Locally-Supported Parametric Memoriescited by 8
- 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversationscited by 7
- 2026Metis: Memory Foundation Modelcited by 7
- 2024LIFT: Improving Long Context Understanding Through Long Input Fine-Tuningcited by 6
- 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuningcited by 6
- 2026Context Distillation as Latent Memory Managementcited by 6
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generationcited by 4
- 2025Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaborationcited by 4
- 2026Online Reasoning Calibration: Test-Time Training Enables Generalizable Conformal LLM Reasoningcited by 4
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatilitycited by 4
- 2024Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answeringcited by 3
- 2024Instruction-Driven Game Engine: A Poker Case Studycited by 3
- 2026Training LLM Agents for Spontaneous, Reward-Free Self-Evolution via World Knowledge Explorationcited by 3
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Promptcited by 1
- 2025CaliDrop: KV Cache Compression with Calibrationcited by 1
- 2025Understanding Parametric Knowledge Injection in Retrieval-Augmented Generationcited by 1
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Modelscited by 1
- 2026RING: Retrieval-Internalized Generation for Continual Large-Scale Knowledge Injectioncited by 1
- 2025Dynamic Parameter Memory: Temporary LoRA-Enhanced LLM for Long-Sequence Emotion Recognition in Conversationcited by 0
- 2026Complementary Roles of Activation and Parametric Memory in Few-Shot Learningcited by 0
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Modelscited by 0
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultationcited by 0
- 2026Towards In-Parameter Memory Augmentation for Large Language Modelscited by 0
- 2026Towards In-Parameter Memory Augmentation for Large Language Models6 Oct 2026
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultation28 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026Complementary Roles of Activation and Parametric Memory in Few-Shot Learning23 Sep 2026
- 2026RING: Retrieval-Internalized Generation for Continual Large-Scale Knowledge Injection3 Aug 2026
- 2026Metis: Memory Foundation Model29 Jul 2026
- 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversations14 Jul 2026
- 2026Context Distillation as Latent Memory Management27 May 2026
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatility2 May 2026
- 2026Training LLM Agents for Spontaneous, Reward-Free Self-Evolution via World Knowledge Exploration20 Apr 2026
- 2026Online Reasoning Calibration: Test-Time Training Enables Generalizable Conformal LLM Reasoning1 Apr 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
25 more
- 2026Locas: Your Models are Principled Initializers of Locally-Supported Parametric Memories4 Feb 2026
- 2026Latent Context Compilation: Distilling Long Context into Compact Portable Memory31 Jan 2026
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Models6 Nov 2025
- 2025Understanding Parametric Knowledge Injection in Retrieval-Augmented Generation14 Oct 2025
- 2025CaliDrop: KV Cache Compression with Calibration26 Jul 2025
- 2025Dynamic Parameter Memory: Temporary LoRA-Enhanced LLM for Long-Sequence Emotion Recognition in Conversation11 Jul 2025
- 2025Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaboration27 May 2025
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracing16 May 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025Dynamic Parametric Retrieval Augmented Generation for Test-time Knowledge Enhancement31 Mar 2025
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generation26 Feb 2025
- 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuning20 Feb 2025
- 2025Learning to Reason from Feedback at Test-Time16 Feb 2025
- 2025A Survey of Test-Time Compute: From Intuitive Inference to Deliberate Reasoning5 Jan 2025
- 2024LIFT: Improving Long Context Understanding Through Long Input Fine-Tuning18 Dec 2024
- 2024SlowFast-VGen: Slow-Fast Learning for Action-Driven Long Video Generation30 Oct 2024
- 2024Instruction-Driven Game Engine: A Poker Case Study17 Oct 2024
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolation7 Oct 2024
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answering4 Oct 2024
- 2024Learning to Compress Contexts for Efficient Knowledge-based Visual Question Answering11 Sep 2024
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Models31 Aug 2024
- 2024On the Transformations across Reward Model, Parameter Update, and In-Context Prompt24 Jun 2024
- 2024AutoSurvey: Large Language Models Can Automatically Write Surveys10 Jun 2024
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolation23 May 2024
- 2024NovelQA: Benchmarking Question Answering on Documents Exceeding 200K Tokens18 Mar 2024
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 43
- 2025A Survey of Test-Time Compute: From Intuitive Inference to Deliberate Reasoningcited by 40
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answeringcited by 26
- 2025Learning to Reason from Feedback at Test-Timecited by 10
- 2026Metis: Memory Foundation Modelcited by 7
- 2026Online Reasoning Calibration: Test-Time Training Enables Generalizable Conformal LLM Reasoningcited by 4
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Modelscited by 1
- 2026Metis: Memory Foundation Model29 Jul 2026
- 2026Online Reasoning Calibration: Test-Time Training Enables Generalizable Conformal LLM Reasoning1 Apr 2026
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contexts13 Feb 2026
- 2025GRIP: In-Parameter Graph Reasoning through Fine-Tuning Large Language Models6 Nov 2025
- 2025Learning to Reason from Feedback at Test-Time16 Feb 2025
- 2025A Survey of Test-Time Compute: From Intuitive Inference to Deliberate Reasoning5 Jan 2025
- 2024ALR2: A Retrieve-then-Reason Framework for Long-context Question Answering4 Oct 2024
- 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversationscited by 7
- 2025Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaborationcited by 4
- 2026Training LLM Agents for Spontaneous, Reward-Free Self-Evolution via World Knowledge Explorationcited by 3
- 2026Towards In-Parameter Memory Augmentation for Large Language Modelscited by 0
- 2026Towards In-Parameter Memory Augmentation for Large Language Models6 Oct 2026
- 2026MemOps: Benchmarking Lifecycle Memory Operations in Long-Horizon Conversations14 Jul 2026
- 2026Training LLM Agents for Spontaneous, Reward-Free Self-Evolution via World Knowledge Exploration20 Apr 2026
- 2025Scaling External Knowledge Input Beyond Context Windows of LLMs via Multi-Agent Collaboration27 May 2025
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracingcited by 18
- 2025CaliDrop: KV Cache Compression with Calibrationcited by 1
- 2025CaliDrop: KV Cache Compression with Calibration26 Jul 2025
- 2025Accurate KV Cache Quantization with Outlier Tokens Tracing16 May 2025
- 2024AutoSurvey: Large Language Models Can Automatically Write Surveyscited by 119
- 2024NovelQA: Benchmarking Question Answering on Documents Exceeding 200K Tokenscited by 32
- 2024DAPE: Data-Adaptive Positional Encoding for Length Extrapolationcited by 31
- 2024SlowFast-VGen: Slow-Fast Learning for Action-Driven Long Video Generationcited by 28
- 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Modelscited by 23
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformationcited by 17
- 2026Latent Context Compilation: Distilling Long Context into Compact Portable Memorycited by 13
- 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
- 2026Locas: Your Models are Principled Initializers of Locally-Supported Parametric Memoriescited by 8
- 2024LIFT: Improving Long Context Understanding Through Long Input Fine-Tuningcited by 6
- 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuningcited by 6
- 2026Context Distillation as Latent Memory Managementcited by 6
12 most cited of 19 All 19 (JSON)
- 2026BaRe-Mem: Bayesian Reliability Memory for Robust and Adaptive Agent Consultation28 Sep 2026
- 2026LSTMem: Hierarchical Long Short-Term Online Memory for Large Language Models27 Sep 2026
- 2026Complementary Roles of Activation and Parametric Memory in Few-Shot Learning23 Sep 2026
- 2026Context Distillation as Latent Memory Management27 May 2026
- 2026On Stable Long-Form Generation: Benchmarking and Mitigating Length Volatility2 May 2026
- 2026Locas: Your Models are Principled Initializers of Locally-Supported Parametric Memories4 Feb 2026
- 2026Latent Context Compilation: Distilling Long Context into Compact Portable Memory31 Jan 2026
- 2025Dynamic Parameter Memory: Temporary LoRA-Enhanced LLM for Long-Sequence Emotion Recognition in Conversation11 Jul 2025
- 2025InfiniteICL: Breaking the Limit of Context Window Size via Long Short-term Memory Transformation2 Apr 2025
- 2025TokenSwift: Lossless Acceleration of Ultra Long Sequence Generation26 Feb 2025
- 2025LIFT: A Novel Framework for Enhancing Long-Context Understanding of LLMs via Long Input Fine-Tuning20 Feb 2025
- 2024LIFT: Improving Long Context Understanding Through Long Input Fine-Tuning18 Dec 2024
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025LoRA-Augmented Generation (LAG) for Knowledge-Intensive Language Tasks
- 2025LongWriter-Zero: Mastering Ultra-Long Text Generation via Reinforcement Learning
- 2023LLMRefine: Pinpointing and Refining Large Language Models via Fine-Grained Actionable Feedback
- 2025A Survey on Parallel Text Generation: From Parallel Decoding to Diffusion Language Models
- 2026Understanding LoRA as Knowledge Memory: An Empirical Analysis
- 2025Modular Techniques for Synthetic Long-Context Data Generation in Language Model Training and Evaluation
- 2025Systematic Evaluation of Optimization Techniques for Long-Context Language Models
- 2024A Comprehensive Survey of Accelerated Generation Techniques in Large Language Models