Leveraging Self-Attention for Input-Dependent Soft Prompting in LLMs
🤗 Upvotes: 25 | cs.CL
Authors:
Ananth Muppidi, Abhilash Nandy, Sambaran Bandyopadhyay
Title:
Leveraging Self-Attention for Input-Dependent Soft Prompting in LLMs
Arxiv:
http://arxiv.org/abs/2506.05629v1
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.
You May Also Like

La Science, CQFD
France Culture

The Science Behind Dreams
Paul Stanley

Radiowissen
Bayerischer Rundfunk

La Terre au carré
France Inter

Cryptids and Cold Ones
John, Evan, Kyle

Real Ghost Stories Online
Real Ghost Stories Online | Paranormal, Supernatural & Horror Radio

The 365 Days of Astronomy
365DaysOfAstronomy.org

John Michael Godier's Event Horizon
John Michael Godier

Farm Small Farm Smart Daily
The Modern Grower Podcast Network

The Biotech Startups Podcast
Excedr
Community discussion