References & Citations
Computer Science > Computation and Language
Title: KL-Divergence Guided Temperature Sampling
(Submitted on 2 Jun 2023 (v1), last revised 29 Nov 2023 (this version, v2))
Abstract: Temperature sampling is a conventional approach to diversify large language model predictions. As temperature increases, the prediction becomes diverse but also vulnerable to hallucinations -- generating tokens that are sensible but not factual. One common approach to mitigate hallucinations is to provide source/grounding documents and the model is trained to produce predictions that bind to and are attributable to the provided source. It appears that there is a trade-off between diversity and attribution. To mitigate any such trade-off, we propose to relax the constraint of having a fixed temperature over decoding steps, and a mechanism to guide the dynamic temperature according to its relevance to the source through KL-divergence. Our experiments justifies the trade-off, and shows that our sampling algorithm outperforms the conventional top-k and top-p algorithms in conversational question-answering and summarization tasks.
Submission history
From: Chung-Ching Chang [view email][v1] Fri, 2 Jun 2023 06:11:26 GMT (786kb,D)
[v2] Wed, 29 Nov 2023 23:57:03 GMT (786kb,D)
Link back to: arXiv, form interface, contact.