Skip to content

Menu

WorksComputer Science

HARPO: Hallucination-Aware Reinforcement Learning for Faithful and Creative Language Generation

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_fte5fvvp. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Large Language Models (LLMs) are prone to generating hallucinated content, which compromises their reliability in knowledge-intensive tasks. To address this challenge without sacrificing creativity, we propose HARPO, a reinforcement learning framework designed to jointly optimize faithfulness and creativity. HARPO incorporates a Hallucination-Aware Generative Reward Model (HA-GRM), trained via verifiable feedback, to assess both faithfulness and writing quality. A Selective Activation Mechanism (SAM) activates writing rewards only for outputs judged hallucination-free by HA-GRM, while a data curriculum progressively shifts training from creative writing to hallucination-centric tasks. On RAGTruth, our Qwen3-4B-based HA-GRM achieves a response-level F1 score of 78.08%, compared with 66.37% for the supervised fine-tuning baseline. Experiments on Qwen2.5 and Qwen3 models from 1.7B to 8B parameters show improvements in both faithful generation and writing quality. On Qwen3-4B, HARPO reduces the HA-GRM-judged hallucination rate on MultiHopRAG from 3.29% to 1.02%, while increasing the Arena-Hard-v2.0 creative-writing score from 16.95% to 27.54%.

Introduction

Large Language Models (LLMs) have demonstrated impressive capabilities in generating fluent, human-like text. However, their reliability remains a critical concern due to hallucinated outputs that are unfaithful with respect to a given source ([10]). Such inaccuracies undermine the trustworthiness and utility of LLMs, particularly in high-stakes applications.

While reinforcement learning (RL) techniques have been widely adopted to boost the performance of large language models (LLMs) ([34]), optimizing for a single capability often comes at the cost of degraded performance in other dimensions.

For instance, the RLMR framework ([17]) underscores the inherent challenge of preserving subjective textual quality while adhering to rigid objective constraints. Similarly, Damani et al. [5] show that conventional RL can impair calibration on out-of-domain benchmarks and propose RLCR to jointly optimize correctness and calibration.

In this paper, we address the conflict between hallucination mitigation and creative generation. Mitigating hallucinations demands precision and caution, whereas creative writing requires richness and novelty. Existing methods struggle to balance these competing objectives: single-reward strategies fail to improve both simultaneously, while naive data mixing often leads to interference between faithful adherence and expressive quality.

To address this problem, we introduce HARPO (Hallucination-Aware Reinforcement for Policy Optimization), a framework designed to jointly optimize faithfulness and creativity. Prior work has established reinforcement learning with verifiable span-level rewards for hallucination detection ((Su et al., 2026)). HARPO combines hallucination evaluation and writing preference evaluation in a Hallucination-Aware Generative Reward Model (HA-GRM), trained using Reinforcement Learning with Verifiable Rewards (RLVR) ([26]). We combine response-level classification with an auxiliary reward based on hallucinated-span prediction to supervise faithfulness evaluation. By incorporating pairwise preference data for creative writing, HA-GRM also learns to evaluate stylistic quality.

To effectively utilize these signals during policy optimization, we propose a Selective Activation Mechanism (SAM). Unlike traditional fixed-weight scalarization, prone to reward conflicts, SAM acts as a conditional gate: the writing reward is activated only if HA-GRM judges the response to be hallucination-free. Finally, to stabilize the training process, we design a data curriculum strategy that gradually shifts the data distribution from creative writing instructions to hallucination-focused scenarios. This approach mitigates the catastrophic forgetting often observed in single-objective alignment, preserving broad linguistic proficiency while sharpening evidential rigor.

HA-GRM achieves higher Overall response-level F1 than the base model and SFT, while SFT remains stronger on QA detection and the base model retains a higher D2T F1. We evaluate HARPO on Qwen2.5 and Qwen3 models from 1.7B to 8B parameters. Relative to the base Qwen3-4B model, HARPO reduces the HA-GRM-judged summarization hallucination rate by over 85% while increasing creative-writing scores. Compared with linear reward mixing on Qwen3-4B, HARPO has a lower summarization hallucination rate and a higher General score, with a slightly higher MultiHopRAG hallucination rate and a lower creative-writing score. The curriculum comparison similarly shows a trade-off between hallucination rates and writing performance.

The contributions are as follows:

  • We introduce HARPO, a framework that combines hallucination-aware reward modeling, conditional reward aggregation, and a creative-to-faithful data curriculum to jointly optimize faithful generation and writing quality.

  • We train HA-GRM with response-level labels, span-level annotations, and writing preferences, and use SAM to activate writing rewards for responses predicted to be hallucination-free by HA-GRM.

  • Extensive experiments demonstrate that HARPO consistently enhances performance across various model families and scales, confirming its effectiveness.

Methodology

We introduce HARPO, a framework designed to mitigate hallucinations in large language models (LLMs) while preserving creative generation capabilities. Our approach integrates a Hallucination-Aware Generative Reward Model (HA-GRM) with a curriculum-driven reinforcement learning strategy. The optimization process features two core mechanisms: a Selective Activation Mechanism (SAM) that gates writing rewards based on HA-GRM’s hallucination predictions, and a dynamic curriculum that progressively shifts the training distribution from creative to hallucination-sensitive tasks.

HA-GRM: Reward Model Training

Task Formulation. We train the HA-GRM to detect hallucinations at both the response and span levels, following the annotation structure of RAGTruth (Niu et al., [19]). Given the input context cc and the generated response y=(y1,y2,…,yT)y = (y_1, y_2, \ldots, y_T) consisting of TT characters, the model needs to first identify whether the response yy is hallucinated and then locate all hallucinated spans SS, defined as portions of text in yy that lack support from cc. Additionally, to maintain expressive quality, we incorporate pairwise preference data, encouraging the model to evaluate responses based on helpfulness, relevance, conciseness, creativity, and completeness, similar to Arena-Hard (Li et al., [16]).

