A Topic-Constrained Sampling Method for Text Generation
Pre-trained large language models (PLLMs) can be fine-tuned to incorporate relevant knowledge and linguistic conventions of a local corpus, though this process typically involves high training costs and computing resources. This paper employs a local corpus to construct a Latent Dirichlet Allocation (LDA) topic model, and then generates topic-constrained text by the LDA. On the one hand, this method is easy to implement; on the other hand, it enhances the model's generalization capabilities on local corpus. Experimental results reveal that the proposed method achieves better performance than the baseline model in both diversity and generalization.
Authors
- Jiaqiang Wan
- Huijin Zhu
- Xinyu Qiu
- Zhiqiang Wang (ORCID: https://orcid.org/0009-0008-9476-9000)
- Wenyi Ran
Institutions
- Chongqing University of Technology (CN)
Publication Details
- Published
- 2024-12-20
- DOI
- https://doi.org/10.1145/3712623.3712634
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00