Manuscript Offprint
arXiv:2610.03063HARPO: Hallucination-Aware Reinforcement Learning for Faithful and Creative Language Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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%.
1 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 (Ji et al., 2023). 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) (Wei et al., 2026), optimizing for a single capability often comes at the cost of degraded performance in other dimensions. For instance, the RLMR framework (Liao et al., 2026) underscores the inherent challenge of preserving subjective textual quality while adhering to rigid objective constraints. Similarly, Damani et al. (2026) 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) (Shao et al., 2024). 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.
2.1 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., 2024). Given the input context c and the generated response consisting of T characters, the model needs to first identify whether the response y is hallucinated and then locate all hallucinated spans S, defined as portions of text in y that lack support from c. 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., 2025).
Rule-Based Reinforcement Learning. We fine-tune the HA-GRM using rule-based online RL, adopting the GRPO setting (Shao et al., 2024). 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 be the predicted hallucination spans and S be the ground-truth spans. The hallucination reward is
For writing preference evaluation, the reward is
These reward schemes are applied separately to the pointwise hallucination data and pairwise creative writing data.
Data Side (Data Curriculum Strategy)

Training Side (Selective Activation Mechanism)

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.
2.2 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) (Shao et al., 2024), a variant of REINFORCE (Williams, 1992) that utilizes group-based advantage normalization. To optimize the LLM policy , given a prompt , we sample a group of rollouts from the current policy . Each rollout is assigned a reward score calculated by our reward system. The policy is updated via the clipped policy gradient objective:
where the token-level importance weight is defined as the probability ratio:
Here, denotes the token generated at step in rollout , and denotes the preceding context. The group-normalized advantage is computed using the rewards of the rollouts sampled for the same input:
where is a small constant for numerical stability. Following recent advances in RL for LLM reasoning such as DAPO (Yu et al., 2025), we adopt asymmetric clipping (clip-higher) with . This strategy encourages the exploration of novel token sequences while maintaining training stability. The coefficient scales the KL divergence term , ensuring the policy remains close to the reference model 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, . 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 x denote the input prompt and y denote the generated response corresponding to a rollout . Our HA-GRM, described in Section 2.1, provides two distinct scalar signals:
- Hallucination Reward ( ): A score based on HA-GRM's prediction of whether the response y is grounded in the context. Let denote the set of hallucinated spans predicted by HA-GRM, and let denote the text length. The hallucination reward is calculated as:
This formulation imposes a penalty proportional to the density of hallucinated content when errors occur.
- Writing Reward ( ): 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 y against a reference answer r.
Under the SAM framework, the writing reward is gated by HA-GRM's hallucination prediction. The final reward assigned to a rollout is defined as:
where is the indicator function and is the set of hallucinated spans predicted by HA-GRM. The writing reward is activated when 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 → 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 T denote the total number of training steps. We define as the sampling ratio of creative writing data at step t. We utilize a cosine annealing schedule to smoothly reduce this ratio from an initial high to a fixed minimum:
where represents the minimum proportion of creative data maintained at the end of training to prevent forgetting, and represents the magnitude of the decay. Under this schedule, the training begins with a creative data ratio of and gradually converges to as the model becomes more robust to hallucination-sensitive tasks.
3 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?
3.1 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., 2024) training set. For creative writing, we utilize ARENA-HARDV2.0 (Li et al., 2025). We employ verl (Sheng et al., 2025) 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., 2024a) for general preference evaluation. In addition to response-level metrics such as precision, recall, and F1 scores,
| Model Name | RAGTRUTH (SUMM) | RAGTRUTH (QA) | RAGTRUTH (D2T) | OVERALL | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P | R | F1 | P | R | F1 | P | R | F1 | P | R | F1 | |
| Open-Source Models (8B - 671B) | ||||||||||||
| Qwen3-8B | 50.14 | 87.25 | 63.69 | 36.81 | 88.12 | 51.93 | 79.76 | 91.19 | 85.09 | 60.50 | 89.82 | 72.30 |
| Qwen3-32B | 42.76 | 91.18 | 58.22 | 33.64 | 91.88 | 49.25 | 80.12 | 94.28 | 86.62 | 56.54 | 93.20 | 70.39 |
| Qwen3-235B-A22B-Instruct | 40.25 | 96.55 | 56.81 | 28.65 | 95.62 | 44.09 | 66.55 | 99.48 | 79.75 | 48.99 | 98.19 | 65.37 |
| Qwen3-235B-A22B-Thinking | 37.94 | 97.01 | 54.55 | 28.95 | 95.00 | 44.38 | 71.84 | 98.44 | 83.07 | 50.03 | 97.55 | 66.14 |
| DeepSeek-V3.2 | 32.05 | 96.97 | 48.18 | 26.83 | 96.86 | 42.02 | 65.75 | 99.83 | 79.28 | 44.97 | 98.71 | 61.79 |
| Proprietary Models | ||||||||||||
| GPT-4o | 50.29 | 86.43 | 63.59 | 32.48 | 86.39 | 47.21 | 69.60 | 96.98 | 81.04 | 55.67 | 92.95 | 69.64 |
| doubao-seed-1-6-thinking | 41.81 | 95.10 | 58.08 | 37.29 | 96.25 | 53.75 | 74.47 | 98.26 | 84.73 | 55.83 | 97.23 | 70.94 |
| claude-4-sonnet | 46.32 | 86.27 | 60.27 | 36.65 | 87.50 | 51.66 | 72.95 | 94.91 | 82.49 | 54.83 | 91.21 | 68.49 |
| Open-Source Models (Qwen3-4B based) | ||||||||||||
| Qwen3-4B | 60.92 | 71.43 | 65.76 | 43.66 | 73.12 | 54.67 | 84.75 | 86.09 | 85.41 | 60.92 | 80.67 | 74.58 |
| HA-GRM (SFT) | 78.91 | 56.86 | 66.10 | 71.61 | 69.38 | 70.48 | 81.61 | 52.33 | 65.09 | 81.04 | 56.20 | 66.37 |
| HA-GRM (Response Only) | 77.44 | 62.25 | 69.02 | 63.79 | 69.38 | 66.47 | 91.22 | 77.34 | 83.71 | 82.73 | 72.72 | 77.40 |
| HA-GRM (Full) | 81.05 | 60.78 | 69.47 | 70.75 | 65.00 | 67.75 | 91.98 | 77.20 | 83.94 | 85.88 | 71.58 | 78.08 |
Table 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.
3.2 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.
| Model Name | SUMM | QA | D2T | OVERALL |
|---|---|---|---|---|
| Qwen3-4B | 41.43 | 34.00 | 38.08 | 37.33 |
| HA-GRM (SFT) | 45.94 | 61.26 | 30.13 | 44.58 |
| HA-GRM (Response Only) | 48.53 | 48.74 | 39.31 | 44.43 |
| HA-GRM (Full) | 52.10 | 53.63 | 47.26 | 50.38 |
Table 2: Span-level hallucination detection performance (span-F1) on the RAGTruth test set. Bold indicates the best score in each column.
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 to . However, SFT retains the highest QA span-F1 , compared with Full's . Table 1 also shows a response-level Overall F1 increase from to 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 Name | RAGTRUTH | AUTO-J | AVERAGE |
|---|---|---|---|
| Qwen3-4B | 74.58 | 57.22 | 65.90 |
| w/ Hallucination | 78.41 | 57.31 | 67.86 |
| w/ Hallucination and Writing | 78.08 | 59.91 | 69.00 |
Table 3: Impact of multi-objective training on hallucination detection (RAGTruth) and general preference evaluation (Auto-J) test sets.
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 to , while RAGTruth response-level F1 decreases from to . The reported cross-task average rises from to . Joint training therefore improves preference evaluation with a small reduction in hallucination detec-tion F1; the two task metrics should be considered separately when choosing a training configuration.
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.
4 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?
4.1 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., 2024) and the question-answering subset of HALUEVAL (Li et al., 2023). To support creative generation, we curate a subset of the ARENA-HUMAN-PREFERENCE-140K dataset from Chatbot Arena (Chiang et al., 2024), 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., 2023), denoted HHEM in our tables. For QA, we use MULTI-HOPRAG (Tang and Yang, 2024). 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., 2025). Table 4 summarizes the statistics for all datasets.
Baselines and Training Details. To evaluate HARPO, we compare it against three baselines: (1) Hallucination-Only, trained exclusively on RAGTRUTH and HALUEVAL using only ; (2) Writing-Only, trained solely on ARENA-HUMAN-PREFERENCE-140K using only ; and (3) Linear Mixture, a combined-objective baseline. Following Peng et al. (2025), the Linear Mixture base- line performs multi-objective alignment via fixed scalarization. We normalize the writing reward to and compute the arithmetic mean with the hallucination reward: . 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.
| Dataset | DOMAIN | # OF SAMPLES |
|---|---|---|
| Training data | ||
| RAGTruth | Summarization | 2,217 |
| HaluEval | Question Answering | 1,452 |
| Arena-Human-Preference-140k | Creative Writing | 3,000 |
| Testing data | ||
| HHEM | Summarization | 831 |
| MultiHopRAG | Question Answering | 2,556 |
| Arena-Hard-v2.0 (Hard Prompts) | General | 500 |
| Arena-Hard-v2.0 (Creative Writing) | Creative Writing | 250 |
Table 4: Statistics of the training and testing datasets utilized in the HARPO experiments.
4.2 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:
-
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.
-
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%)
https://huggingface.co/datasets/lmarena-ai/arena-human-preference-140k
https://github.com/lmarena/arena-hard-auto
| Model Name | Hallucination Control ↓ | Creative Writing ↑ | General ↑ | |
|---|---|---|---|---|
| HHEM | MULTIHOPRAG | ARENA-HARD-V2.0 (Creative Writing) | ARENA-HARD-V2.0 (Hard Prompts) | |
| Qwen2.5 series | ||||
| Qwen2.5-3B | 11.07 | 4.69 | 2.33 | 2.07 |
| w/ HARPO (Ours) | 2.41 | 2.86 | 2.66 | 2.30 |
| Qwen2.5-7B | 5.05 | 1.88 | 4.68 | 4.63 |
| w/ HARPO (Ours) | 1.56 | 0.86 | 6.78 | 4.93 |
| Qwen3 series | ||||
| Qwen3-1.7B | 11.07 | 5.38 | 7.04 | 3.87 |
| w/ HARPO (Ours) | 3.97 | 2.03 | 8.53 | 4.05 |
| Qwen3-4B | 7.34 | 3.29 | 16.95 | 11.16 |
| w/ Hallucination-Only | 0.72 | 0.98 | 9.74 | 5.29 |
| w/ Writing-Only | 24.31 | 2.66 | 43.35 | 11.45 |
| w/ Linear Mixture | 3.73 | 0.90 | 28.83 | 5.63 |
| w/ HARPO (Ours) | 1.08 | 1.02 | 27.54 | 12.35 |
| Qwen3-8B | 4.93 | 2.90 | 33.76 | 16.08 |
| w/ HARPO (Ours) | 1.56 | 1.17 | 41.43 | 16.52 |
Table 5: Comparison of HARPO against base models and baselines. (↓) indicates lower is better, (↑) indicates higher is better. HARPO lowers HA-GRM-judged hallucination rates and improves writing scores relative to the corresponding base models.
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 → Creative, a reverse schedule that begins with hallucination mitigation and transitions to creative writing.
Table 6 compares the reported curriculum outcomes. Relative to Random Mixture, Creative → 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%.
The reverse Faithful → 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 → 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.

