paper-with-me

홈 › Papers

PromptIntern: Saving Inference Costs by Internalizing Recurrent Prompt during Large Language Model Fine-tuning

2024-07-02 · Jiaru Zou, Mengyu Zhou, Tao Li, Shi Han, Dongmei Zhang

Recent advances in fine-tuning large language models (LLMs) have greatly enhanced their usage in domain-specific tasks. Despite the success, fine-tuning continues to rely on repeated and lengthy prompts, which escalate computational expenses, require more resources, and lead to slower inference. In this paper, we present a novel approach, PromptIntern, which internalizes prompt knowledge during model fine-tuning to achieve efficient inference and save costs. Instead of compressing the prompts for a vanilla model, PromptIntern aims to embed the recurrent prompt directly into the model parameters. We design a fine-tuning pipeline that includes instruction template compression, few-shot example absorption, and a progressive internalization strategy, effectively diminishing the need for intricate prompts during inference. Comprehensive experiments on challenging NL2Code tasks demonstrate that our method reduces input tokens by more than 90%, accelerates inference by 4.2 times, and reduces monetary inference costs by 88.3%.

📄 PDF Abstract BibTeX arXiv:2407.02211

Code (0)

등록된 구현이 없습니다.

Tasks

Language ModelingLanguage ModellingLarge Language Model

Similar Papers 제목 키워드 기반

Pretraining with Token-Level Adaptive Latent Chain-of-Thought

2026-02-09 · Boyi Zeng, Yiqin Hao, He Li, Shixiang Song 외 arxiv

Scaling large language models by increasing parameters and training data is increasingly constrained by limited high-quality corpora and rising communication costs. This work explores an alternative axis: increasing per-…

Efficient Real Time Recurrent Learning through combined activity and parameter sparsity

2023-03-10 · Anand Subramoney

Backpropagation through time (BPTT) is the standard algorithm for training recurrent neural networks (RNNs), which requires separate simulation phases for the forward and backward passes for inference and learning, respe…

$\textit{SKIntern}$: Internalizing Symbolic Knowledge for Distilling Better CoT Capabilities into Small Language Models

2024-09-20 · Huanxuan Liao, Shizhu He, Yupu Hao, Xiang Li 외

Small Language Models (SLMs) are attracting attention due to the high computational demands and privacy concerns of Large Language Models (LLMs). Some studies fine-tune SLMs using Chains of Thought (CoT) data distilled f…

Alternating Multi-bit Quantization for Recurrent Neural Networks

2018-02-01 · ICLR 2018 1 · Chen Xu, Jianqiang Yao, Zhouchen Lin, Wenwu Ou 외

Recurrent neural networks have achieved excellent performance in many applications. However, on portable devices with limited resources, the models are often too large to deploy. For applications on the server with large…

image-classificationImage ClassificationQuantization

Recurrent Homography Estimation Using Homography-Guided Image Warping and Focus Transformer

2023-01-01 · CVPR 2023 1 · Si-Yuan Cao, Runmin Zhang, Lun Luo, Beinan Yu 외

We propose the Recurrent homography estimation framework using Homography-guided image Warping and Focus transformer (FocusFormer), named RHWF. Both being appropriately absorbed into the recurrent framework, the homo…

Homography Estimation