學習擴散轉移應用於連續離散去噪過程

Learning Diffusion Transitions for Continuous-Discrete Denoising Process

檔案

日期

2024

類型

語言

英文

摘要

型語言模型(LLM)多半是自回歸模型,這類模型在自然語言生成(NLG)領域中雖然表現優異,但也存在一些問題。例如,自回歸模型的生成速度較慢,並且在處理長篇文本時可能面臨上下文捕捉能力不足的挑戰。為了解決這些問題,我們研究了非自回歸的擴散模型,其具有潛力克服這些缺陷。
擴散模型(Diffusion Model),特別是連續擴散模型,展示了與自回歸模型不同的優勢。在文本生成中,擴散模型可以被視為類似於掩碼語言模型(Mask Language Model),並且具有潛力透過特定策略來提升生成質量。連續擴散模型允許對連續空間進行更平滑的過渡,這使得模型能夠以更靈活的方式生成文本。然而,連續擴散模型自身仍然面臨挑戰,即如何在生成過程中有效地引導模型從簡單到複雜的詞彙生成,及簡單優先策略(Easy-First Generation),這對生成質量至關重要。
為了賦予連續擴散模型這種能力,我們引入了掩碼噪聲(Mask Noise),將連續擴散模型與掩碼語言模型結合。具體來說,我們提出了一種新的方法,即使用高斯分布來逼近連續空間上的狄拉克分布(Dirac Distribution),以描述離散的過渡機制。我們還採用了近似損失函數來學習更合理的模型,從而提高生成過程中的效果。
此外,我們引入了對比損失(Contrastive Loss)來進一步優化模型的嵌入空間,使其具有有意義的結構。這樣的結構有助於擴散模型更好地遵循“由簡到難”的生成策略,即優先生成高頻、簡單的詞彙,再逐步引入低頻、複雜的詞彙。這種結構設計旨在提升生成文本的質量和效率。
我們在Quora Question Pairs數據集上進行了實驗,使用BLEU、ROUGE-L和BERTScore等三項自然語言生成(NLG)常用指標來評估模型生成的句子相似度和語意相似度。我們的實驗結果表明,所提出的方法在生成質量方面有所改進。我們還進行了消融實驗,以測試所提出方法的有效性,並觀察模型的嵌入空間和生成行為,來確認“由簡到難”生成策略的效果。這些研究結果為文本生成方法的改進提供了有價值的見解。
Large Language Models (LLMs) are predominantly autoregressive models, which, while performing exceptionally well in natural language generation (NLG), also encounter several challenges. For instance, autoregressive models can be slow in generating text and may struggle with maintaining context over long passages. To address these issues, we explore non-autoregressive diffusion models, which have the potential to overcome these limitations.
Diffusion models, particularly continuous diffusion models, offer distinct advantages compared to autoregressive models. In text generation, diffusion models can be likened to mask language models and hold promise for improving generation quality through specific strategies. Continuous diffusion models allow for smoother transitions within continuous spaces, enabling more flexible text generation. However, these models face challenges, such as effectively guiding the generation process from simple to complex vocabulary and implementing an easy-first strategy, which is crucial for high-quality text generation.
To endow continuous diffusion models with these capabilities, we introduce mask noise and integrate continuous diffusion models with mask language models. Specifically, we propose a novel approach using Gaussian distributions to approximate Dirac distributions in continuous spaces to describe discrete transitions. Additionally, we employ an approximate loss function to train a more effective model, enhancing the generation process.
Moreover, we incorporate contrastive loss to further refine the model’s embedding space, providing it with a meaningful structure. This structure facilitates the diffusion model’s adherence to the "easy-first" generation strategy, prioritizing the generation of high-frequency, simple words before gradually introducing lower-frequency, more complex words. This design aims to improve both the quality and efficiency of text generation.
We conducted experiments on the Quora Question Pairs dataset, using BLEU, ROUGE-L, and BERTScore—three common NLG metrics—to evaluate the similarity and semantic quality of the generated sentences. Our results indicate that the proposed method improves generation quality. We also performed ablation studies to test the effectiveness of the proposed methods and observed the model’s embedding space and generation behavior to confirm the effectiveness of the easy-first strategy. These findings offer valuable insights for advancing text generation methodologies.
顯示完整詮釋資料 統計資料

引用此條目

Chen, C.-C. (2024). Learning Diffusion Transitions for Continuous-Discrete Denoising Process. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4200

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4200