Figure 2: Response length analysis on HHEM.
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.
| Curriculum Schedule | Hallucination Control ↓ | Creative Writing ↑ | |
|---|---|---|---|
| HHEM | MULTIHOPRAG | ARENA-HARD-V2.0 (Creative Writing) | |
| Qwen3-4B | 7.34 | 3.29 | 16.95 |
| Random Mixture (Static) | 4.09 | 1.17 | 23.65 |
| Faithful → Creative (Reverse) | 9.64 | 1.72 | 34.30 |
| Creative → Faithful (Ours) | 1.08 | 1.02 | 27.54 |
Table 6: Ablation on Data Curriculum Strategies.
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.
5 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 (Ji et al., 2023; Niu et al., 2024). Traditional detection methods frame this as a Natural Language Inference (NLI) task (Lattimer et al., 2023; Li et al., 2024b), 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 (Honovich et al., 2021; Cattan et al., 2026). More recent methods explore intrinsic LLM features, including internal activations and hidden-state dynamics (Ridder and Schilling, 2024; Zhang et al., 2025), as well as embedding distances (Ricco et al., 2025). Complementary resources include HalluLens for benchmarking hallucinations (Bang et al., 2025) and RAGTruth for training and evaluating detectors with response- and span-level annotations (Niu et al., 2024). 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 (Guo et al., 2025), initially successful in structured domains like mathematics and programming (Wen et al., 2026) using algorithms such as PPO (Schulman et al., 2017) and GRPO (Shao et al., 2024). 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 (Liao et al., 2026) 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. Refined-Web studies large-scale filtering of web pretraining data (Penedo et al., 2023), while LIMA studies alignment through supervised fine-tuning on a small curated dataset (Zhou et al., 2023). MOSS uses synthetic conversational data for instruction tuning (Sun et al., 2024), and Knowledge Consistent Alignment addresses inconsistencies between alignment data and a model's knowledge (Wan et al., 2024). RLHF aligns models with human preferences (Ouyang et al., 2022), while process supervision evaluates intermediate reasoning steps (Lightman et al., 2024). TruthRL examines the trade-off between correct answers, hallucinations, and abstention (Wei et al., 2026). Factuality Enhanced Language Models use factuality-oriented continued training (Lee et al., 2022). At inference time, layer-contrastive decoding (Chuang et al., 2024), context-aware decoding (Shi et al., 2024), and Chain-of-Verification (Dhuliawala et al., 2024) reduce hallucinations through changes to decoding or response verification.
6 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. Arena-Human-Preference-140k licenses user prompts under CC BY 4.0, while model outputs remain subject to the respective providers’ terms. The Arena-Hard-Auto dataset card lists Apache 2.0. Licenses and usage terms for underlying source corpora and pretrained 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.
RAGTruth license; HaluEval license.
Arena-Human-Preference-140k dataset card.
Arena-Hard-Auto dataset card.
References
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.
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.
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.
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.
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.
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.
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.
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.
Simon Hughes, Minseok Bae, and Miaoran Li. 2023. Vectara Hallucination Leaderboard. Dataset.
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.
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.
Nayeon Lee, Wei Ping, Peng Xu, Mostofa Patwary, Pascale N Fung, Mohammad Shoeybi, and Bryan Catanzaro. 2022. Factuality Enhanced Language Models for Open-Ended Text Generation. In Advances in Neural Information Processing Systems, volume 35, pages 34586–34599.
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.
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.
Miaoran Li, Rogger Luo, and Ofer Mendelevitch. 2024b. HHEM-2.1-Open.
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.
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.
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.
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.
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.
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.
Hao Peng, Yunjia Qi, Xiaozhi Wang, Zijun Yao, Bin Xu, Lei Hou, and Juanzi Li. 2025. Agentic Reward Modeling: Integrating Human Preferences with Verifiable Correctness Signals for Reliable Reward Systems. arXiv preprint arXiv:2502.19328.
Emanuele Ricco, Lorenzo Cima, and Roberto Di Pietro. 2025. Hallucination Detection: A Probabilistic Framework Using Embeddings Distance Analysis. arXiv preprint arXiv:2502.08663.
Fabian Ridder and Malte Schilling. 2024. The HalluRAG Dataset: Detecting Closed-Domain Hallucinations in RAG Applications Using an LLM's Internal States. arXiv preprint arXiv:2412.17056.
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal Policy Optimization Algorithms. arXiv preprint arXiv:1707.06347.
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.
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.
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.
Hsuan Su, Ting-Yao Hu, Hema Swetha Koppula, Kundan Krishna, Hadi Pouransari, Cheng-Yu Hsieh, Cem
Koc, Joseph Yitan Cheng, Oncel Tuzel, and Raviteja Vemulapalli. 2026. Learning to Reason for Hallucination Span Detection. In The Fourteenth International Conference on Learning Representations.
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.
Yixuan Tang and Yi Yang. 2024. MultiHop-RAG: Benchmarking Retrieval-Augmented Generation for Multi-Hop Queries. In First Conference on Language Modeling.
Fanqi 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.
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.
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.
Ronald J. Williams. 1992. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8(3-4):229–256.
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.
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.
Chunting Zhou, Pengfei Liu, Puxin Xu, Srinivasan Iyer, Jiao Sun, Yuning 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.