Addressing Topic Granularity and Hallucination in Large Language Models for Topic Modelling

Yida Mu, Peizhen Bai, Kalina Bontcheva, Xingyi Song
5/1/2024
cs.CL

No official code found. Best implementation: GateNLP/TopicLLM_Granularity_Hallucination (6 stars, last commit 2024-06-09).

Abstract

Large language models (LLMs) with their strong zero-shot topic extraction capabilities offer an alternative to probabilistic topic modelling and closed-set topic classification approaches. As zero-shot topic extractors, LLMs are expected to understand human instructions to generate relevant and non-hallucinated topics based on the given documents. However, LLM-based topic modelling approaches often face difficulties in generating topics with adherence to granularity as specified in human instructions, often resulting in many near-duplicate topics. Furthermore, methods for addressing hallucinated topics generated by LLMs have not yet been investigated. In this paper, we focus on addressing the issues of topic granularity and hallucinations for better LLM-based topic modelling. To this end, we introduce a novel approach that leverages Direct Preference Optimisation (DPO) to fine-tune open-source LLMs, such as Mistral-7B. Our approach does not rely on traditional human annotation to rank preferred answers but employs a reconstruction pipeline to modify raw topics generated by LLMs, thus enabling a fast and efficient training and inference framework. Comparative experiments show that our fine-tuning approach not only significantly improves the LLM's capability to produce more coherent, relevant, and precise topics, but also reduces the number of hallucinated topics.

View on arXivView PDF

Code Implementations(1)

Addressing Topic Granularity and Hallucination in Large Language Models for Topic Modelling

60Python, Jupyter NotebookMay 1, 20242 years ago

Similar Papers

Cite this paper

@article{mu2024addressing,
  title  = {Addressing Topic Granularity and Hallucination in Large Language Models for Topic Modelling},
  author = {Yida Mu and Peizhen Bai and Kalina Bontcheva and Xingyi Song},
  year   = {2024},
  eprint = {2405.00611},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.00611v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.00611.svg)](https://codeofpaper.com/paper/2405.00611)

Discussion