A Weighted Cross-entropy Loss for Mitigating LLM Hallucinations in Cross-lingual Continual Pretraining
Recently, due to the explosive advances of large language models (LLMs) on English, cross-lingual continual pretraining has been widely applied in obtaining Chinese LLMs. However, previous studies showed that these LLMs have suffered severe hallucinations, mainly caused by noisy tokens. To this aim, we propose a novel loss function, InfoLoss for continual pretraining. Specifically, our loss function takes into account the co-occurrence of noisy and normal tokens, and uses point-wise mutual information to reduce the impact of noisy tokens. We use InfoLoss to continually pretrain 30 billion tokens on Llama 2-7B with 64 A100 GPUs for 24 days, obtaining C-Llama. We then conduct experiments on 12 benchmarks for evaluations. The results show the effectiveness of our proposed InfoLoss. Our datasets and codes are publicly available at https://github.com/Fluxation996/C-Llama.
Authors
- Yuantao Fan (ORCID: https://orcid.org/0000-0002-3034-6630)
- Ruifan Li (ORCID: https://orcid.org/0000-0002-3543-6272)
- Xiaojie Wang
- Guangwei Zhang
- Chuan Shi (ORCID: https://orcid.org/0000-0002-3734-0266)
Institutions
- Beijing University of Posts and Telecommunications (CN)
Publication Details
- Published
- 2025-03-12
- DOI
- https://doi.org/10.1109/icassp49660.2025.10888877
- Citations
- 1
- Primary Topic
- Hallucinations in medical conditions
- Type
- article
- Field-Weighted Citation Impact
- 1.43
Funders
- Nature
- Innovation Fund