$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The objective of this study is to fine-tune a language model (LM) to generate summaries with reduced entity hallucination. Hallucinations occur when a model "confidently produces incorrect or irrelevant output" because it generates text according to statistical likelihood rather than factual verification. This is achieved by designing a reward function based on the Entity Hallucination Index (EHI) and applying reinforcement learning to maximize it.
Problem formulation
Given an input document Xi, the goal is to generate a summary Yi such that entities mentioned in Yi are grounded in Xi. Traditional maximum likelihood training does not explicitly optimize factual consistency. These training methods do not penalize the inclusion of fabricated entities. Therefore, a reward-driven fine-tuning strategy is introduced where the reward is proportional to entity faithfulness, measured using EHI.
Data set and method
Two corpora are used: firstly, a dialogue transcription dataset of multi-turn meeting transcripts and abstractive gold summaries, and secondly, the XSUM news summarization benchmark22,23. Each dataset was cleaned, flattened, and split into 80% train, 10% validation, and 10% test partitions. Dialogues are rich in informal language and pronouns, whereas XSUM contains concise news articles; the combination allows us to evaluate both in-domain and out-of-domain generalization.
Entity extraction is performed on both source documents and summaries for computing the Entity Hallucination Index (EHI). During fine-tuning, this study exclusively utilize the training split, while validation EHI scores are monitored to select the best checkpoint. Final evaluations are reported on the held-out test set, which remains zero-shot before and after the fine-tuning of the models.
In summary, firstly, transcripts are organized into a flattened format and split the data. The pre-trained model generates baseline summaries. Secondly, EHI is computed using transformer-based NER and the five hallucination factors. During fine-tuning, the model is updated with the EHI reward via LoRa adapters. Finally, summaries are generated using the fine-tuned model and evaluated using EHI, Entity F1, and other metrics (Figure 2). All experiments are reproducible through the provided code and configuration files. Figure 3 shows the stepwise process flow for dataset preparation, baseline summarisation, EHI computation, fine-tuning, and evaluation.
Baseline summarization
Three pre-trained LLMs are chosen, and their baseline summarizations are captured: Flan-T5, Mistral (Nous-Hermes-2-Mistral-7B-DPO), and DistilBART24,25,26. Each model was run in zero-shot mode to produce an initial summary (Yi) for every input document(xi). Beam search with a beam width of 4 and a length penalty of 1.0 was used to encourage fluent yet concise summaries. These baseline summaries served to estimate the prevalence of hallucination and provided starting points for fine-tuning.
Entity extraction and EHI computation
Accurately computing the Entity Hallucination Index (EHI) requires robust NER. Initially, Spacy was used for NER operations. It is understood that transformer-based NER models are more accurate, but Spacy was the initial choice for the following reasons: (1) Transformer-based NER models themselves have proven to hallucinate than Spacy. (2) Spacy being statistical brings in computational efficiency in terms of implementation cost and execution time. (3) It also helps us prove that EHI is robust in reducing hallucination even with a weaker NER model. However, given the fact that the experiments are done on established datasets and spaCy's en_core_web_sm model is brittle on colloquial transcripts13. Spacy is replaced with a transformer-based NER model (dslim/bert-base-NER), which is a BERT model fine-tuned on the CoNLL-2003 dataset. BERT-based NER systems have been shown to outperform spaCy models on domain-specific tasks-for example, an Aviation-BERT-NER model reached an F1 of 94.78% while identifying 17 entities compared with 93.73% for spaCy NER that recognized seven entities27. The BERT NER model was configured via Hugging Face Transformers28 and performed case-insensitive matching. To capture pronouns and surface-form variations, this method additionally applied simple rules that map "Mr. Smith" and "Smith" to the same canonical form; however, full coreference resolution remains future work. The comparative analysis of the NER models on a sample of 200 records from XSUM dataset can be inferred from Table 1.
The Entity Hallucination Index (EHI) is calculated as:

where PH, EF, OF, NH, LF represent scores corresponding to Positive Hallucination (PH), Extractiveness Factor (EF), Negative Hallucination (NH), Overfocused Entities (OF), and Lost Focus (LF), respectively, for article i.
Details of hallucination factors:
Positive Hallucination (PH): Measures of newly introduced entities that are factually correct and beneficial.
Extractiveness Factor (EF): Measures entities accurately extracted from the input document into the summary.
Negative Hallucination (NH): Captures hallucinated entities that are incorrect or not grounded in the input.
Over Focused (OF): Penalizes summaries that overly focus on a narrow subset of entities, missing diversity.
Lost Focus (LF): Penalizes summaries that omit important entities present in the input.
Computation of above factors is detailed in Figure 4 with a sample computation for illustration purposes. Considering an example of Input Document Entities (I):" John"," AI"," conference" Reference Summary Entities (R):" John"," AI" Generated Summary Entities (G):" John"," AI"," technology". Higher values of EHI indicate better entity faithfulness, rewarding summaries that are both extractive and positively hallucinated (introducing useful but faithful entities), while penalizing ungrounded, excessive, or missing entity20. These factors were normalized by the total number of detected entities to produce an EHI score between 0 and 1. EHI validation was monitored during training to select the best checkpoint. PH and EF reward beneficial new entities and correct extraction, whereas OF, NH, and LF penalize repetition, fabrication, and omission. A perfect score of 1.0 means that all entities in the summary are grounded or beneficially hallucinated, while a score of 0 indicates that no named entity in the summary appears in the source.
Fine - tuning procedure with RL
The detailed hyperparameter configuration for fine-tuning are provided separately in Table 2, Table 3, and Table 4, which depict optimizer types, learning rates, batch sizes, hardware specifications, and other configuration details for Mistral-7B, DistilBart, and Flan-T5, respectively. The objective here is to fine-tune the model parameters θ by maximizing the expected Entity Hallucination Index (EHI) reward across generated summaries. Formally, for an input document Xi, a generated summary Yi, and model parameters θ the expected reward objective is defined as:
(2)
where EHI (y, x) denotes the Entity Hallucination Index computed between the generated summary Yi and the input Xi.
Following the REINFORCE algorithm25, the gradient of this objective is estimated as:
(3)
In practice, summaries were sampled from the models, their corresponding EHI scores were computed, and policy gradient updates were applied to encourage higher-reward outputs. To enable parameter-efficient fine-tuning, this study used Low-Rank Adaptation (LoRA). Only LoRA adapters were updated while the base model weights remained frozen. Fine-tuning was performed on an A100 GPU with a small learning rate (e.g., 5 × 10-6), batch size of 4 and gradient accumulation over 8 steps with Adam optimizer29. Summaries were regenerated every 500 updates to refresh reward estimates, and training continued until validation EHI converged. The REINFORCE baseline was set to the running average of recent rewards to reduce variance. In addition to EHI, Entity F12, ROUGE-1/2/L scores were logged to monitor general quality. Summaries are regenerated periodically to reflect model improvements during fine-tuning.
Evaluation metrics
The outputs were evaluated using Informativeness metrics like Rouge-1, Rouge-25. Fluency Metric like Rouge LCS5. Entity overlap metric Entity F1, and hallucination metrics like EHI, FactCC, and QAGS2,6,18,30. FactCC uses a classifier trained on synthetic contradiction data to label sentences as entailed or contradicted by the source. The factCC gives two scores; the scores were captured where the label is VALID. On the other hand, QAGS uses a question-and-answer method that runs on an LLM. Light model T5 small was used for generating questions on the text31. Roberta_base_Squad2 was used for generating answers over the output text32. These models were chosen for their convenient computation cost for execution.