Rule-Based Reinforcement Learning. We fine-tune the HA-GRM using rule-based online RL, adopting the GRPO setting (Shao et al., [26]). During rollout, the model predicts hallucinated spans and pointwise response-level labels for hallucination detection, while generating pairwise comparisons for creative writing. The reward signal combines format validity and prediction accuracy.

For hallucination detection, we incorporate the span-F1 metric alongside response-level accuracy. Let S^\hat{S} be the predicted hallucination spans and SS be the ground-truth spans. The hallucination reward rhr_h is

rh={1+span-F1⁡(S,S^),valid format & acc.1,valid format only0,invalid format(1)r_h = \begin{cases} 1 + \operatorname{span\text{-}F1}(S,\hat{S}), & \text{valid format \& acc.} \\ 1, & \text{valid format only} \\ 0, & \text{invalid format} \end{cases} \tag*{(1)}

For writing preference evaluation, the reward rwr_w is

rw={2,correct format & acc.1,correct format only0,incorrect format(2)r_w = \begin{cases} 2, & \text{correct format \& acc.} \\ 1, & \text{correct format only} \\ 0, & \text{incorrect format} \end{cases} \tag*{(2)}

These reward schemes are applied separately to the pointwise hallucination data and pairwise creative writing data.

HARPO: Hallucination-Aware Reinforcement for Policy Optimization

We now present the details of HARPO, a framework designed to balance the competing objectives of hallucination reduction and creative generation. We employ reinforcement learning rather than direct Supervised Fine-Tuning. This approach enables us to optimize the model using unlabelled prompts without requiring ground-truth reference texts. To guide this process, we introduce two novel components: first, the Selective Activation Mechanism, which functions as the core scoring metric during optimization; and second, a data curriculum strategy that schedules the training distribution to smooth the transition between hallucination-centric and creativity-centric tasks.

Reinforcement Learning with GRPO. As our reinforcement learning framework, we adopt Group Relative Policy Optimization (GRPO) [26], a variant of REINFORCE [36] that utilizes group-based advantage normalization. To optimize the LLM policy πθ\pi_\theta, given a prompt xx, we sample a group of KK rollouts {τk}k=1K\{\tau_k\}_{k=1}^{K} from the current policy πθ\pi_\theta. Each rollout τk\tau_k is assigned a reward score Rk=R(τk)R_k = R(\tau_k) calculated by our reward system. The policy is updated via the clipped policy gradient objective:

LGRPO=1K∑k=1K1∣τk∣∑t=1∣τk∣min⁡[wk,t(θ)⋅A^k,t, clip⁡(wk,t(θ),1−ϵlow,1+ϵhigh)⋅A^k,t]−β⋅DKL(πθ∥πref).(3)\mathcal{L}_{\mathrm{GRPO}} = \frac{1}{K}\sum_{k=1}^{K}\frac{1}{|\tau_k|}\sum_{t=1}^{|\tau_k|}\min\left[w_{k,t}(\theta)\cdot\hat{A}_{k,t},\ \operatorname{clip}\left(w_{k,t}(\theta),1-\epsilon_{\mathrm{low}},1+\epsilon_{\mathrm{high}}\right)\cdot\hat{A}_{k,t}\right] - \beta\cdot D_{\mathrm{KL}}\left(\pi_\theta\mathbin\Vert\pi_{\mathrm{ref}}\right). \tag*{(3)}

where the token-level importance weight is defined as the probability ratio:

wk,t(θ)=πθ(τk,t∣x,τk,<t)πθold(τk,t∣x,τk,<t).(4)w_{k,t}(\theta)=\frac{\pi_\theta(\tau_{k,t}\mid x,\tau_{k,<t})}{\pi_{\theta_{\mathrm{old}}}(\tau_{k,t}\mid x,\tau_{k,<t})}. \tag*{(4)}

Here, τk,t\tau_{k,t} denotes the token generated at step tt in rollout kk, and τk,<t\tau_{k,<t} denotes the preceding context. The group-normalized advantage A^k,t\hat{A}_{k,t} is computed using the rewards of the KK rollouts sampled for the same input:

A^k,t=R(τk)−mean⁡({Ri}i=1K)std⁡({Ri}i=1K)+δ.(5)\hat{A}_{k,t}=\frac{R(\tau_k)-\operatorname{mean}\left(\{R_i\}_{i=1}^{K}\right)}{\operatorname{std}\left(\{R_i\}_{i=1}^{K}\right)+\delta}. \tag*{(5)}

where δ\delta is a small constant for numerical stability. Following recent advances in RL for LLM reasoning such as DAPO [37], we adopt asymmetric clipping (clip-higher) with ϵlow<ϵhigh\epsilon_{\mathrm{low}} < \epsilon_{\mathrm{high}}. This strategy encourages the exploration of novel token sequences while maintaining training stability. The coefficient β\beta scales the KL divergence term DKL(πθ∥πref)D_{\mathrm{KL}}(\pi_\theta\parallel\pi_{\mathrm{ref}}), ensuring the policy remains close to the reference model πref\pi_{\mathrm{ref}} to prevent mode collapse.

Selective Activation Mechanism (SAM). A core challenge in aligning LLMs for both reliability and quality is the potential conflict between objectives. Standard approaches typically employ a linear scalarization of rewards, Rtotal=w1Rhallu+w2RcreatR_{\mathrm{total}} = w_1R_{\mathrm{hallu}} + w_2R_{\mathrm{creat}}. However, this fixed-weight strategy creates an optimization landscape where the model may learn to exploit the reward function. We propose the Selective Activation Mechanism (SAM), a hierarchical reward aggregation strategy that activates the writing reward only when HA-GRM predicts no hallucinated spans. Let xx denote the input prompt and yy denote the generated response corresponding to a rollout τk\tau_k. Our HA-GRM, described in § 2.1, provides two distinct scalar signals:

  1. Hallucination Reward (RhalluR_{\mathrm{hallu}}): A score based on HA-GRM’s prediction of whether the response yy is grounded in the context. Let S^\hat{S} denote the set of hallucinated spans predicted by HA-GRM, and let ∣⋅∣|\cdot| denote the text length. The hallucination reward is calculated as:

Rhallu(x,y)={1,if S^=∅−∣S^∣∣y∣,if S^≠∅(6)R_{\mathrm{hallu}}(x,y)= \begin{cases} 1, & \text{if } \hat{S}=\varnothing\\ -\frac{|\hat{S}|}{|y|}, & \text{if } \hat{S}\ne\varnothing \end{cases} \tag*{(6)}

This formulation imposes a penalty proportional to the density of hallucinated content when errors occur.

  1. Writing Reward (RcreatR_{\mathrm{creat}}): A score evaluating the helpfulness, relevance, conciseness, and novelty of the response. This score is derived from a pairwise evaluation comparing the model’s output yy against a reference answer rr.

Under the SAM framework, the writing reward is gated by HA-GRM’s hallucination prediction. The final reward RSAMR_{\mathrm{SAM}} assigned to a rollout is defined as:

RSAM(x,y,r)=Rhallu(x,y)+I[S^=∅]⋅Rcreat(x,y,r).(7)\begin{aligned} R_{\mathrm{SAM}}(x,y,r) &= R_{\mathrm{hallu}}(x,y) \\ &\quad+ \mathbb{I}[\hat{S}=\varnothing]\cdot R_{\mathrm{creat}}(x,y,r). \tag*{(7)} \end{aligned}

where I[⋅]\mathbb{I}[\cdot] is the indicator function and S^\hat{S} is the set of hallucinated spans predicted by HA-GRM. The writing reward is activated when S^=∅\hat{S}=\varnothing and suppressed otherwise. This gate constrains reward assignment according to HA-GRM’s prediction; it does not guarantee that the response is truly hallucination-free.

Data Curriculum Strategy. The distinct nature of our two types of training data, creative writing and hallucination mitigation, presents a significant optimization challenge. Creative writing tasks demand open-ended generation with diverse vocabulary, whereas hallucination mitigation requires strict adherence to evidence and factual constraints. Directly mixing these datasets in a static ratio often leads to optimization interference.

To address this, we design a dynamic data curriculum that modulates the training distribution over time. We adopt a Creative →\rightarrow Faithful progression strategy for two reasons: (1) Model Affinity: We initialize training with a higher proportion of creative writing data. This leverages the pre-trained model’s inherent linguistic capabilities, stabilizing the initial policy optimization before introducing strict factual constraints. (2) Prevention of Catastrophic Forgetting: Rather than abruptly switching tasks, we employ a smooth decay schedule. This ensures that even as the focus shifts toward hallucination mitigation, a minimum proportion of creative writing data is maintained to preserve language proficiency.

Formally, let TT denote the total number of training steps. We define r(t)r(t) as the sampling ratio of creative writing data at step tt. We utilize a cosine annealing schedule to smoothly reduce this ratio from an initial high to a fixed minimum:

r(t)=r0⋅cos⁡(π2T⋅t)+rmin⁡.(8)r(t)=r_0\cdot\cos\left(\frac{\pi}{2T}\cdot t\right)+r_{\min}. \tag*{(8)}

where rmin⁡=0.05r_{\min}=0.05 represents the minimum proportion of creative data maintained at the end of training to prevent forgetting, and r0=0.9r_0=0.9 represents the magnitude of the decay. Under this schedule, the training begins with a creative data ratio of r(0)=r0+rmin⁡r(0)=r_0+r_{\min} and gradually converges to r(T)=rmin⁡r(T)=r_{\min} as the model becomes more robust to hallucination-sensitive tasks.

Experiments on HA-GRM

We address the following research question: (RQ1) What are the advantages of using reinforcement learning with fine-grained rewards for training generative reward models?

Experimental Setup

Training Details. We initialize HA-GRM from Qwen3-4B and train it on two public datasets. Specifically, for hallucination detection, we use the summarization and question-answering subsets of the RAGTRUTH (Niu et al., [19]) training set. For creative writing, we utilize ARENA-HARD-V2.0 (Li et al., [16]). We employ verl (Sheng et al., [27]) as our RL training framework, using a global batch size of 128 and a learning rate of 1e-6. Additionally, we apply a clipping strategy with the upper clipping threshold set to 0.28.

Evaluation Datasets and Metrics. We evaluate the reward models on the RAGTruth test set for hallucination detection and the Auto-J pairwise preference evaluation data (Li et al., [13]) for general preference evaluation. In addition to response-level metrics such as precision, recall, and F1 scores,

Model NameRAGTRUTH (SUMM)RAGTRUTH (QA)RAGTRUTH (D2T)OVERALL
PRF1PRF1PRF1PRF1
Open-Source Models (8B - 671B)
Qwen3-8B50.1487.2563.6936.8188.1251.9379.7691.1985.0960.5089.8272.30
Qwen3-32B42.7691.1858.2233.6491.8849.2580.1294.2886.6256.5493.2070.39
Qwen3-235B-A22B-Instruct40.2596.5556.8128.6595.6244.0966.5599.4879.7548.9998.1965.37
Qwen3-235B-A22B-Thinking37.9497.0154.5528.9595.0044.3871.8498.4483.0750.0397.5566.14
DeepSeek-V3.232.0596.9748.1826.8396.8642.0265.7599.8379.2844.9798.7161.79
Proprietary Models
GPT-4o50.2986.4363.5932.4886.3947.2169.6096.9881.0455.6792.9569.64
doubao-seed-1-6-thinking41.8195.1058.0837.2996.2553.7574.4798.2684.7355.8397.2370.94
claude-4-sonnet46.3286.2760.2736.6587.5051.6672.9594.9182.4954.8391.2168.49
Open-Source Models (Qwen3-4B based)
Qwen3-4B60.9271.4365.7643.6673.1254.6784.7586.0985.4160.9280.6774.58
HA-GRM (SFT)78.9156.8666.1071.6169.3870.4881.6152.3365.0981.0456.2066.37
HA-GRM (Response Only)77.4462.2569.0263.7969.3866.4791.2277.3483.7182.7372.7277.40
HA-GRM (Full)81.0560.7869.4770.7565.0067.7591.9877.2083.9485.8871.5878.08

caption: tbl:1: Performance (Precision, Recall and F1) of hallucination evaluation on the test split of RAGTruth. We separate Qwen3-4B based models, larger open-source models, and proprietary models into different blocks.

:::

we conduct span-level detection by calculating the overlap between detected and human-labeled spans, reporting the character-level F1 score. For the pairwise evaluation on Auto-J, we report accuracy. All datasets used in this evaluation are human-annotated.

Results and Analysis

Main Results. Table 1 reports response-level detection performance. HA-GRM (Full), initialized from Qwen3-4B, achieves an Overall F1 of 78.08%, compared with 74.58% for the base model and 66.37% for SFT. The gains vary by task: Full has a higher summarization F1 than SFT (69.47% vs. 66.10%), while SFT has a higher QA F1 (70.48% vs. 67.75%). On D2T, which is excluded from our training data, Full reaches 83.94%, above SFT’s 65.09% but below the base model’s 85.41%. Full also has the highest reported Overall F1 among the compared models, while Qwen3-32B retains the highest D2T F1 (86.62%). These results support improved overall detection performance with task-specific trade-offs.

Can span-level hallucination prediction help? To investigate span supervision, we compare HA-GRM (Full) with (Response Only), which is trained solely with response-level binary rewards. In Table 2, Full has higher span-F1 on each subset than Response Only, with Overall span-F1 increasing from 44.43% to 50.38%. However, SFT retains the highest QA span-F1 (61.26%, compared with Full’s 53.63%). Table 1 also shows a response-level Overall F1 increase from 77.40% to 78.08% for Full over Response Only. Thus, span supervision improves the response-only variant on the reported metrics, while SFT remains stronger on QA span detection.

Model NameSUMMQAD2TOVERALL
Qwen3-4B41.4334.0038.0837.33
HA-GRM (SFT)45.9461.2630.1344.58
HA-GRM (Response Only)48.5348.7439.3144.43
HA-GRM (Full)52.1053.6347.2650.38

Table 2. Span-level hallucination detection performance (span-F1) on the RAGTruth test set. Bold indicates the best score in each column.

How does writing preference evaluation affect hallucination detection? Table 3 shows the trade-off from adding writing preference data. Compared with hallucination-only training, joint training increases Auto-J accuracy from 57.31% to 59.91%, while RAGTruth response-level F1 decreases from 78.41% to 78.08%. The reported cross-task average rises from 67.86% to 69.00%. Joint training therefore improves preference evaluation with a small reduction in hallucination detection F1; the two task metrics should be considered separately when choosing a training configuration.

Model NameRAGTRUTHAUTO-JAVERAGE
Qwen3-4B74.5857.2265.90
w/ Hallucination78.4157.3167.86
w/ Hallucination and Writing78.0859.9169.00

Table 3. Impact of multi-objective training on hallucination detection (RAGTruth) and general preference evaluation (Auto-J) test sets.

Takeaway (RQ1). HA-GRM improves Overall response-level F1 over the base model and SFT, with task-specific trade-offs. Adding writing preference data raises Auto-J accuracy with a small decrease in RAGTruth F1.

Experiments on HARPO

We aim to answer the research question: (RQ2) Can we leverage the feedback from HA-GRM to effectively mitigate LLM hallucinations while incentivizing its creative writing capabilities?

Experimental Setup

Datasets and Evaluation Metrics. Our training corpus consists of three distinct datasets selected to balance faithful grounding with creative expression. For hallucination mitigation, we utilize the summarization subset of RAGTRUTH (Niu et al., [19]) and the question-answering subset of HALUEVAL (Li et al., [14]). To support creative generation, we curate a subset of the ARENA-HUMAN-PREFERENCE-140K dataset from Chatbot Arena (Chiang et al., [3]),1 filtering specifically for prompts related to creative writing. All experiments are run once.

For summarization, we evaluate on 831 source documents from the Vectara Hallucination Leaderboard dataset (Hughes et al., [9]), denoted HHEM in our tables. For QA, we use MULTIHOPRAG (Tang and Yang, [32]). Both hallucination rates are the percentage of generated responses judged hallucinated by our best-performing HA-GRM. General and creative writing capabilities are evaluated on the Hard Prompts and Creative Writing subsets of ARENA-HARD-V2.0, respectively, using its official pipeline (Li et al., [16]).2 Table 4 summarizes the statistics for all datasets.

DatasetDOMAIN# OF SAMPLES
Training data
RAGTruthSummarization2,217
HaluEvalQuestion Answering1,452
Arena-Human-Preference-140kCreative Writing3,000
Testing data
HHEMSummarization831
MultiHopRAGQuestion Answering2,556
Arena-Hard-v2.0 (Hard Prompts)General500
Arena-Hard-v2.0 (Creative Writing)Creative Writing250

Table 4. Statistics of the training and testing datasets utilized in the HARPO experiments.

Baselines and Training Details. To evaluate HARPO, we compare it against three baselines: (1) Hallucination-Only, trained exclusively on RAGTRUTH and HALUEVAL using only RhalluR_{\mathrm{hallu}}; (2) Writing-Only, trained solely on ARENA-HUMAN-PREFERENCE-140K using only RcreatR_{\mathrm{creat}}; and (3) Linear Mixture, a combined-objective baseline. Following Peng et al. [22], the Linear Mixture baseline performs multi-objective alignment via fixed scalarization. We normalize the writing reward to [0,1][0, 1] and compute the arithmetic mean with the hallucination reward: (Rcreatnorm+Rhallu)/2\left(R_{\mathrm{creat}}^{\mathrm{norm}} + R_{\mathrm{hallu}}\right)/2. This serves as the primary state-of-the-art comparison for mixed-objective training. This baseline uses the same training data as HARPO but a different reward strategy. For reinforcement learning hyperparameters, we adopt the same configuration used to train HA-GRM.

Results and Analysis

Main Results. Table 5 presents the performance of HARPO across different model families (Qwen2.5, Qwen3) and parameter scales (1.7B to 8B). Our analysis yields two key observations:

Model NameHallucination Control ↓\downarrowCreative Writing ↑\uparrowGeneral ↑\uparrow
HHEMMultiHopRAGARENA-HARD-V2.0 (Creative Writing)ARENA-HARD-V2.0 (Hard Prompts)
Qwen2.5 series
Qwen2.5-3B11.074.692.332.07
w/ HARPO (Ours)2.412.862.662.30
Qwen2.5-7B5.051.884.684.63
w/ HARPO (Ours)1.560.866.784.93
Qwen3 series
Qwen3-1.7B11.075.387.043.87
w/ HARPO (Ours)3.972.038.534.05
Qwen3-4B7.343.2916.9511.16
w/ Hallucination-Only0.720.989.745.29
w/ Writing-Only24.312.6643.3511.45
w/ Linear Mixture3.730.9028.835.63
w/ HARPO (Ours)1.081.0227.5412.35
Qwen3-8B4.932.9033.7616.08
w/ HARPO (Ours)1.561.1741.4316.52

Table 5. Comparison of HARPO against base models and baselines. (↓\downarrow) indicates lower is better, (↑\uparrow) indicates higher is better. HARPO lowers HA-GRM-judged hallucination rates and improves writing scores relative to the corresponding base models.

1. Trade-offs in Single-Objective Training: On Qwen3-4B, Hallucination-Only reaches the lowest HHEM hallucination rate (0.72%), while Creative Writing decreases from 16.95% to 9.74% and General decreases from 11.16% to 5.29% relative to the base model. Writing-Only raises Creative Writing from 16.95% to 43.35%, while the HHEM hallucination rate rises from 7.34% to 24.31%. These results show that optimizing either objective alone can improve its target metric while degrading another.

2. Improvements over Base Models: HARPO has lower HA-GRM-judged hallucination rates on both datasets and higher Creative Writing and General scores than the corresponding base models at every tested size. For example, on Qwen2.5-7B, the HHEM hallucination rate decreases from 5.05% to 1.56% and Creative Writing increases from 4.68% to 6.78%. These comparisons concern the base models; comparisons with other training strategies reveal additional trade-offs.

Comparison with Linear Reward Mixing. For Qwen3-4B, HARPO has a lower HHEM hallucination rate than Linear Mixture (1.08% vs. 3.73%) and a higher General score (12.35% vs. 5.63%). However, its MultiHopRAG hallucination rate is slightly higher (1.02% vs. 0.90%), and its Creative Writing score is slightly lower (27.54% vs. 28.83%). HARPO therefore improves summarization faithfulness as judged by HA-GRM and performance on Hard Prompts, with a trade-off in QA hallucination rate and creative-writing score. SAM activates writing rewards only for responses judged hallucination-free by HA-GRM; this comparison reflects the complete HARPO training configuration.

Effect of Data Curriculum Strategy. To validate our data curriculum strategy, we compare it against two alternative schedules as shown on the left of Figure 1: (1) Random Mixture, which samples tasks with a fixed probability throughout training; and (2) Faithful →\to Creative, a reverse schedule that begins with hallucination mitigation and transitions to creative writing.

Figure 1. The HARPO Framework. Left: The Data Curriculum Strategy smoothly shifts the training distribution from creative to faithful tasks via cosine annealing. Right: The Selective Activation Mechanism activates writing rewards only for responses judged hallucination-free by HA-GRM.

Table 6 compares the reported curriculum outcomes. Relative to Random Mixture, Creative →\to Faithful lowers the HHEM hallucination rate from 4.09% to 1.08% and the MultiHopRAG rate from 1.17% to 1.02%, while increasing Creative Writing from 23.65% to 27.54%.

Curriculum ScheduleHallucination Control ↓Creative Writing ↑
HHEMMultiHopRAGARENA-HARD-V2.0 (Creative Writing)
Qwen3-4B7.343.2916.95
Random Mixture (Static)4.091.1723.65
Faithful → Creative (Reverse)9.641.7234.30
Creative → Faithful (Ours)1.081.0227.54

Table 6. Ablation on Data Curriculum Strategies.

The reverse Faithful →\to Creative schedule obtains the highest Creative Writing score (34.30%), but has higher hallucination rates on HHEM (9.64%) and MultiHopRAG (1.72%) than Creative →\to Faithful (1.08% and 1.02%). Thus, the proposed schedule favors lower HA-GRM-judged hallucination rates, with a lower creative-writing score than the reverse schedule. The preferred schedule depends on the relative priority of these metrics.

Analysis of Response Length and Verbosity To investigate whether our framework mitigates “reward hacking”, specifically the tendency of RL-tuned models to inflate scores through verbosity, we track the evolution of response length throughout the training process (Figure 2). The Writing-Only baseline exhibits a linear, unbounded increase in token count, confirming that optimizing solely for creativity encourages excessive length. Conversely, the Hallucination-Only baseline rapidly converges to shorter, risk-averse responses, potentially sacrificing necessary detail to minimize hallucination rate. HARPO, however, demonstrates a distinct trajectory that balances these extremes.

Response length analysis on HHEM

Figure 2. Response length analysis on HHEM.

Initially, the response length increases, aligning with the high ratio of creative tasks in the early curriculum. However, as the training progresses beyond step 60, the length peaks and gradually stabilizes. This shift corresponds directly with our curriculum schedule and the imposition of the Selective Activation Mechanism; as the distribution shifts toward faithful tasks and the SAM strictness takes effect, the model is regularized against gratuitous verbosity while retaining sufficient length to remain expressive.

Takeaway (RQ2) HARPO improves the reported hallucination and writing metrics relative to the base models. Compared with Linear Mixture on Qwen3-4B, it has a lower HHEM hallucination rate and higher General score, with a slightly higher MultiHopRAG hallucination rate and lower Creative Writing score.

Related Work

Closed-Domain Hallucination Detection

Closed-domain hallucination refers to generating content that is inconsistent with or unsupported by the context or knowledge provided in the input prompt [10, 19]. Traditional detection methods frame this as a Natural Language Inference (NLI) task [11, 15], where the source document serves as the premise and the generated text as the hypothesis. As generative models improve, question answering provides another approach to hallucination detection [8, 2]. More recent methods explore intrinsic LLM features, including internal activations and hidden-state dynamics [24, 38], as well as embedding distances [23]. Complementary resources include HalluLens for benchmarking hallucinations [1] and RAGTruth for training and evaluating detectors with response- and span-level annotations [19]. RL4HS (Su et al., 2026) trains a reasoning-based hallucination span detector using GRPO with verifiable span-F1 rewards and introduces class-aware policy optimization to address reward imbalance. HARPO combines response- and span-level hallucination evaluation with writing preference evaluation in a generative reward model, then uses its feedback to optimize a generation policy through SAM and a creative-to-faithful data curriculum.

Reinforcement Learning with Verifiable Rewards

Reinforcement Learning with Verifiable Rewards (RLVR) is a prominent method for enhancing LLM reasoning [7], initially successful in structured domains like mathematics and programming [35] using algorithms such as PPO [25] and GRPO [26]. RL4HS (Su et al., 2026) extends this approach to hallucination span detection using annotated spans as verifiable supervision. In HARPO, we use verifiable hallucination labels, span annotations, and pairwise preference labels to train HA-GRM; the resulting learned evaluator supplies rewards for downstream policy optimization.

Joint Optimization of Writing Quality and Constraints

RLMR [17] combines subjective writing rewards with objective constraint verification and dynamically adjusts reward weights within sampled groups to penalize constraint violations. HARPO uses predicted context faithfulness to gate the writing reward for each response, together with a curriculum that shifts training from creative to faithful tasks. Our contribution centers on combining hallucination-aware reward modeling with this conditional reward and data schedule to improve the balance between grounded generation and writing quality.

Reducing Hallucination for LLMs

Research into mitigating LLM hallucinations spans data preparation, training, and inference. RefinedWeb studies large-scale filtering of web pretraining data ([21]), while LIMA studies alignment through supervised fine-tuning on a small curated dataset ([39]). MOSS uses synthetic conversational data for instruction tuning ([31]), and Knowledge Consistent Alignment addresses inconsistencies between alignment data and a model’s knowledge ([33]). RLHF aligns models with human preferences ([20]), while process supervision evaluates intermediate reasoning steps ([18]). TruthRL examines the trade-off between correct answers, hallucinations, and abstention ([34]). Factuality Enhanced Language Models use factuality-oriented continued training ([12]). At inference time, layer-contrastive decoding ([4]), context-aware decoding ([28]), and Chain-of-Verification ([6]) reduce hallucinations through changes to decoding or response verification.

Conclusion

We presented HARPO, a reinforcement learning framework for joint optimization of hallucination mitigation and writing quality. Its Selective Activation Mechanism activates writing rewards only for responses judged hallucination-free by HA-GRM, alongside a curriculum that shifts from creative to faithful tasks. The reported results show lower HA-GRM-judged hallucination rates and higher writing scores relative to the base models. Compared with Linear Mixture on Qwen3-4B, HARPO lowers the summarization hallucination rate and raises the General score, with a slightly higher MultiHopRAG hallucination rate and lower Creative Writing score. The curriculum results likewise show lower hallucination rates than the reverse schedule with a lower creative-writing score. These findings characterize the observed trade-offs across training strategies.

Limitations

Despite the promising results of HARPO, several limitations remain. First, training the Hallucination-Aware Generative Reward Model (HA-GRM) relies on high-quality, span-level hallucination annotations, which are significantly more labor-intensive and costly to acquire than standard binary labels. Second, the inference overhead introduced by the generative reward process increases the computational cost of training compared to traditional discriminator-based reward models. Finally, while we demonstrate effectiveness on models up to 8B parameters within general instruction and RAG domains, we have not yet verified the scalability of our framework on significantly larger models (e.g., 70B+) or its transferability to specialized reasoning tasks such as mathematics and code generation, which we leave for future investigation.

SAM depends on HA-GRM’s predictions and provides no guarantee of factual correctness. If HA-GRM misses a hallucination, the affected response can still receive a writing reward; if it incorrectly flags a faithful response, that reward is suppressed. These errors can affect policy optimization. Since HA-GRM also judges the reported generation hallucination rates, improvements on that metric should be interpreted with this shared evaluator in mind.

Ethics Statement

This study uses existing public datasets for model training and evaluation, including RAGTruth, HaluEval, Arena-Human-Preference-140k, and Arena-Hard-v2.0. The RAGTruth and HaluEval repositories provide MIT licenses.3 Arena-Human-Preference-140k licenses user prompts under CC BY 4.0, while model outputs remain subject to the respective providers’ terms.4 The Arena-Hard-Auto dataset card lists Apache 2.0.5 Licenses and usage terms for underlying source corpora and pre-trained models apply separately.

Public user conversations and preference annotations may contain sensitive information and reflect contributor biases. Reuse and redistribution should avoid disclosing personal information and must retain attribution and applicable usage restrictions.

HA-GRM can miss unsupported claims or incorrectly flag valid content, and these errors can affect both policy optimization and reported hallucination rates. Preference optimization may also favor writing styles represented in the training data. The experiments do not establish safety or reliability for high-stakes applications; deployment requires independent evaluation and appropriate human oversight.

References

  1. [1]Yejin Bang, Ziwei Ji, Alan Schelten, Anthony Hartshorn, Tara Fowler, Cheng Zhang, Nicola Cancedda, and Pascale Fung. 2025. HalluLens: LLM Hallucination Benchmark. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 24128–24156. Association for Computational Linguistics.
  2. [2]Arie Cattan, Paul Roit, Shiyue Zhang, David Wan, Roee Aharoni, Idan Szpektor, Mohit Bansal, and Ido Dagan. 2026. Localizing Factual Inconsistencies in Attributable Text Generation. Transactions of the Association for Computational Linguistics, 14:100–123.
  3. [3]Wei-Lin Chiang, Lianmin Zheng, Ying Sheng, Anastasios Nikolas Angelopoulos, Tianle Li, Dacheng Li, Banghua Zhu, Hao Zhang, Michael Jordan, Joseph E. Gonzalez, and Ion Stoica. 2024. Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preference. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 8359–8388. PMLR.arxiv.org/abs/2403.04132
  4. [4]Yung-Sung Chuang, Yujia Xie, Hongyin Luo, Yoon Kim, James Glass, and Pengcheng He. 2024. DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2309.03883
  5. [5]Mehul Damani, Isha Puri, Stewart Slocum, Idan Shenfeld, Leshem Choshen, Yoon Kim, and Jacob Andreas. 2026. Beyond Binary Rewards: Training LMs to Reason About Their Uncertainty. In The Fourteenth International Conference on Learning Representations.arxiv.org/abs/2507.16806
  6. [6]Shehzaad Dhuliawala, Mojtaba Komeili, Jing Xu, Roberta Raileanu, Xian Li, Asli Celikyilmaz, and Jason Weston. 2024. Chain-of-Verification Reduces Hallucination in Large Language Models. In Findings of the Association for Computational Linguistics: ACL 2024, pages 3563–3578. Association for Computational Linguistics.
  7. [7]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. 2025. DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645:633–638.DOI
  8. [8]Or Honovich, Leshem Choshen, Roee Aharoni, Ella Neeman, Idan Szpektor, and Omri Abend. 2021. Q²: Evaluating Factual Consistency in Knowledge-Grounded Dialogues via Question Generation and Question Answering. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7856–7870. Association for Computational Linguistics.arxiv.org/abs/2104.08202
  9. [9]Simon Hughes, Minseok Bae, and Miaoran Li. 2023. Vectara Hallucination Leaderboard. Dataset.
  10. [10]Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. 2023. Survey of Hallucination in Natural Language Generation. ACM Computing Surveys, 55(12):1–38.DOI
  11. [11]Barrett Lattimer, Patrick H. Chen, Xinyuan Zhang, and Yi Yang. 2023. Fast and Accurate Factual Inconsistency Detection Over Long Documents. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 1691–1703. Association for Computational Linguistics.DOI
  12. [12]Nayeon Lee, Wei Ping, Peng Xu, Mostofa Patwary, Pascale N. Fung, Mohammad Shoeybi, and Bryan Catanzaro. 2022. Factually Enhanced Language Models for Open-Ended Text Generation. In Advances in Neural Information Processing Systems, volume 35, pages 34586–34599.arxiv.org/abs/2206.04624
  13. [13]Junlong Li, Shichao Sun, Weizhe Yuan, Run-Ze Fan, Hai Zhao, and Pengfei Liu. 2024a. Generative Judge for Evaluating Alignment. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2310.05470
  14. [14]Junyi Li, Xiaoxue Cheng, Xin Zhao, Jian-Yun Nie, and Ji-Rong Wen. 2023. HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6449–6464. Association for Computational Linguistics.
  15. [15]Miaoran Li, Rogger Luo, and Ofer Mendelevitch. 2024b. HHEM-2.1-Open.
  16. [16]Tianle Li, Wei-Lin Chiang, Evan Frick, Lisa Dunlap, Tianhao Wu, Banghua Zhu, Joseph E. Gonzalez, and Ion Stoica. 2025. From Crowdsourced Data to High-quality Benchmarks: Arena-Hard and Benchbuilder Pipeline. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 34209–34231. PMLR.arxiv.org/abs/2406.11939
  17. [17]JianXing Liao, Tian Zhang, Xiao Feng, Yusong Zhang, Haorui Wang, Bosi Wen, Ziying Wang, and Runzhi Shi. 2026. RLMR: Reinforcement Learning with Mixed Rewards for Creative Writing. Proceedings of the AAAI Conference on Artificial Intelligence, 40(38):31970–31978.arxiv.org/abs/2508.18642
  18. [18]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s Verify Step by Step. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2305.20050
  19. [19]Cheng Niu, Yuanhao Wu, Juno Zhu, Siliang Xu, KaShun Shum, Randy Zhong, Juntong Song, and Tong Zhang. 2024. RAGTruth: A Hallucination Corpus for Developing Trustworthy Retrieval-Augmented Language Models. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 10862–10878. Association for Computational Linguistics.arxiv.org/abs/2401.00396
  20. [20]Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. In Advances in Neural Information Processing Systems, volume 35, pages 27730–27744.arxiv.org/abs/2203.02155
  21. [21]Guilherme Penedo, Quentin Malartic, Daniel Hesslow, Ruxandra Cojocaru, Hamza Alobeidli, Alessandro Cappelli, Baptiste Pannier, Ebtesam Almazrouei, and Julien Launay. 2023. The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data Only. In Advances in Neural Information Processing Systems, volume 36, pages 79155–79172.
  22. [22]Hao Peng, Yunja Qi, Xiaozhi Wang, Zijun Yao, Bin Xu, Lei Hou, and J​​uanzi Li. 2025. Agentic Reward Modeling: Integrating Human Preferences with Verifiable Correctness Signals for Reliable Reward Systems. arXiv preprint arXiv:2502.19328.arxiv.org/abs/2502.19328
  23. [23]Emanuele Ricco, Lorenzo Cima, and Roberto Di Pietro. 2025. Hallucination Detection: A Probabilistic Framework Using Embeddings Distance Analysis. arXiv preprint arXiv:2502.08663.arxiv.org/abs/2502.08663
  24. [24]Fabian Ridder and Malte Schilling. 2024. The Hal-luRAG Dataset: Detecting Closed-Domain Hallucinations in RAG Applications Using an LLM’s Internal States. arXiv preprint arXiv:2412.17056.arxiv.org/abs/2412.17056
  25. [25]John Schulman, Filip Wolski, Prafulla Dhar​​iwal, Alec Radford, and Oleg Klimov. 2017. Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347.arxiv.org/abs/1707.06347
  26. [26]Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024. DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv preprint arXiv:2402.03300.arxiv.org/abs/2402.03300
  27. [27]Guangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu, Wang Zhang, Ru Zhang, Yanghua Peng, Haibin Lin, and Chuan Wu. 2025. HybridFlow: A Flexible and Efficient RLHF Framework. In Proceedings of the Twentieth European Conference on Computer Systems, pages 1279–1297.DOI
  28. [28]Weijia Shi, Xiaochuang Han, Mike Lewis, Yulia Tsvetkov, Luke Zettlemoyer, and Wen tau Yih. 2024. Trusting Your Evidence: Hallucinate Less with Context-aware Decoding. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pages 783–791. Association for Computational Linguistics.arxiv.org/abs/2305.14739
  29. [31]Tianxiang Sun, Xiaotian Zhang, Zhengfu He, Peng Li, Qinyuan Cheng, Xiangyang Liu, Hang Yan, Yunfan Shao, Qiong Tang, Shiduo Zhang, et al. 2024. MOSS: An Open Conversational Large Language Model. Machine Intelligence Research, 21(5):888–905.DOI
  30. [32]Yixuan Tang and Yi Yang. 2024. MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries. In First Conference on Language Modeling.arxiv.org/abs/2401.15391
  31. [33]Fangyi Wan, Xinting Huang, Leyang Cui, Xiaojun Quan, Wei Bi, and Shuming Shi. 2024. Knowledge Verification to Nip Hallucination in the Bud. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 2616–2633. Association for Computational Linguistics.
  32. [34]Zhepei Wei, Xiao Yang, Kai Sun, Jiaqi Wang, Rulin Shao, Jingxiang Chen, Mohammad Kachuee, Teja Gollapudi, Yiwei Liao, Nicolas Scheffer, et al. 2026. TruthRL: Incentivizing Truthful LLMs via Reinforcement Learning. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 134156–134175. PMLR.arxiv.org/abs/2509.25760
  33. [35]Xumeng Wen, Zihan Liu, Shun Zheng, Shengyu Ye, Zhirong Wu, Yang Wang, Zhijian Xu, Xiao Liang, Junjie Li, Ziming Miao, et al. 2026. Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMs. In The Fourteenth International Conference on Learning Representations.arxiv.org/abs/2506.14245
  34. [36]Ronald J. Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256.
  35. [37]Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, et al. 2025. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. In Advances in Neural Information Processing Systems, volume 38, pages 113222–113244.arxiv.org/abs/2503.14476
  36. [38]Zhenliang Zhang, Xinyu Hu, Huixuan Zhang, Junzhe Zhang, and Xiaojun Wan. 2025. ICR Probe: Tracking Hidden State Dynamics for Reliable Hallucination Detection in LLMs. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 17986–18002. Association for Computational Linguistics.
  37. [39]Chunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer, Jiao Sun, Yun​​ing Mao, Xuezhe Ma, Avia Efrat, Ping Yu, Lili Yu, et al. 2023. LIMA: Less Is More for Alignment. In Advances in Neural Information Processing Systems, volume 36, pages 55006–55021.arxiv.org/abs/2305.11206

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type