paper-with-me

홈 › Papers

With Greater Text Comes Greater Necessity: Inference-Time Training Helps Long Text Generation

2024-01-21 · Y. Wang, D. Ma, D. Cai

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.

📄 PDF Abstract BibTeX arXiv:2401.11504

Code (1)

temporarylora/temp-lora 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingText GenerationTranslation

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

3-D Image-to-Image Fusion in Lightsheet Microscopy by Two-Step Adversarial Network: Contribution to the FuseMyCells Challenge

2025-03-20 · Marek Wodzinski, Henning Müller

Lightsheet microscopy is a powerful 3-D imaging technique that addresses limitations of traditional optical and confocal microscopy but suffers from a low penetration depth and reduced image quality at greater depths. Mu…

SSIM

Iron Sharpens Iron: Defending Against Attacks in Machine-Generated Text Detection with Adversarial Training

2025-02-18 · Yuanfan Li, Zhaohan Zhang, Chengzhengxu Li, Chao Shen 외

Machine-generated Text (MGT) detection is crucial for regulating and attributing online texts. While the existing MGT detectors achieve strong performance, they remain vulnerable to simple perturbations and adversarial a…

Adversarial AttackText Detection

Studying Semantic Chain Shifts with Word2Vec: FOOD\textgreaterMEAT\textgreaterFLESH

2019-08-01 · WS 2019 8 · Richard Zimmermann

Word2Vec models are used to study the semantic chain shift FOOD{\textgreater}MEAT{\textgreater}FLESH in the history of English, c. 1425-1925. The development stretches out over a long time, starting before 1500, and may …

Towards a Framework for Evaluating Explanations in Automated Fact Verification

2024-03-29 · Neema Kotonya, Francesca Toni

As deep neural models in NLP become more complex, and as a consequence opaque, the necessity to interpret them becomes greater. A burgeoning interest has emerged in rationalizing explanations to provide short and coheren…

Fact VerificationPosition

GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers

2024-12-12 · Sarkar Snigdha Sarathi Das, Ryo Kamoi, Bo Pang, Yusen Zhang 외

The effectiveness of large language models (LLMs) is closely tied to the design of prompts, making prompt optimization essential for enhancing their performance across a wide range of tasks. Many existing approaches to a…

GSM8KPrompt Engineering