基於注意力解纏之語意文本轉換圖像生成擴散模型

Semantic Diffusion Model with Attention Disentanglement for Text-to-Image Generation

檔案

全文將於 2029年8月28日 起公開。

日期

2024

類型

語言

英文

摘要

In recent years, the advent of advanced artificial intelligence (AI) and hardware technology has turned the once-fictional concept of instructing a machine with a sentence to produce a corresponding image into a reality. This breakthrough, known as text-to-image generation, merges natural language processing (NLP) with computer vision (CV) to convert textual descriptions into realistic images. It has vast potential across numerous domains including creative design, education, healthcare, and entertainment. For example, designers can quickly generate sketch drafts based on verbal descriptions, healthcare professionals can create relevant images to aid diagnosis, and everyday users can effortlessly produce artistic works. More recently, transformer models have achieved notable success in NLP and are increasingly applied to image generation. Models like Stable Diffusion, DALL-E, and Imagen have demonstrated impressive text-to-image capabilities by leveraging large-scale datasets to produce high-quality, semantically rich images. Advances in multimodal learning are deeply intertwined with the development of text-to-image generation, reflecting the growing synergy between these fields., which integrates various data forms such as text, audio, and images to achieve cross-modal transformations. Even with these improvements, difficulties persist in creating images that accurately correspond to the given textual descriptions, particularly in terms of accurately reflecting details, colors, and compositions. Additionally, handling ambiguity and polysemy in textual descriptions remains a technical hurdle. To address these challenges, this research proposes the Semantic Diffusion Model with Attention Disentanglement, with the goal of boost the performance and effectiveness of semantic generation in text-to-image models by leveraging semantical attention maps in diffusion models without retrain the entire model. This research is motivated by the need to improve semantical consistency in text-to-image models. Current models often suffer from issues such as attribute failure, where objects are mismatched with their attributes (e.g. color, shape), and object missing or object mixture, where objects are either not generated or improperly combined. Existing methods, while addressing these issues individually, fail to do so simultaneously and efficiently. By focusing on cross-attention maps from Stable Diffusion, this research seeks to control semantic features during the generation process to enhance image quality and consistency. Furthermore, diffusion models inherently possess disentanglement capabilities, allowing for the separation of semantic information and enabling tasks like style transfer and image editing. This research aims to proactively disentangle the information within diffusion models to aid in generating semantically consistent images. By designing a specific energy function, performing syntax parsing on input prompts, and leveraging mutual information for attribute and relation disentanglement, this study intends to achieve semantical text-to-image generation. Additionally, a powerful vision-language model will be employed to measure the semantic similarity between input prompts and generated images as a supervision, refining the generation process to ensure alignment with textual descriptions and capture intended semantic attributes and relationships.
近年來,隨著先進人工智慧(AI)和硬體技術的發展,讓過去僅存在於科幻中的概念成為現實,即以一句話指示機器生成相應圖像。這項突破稱為文本生成圖像(text-to-image generation),結合了自然語言處理(NLP)與電腦視覺(CV),將文字描述轉換為逼真的圖像。此技術在創意設計、教育、醫療和娛樂等多個領域具有廣泛潛力。例如,設計師可以根據口頭描述迅速生成草圖,醫療專業人員可以創建相關圖像以輔助診斷,而普通用戶則能輕鬆創作藝術作品。Transformer模型在NLP領域取得顯著成功,並逐漸應用於圖像生成。Stable Diffusion、DALL-E 和 Imagen 等模型透過利用大規模數據集,展示了令人印象深刻的文本生成圖像能力,能夠生成高品質且語義豐富的圖像。文本生成圖像的進步與多模態學習(multimodal learning)的發展密不可分,多模態學習整合了文本、音頻和圖像等各種數據形式,以實現跨模態轉換。儘管取得了這些進展,但在生成精確匹配文本描述的高品質圖像方面仍面臨挑戰,特別是在細節、顏色和構圖方面的準確反映。此外,處理文本描述中的模糊性和一詞多義性也是一項技術難題。為了解決這些挑戰,本研究提出了“基於注意力解纏之語意文本轉換圖像生成擴散模型”(Semantic Diffusion Model with Attention Disentanglement),旨在通過利用擴散模型中的語義注意力圖來提高文本生成圖像模型的語義生成性能和效率。本研究的動機在於改善文本生成圖像模型中的語義一致性。當前的模型經常遇到屬性錯誤(Attribute Failure)問題,即物體與其屬性 (如:顏色、形狀)不匹配,以及物體缺失或混合(Object Missing or Mixture)問題,即物體未生成或不正確地結合。現有的方法雖然能夠分別解決這些問題,但無法同時且有效地解決這些問題。通過聚焦於Stable Diffusion的交叉注意力圖,本研究試圖在生成過程中控制語義特徵,以提高圖像質量和一致性。此外,擴散模型本身具有解糾纏能力,能夠分離語義信息,實現風格轉換和圖像編輯等任務。本研究旨在主動解纏擴散模型中的信息,以幫助生成語義一致的圖像。通過設計特定的能量函數,對輸入提示進行句法解析,並利用互信息進行屬性和關係解纏,本研究旨在實現語義文本生成圖像。此外,將使用強大的視覺語言模型來計算輸入提示與生成圖像之間的語意相似度作為監督,優化生成過程,確保與文本描述的一致性,並捕捉預期的語義屬性和關係。

所屬典藏

電機工程學系
顯示完整詮釋資料 統計資料

引用此條目

Yu, H.-C. (2024). Semantic Diffusion Model with Attention Disentanglement for Text-to-Image Generation. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/4031

BibTeX RIS

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

分享

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