arXiv

Towards Lightweight Reliability: Using Soft Prompts for Hallucination Mitigation in Large Language Models

Title: Enhancing Lightweight Reliability: Mitigating Hallucinations in Large Language Models via Soft Prompts

Abstract

While Large Language Models (LLMs) are increasingly integrated into diverse fields, their practical utility is often compromised by hallucinations—outputs that sound convincing yet lack factual accuracy. In critical sectors, such inaccuracies can erode user confidence and pose significant real-world dangers. To tackle this issue, we introduce a parameter-efficient strategy that leverages soft prompts to reduce hallucinated responses and encourage responsible abstention during generative Question-Answering (QA) tasks.

We propose a method named Responsible Contrastive Soft Prompting (RCSP), which employs a composite loss function to train soft prompts. This approach simultaneously targets three objectives: curbing hallucinatory content, fostering abstention when faced with uncertainty, and maintaining or enhancing factual recall. The training mechanism integrates contrastive loss, curriculum learning, and KL regularization to achieve these aims.

We assessed our methodology across five distinct generative QA datasets, utilizing an LLM-as-a-Judge framework for evaluation. Experiments conducted on Gemma 3 (12B) and Llama 3.1 (8B) backbones indicate that RCSP successfully balances factual recall with the suppression of hallucinations and appropriate abstention. Consequently, it achieves a generally higher F-score compared to standard baselines based on reasoning and instruction-based prompting. Importantly, these gains are realized by tuning only a small fraction of the parameters needed for other adjustment techniques. Our findings suggest that soft prompts offer a modular and computationally efficient avenue for enhancing the reliability of LLMs.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...