paper-with-me

홈 › Papers

Fine-tuned Large Language Models (LLMs): Improved Prompt Injection Attacks Detection

2024-10-28 · Md Abdur Rahman, Fan Wu, Alfredo Cuzzocrea, Sheikh Iqbal Ahamed

Large language models (LLMs) are becoming a popular tool as they have significantly advanced in their capability to tackle a wide range of language-based tasks. However, LLMs applications are highly vulnerable to prompt injection attacks, which poses a critical problem. These attacks target LLMs applications through using carefully designed input prompts to divert the model from adhering to original instruction, thereby it could execute unintended actions. These manipulations pose serious security threats which potentially results in data leaks, biased outputs, or harmful responses. This project explores the security vulnerabilities in relation to prompt injection attacks. To detect whether a prompt is vulnerable or not, we follows two approaches: 1) a pre-trained LLM, and 2) a fine-tuned LLM. Then, we conduct a thorough analysis and comparison of the classification performance. Firstly, we use pre-trained XLM-RoBERTa model to detect prompt injections using test dataset without any fine-tuning and evaluate it by zero-shot classification. Then, this proposed work will apply supervised fine-tuning to this pre-trained LLM using a task-specific labeled dataset from deepset in huggingface, and this fine-tuned model achieves impressive results with 99.13\% accuracy, 100\% precision, 98.33\% recall and 99.15\% F1-score thorough rigorous experimentation and evaluation. We observe that our approach is highly efficient in detecting prompt injection attacks.

📄 PDF Abstract BibTeX arXiv:2410.21337

Code (0)

등록된 구현이 없습니다.

Tasks

zero-shot-classificationZero-Shot Learning

Similar Papers 제목 키워드 기반

Advancing Depression Detection on Social Media Platforms Through Fine-Tuned Large Language Models

2024-09-23 · Shahid Munir Shah, Syeda Anshrah Gillani, Mirza Samad Ahmed Baig, Muhammad Aamer Saleem 외

This study investigates the use of Large Language Models (LLMs) for improved depression detection from users social media data. Through the use of fine-tuned GPT 3.5 Turbo 1106 and LLaMA2-7B models and a sizable dataset …

Depression Detection

Empowering Cross-lingual Abilities of Instruction-tuned Large Language Models by Translation-following demonstrations

2023-08-27 · Leonardo Ranaldi, Giulia Pucci, Andre Freitas

The language ability of Large Language Models (LLMs) is often unbalanced towards English because of the imbalance in the distribution of the pre-training data. This disparity is demanded in further fine-tuning and affect…

Instruction FollowingMMLUQuestion AnsweringTranslation

Gaussian Stochastic Weight Averaging for Bayesian Low-Rank Adaptation of Large Language Models

2024-05-06 · Emre Onal, Klemens Flöge, Emma Caldwell, Arsen Sheverdin 외

Fine-tuned Large Language Models (LLMs) often suffer from overconfidence and poor calibration, particularly when fine-tuned on small datasets. To address these challenges, we propose a simple combination of Low-Rank Adap…

Bayesian Inference

Investigating the Effectiveness of Task-Agnostic Prefix Prompt for Instruction Following

2023-02-28 · Seonghyeon Ye, Hyeonbin Hwang, Sohee Yang, Hyeongu Yun 외

In this paper, we present our finding that prepending a Task-Agnostic Prefix Prompt (TAPP) to the input improves the instruction-following ability of various Large Language Models (LLMs) during inference. TAPP is differe…

Instruction FollowingZero-shot Generalization

Small or Large? Zero-Shot or Finetuned? Guiding Language Model Choice for Specialized Applications in Healthcare

2025-04-29 · Lovedeep Gondara, Jonathan Simkin, Graham Sayle, Shebnum Devji 외

This study aims to guide language model selection by investigating: 1) the necessity of finetuning versus zero-shot usage, 2) the benefits of domain-adjacent versus generic pretrained models, 3) the value of further doma…

Language ModelingLanguage ModellingModel Selection