paper-with-me

홈 › Papers

Knowledge Injection via Prompt Distillation

2024-12-19 · Kalle Kujanpää, Harri Valpola, Alexander Ilin

In many practical applications, large language models (LLMs) need to incorporate new knowledge not present in their pre-training data. The primary methods for this are fine-tuning and retrieval-augmented generation (RAG). Although RAG has emerged as the industry standard for knowledge injection, fine-tuning has not yet achieved comparable success. In this paper, we propose a new fine-tuning technique for learning new knowledge and show that it can reach the performance of RAG. The proposed method is based on the self-distillation approach, which we call prompt distillation. First, we generate question-answer pairs about the new knowledge. Then, we fine-tune a student model on the question-answer pairs to imitate the output distributions of a teacher model, which additionally receives the new knowledge in its prompt. The student model is identical to the teacher, except it is equipped with a LoRA adapter. This training procedure facilitates distilling the new knowledge from the teacher's prompt into the student's weights.

📄 PDF Abstract BibTeX arXiv:2412.14964

Code (0)

등록된 구현이 없습니다.

Tasks

RAGRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Residual Connection 설명 없음
Adam 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Weight Decay 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

SecOPD: Mitigating Adaptive Prompt Injections by On-Policy Distillation

2026-08-21 · Yibo Peng, Long Lian, David Wagner, Sizhe Chen hf

Prompt injection is listed as the \#1 threat to AI agents. When an agent accesses external data from websites, files, or emails, an attacker may inject a prompt into the data, saying, "Ignore all prior instructions and p…

SPA: A Simple but Tough-to-Beat Baseline for Knowledge Injection

2026-03-23 · Kexian Tang, Jiani Wang, Shaowen Wang, Kaifeng Lyu arxiv

While large language models (LLMs) are pretrained on massive amounts of data, their knowledge coverage remains incomplete in specialized, data-scarce domains, motivating extensive efforts to study synthetic data generati…

Synthetic Data GenerationData Augmentation

When Prompts Control Robots: Prompt Injection Attacks in Multi-Agent Robotic Systems

2026-08-01 · Neha Nagaraja, Amisha Bagari, Hayretdin Bahsi arxiv

Large language models are increasingly integrated into autonomous robotic systems for task planning and control, but this integration exposes them to prompt injection attacks that can lead to unsafe decisions and physica…

Continual Distillation Learning: Knowledge Distillation in Prompt-based Continual Learning

2024-07-18 · Qifan Zhang, Yunhui Guo, Yu Xiang

We introduce the problem of continual distillation learning (CDL) in order to use knowledge distillation (KD) to improve prompt-based continual learning (CL) models. The CDL problem is valuable to study since the use of …

Continual LearningKnowledge Distillation

Knowledge Return Oriented Prompting (KROP)

2024-06-11 · Jason Martin, Kenneth Yeung

Many Large Language Models (LLMs) and LLM-powered apps deployed today use some form of prompt filter or alignment to protect their integrity. However, these measures aren't foolproof. This paper introduces KROP, a prompt…