Leveraging Self-Attention for Input-Dependent Soft Prompting in LLMs

0Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The performance of large language models in domain-specific tasks necessitates fine-tuning, which is computationally expensive and technically challenging. This paper focuses on parameter-efficient fine-tuning using soft prompting, a promising approach that adapts pre-trained models to downstream tasks by learning a small set of parameters. We propose a novel Input Dependent Soft Prompting technique with a self-Attention Mechanism (ID-SPAM) that generates soft prompts based on the input tokens and attends different tokens with varying importance. Our method is simple and efficient, keeping the number of trainable parameters small. We show the merits of the proposed approach compared to state-of-the-art techniques on various tasks and show the improved zero shot domain transfer capability.

Cite

CITATION STYLE

APA

Muppidi, A., Nandy, A., & Bandyopadhyay, S. (2025). Leveraging Self-Attention for Input-Dependent Soft Prompting in LLMs. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 2, pp. 960–969). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2025.acl-short.74

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free