Add Batch 9471e399-66ef-49f1-a174-d5f7d8fd3b94 data
Browse filesThis view is limited to 50 files because it contains too many changes. Β See raw diff
- .gitattributes +64 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_content_list.json +0 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_model.json +0 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_origin.pdf +3 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/full.md +0 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/images.zip +3 -0
- 2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/layout.json +0 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_content_list.json +0 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_model.json +0 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_origin.pdf +3 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/full.md +416 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/images.zip +3 -0
- 2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/layout.json +0 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_content_list.json +0 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_model.json +0 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_origin.pdf +3 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/full.md +0 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/images.zip +3 -0
- 2025/Dialogue Systems for Emotional Support via Value Reinforcement/layout.json +0 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_content_list.json +0 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_model.json +0 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_origin.pdf +3 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/full.md +421 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/images.zip +3 -0
- 2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/layout.json +0 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_content_list.json +0 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_model.json +0 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_origin.pdf +3 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/full.md +386 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/images.zip +3 -0
- 2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/layout.json +0 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_content_list.json +0 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_model.json +0 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_origin.pdf +3 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/full.md +414 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/images.zip +3 -0
- 2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/layout.json +0 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_content_list.json +0 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_model.json +0 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_origin.pdf +3 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/full.md +403 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/images.zip +3 -0
- 2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/layout.json +0 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_content_list.json +0 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_model.json +0 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_origin.pdf +3 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/full.md +490 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/images.zip +3 -0
- 2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/layout.json +0 -0
- 2025/Digest the Knowledge_ Large Language Models empowered Message Passing for Knowledge Graph Question Answering/4cf3650c-9543-44fe-9d09-6f2d898d2799_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -1845,3 +1845,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 1845 |
2025/Detecting[[:space:]]Sockpuppetry[[:space:]]on[[:space:]]Wikipedia[[:space:]]Using[[:space:]]Meta-Learning/12972fd0-33fc-4760-b9b9-ab23233e293f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1846 |
2025/Detection[[:space:]]of[[:space:]]Human[[:space:]]and[[:space:]]Machine-Authored[[:space:]]Fake[[:space:]]News[[:space:]]in[[:space:]]Urdu/fe302fb8-bd0c-48bd-966c-26c4f3f9f1be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1847 |
2025/Developmentally-plausible[[:space:]]Working[[:space:]]Memory[[:space:]]Shapes[[:space:]]a[[:space:]]Critical[[:space:]]Period[[:space:]]for[[:space:]]Language[[:space:]]Acquisition/12386559-9dc2-438f-8efa-f2864a038804_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1845 |
2025/Detecting[[:space:]]Sockpuppetry[[:space:]]on[[:space:]]Wikipedia[[:space:]]Using[[:space:]]Meta-Learning/12972fd0-33fc-4760-b9b9-ab23233e293f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1846 |
2025/Detection[[:space:]]of[[:space:]]Human[[:space:]]and[[:space:]]Machine-Authored[[:space:]]Fake[[:space:]]News[[:space:]]in[[:space:]]Urdu/fe302fb8-bd0c-48bd-966c-26c4f3f9f1be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1847 |
2025/Developmentally-plausible[[:space:]]Working[[:space:]]Memory[[:space:]]Shapes[[:space:]]a[[:space:]]Critical[[:space:]]Period[[:space:]]for[[:space:]]Language[[:space:]]Acquisition/12386559-9dc2-438f-8efa-f2864a038804_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1848 |
+
2025/DialUp![[:space:]]Modeling[[:space:]]the[[:space:]]Language[[:space:]]Continuum[[:space:]]by[[:space:]]Adapting[[:space:]]Models[[:space:]]to[[:space:]]Dialects[[:space:]]and[[:space:]]Dialects[[:space:]]to[[:space:]]Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1849 |
+
2025/Dialectal[[:space:]]Coverage[[:space:]]And[[:space:]]Generalization[[:space:]]in[[:space:]]Arabic[[:space:]]Speech[[:space:]]Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1850 |
+
2025/Dialogue[[:space:]]Systems[[:space:]]for[[:space:]]Emotional[[:space:]]Support[[:space:]]via[[:space:]]Value[[:space:]]Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1851 |
+
2025/Dialogue-RAG_[[:space:]]Enhancing[[:space:]]Retrieval[[:space:]]for[[:space:]]LLMs[[:space:]]via[[:space:]]Node-Linking[[:space:]]Utterance[[:space:]]Rewriting/e90ef028-820e-405a-969b-99e817071213_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1852 |
+
2025/Did[[:space:]]Translation[[:space:]]Models[[:space:]]Get[[:space:]]More[[:space:]]Robust[[:space:]]Without[[:space:]]Anyone[[:space:]]Even[[:space:]]Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1853 |
+
2025/DiffPO_[[:space:]]Diffusion-styled[[:space:]]Preference[[:space:]]Optimization[[:space:]]for[[:space:]]Inference[[:space:]]Time[[:space:]]Alignment[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/46b5b625-0dc0-459e-9994-9544997fc1e4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1854 |
+
2025/DiffuseDef_[[:space:]]Improved[[:space:]]Robustness[[:space:]]to[[:space:]]Adversarial[[:space:]]Attacks[[:space:]]via[[:space:]]Iterative[[:space:]]Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1855 |
+
2025/Diffusion[[:space:]]Models[[:space:]]Through[[:space:]]a[[:space:]]Global[[:space:]]Lens_[[:space:]]Are[[:space:]]They[[:space:]]Culturally[[:space:]]Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1856 |
+
2025/Digest[[:space:]]the[[:space:]]Knowledge_[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]empowered[[:space:]]Message[[:space:]]Passing[[:space:]]for[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Question[[:space:]]Answering/4cf3650c-9543-44fe-9d09-6f2d898d2799_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1857 |
+
2025/Digital[[:space:]]Gatekeepers_[[:space:]]Googleβs[[:space:]]Role[[:space:]]in[[:space:]]Curating[[:space:]]Hashtags[[:space:]]and[[:space:]]Subreddits/5c0bbab3-f0df-4db3-93d1-20938f2bf325_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1858 |
+
2025/DioR_[[:space:]]Adaptive[[:space:]]Cognitive[[:space:]]Detection[[:space:]]and[[:space:]]Contextual[[:space:]]Retrieval[[:space:]]Optimization[[:space:]]for[[:space:]]Dynamic[[:space:]]Retrieval-Augmented[[:space:]]Generation/6c7f685f-5150-428c-a8db-1a5ae6d8c232_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1859 |
+
2025/Direct[[:space:]]Prompt[[:space:]]Optimization[[:space:]]with[[:space:]]Continuous[[:space:]]Representations/72eea02b-c8bd-4d6d-9dce-dfdae4c29435_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1860 |
+
2025/Disambiguating[[:space:]]Reference[[:space:]]in[[:space:]]Visually[[:space:]]Grounded[[:space:]]Dialogues[[:space:]]through[[:space:]]Joint[[:space:]]Modeling[[:space:]]of[[:space:]]Textual[[:space:]]and[[:space:]]Multimodal[[:space:]]Semantic[[:space:]]Structures/43ec93b8-4127-4f36-8f69-77e778b288bf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1861 |
+
2025/Discourse[[:space:]]Relation-Enhanced[[:space:]]Neural[[:space:]]Coherence[[:space:]]Modeling/9472fdd8-6d8a-41f1-a7f4-9710f894e831_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1862 |
+
2025/Disentangling[[:space:]]Biased[[:space:]]Knowledge[[:space:]]from[[:space:]]Reasoning[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Machine[[:space:]]Unlearning/c181358b-04f2-4e7a-b0f5-726fa08d2472_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1863 |
+
2025/Disentangling[[:space:]]Language[[:space:]]and[[:space:]]Culture[[:space:]]for[[:space:]]Evaluating[[:space:]]Multilingual[[:space:]]Large[[:space:]]Language[[:space:]]Models/d6b0539e-43c3-49ea-b456-914b45a22d96_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1864 |
+
2025/Disentangling[[:space:]]Memory[[:space:]]and[[:space:]]Reasoning[[:space:]]Ability[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/46bd367e-59c7-422a-80c7-c22a5e380661_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1865 |
+
2025/Disentangling[[:space:]]the[[:space:]]Roles[[:space:]]of[[:space:]]Representation[[:space:]]and[[:space:]]Selection[[:space:]]in[[:space:]]Data[[:space:]]Pruning/6d5cddc0-f2a9-45ce-8489-7b9e312d47af_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1866 |
+
2025/Distilling[[:space:]]an[[:space:]]End-to-End[[:space:]]Voice[[:space:]]Assistant[[:space:]]Without[[:space:]]Instruction[[:space:]]Training[[:space:]]Data/bd8850d9-5c23-47a2-9137-e3ef33905df7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1867 |
+
2025/Diversity[[:space:]]Explains[[:space:]]Inference[[:space:]]Scaling[[:space:]]Laws_[[:space:]]Through[[:space:]]a[[:space:]]Case[[:space:]]Study[[:space:]]of[[:space:]]Minimum[[:space:]]Bayes[[:space:]]Risk[[:space:]]Decoding/67427a9e-ef9c-49cf-9c1c-5ab036f9121e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1868 |
+
2025/Diversity-oriented[[:space:]]Data[[:space:]]Augmentation[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/249fc96a-1c61-4dc9-91cd-bf678731ead8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1869 |
+
2025/Divide-Then-Aggregate_[[:space:]]An[[:space:]]Efficient[[:space:]]Tool[[:space:]]Learning[[:space:]]Method[[:space:]]via[[:space:]]Parallel[[:space:]]Tool[[:space:]]Invocation/fda6e8ae-b33c-4e4d-99ca-7df6e5708914_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1870 |
+
2025/Divide-Then-Align_[[:space:]]Honest[[:space:]]Alignment[[:space:]]based[[:space:]]on[[:space:]]the[[:space:]]Knowledge[[:space:]]Boundary[[:space:]]of[[:space:]]RAG/23cc67c6-6b31-477b-8691-92ad7e53633e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1871 |
+
2025/Do[[:space:]]LLMs[[:space:]]Understand[[:space:]]Dialogues_[[:space:]]A[[:space:]]Case[[:space:]]Study[[:space:]]on[[:space:]]Dialogue[[:space:]]Acts/fe21d153-fc2e-4de5-a660-d115f55ea715_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1872 |
+
2025/Do[[:space:]]Language[[:space:]]Models[[:space:]]Have[[:space:]]Semantics_[[:space:]]On[[:space:]]the[[:space:]]Five[[:space:]]Standard[[:space:]]Positions/951dc66d-1ca4-4655-b68b-09a5ac4b3920_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1873 |
+
2025/Do[[:space:]]Language[[:space:]]Models[[:space:]]Understand[[:space:]]Honorific[[:space:]]Systems[[:space:]]in[[:space:]]Javanese_/ff49e7a1-004c-4b7b-91ac-1238de062347_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1874 |
+
2025/Do[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]have[[:space:]]an[[:space:]]English[[:space:]]Accent_[[:space:]]Evaluating[[:space:]]and[[:space:]]Improving[[:space:]]the[[:space:]]Naturalness[[:space:]]of[[:space:]]Multilingual[[:space:]]LLMs/7c934eec-fe90-4d4a-99db-4d639430f210_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1875 |
+
2025/Do[[:space:]]not[[:space:]]Abstain![[:space:]]Identify[[:space:]]and[[:space:]]Solve[[:space:]]the[[:space:]]Uncertainty/8737a6ab-ec1a-4f6a-9863-587f4b68ef36_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1876 |
+
2025/DoMIX_[[:space:]]An[[:space:]]Efficient[[:space:]]Framework[[:space:]]for[[:space:]]Exploiting[[:space:]]Domain[[:space:]]Knowledge[[:space:]]in[[:space:]]Fine-Tuning/a77eab13-53b2-4681-bb38-616c393df65a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1877 |
+
2025/Document-Level[[:space:]]Event-Argument[[:space:]]Data[[:space:]]Augmentation[[:space:]]for[[:space:]]Challenging[[:space:]]Role[[:space:]]Types/5cb06145-0d62-4ad0-8beb-7d93dc638cda_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1878 |
+
2025/Document-Level[[:space:]]Text[[:space:]]Generation[[:space:]]with[[:space:]]Minimum[[:space:]]Bayes[[:space:]]Risk[[:space:]]Decoding[[:space:]]using[[:space:]]Optimal[[:space:]]Transport/eb0e7466-98a5-4a89-bc18-2e119aa38893_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1879 |
+
2025/Does[[:space:]]Context[[:space:]]Matter_[[:space:]]ContextualJudgeBench[[:space:]]for[[:space:]]Evaluating[[:space:]]LLM-based[[:space:]]Judges[[:space:]]in[[:space:]]Contextual[[:space:]]Settings/338af506-0eb3-48bf-9c01-90909613a44e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1880 |
+
2025/Does[[:space:]]Time[[:space:]]Have[[:space:]]Its[[:space:]]Place_[[:space:]]Temporal[[:space:]]Heads_[[:space:]]Where[[:space:]]Language[[:space:]]Models[[:space:]]Recall[[:space:]]Time-specific[[:space:]]Information/57f94b95-3016-4d30-b74e-80548ad3d4f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1881 |
+
2025/Does[[:space:]]the[[:space:]]Emotional[[:space:]]Understanding[[:space:]]of[[:space:]]LVLMs[[:space:]]Vary[[:space:]]Under[[:space:]]High-Stress[[:space:]]Environments[[:space:]]and[[:space:]]Across[[:space:]]Different[[:space:]]Demographic[[:space:]]Attributes_/f1551e42-e89b-440f-8f5a-fbd9272708ba_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1882 |
+
2025/Dolphin_[[:space:]]Moving[[:space:]]Towards[[:space:]]Closed-loop[[:space:]]Auto-research[[:space:]]through[[:space:]]Thinking,[[:space:]]Practice,[[:space:]]and[[:space:]]Feedback/39a7b86e-21f6-452f-8188-75a271035d74_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1883 |
+
2025/Donate[[:space:]]or[[:space:]]Create_[[:space:]]Comparing[[:space:]]Data[[:space:]]Collection[[:space:]]Strategies[[:space:]]for[[:space:]]Emotion-labeled[[:space:]]Multimodal[[:space:]]Social[[:space:]]Media[[:space:]]Posts/170da51e-7abe-4489-9464-ec47627b2c3f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1884 |
+
2025/Donβt[[:space:]]Erase,[[:space:]]Inform![[:space:]]Detecting[[:space:]]and[[:space:]]Contextualizing[[:space:]]Harmful[[:space:]]Language[[:space:]]in[[:space:]]Cultural[[:space:]]Heritage[[:space:]]Collections/7ac30ab1-0e5f-4ee0-807e-4445c9431df4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1885 |
+
2025/Donβt[[:space:]]Get[[:space:]]Lost[[:space:]]in[[:space:]]the[[:space:]]Trees_[[:space:]]Streamlining[[:space:]]LLM[[:space:]]Reasoning[[:space:]]by[[:space:]]Overcoming[[:space:]]Tree[[:space:]]Search[[:space:]]Exploration[[:space:]]Pitfalls/a5f9c2fb-db84-40b0-8137-6792ac7bf637_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1886 |
+
2025/Donβt[[:space:]]Half-listen_[[:space:]]Capturing[[:space:]]Key-part[[:space:]]Information[[:space:]]in[[:space:]]Continual[[:space:]]Instruction[[:space:]]Tuning/07a8e3ee-4a36-438d-a47f-c3b89ccba0e4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1887 |
+
2025/Donβt[[:space:]]Reinvent[[:space:]]the[[:space:]]Wheel_[[:space:]]Efficient[[:space:]]Instruction-Following[[:space:]]Text[[:space:]]Embedding[[:space:]]based[[:space:]]on[[:space:]]Guided[[:space:]]Space[[:space:]]Transformation/abe25c9b-437e-4dff-9245-8b7006b4984c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1888 |
+
2025/Drift_[[:space:]]Enhancing[[:space:]]LLM[[:space:]]Faithfulness[[:space:]]in[[:space:]]Rationale[[:space:]]Generation[[:space:]]via[[:space:]]Dual-Reward[[:space:]]Probabilistic[[:space:]]Inference/3ff5559c-a47b-430e-8ea8-82a38902fbd6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1889 |
+
2025/DualGuard_[[:space:]]A[[:space:]]Parameter[[:space:]]Space[[:space:]]Transformation[[:space:]]Approach[[:space:]]for[[:space:]]Bidirectional[[:space:]]Defense[[:space:]]in[[:space:]]Split-Based[[:space:]]LLM[[:space:]]Fine-Tuning/5ddb0334-8eae-4751-b9a6-135b20efd8e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1890 |
+
2025/DualRAG_[[:space:]]A[[:space:]]Dual-Process[[:space:]]Approach[[:space:]]to[[:space:]]Integrate[[:space:]]Reasoning[[:space:]]and[[:space:]]Retrieval[[:space:]]for[[:space:]]Multi-Hop[[:space:]]Question[[:space:]]Answering/2933067d-8059-46e6-b1c7-a0a7b2a922ef_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1891 |
+
2025/Dually[[:space:]]Self-Improved[[:space:]]Counterfactual[[:space:]]Data[[:space:]]Augmentation[[:space:]]Using[[:space:]]Large[[:space:]]Language[[:space:]]Model/3af87e62-3b99-4c79-9bd7-9d4177af769c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1892 |
+
2025/Dynamic[[:space:]]Chunking[[:space:]]and[[:space:]]Selection[[:space:]]for[[:space:]]Reading[[:space:]]Comprehension[[:space:]]of[[:space:]]Ultra-Long[[:space:]]Context[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/45ec608b-c241-44e7-9310-d0124a538a86_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1893 |
+
2025/Dynamic[[:space:]]Evaluation[[:space:]]with[[:space:]]Cognitive[[:space:]]Reasoning[[:space:]]for[[:space:]]Multi-turn[[:space:]]Safety[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/4ea7d91e-ae4f-4b3c-b5af-e5271b4d3a97_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1894 |
+
2025/Dynamic[[:space:]]Head[[:space:]]Selection[[:space:]]for[[:space:]]Neural[[:space:]]Lexicalized[[:space:]]Constituency[[:space:]]Parsing/be59765e-7346-4951-acc6-f8aab5814696_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1895 |
+
2025/Dynamic[[:space:]]Parallel[[:space:]]Tree[[:space:]]Search[[:space:]]for[[:space:]]Efficient[[:space:]]LLM[[:space:]]Reasoning/799f0210-4815-413c-9a04-ad1ce237372d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1896 |
+
2025/Dynamic[[:space:]]Scaling[[:space:]]of[[:space:]]Unit[[:space:]]Tests[[:space:]]for[[:space:]]Code[[:space:]]Reward[[:space:]]Modeling/bda84723-1c9f-4671-a171-888e242dd966_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1897 |
+
2025/Dynamic[[:space:]]and[[:space:]]Generalizable[[:space:]]Process[[:space:]]Reward[[:space:]]Modeling/d0a3566e-a37b-473b-8d67-290897b44fa9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1898 |
+
2025/DΓ©jΓ [[:space:]]Vu_[[:space:]]Decoding[[:space:]]Repeated[[:space:]]Reading[[:space:]]from[[:space:]]Eye[[:space:]]Movements/6dd81682-db24-47b0-bb89-6e16ad75d049_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1899 |
+
2025/EAC-MoE_[[:space:]]Expert-Selection[[:space:]]Aware[[:space:]]Compressor[[:space:]]for[[:space:]]Mixture-of-Experts[[:space:]]Large[[:space:]]Language[[:space:]]Models/f05b5107-3a18-4e73-b4cc-01c7e72daf90_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1900 |
+
2025/EAGLE_[[:space:]]Expert-Guided[[:space:]]Self-Enhancement[[:space:]]for[[:space:]]Preference[[:space:]]Alignment[[:space:]]in[[:space:]]Pathology[[:space:]]Large[[:space:]]Vision-Language[[:space:]]Model/4c28c630-6f77-4c85-a0c3-9ebd0e037fc4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1901 |
+
2025/ECERC_[[:space:]]Evidence-Cause[[:space:]]Attention[[:space:]]Network[[:space:]]for[[:space:]]Multi-Modal[[:space:]]Emotion[[:space:]]Recognition[[:space:]]in[[:space:]]Conversation/980f4659-e3ca-4b32-bb6a-885c437cc04a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1902 |
+
2025/ECLM_[[:space:]]Entity[[:space:]]Level[[:space:]]Language[[:space:]]Model[[:space:]]for[[:space:]]Spoken[[:space:]]Language[[:space:]]Understanding[[:space:]]with[[:space:]]Chain[[:space:]]of[[:space:]]Intent/62138ae7-cd00-476f-83ed-a87ec6e20e31_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1903 |
+
2025/ELABORATION_[[:space:]]A[[:space:]]Comprehensive[[:space:]]Benchmark[[:space:]]on[[:space:]]Human-LLM[[:space:]]Competitive[[:space:]]Programming/d1f988f7-163b-4c94-ac5f-8f7ecd89e706_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1904 |
+
2025/ELBA-Bench_[[:space:]]An[[:space:]]Efficient[[:space:]]Learning[[:space:]]Backdoor[[:space:]]Attacks[[:space:]]Benchmark[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/0bd84bba-6643-4838-b716-c490e6064e5b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1905 |
+
2025/EPO_[[:space:]]Explicit[[:space:]]Policy[[:space:]]Optimization[[:space:]]for[[:space:]]Strategic[[:space:]]Reasoning[[:space:]]in[[:space:]]LLMs[[:space:]]via[[:space:]]Reinforcement[[:space:]]Learning/297127e2-6382-4e36-af7d-b546ce7167db_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1906 |
+
2025/ERU-KG_[[:space:]]Efficient[[:space:]]Reference-aligned[[:space:]]Unsupervised[[:space:]]Keyphrase[[:space:]]Generation/460fff8f-39be-4377-a8c4-36211129db84_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1907 |
+
2025/ETF_[[:space:]]An[[:space:]]Entity[[:space:]]Tracing[[:space:]]Framework[[:space:]]for[[:space:]]Hallucination[[:space:]]Detection[[:space:]]in[[:space:]]Code[[:space:]]Summaries/97e07a14-fc05-4e42-9a87-405351905e43_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1908 |
+
2025/EcomScriptBench_[[:space:]]A[[:space:]]Multi-task[[:space:]]Benchmark[[:space:]]for[[:space:]]E-commerce[[:space:]]Script[[:space:]]Planning[[:space:]]via[[:space:]]Step-wise[[:space:]]Intention-Driven[[:space:]]Product[[:space:]]Association/0c1db8bb-b9e0-406e-8197-17fa05896db2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1909 |
+
2025/EdiText_[[:space:]]Controllable[[:space:]]Coarse-to-Fine[[:space:]]Text[[:space:]]Editing[[:space:]]with[[:space:]]Diffusion[[:space:]]Language[[:space:]]Models/a9023510-70a1-4039-b43b-633603d53ded_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1910 |
+
2025/EditInspector_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Evaluation[[:space:]]of[[:space:]]Text-Guided[[:space:]]Image[[:space:]]Edits/376b244c-c70e-4042-97e6-3d87735995c0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 1911 |
+
2025/EducationQ_[[:space:]]Evaluating[[:space:]]LLMsβ[[:space:]]Teaching[[:space:]]Capabilities[[:space:]]Through[[:space:]]Multi-Agent[[:space:]]Dialogue[[:space:]]Framework/58f513b2-62e6-45b5-a16f-7649438b24da_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/d78e46be-e1ee-4bd4-96d2-5b94564c579c_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4869aff446e1eab1889d837f25c3308bfcc80c4edbc529f468249e5ca15d2b43
|
| 3 |
+
size 1393249
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60eed507ff8e2e263cfff3b9ed50ffd5d1015945610c558e3ed443d3011ce95c
|
| 3 |
+
size 5082280
|
2025/DialUp! Modeling the Language Continuum by Adapting Models to Dialects and Dialects to Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/8b82eef0-a7d9-45b8-bf54-98f5b6a6fba1_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e8e21100afa0ad2b1c525d2d107d54f8d3bed34a77f3ddec41040a7f38573551
|
| 3 |
+
size 3223407
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/full.md
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dialectal Coverage And Generalization in Arabic Speech Recognition
|
| 2 |
+
|
| 3 |
+
Amirbek Djanibekov $^{1*}$ , Hawau Olamide Toyin $^{1*}$
|
| 4 |
+
Raghad Alshalan $^{2}$ , Abdullah Alitr $^{2}$ , Hanan Aldarmaki $^{1}$
|
| 5 |
+
|
| 6 |
+
$^{1}$ Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, UAE $^{2}$ STC, Riyadh, Saudi Arabia
|
| 7 |
+
|
| 8 |
+
{amirbek.djanibekov,hawau.toyin,hanan.aldarmaki}@mbzuai.ac.ae {rsalshalan,aalatir}@stc.com.sa
|
| 9 |
+
|
| 10 |
+
# Abstract
|
| 11 |
+
|
| 12 |
+
Developing robust automatic speech recognition (ASR) systems for Arabic requires effective strategies to manage its diversity. Existing ASR systems mainly cover the modern standard Arabic (MSA) variety and few high-resource dialects, but fall short in coverage and generalization across the multitude of spoken variants. Code-switching with English and French is also common in different regions of the Arab world, which challenges the performance of monolingual Arabic models. In this work, we introduce a suite of ASR models optimized to effectively recognize multiple variants of spoken Arabic, including MSA, various dialects, and code-switching. We provide open-source pre-trained models that cover data from 17 Arabic-speaking countries, and fine-tuned MSA and dialectal ASR models that include at least 11 variants, as well as multi-lingual ASR models covering embedded languages in code-switched utterances. We evaluate ASR performance across these spoken varieties and demonstrate both coverage and performance gains compared to prior models.
|
| 13 |
+
|
| 14 |
+
# 1 Introduction
|
| 15 |
+
|
| 16 |
+
The advent of large self-supervised acoustic models has transformed speech technology, enabling transfer learning and improving performance for both high-resource and low-resource languages. Prominent examples of such models include various versions of wav2vec (Schneider et al., 2019; Baevski et al., 2020), HuBERT (Hsu et al., 2021), and SpeechT5 (Ao et al., 2022), which have predominantly been trained on English datasets. Their multi-lingual variants, e.g. XLS-R (Babu et al., 2022) with 53 and 128 languages, in addition to models that include both self-supervised and supervised pre-training, such as Whisper (Radford et al., 2023) with approximately hundred supported languages, MMS (Pratap et al., 2024) with thousands
|
| 17 |
+
|
| 18 |
+
of languages, and UniSpeech (Wang et al., 2021), illustrate the potential for cross-lingual transfer learning for more inclusive ASR. Yet, while these models indeed show great potential for transfer learning to new languages, even those unseen in training, they remain suboptimal for some target languages. A case in point is the Arabic Text and Speech Transformer (ArTST), a model pre-trained exclusively on Arabic, which has demonstrated superior performance for Modern Standard Arabic (MSA), surpassing larger multilingual models like Whisper and MMS in benchmark tests, in addition to establishing a new state-of-the-art performance compared to previous efforts for Arabic ASR. This highlights the advantage of monolingual pre-training when large amounts of unlabeled data for the target language are available. While the model showed some potential for dialectal coverage, it was trained and validated exclusively on MSA data, which questions its applicability for spoken dialectal variants of Arabic. Evaluations on code-switched data showed poor performance of ArTST compared to multilingual models (Kadaoui et al., 2024), demonstrating the delicate trade-off between monolingual and multilingual optimization. Arabic is a pluricentric language (Schuppler et al., 2024), diverse in regional variations, and models trained on MSA frequently struggle to adapt to these variations. This limitation is particularly acute given that many Arabic dialects are underrepresented and considered low-resource in speech technology research. Consequently, there is a need for optimized ASR systems that embrace, rather than overlook, the linguistic diversity of the Arabic-speaking world.
|
| 19 |
+
|
| 20 |
+
In light of these challenges, we conduct various investigations aimed at understanding and enhancing the dialectal diversity and performance of Arabic ASR systems. We focus on four inquiries aimed at optimizing potential strategies for integrating dialectal variation into ASR systems. First, we mea
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
Figure 1: The architecture of SpeechT5/ArTST, which contains an encoder-decoder module and six modal specific pre/post-nets. During self-supervised pre-training (left), quantized tokens are shared across speech and text modalities. Hidden states and latent units are mixed up and used as the inputs of the cross-attention module in the decoder. The fine-tuning stage for ASR is shown on the right. Refer to Ao et al. (2022) for more details.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
|
| 27 |
+
sure the impact of incorporating a broad collection of Arabic dialects during the model's pre-training phase. We hypothesize that a wider dialectal foundation could improve the model's performance across various dialects in the fine-tuning stage. Second, we quantify the comparative effectiveness of dialect-specific fine-tuning versus a more holistic, multi-dialectal fine-tuning strategy. The third question examines the model's capacity for zero-shot transfer to dialects not explicitly included in fine-tuning. Finally, we evaluate the model on code-switched utterances, and examine the effect of multilingual pre-training and fine-tuning on both monolingual and code-switched datasets. Our key findings from experiments spanning over 17 variants of spoken Arabic are: (1) pre-training with more data and wider dialectal coverage improves performance across most dialectal variants, including MSA, (2) multi-dialectal fine-tuning improves performance for low-resource dialects, but may not be optimal for high-resource dialects, (3) multi-dialectal pretraining and fine-tuning has higher potential for zero-shot transfer to unseen dialects, and (4) multilingual pre-training and fine-tuning greatly boosts performance on code-switching, while negatively impacting monolingual performance due to language interference. Our pretraining checkpoints and joint models were trained exclusively on open-source data and are released as open-source, openweights models. All scripts required to reproduce our results including model training, evaluation, and checkpoints, are publicly available<sup>1</sup>.
|
| 28 |
+
|
| 29 |
+
# 2 Related Work
|
| 30 |
+
|
| 31 |
+
Arabic speech recognition research has a long history, but the majority of this research has focused on Modern Standard Arabic (MSA), the formal variant predominant in news broadcasts and official communications. A review article covering peer-reviewed publications between 2011 and 2021 estimates that $89\%$ of papers on Arabic ASR cover MSA, and only a quarter cover some dialectal variant of Arabic (Dhouib et al., 2022). Recent research in end-to-end ASR for Arabic, as presented in Hussein et al. (2022), demonstrates the potential of contemporary deep learning techniques for decoding spoken Arabic, but it was also limited to MSA. Large-scale multilingual ASR models, such as Whisper (Radford et al., 2023) and MMS (Pratap et al., 2024), cover many languages within their scope, including Arabic. They utilize language embeddings or adapters to enhance language coverage and performance within the same model, but their performance across languages vary considerably. For instance, while Whisper demonstrates strong zero-shot capabilities on MSA, its zero-shot accuracy drops substantially on dialects, and additional finetuning on dialectal data is needed to improve performance (Waheed et al., 2023). Recent work has shown that smaller, Arabic-specific student models distilled from large models like Whisper can achieve comparable or even superior performance, especially on dialectal data, with good generalization to unseen dialects (Waheed et al., 2024). Specialized Arabic models like ArTST (Toyin et al., 2023), primarily pre-trained on MSA, have shown
|
| 32 |
+
|
| 33 |
+
competitive results on MSA tasks and even outperformed larger multilingual models on some mixed-dialect datasets like QASR (Mubarak et al., 2021). However, due to its monolingual pretraining, the model was shown to perform poorly in code-switched Arabic-English speech (Al Ali and Aldarmaki, 2024). This illustrates that strong MSA performance is not a reliable predictor for dialectal or code-switching capabilities, with a substantial gap persisting between SOTA MSA and dialectal performance. The development of diverse datasets such as QASR (multi-dialectal broadcast news) (Mubarak et al., 2021), SADA (Saudi Arabic) (Alharbi et al., 2024), ArZen (Egyptian-English code-switching) (Al-Sabbagh, 2024), and Mixat (Emirati-English code-switching) (Al Ali and Aldarmaki, 2024), and other public datasets covering various dialects and code-switched instances presents an opportunity for improving the generalization of ASR systems to diverse spoken varieties.
|
| 34 |
+
|
| 35 |
+
# 3 Methodology
|
| 36 |
+
|
| 37 |
+
Based on prior work, we start with the premise that monolingual training is more suitable for maximizing performance in Arabic ASR. However, the current Arabic SOTA models have limited coverage of spoken varieties and struggle with code-switching due to their monolingual training. Our objective is to maximize performance while also widening the coverage to include MSA, regional dialects, and instances of code-switching. To that end, we start with an Arabic-centric ASR model, ArTST (Toyin et al., 2023), as the foundation for our investigation. Figure 1 illustrates the high-level architecture of ArTST for self-supervised pre-training and fine-tuning. This model is based on the SpeechT5 approach (Ao et al., 2022), and supports multi-modal fine-tuning. The first version of the model was pre-trained on the MGB2 (Ali et al., 2016) dataset, which consists of newswire data, mainly in MSA, with a small subset of dialectal variants. In this work, we attempt to understand the factors that enable both high performance and wide coverage; we explore the following questions:
|
| 38 |
+
|
| 39 |
+
1. Is pretraining on dialectal data beneficial for improving down-stream dialectal performance, and would it negatively impact MSA performance?
|
| 40 |
+
2. Is it better to finetune ASR models jointly on multiple dialects or fine-tune on a specific target dialect?
|
| 41 |
+
|
| 42 |
+
3. Can we achieve reasonable zero-shot performance on unseen dialects?
|
| 43 |
+
4. Can we optimize performance in code-switched utterances using multilingual pretraining?
|
| 44 |
+
5. What is the effect of multilingual pretraining and finetuning on monolingual Arabic performance? (i.e. language interference).
|
| 45 |
+
|
| 46 |
+
The remaining sections detail our experimental settings and findings of these questions.
|
| 47 |
+
|
| 48 |
+
# 3.1 Terminology
|
| 49 |
+
|
| 50 |
+
For the rest of the paper, we will refer to Arabic variants using abbreviations. The categories below are based on regions and countries, and do not reflect any official classification of dialectal families:
|
| 51 |
+
|
| 52 |
+
MSA: Modern Standard Arabic. This is a common official variant of Arabic used in news, books, and education. CA: Classical Arabic. This is an old variant of Arabic found on religious texts and old books. It resembles MSA, but also contains outdated lexical items and structures.
|
| 53 |
+
|
| 54 |
+
GLF: A broad category of dialects spoken in the Arabian Peninsula, in particular the Gulf region, which, in our data sources, include SAU: Saudi, KUW: Kuwait, UAE, OMA: Oman, QAT: Qatar, IRA: Iraq, and YEM: Yemen.
|
| 55 |
+
|
| 56 |
+
LEV: Levantine dialects, which, in our data sources, include SYR: Syria, JOR: Jordan, LEB: Lebanon, and PAL: Palestine.
|
| 57 |
+
|
| 58 |
+
NOR: North African dialects, including EGY: Egypt, TUN: Tunisia, MOR: Morocco, ALG: Algeria, MAU: Mauritania, and SUD: Sudanese.
|
| 59 |
+
|
| 60 |
+
# 3.2 Pre-Training Data & Settings
|
| 61 |
+
|
| 62 |
+
To examine the effect of pre-training data coverage on downstream performance, we pre-trained ArTST from scratchΒ² on both MSA and dialectal data. We sourced our data from various datasets, including: MGB2 (Ali et al., 2016), QASR (Mubarak et al., 2021) MGB3 (Ali et al., 2017), MGB5 (Ali et al., 2019), ClArTTS (Kulkarni et al., 2023), ASC (Halabi et al., 2016), and Common Voice (Ardila et al., 2020), SADA (Alharbi et al., 2024), and others. We also used MADAR (Bouamor et al., 2018) and NADI (Abdul-Mageed et al., 2023) text
|
| 63 |
+
|
| 64 |
+
<table><tr><td>Dataset</td><td>Dialect</td><td>Hours</td><td>Words</td></tr><tr><td>QASR</td><td>MSA</td><td>2000 hrs</td><td>13.33 M</td></tr><tr><td>MGB2</td><td>MSA</td><td>1000 hrs</td><td>7.31 M</td></tr><tr><td>MGB3[ASR]</td><td>EGY</td><td>2.83 hrs</td><td>18.93 K</td></tr><tr><td>MGB5[ASR]</td><td>MOR</td><td>6.74 hrs</td><td>56.97 K</td></tr><tr><td>SADA (Alharbi et al., 2024)</td><td>SAU</td><td>418 hrs</td><td>3.25 M</td></tr><tr><td>Mixat (Al Ali and Aldarmaki, 2024)</td><td>UAE</td><td>15 hrs</td><td>57.94 K</td></tr><tr><td>TARIC-SLU (Mdhaffar et al., 2024)</td><td>TUN</td><td>8 hrs</td><td>72.00 K</td></tr><tr><td rowspan="4">ParallelCorp (Almeman et al., 2013)</td><td>MSA</td><td>32 hrs</td><td>30.66K</td></tr><tr><td>GLF</td><td>32 hrs</td><td>27.26K</td></tr><tr><td>LEV</td><td>32 hrs</td><td>18.43K</td></tr><tr><td>EGY</td><td>32 hrs</td><td>48.56K</td></tr><tr><td rowspan="13">MASC (Al-Fetyani et al., 2021)</td><td>MSA</td><td>612.28 hrs</td><td>3.80 M</td></tr><tr><td>SAU</td><td>452.24 hrs</td><td>301.92 K</td></tr><tr><td>SYR</td><td>211.33 hrs</td><td>1.06 M</td></tr><tr><td>EGY</td><td>175.36 hrs</td><td>1.03 M</td></tr><tr><td>JOR</td><td>42.21 hrs</td><td>330.83 K</td></tr><tr><td>LEB</td><td>25.20 hrs</td><td>155.76 K</td></tr><tr><td>IRA</td><td>17.37 hrs</td><td>121.12 K</td></tr><tr><td>TUN</td><td>12.17 hrs</td><td>34.34 K</td></tr><tr><td>Multiple</td><td>10.57 hrs</td><td>80.08 K</td></tr><tr><td>UAE</td><td>9.87 hrs</td><td>6.42 K</td></tr><tr><td>MOR</td><td>8.60 hrs</td><td>58.38 K</td></tr><tr><td>PAL</td><td>6.17 hrs</td><td>45.35 K</td></tr><tr><td>KUW</td><td>4.04 hrs</td><td>32.37 K</td></tr></table>
|
| 65 |
+
|
| 66 |
+
Table 1: Summary of Dataset Statistics for Fine-Tuning: Hours of Audio, Word Counts, and Associated Dialects. Multiple is mix of several dialects not necessary from the listed dialects (no information from the source).
|
| 67 |
+
|
| 68 |
+
datasets for pretraining. In our experiments, we compare the following:
|
| 69 |
+
|
| 70 |
+
- v1: This variant is as described in Toyin et al. (2023), pretrained only on MSA.
|
| 71 |
+
- v2: In this variant, we use a mixture of MSA and dialectal data in pretraining.
|
| 72 |
+
- v3: In this variant, we use a mixture of MSA, dialectal, and multilingual data in pretraining.
|
| 73 |
+
|
| 74 |
+
See Table 12 in Appendix A for details of all the datasets used in pre-training.
|
| 75 |
+
|
| 76 |
+
# 3.3 Dialectal Fine-Tuning
|
| 77 |
+
|
| 78 |
+
The datasets we use for dialectal fine-tuning are shown in Table 1. We collected as many open-source data as needed to maximize coverage of dialects. Note that, for MGB5 and MGB3, as the data is based on YouTube videos, many of the originally referenced videos are no longer available, so at the time of our experiments, only 2.5 hours of training were available for MGB3 and 2 hours for MGB5. Furthermore, multi dialectal datasets, such as MASC (Al-Fetyani et al., 2021), have unbalanced representation of dialects. The high-resource dialects in our collection include SAU, SYR, EGY, and MSA; each has at least 200 hours of transcribed
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: Distribution of dialectal speech data in pretraining and fine-tuning. MSA data are not shown.
|
| 82 |
+
|
| 83 |
+
ASR data. UAE, MOR, JOR, LEB, IRA, and TUN have a medium amount of fine-tuning data between 10 and 50 hours. KUW and PAL are low-resource dialects with less than 10 hours of transcribed data in total. Finally, we left ALG, YEM, and SUD from the MASC dataset for zero-shot testing.
|
| 84 |
+
|
| 85 |
+
Figure 2 illustrates the distribution of dialectal data we use for pre-training and fine-tuning our dialectal model. We exclude MSA from the figure as it has disproportionately more data than all dialects.
|
| 86 |
+
|
| 87 |
+
# 3.4 Multi-Lingual Fine-Tuning
|
| 88 |
+
|
| 89 |
+
In addition to the above dialectal data, we used English, French, and Spanish sets for multi-lingual fine-tuning and code-switching experiments described in section 8. English and French are commonly spoken in various Arabic-speaking countries, and to a lesser extent, Spanish is spoken in some parts of North Africa. More details about the datasets used in these experiments are provided in section 8.
|
| 90 |
+
|
| 91 |
+
# 3.5 Experimental Settings
|
| 92 |
+
|
| 93 |
+
For partitioning the data into training, development, and test sets, we adhered to the official splits provided with each dataset. We followed the data preparation and training methodology established in the original ArTST implementation. For comprehensive details regarding the model architecture and data preprocessing, readers are directed to Toyin et al. (2023).
|
| 94 |
+
|
| 95 |
+
Computational Details The pre-training was executed on a cluster of 4 A100 GPUs over a duration of 14 to 21 days for each model. We used Adam optimizer with a learning rate of $2 \times 10^{-4}$ , spanning 335K updates, and a warm-up phase of 64K updates. The maximum speech token length was set at 250K (equivalent to 15.625 seconds). Each
|
| 96 |
+
|
| 97 |
+
fine-tuning experiment was run on one A100 GPU over a duration of 7 days (MGB2, QASR, MASC, SADA) or 2 days for smaller sets (MGB3, MGB5, etc.). We used Adam optimizer with a tri-stage scheduler with learning rate of $6 \times 10^{-5}$ . The total computational budget for all experiments is estimated to be $\sim 6000$ GPU-hours.
|
| 98 |
+
|
| 99 |
+
Normalization Prior to model training, we implemented the same data normalization steps outlined in Tojin et al. (2023). In addition, we applied post-prediction normalization steps before calculating Word Error Rates (WER), following standard practices in Arabic ASR. All reported results reflect post-normalization performance. The normalization script, sourced from a publicly available GitHub repository<sup>3</sup>, performs orthographic standardization of Alef, Yaa, and Taa characters.
|
| 100 |
+
|
| 101 |
+
# 4 Effect of Pre-Training Data
|
| 102 |
+
|
| 103 |
+
We first examine the effect of pre-training on downstream ASR performance. As described in section 3.2, we compare a model pre-trained mainly on MSA (ArTST v1), and our multi-dialectal version (henceforth v2). Note that pre-training does not utilize aligned speech and text; it incorporates unaligned speech and text data for self-supervised learning. For these experiments, we use the same finetuning data, and only vary the pretraining sets.
|
| 104 |
+
|
| 105 |
+
# 4.1 Benchmarking MSA Performance
|
| 106 |
+
|
| 107 |
+
We first report results on benchmark datasets to compare the performance of both models against the state-of-the-art. MGB2 is the main benchmark for MSA speech recognition. We evaluated the performance of ArTST v1 and v2 fine-tuned in MGB2, compared to existing SOTA models, in Table 2. The results show that incorporating dialectal data in pretraining does not negatively affect MSA performance, as we achieve the bestWER of $12.48\%$ and $12.39\%$ , with and without LM fusion.
|
| 108 |
+
|
| 109 |
+
# 4.2 Benchmarking Dialectal Performance
|
| 110 |
+
|
| 111 |
+
Tables 3 and 4 show the performance of the models on the dialectal MGB3 (Egyptian) and MGB5 (Moroccan) benchmarks. Each of these benchmarks contain multiple references as dialectal speech has no standard spelling. We report the average and multi-reference WER for our model variants, and compare against the best model in each challenge,
|
| 112 |
+
|
| 113 |
+
<table><tr><td>System</td><td>WER(%)</td><td>CER(%)</td></tr><tr><td colspan="3">From (Hussein et al., 2022):</td></tr><tr><td>HMM-DNN</td><td>15.80</td><td>β</td></tr><tr><td>E2E, CTC + LM</td><td>16.90</td><td>β</td></tr><tr><td>E2E, Attention + LM</td><td>13.40</td><td>β</td></tr><tr><td>E2E, CTC, Attention + LM</td><td>12.50</td><td>β</td></tr><tr><td>ArTST v1 + LM (Toyin et al., 2023)</td><td>12.78</td><td>6.33</td></tr><tr><td>v2</td><td>12.49</td><td>6.44</td></tr><tr><td>v2 + LM</td><td>12.39</td><td>6.51</td></tr></table>
|
| 114 |
+
|
| 115 |
+
Table 2: Comparing our performance against models reported in Hussein et al. (2022) and Toyin et al. (2023), which include the best performing models previously reported on MGB2.
|
| 116 |
+
|
| 117 |
+
<table><tr><td>System</td><td>Adaptation</td><td>Fine-Tuning</td><td>AV-WER</td><td>MR-WER</td></tr><tr><td>Aalto</td><td>MGB2</td><td>MGB3</td><td>37.50</td><td>29.30</td></tr><tr><td>Whisper</td><td>ComVoice
|
| 118 |
+
Fleurs
|
| 119 |
+
Covost2</td><td>MGB3</td><td>39.04</td><td>24.92</td></tr><tr><td>MMS</td><td>BibleTrans
|
| 120 |
+
NewTestamentRec</td><td>MGB3</td><td>100.04</td><td>99.92</td></tr><tr><td>v1</td><td>MGB2</td><td>MGB3</td><td>37.08</td><td>29.39</td></tr><tr><td>v2</td><td>MGB2</td><td>MGB3</td><td>33.20</td><td>25.28</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 3:WER(%) on MGB3 Egyptian ASR. Aalto is the best system in the MGB3 challenge (Ali et al., 2017)
|
| 123 |
+
|
| 124 |
+
<table><tr><td>System</td><td>Adaptation</td><td>Fine-Tuning</td><td>AV-WER</td><td>MR-WER</td></tr><tr><td>RDI-CU</td><td>MGB2</td><td>MGB5</td><td>59.40</td><td>37.60</td></tr><tr><td>Whisper</td><td>ComVoice
|
| 125 |
+
Fleurs
|
| 126 |
+
Covost2</td><td>MGB5</td><td>164.13</td><td>227.34</td></tr><tr><td>MMS</td><td>BibleTrans
|
| 127 |
+
NewTestamentRec</td><td>MGB5</td><td>111.89</td><td>102.30</td></tr><tr><td>v1</td><td>MGB2</td><td>MGB5</td><td>49.39</td><td>27.95</td></tr><tr><td>v2</td><td>MGB2</td><td>MGB5</td><td>48.91</td><td>28.02</td></tr></table>
|
| 128 |
+
|
| 129 |
+
Table 4: WER(%) on Moroccan ASR. RDI-CU is the best system in the MGB5 challenge (Ali et al., 2019)
|
| 130 |
+
|
| 131 |
+
as well as the SOTA model in each benchmark. Each model is first fine-tuned on MSA, then fine-tuned again on the target MGB train sets. We also report the results of the large multilingual models: Whisper (Radford et al., 2023) and MMS (Pratap et al., 2024), fine-tuned on the same set. We refer to the Arabic data the models are previously fine-tuned on as 'Adaptation' data. Starting with MSA data before fine-tuning on the target dialect has previously been established as an effective strategy for dialectal ASR (Ali et al., 2017).
|
| 132 |
+
|
| 133 |
+
In MGB3, dialectal pretraining (v2) results in about $4\%$ absolute reduction in WER, establishing a new SOTA result on this benchmark. Smaller improvement in terms of Average WER is observed
|
| 134 |
+
|
| 135 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="4">Zero-Shot</td><td colspan="2">Fine-Tuning</td></tr><tr><td>Whisper</td><td>MMS</td><td>v1</td><td>v2</td><td>v1</td><td>v2</td></tr><tr><td>TARIC-SLU (TUN)</td><td>138.14</td><td>93.54</td><td>107.56</td><td>106.46</td><td>14.70</td><td>14.80</td></tr><tr><td>ParallelCorp (MULT)</td><td>99.17</td><td>83.16</td><td>128.72</td><td>141.92</td><td>9.57</td><td>9.31</td></tr><tr><td>SADA (SAU)</td><td>82.16</td><td>78.28</td><td>39.41</td><td>29.77</td><td>39.24</td><td>29.91</td></tr><tr><td>MASC</td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>SAU</td><td>48.39</td><td>65.30</td><td>61.23</td><td>58.72</td><td>27.40</td><td>27.33</td></tr><tr><td>SYR</td><td>26.65</td><td>33.21</td><td>21.99</td><td>18.37</td><td>18.64</td><td>17.42</td></tr><tr><td>EGY</td><td>41.73</td><td>66.04</td><td>50.87</td><td>47.17</td><td>38.47</td><td>36.43</td></tr><tr><td>JOR</td><td>28.65</td><td>54.63</td><td>61.23</td><td>34.97</td><td>19.72</td><td>21.08</td></tr><tr><td>LEB</td><td>40.95</td><td>64.58</td><td>35.65</td><td>42.66</td><td>30.01</td><td>28.05</td></tr><tr><td>IRA</td><td>41.69</td><td>59.33</td><td>50.46</td><td>48.03</td><td>31.10</td><td>34.64</td></tr><tr><td>TUN</td><td>47.45</td><td>60.58</td><td>50.37</td><td>46.67</td><td>19.26</td><td>18.52</td></tr><tr><td>MOR</td><td>65.87</td><td>80.84</td><td>78.92</td><td>66.87</td><td>47.59</td><td>49.40</td></tr><tr><td>PAL</td><td>53.20</td><td>83.72</td><td>77.94</td><td>73.53</td><td>55.88</td><td>53.53</td></tr><tr><td>KUW</td><td>36.00</td><td>81.71</td><td>64.74</td><td>52.02</td><td>50.29</td><td>46.24</td></tr></table>
|
| 136 |
+
|
| 137 |
+
for MGB5, where there is no clear advantage observed using our dialectal version. This difference is likely a result of our pre-training having a lot more Egyptian than Moroccan data (see Figure 2).
|
| 138 |
+
|
| 139 |
+
# 4.3 Zero-Shot & Fine-Tuning Results
|
| 140 |
+
|
| 141 |
+
To further quantify the effect of dialectal pretraining, we evaluate the performance of our model across different datasets. We first fine-tune models on MSA using MGB2 dataset. We test the model performance on dialects directly (zero-shot) and with dialectal fine-tuning. The results are shown in Table 5. On average, we see improvements in performance in both zero-shot and fine-tuning experiments using dialectal pretraining (v2) compared to MSA-centric pretraining (v1). We also see that both models perform better than Whisper and MMS in zero-shot settings in most cases. There are some exceptions, such as in KUW, where Whisper performs better than all other models, including the fine-tuned models, but in most cases v2 performs best. This underscores the advantage of monolingual models compared to multilingual performance, as observed in Toyin et al. (2023) and Radford et al. (2023). In addition, the results underscore the importance of dialectal coverage in pretraining: the cases where v2 performs worse than v1 are all dialects for which pretraining data are limited, such as TUN (no pretraining data) and JOR (smallest dialect size in pretraining).
|
| 142 |
+
|
| 143 |
+
# 5 Joint Models & Dialect ID
|
| 144 |
+
|
| 145 |
+
So far, models were first fine-tuned on MSA, followed by additional fine-tuning on each target dialect. This results in a separate model per dialect, which incurs memory costs and may have practical limitations as it requires advance knowledge of the dialect ID for deploying the correct model.
|
| 146 |
+
|
| 147 |
+
In this section, we assess the relative effectiveness of individual dialectal fine-tuning compared with joint dialect fine-tuning, where we train a single model for all dialects. To that end, we joined multiple dialectal train sets from MASC, as shown in Table 6. We excluded ALG, YEM, SUD for zero-shot evaluation. The resulting joint corpus consists of 12 dialects including MSA, with approximately 1,501 hours in total. We fine-tuned a single joint model using this data.
|
| 148 |
+
|
| 149 |
+
Table 5: WER (%) in zero-shot and fine-tuning settings. We compare zero-shot performance of Whisper, MMS, ArTST v1, and Our dialectal pretraining (v2). ArTST v1 and v2 are finetuned on MGB2 (MSA), whereas Whisper and MMS are finetuned/pretrained with multi-lingual data, including Arabic.
|
| 150 |
+
|
| 151 |
+
<table><tr><td>Dialect</td><td>Hours</td><td>Words</td><td>Source</td></tr><tr><td>MSA</td><td>612.28 hrs</td><td>3.80 M</td><td>MASC</td></tr><tr><td>SAU</td><td>452.24 hrs</td><td>301.92 K</td><td>SADA, MASC</td></tr><tr><td>SYR</td><td>211.33 hrs</td><td>1.06 M</td><td>MASC</td></tr><tr><td>EGY</td><td>175.36 hrs</td><td>1.03 M</td><td>MGB3, MASC</td></tr><tr><td>JOR</td><td>42.21 hrs</td><td>330.83 K</td><td>MASC</td></tr><tr><td>LEB</td><td>25.20 hrs</td><td>155.76 K</td><td>MASC</td></tr><tr><td>IRA</td><td>17.37 hrs</td><td>121.12 K</td><td>MASC</td></tr><tr><td>TUN</td><td>12.17 hrs</td><td>34.34 K</td><td>TARIC-SLU, MASC</td></tr><tr><td>UAE</td><td>9.87 hrs</td><td>6.42 K</td><td>Mixat, MASC</td></tr><tr><td>MOR</td><td>8.60 hrs</td><td>58.38 K</td><td>MASC</td></tr><tr><td>PAL</td><td>6.17 hrs</td><td>45.35 K</td><td>MASC</td></tr><tr><td>KUW</td><td>4.04 hrs</td><td>32.37 K</td><td>MASC</td></tr></table>
|
| 152 |
+
|
| 153 |
+
Table 6: Datasets used to train the joint models.
|
| 154 |
+
|
| 155 |
+
<table><tr><td>Approach</td><td colspan="2">Zero-Shot</td><td>Fine-Tuning</td><td>No Dialect ID</td><td>Dialect Forcing</td><td>Dialect Inference</td></tr><tr><td>Fine-Tuning Data</td><td>MGB2</td><td>QASR</td><td>MGB2βTarget</td><td colspan="3">Joint Mutli-Dialectal Set (Table 6)</td></tr><tr><td>SAU</td><td>58.72</td><td>43.41</td><td>27.33</td><td>29.41</td><td>30.56</td><td>29.94</td></tr><tr><td>SYR</td><td>18.37</td><td>16.20</td><td>17.42</td><td>19.20</td><td>22.41</td><td>20.30</td></tr><tr><td>EGY</td><td>47.17</td><td>38.78</td><td>36.43</td><td>45.17</td><td>61.06</td><td>46.79</td></tr><tr><td>JOR</td><td>34.97</td><td>25.42</td><td>21.08</td><td>19.63</td><td>21.49</td><td>20.11</td></tr><tr><td>LEB</td><td>42.66</td><td>40.51</td><td>28.05</td><td>28.22</td><td>29.43</td><td>26.89</td></tr><tr><td>IRA</td><td>48.03</td><td>40.27</td><td>36.10</td><td>29.33</td><td>31.75</td><td>30.83</td></tr><tr><td>TUN</td><td>46.67</td><td>45.93</td><td>26.67</td><td>37.23</td><td>28.47</td><td>27.74</td></tr><tr><td>MOR</td><td>66.87</td><td>55.42</td><td>56.63</td><td>57.49</td><td>53.89</td><td>49.10</td></tr><tr><td>PAL</td><td>73.53</td><td>45.59</td><td>53.53</td><td>46.22</td><td>43.90</td><td>44.48</td></tr><tr><td>KUW</td><td>52.02</td><td>45.09</td><td>46.24</td><td>35.43</td><td>39.43</td><td>37.71</td></tr><tr><td>MSA</td><td>21.09</td><td>16.78</td><td>15.34</td><td>11.59</td><td>12.66</td><td>12.09</td></tr><tr><td>Macro Average</td><td>46.37</td><td>37.58</td><td>33.17</td><td>32.63</td><td>34.09</td><td>31.45</td></tr></table>
|
| 156 |
+
|
| 157 |
+
Table 7:WER $(\%)$ of various models compared with joint dialectal fine-tuning with different dialect ID strategies.
|
| 158 |
+
|
| 159 |
+
# 5.1 Dialect ID
|
| 160 |
+
|
| 161 |
+
We trained another model with the aforementioned joint dataset, but with the inclusion of explicit dialect identifiers. We augmented the dictionary with special tokens for dialect IDs, and used them to preprocess the decoding string:
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
< S > \text {D I A E C T} T _ {1} T _ {2} \dots T _ {n} < / S >
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
For inference, we experimented with two strategies: (1) Transcribing with dialect forcing, where we manually add the dialect ID to condition the decoder output; the decoder is forced to start predictions with the tokens $\langle S \rangle$ DIALECT. (2) Transcribing with dialect inference, where we let the model predict the dialect token. We use this approach for zero-shot ASR on unseen dialects (Table 9).
|
| 168 |
+
|
| 169 |
+
The results of the models trained with joint dialects compared to models trained on MGB2 and QASR are shown in Table 7. Note that both MGB2 and QASR contain mostly MSA, but also a small amounts of various dialects, but their exact distribution is unknown. We also reproduce the fine-tuning results from Table 5 for easy comparison. We see that joint modeling results in improvement for low-resource dialects, including: JOR, TUN, and KUW, but degrades performance of the high-resource SYR and EGY dialects. Interestingly, dialect forcing was worse on average than joint modeling with no dialect ID, while dialect inference resulted in the best performance overall. We surmise that the model learns dialectal patterns that do not perfectly align with the dialect ID as indicated in the training data. Since the dialect IDs are coarse country-level approximations, letting the model infer the dialect based on the speech is the best approach for most cases. Many dialectal sets, such as SYR and SAU, contain a lot of MSA utterances that are incorrectly identified as dialectal.
|
| 170 |
+
|
| 171 |
+
Figure 3 illustrates dialect inference errors. Note that the number of errors is proportional to the test data size. The overall dialect identification performance is around $90\%$ . Some low-resource dialects, such as KUW, are predicted as their closest high-resource variant, such as SAU, resulting in worse performance compared to joint models without a dialect ID, but on average, dialect forcing leads to the lowest WER.
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 3: Dialect identification performance: true (left), predicted (right). All lines are proportional to their ratio over the total errors except for SAU $\rightarrow$ MSA, which is reduced 5 times for clarity.
|
| 175 |
+
|
| 176 |
+
# 6 Effect of Data Adaptation
|
| 177 |
+
|
| 178 |
+
In the above experiments, we followed the strategy of initializing the models by first fine-tuning on MSA data. In most cases, we used MGB2 as the base model, following previously established results on Egyptian ASR (Ali et al., 2017). This adaptation approach is meant to enhance the performance on low-resource dialects, facilitating faster
|
| 179 |
+
|
| 180 |
+
<table><tr><td>Adaptation
|
| 181 |
+
Fine-Tuning</td><td>β</td><td>MGB2</td><td>QASR</td></tr><tr><td>MGB3</td><td>136.52</td><td>25.28</td><td>19.53</td></tr><tr><td>MGB5</td><td>94.84</td><td>28.02</td><td>27.58</td></tr><tr><td>TARIC-SLU</td><td>30.46</td><td>14.80</td><td>14.48</td></tr><tr><td>ParallelCorp</td><td>28.97</td><td>9.31</td><td>9.08</td></tr><tr><td>SADA</td><td>29.77</td><td>29.91</td><td>29.55</td></tr><tr><td>Mixat</td><td>100.0</td><td>33.40</td><td>35.21</td></tr></table>
|
| 182 |
+
|
| 183 |
+
convergence with limited training samples. However, as pre-training on more diverse sets proved to be effective, adaptation on more diverse data is also likely to be fruitful. As observed in Table 7, models trained on QASR resulted in far better zero-shot performance, approaching the performance of joint-dialects models. This is attributed to the fact that QASR is both larger in size and known to have more dialectal data compared to MGB2 (but both have no documented statistics of dialectal coverage). To validate this observation, we experimented with dialectal fine-tuning adapted from two variants: one based on MGB2 and one based on QASR (Mubarak et al., 2021), followed by dialect-specific fine-tuning. Table 4 shows fine-tuning results with no adaptation (directly fine-tuning on the target dialect), compared with starting from MGB2 or QASR. First, our results corroborate the previous findings that adapting models from MSA results in large reduction in error rates. In all except the Mixat dataset, starting from QASR results in better performance compared to MGB2. However, the difference is negligible except on MGB3 Egyptian set (around $6\%$ absolute WER reduction). There are two factors that we speculate underline this result: The small size of the MGB3 set, and the existence of Egyptian dialect in the QASR corpus more substantially than the other dialects. Overall, using the QASR dataset as a basis for adapting dialectal models is recommended as it improves or maintains performance.
|
| 184 |
+
|
| 185 |
+
# 7 Zero-Shot Performance
|
| 186 |
+
|
| 187 |
+
We show the zero-shot performance on the three held-out sets: ALG, SUD, and YEM. We compare the baseline, v1, with multi-dialectal pretraining (v2). We also compare models fine-tuned on MGB2, QASR, or our joint dialectal set. The results are shown in Table 9. Our model achieves slightly lower error rates compared to v1, even
|
| 188 |
+
|
| 189 |
+
Table 8:WER $(\%)$ of fine-tuned models on various datasets with different adaptation methods: β: no adaptation, MGB2, or QASR.
|
| 190 |
+
|
| 191 |
+
<table><tr><td>Dialect System</td><td>ALG</td><td>SUD</td><td>YEM</td></tr><tr><td>ArTST v1βMGB2</td><td>73.18</td><td>69.20</td><td>41.64</td></tr><tr><td>v2βMGB2</td><td>70.82</td><td>69.31</td><td>39.45</td></tr><tr><td>v2βQASR</td><td>51.72</td><td>46.64</td><td>34.78</td></tr><tr><td>v2βJoint</td><td>45.20</td><td>40.69</td><td>33.08</td></tr><tr><td>v2βJoint (w. dialect inference)</td><td>47.12</td><td>40.15</td><td>31.84</td></tr></table>
|
| 192 |
+
|
| 193 |
+
Table 9: WER% of various models on held-out dialects.
|
| 194 |
+
|
| 195 |
+
when fine-tuned on the same MGB2 set. Better performance is achieved with QASR, which includes some dialectal data. The joint dialectal fine-tuning achieves the best performance on the held-out dialects. In general, performance in held-out sets is on a par with low-resource dialects, with WER above $30\%$ . Table 13 in the Appendix shows the zero-shot performance after fine-tuning on a single target dialect.
|
| 196 |
+
|
| 197 |
+
# 8 Code-Switching Performance
|
| 198 |
+
|
| 199 |
+
The models analyzed so far were trained exclusively on Arabic data. While small amounts of code-switching (CS) exist in these sources, they are insufficient to learn the characteristics of the embedded languages. Large multi-lingual models are generally more effective on CS data (Kadaoui et al., 2024), even if they are less competent on monolingual Arabic. To make our models more inclusive, improving performance in the presence of code-switching is necessary. To that effect, we train a multilingual version of the model (we will refer to this as v3). The pre-training data for this version are listed in Table 12 in the Appendix. We test v3 against v1 and v2 on available CS data for Arabic: ArZN (Al-Sabbagh, 2024) for Egyptian-English speech, Mixat (Al Ali and Aldarmaki, 2024) for Emirati-English speech, and TunSwich (Abdallah et al., 2024) for Tunisian-French speech. We also train a joint multi-lingual model (without dialect or language ID). In addition to the datasets described in Table 6, we add the multi-lingual and code-switching data shown in Table 10.
|
| 200 |
+
|
| 201 |
+
In Table 11, we show the performance of models finetuned directly from the pretrained checkpoints, or finetuned from existing ASR checkpoints (MGB2 checkpoint for v1, joint multi-dialectal checkpoint for v2, and joint multi-lingual checkpoint for v3). First, for models fine-tuned directly on the target set, we observe that multilingual pretraining significantly improves performance across all CS test sets, resulting in more than $10\%$ ab
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Languages</td><td>Hours</td><td>Words</td><td>Source</td></tr><tr><td>EN</td><td>1601.92 hrs</td><td>10.35 M</td><td>CommonVoice</td></tr><tr><td>FR</td><td>732.02 hrs</td><td>5.03 M</td><td>CommonVoice</td></tr><tr><td>SP</td><td>408.34 hrs</td><td>2.79 M</td><td>CommonVoice</td></tr><tr><td>TUN-FR</td><td>10.89 hrs</td><td>70.86 K</td><td>TunSwitch</td></tr><tr><td>UAE-EN</td><td>8.97 hrs</td><td>57.82 K</td><td>Mixat</td></tr><tr><td>EGY-EN</td><td>5.61 hrs</td><td>52.00 K</td><td>ArzEn</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 10: Additional datasets used to train the joint multilingual model.
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Adaptation data</td><td>-</td><td>-</td><td>-</td><td>MSA</td><td>Dialectal</td><td>Multilingual</td></tr><tr><td>Test Set</td><td>v1</td><td>v2</td><td>v3</td><td>v1</td><td>v2</td><td>v3</td></tr><tr><td>MGB2</td><td>13.42</td><td>12.5</td><td>13.0</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ArzEn</td><td>43.21</td><td>77.59</td><td>35.26</td><td>34.85</td><td>33.71</td><td>27.43</td></tr><tr><td>TunSwitch</td><td>53.85</td><td>101.94</td><td>40.68</td><td>43.87</td><td>43.59</td><td>36.66</td></tr><tr><td>Mixat</td><td>42.50</td><td>92.41</td><td>34.27</td><td>27.07</td><td>25.73</td><td>21.66</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Table 11: ASR Results using the various checkpoints: v1, v2 and v3. We compare models trained directly from the pretrained checkpoint vs. starting with an ASR checkpoint trained with the specified adaptation data: MSA adaptation using the MGB2 dataset; Dialectal adaptation using data listed in Table 6; Multilingual adaptation using data from Table 6 and Table 10.
|
| 210 |
+
|
| 211 |
+
solute reductions in WER for all test sets. This clearly illustrates the advantage of multi-lingual pretraining in code-switching scenarios. We also evaluated models initialized from the joint models followed by target fine-tuning on the CS train sets, and this reduced error rates further. The best performing model is the joint multilingual v3 mode, with 4 to $7\%$ absolute reduction in WER compared to the second best model. We show examples of ASR outputs from the three CS datasets using the various models in Figure 6 in the Appendix.
|
| 212 |
+
|
| 213 |
+
Language Interference: We test the effect of multi-lingual pre-training on MSA performance. Language interference is known to negatively affect monolingual performance (Toyin et al., 2023), so we test our multilingual model on the MGB2 benchmark to quantify this effect (see Table 11). The model achieves $13.0\%$ WER, which is indeed worse than the SOTA result we achieve with the Arabic-only model (see Table 2), but the difference at $0.5\%$ absolute WER is rather small. When it comes to dialects, however, we find that language interference has a significant negative effect, resulting in $4\%$ to $16\%$ absolute increase in error rates, as shown in Figure 4.
|
| 214 |
+
|
| 215 |
+
# 9 Conclusions
|
| 216 |
+
|
| 217 |
+
We presented the largest study on dialectal Arabic ASR to empirically demonstrate the effect of
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 4: WER (\%) and absolute difference on a subset of dialects, comparing our joint dialectal fine-tuning vs. joint multi-lingual fine-tuning on Arabic dialects.
|
| 221 |
+
|
| 222 |
+
various training paradigms on ASR performance. We compared models pre-trained with and without dialects, in high, low, and medium-resource settings, in addition to zero-shot. We find that overall, dialectal pre-training improves performance in zero-shot and low-resource cases, and mostly maintains performance on MSA and high-resource dialects. We also find that all dialects benefit from adaptation of models pre-fine-tuned on MSA, and this effect is most noticeable for low and medium-resource dialects. We experimented with multi-dialectal fine-tuning, where we joined the train sets of 12 dialects. We observe performance improvements on average, and at least the same performance as the target-dialect fine-tuning setting, and the best performance on held-out dialects. Interestingly, while using dialect ID in decoding is effective, forcing the dialect ID results in worse performance compared to dialect inference. While joint training results in improved performance for the medium and low-resource dialects, target-dialect fine-tuning is more effective for high-resource dialects. Finally, we experimented with multi-lingual pre-training and fine-tuning for improving performance on code-switched utterances, and achieved significant reductions in error rates on all available test sets. However, reductions in monolingual performance were also observed due to language interference, particularly for dialects, were WER increased by $4\%$ to $16\%$ for some dialects. To enable easier adoption and further experiments, we released the pretrained dialectal and multilingual checkpoints, the fine-tuned MGB2 models, and the joint dialectal and multilingual ASR models.
|
| 223 |
+
|
| 224 |
+
# Limitations
|
| 225 |
+
|
| 226 |
+
One of the limitations in dialect-related work is the coarse classification of dialect IDs; dialects in our datasets are classified by regions or countries, whereas actual dialectal variations are far more fine-grained. For example, the Saudi dataset, SADA, covers a large geographical area and many dialects, but it is considered as one dialect based on our classification. Moreover, the way the datasets are collected do not guarantee that the data are indeed dialectal. For instance, with manual inspection of the Syrian test and dev sets from MASC, we observed that all instances are in MSA rather than Syrian dialects. In addition, Arabic dialects are spoken varieties that do not have a standard spelling system. This results in large variations in transcriptions, but standard WER does not account for these variations, resulting in more pessimistic results. With the exception of the MGB3 and MGB5 benchmarks where we report average and multi-reference WER across 4 references, all datasets have only a single reference.
|
| 227 |
+
|
| 228 |
+
# References
|
| 229 |
+
|
| 230 |
+
Ahmed Amine Ben Abdallah, Ata Kabboudi, Amir Kanoun, and Salah Zaiem. 2024. Leveraging data collection and unsupervised learning for code-switched tunisian arabic automatic speech recognition. In ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 12607-12611. IEEE.
|
| 231 |
+
Muhammad Abdul-Mageed, AbdelRahim Elmadany, Chiyu Zhang, El Moatez Billah Nagoudi, Houda Bouamor, and Nizar Habash. 2023. NADI 2023: The fourth nuanced Arabic dialect identification shared task. In Proceedings of ArabicNLP 2023, Singapore (Hybrid). Association for Computational Linguistics.
|
| 232 |
+
Maryam Khalifa Al Ali and Hanan Aldarmaki. 2024. Mixat: A data set of bilingual emirati-English speech. In Proceedings of the 3rd Annual Meeting of the Special Interest Group on Under-resourced Languages @ LREC-COLING 2024.
|
| 233 |
+
Mohammad Al-Fetyani, Muhammad Al-Barham, Gheith Abandah, Adham Alsharkawi, and Maha Dawas. 2021. Masc: Massive arabic speech corpus.
|
| 234 |
+
Rania Al-Sabbagh. 2024. Arzen-multigene: An aligned parallel dataset of egyptian arabic song lyrics, novels, and subtitles, with english translations. Data in Brief.
|
| 235 |
+
Sadeen Alharbi, Areeb Alowisheq, Zoltan Tuske, Kareem Darwish, Abdullah Alrajeh, Abdulmajeed Alrowithi, Aljawharah Bin Tamran, Asma Ibrahim,
|
| 236 |
+
|
| 237 |
+
Raghad Aloraini, Raneem Alnajim, Ranya Alkahtani, Renad Almuasaad, Sara Alrasheed, Shaykhah Alsubaie, and Yaser Alonaizan. 2024. Sada: Saudi audio dataset for arabic. In ICASSP 2024 - 2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 10286-10290.
|
| 238 |
+
Ahmed Ali, Peter Bell, James Glass, Yacine Messaoui, Hamdy Mubarak, Steve Renals, and Yifan Zhang. 2016. The mgb-2 challenge: Arabic multi-dialect broadcast media recognition. In 2016 IEEE Spoken Language Technology Workshop (SLT). IEEE.
|
| 239 |
+
Ahmed Ali, Suwon Shon, Younes Samih, Hamdy Mubarak, Ahmed Abdelali, James Glass, Steve Renals, and Khalid Choukri. 2019. The mgb-5 challenge: Recognition and dialect identification of dialectal arabic speech. In 2019 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU). IEEE.
|
| 240 |
+
Ahmed Ali, Stephan Vogel, and Steve Renals. 2017. Speech recognition challenge in the wild: Arabic mgb-3. In 2017 IEEE Automatic Speech Recognition and Understanding Workshop (ASRU). IEEE.
|
| 241 |
+
Khalid Almeman, Mark Lee, and Ali Abdulrahman Almiman. 2013. Multi dialect arabic speech parallel corpora. In 2013 1st International Conference on Communications, Signal Processing, and their Applications (ICCSPA).
|
| 242 |
+
Junyi Ao, Rui Wang, Long Zhou, Chengyi Wang, Shuo Ren, Yu Wu, Shujie Liu, Tom Ko, Qing Li, Yu Zhang, Zhihua Wei, Yao Qian, Jinyu Li, and Furu Wei. 2022. SpeechT5: Unified-modal encoder-decoder pre-training for spoken language processing. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5723-5738, Dublin, Ireland. Association for Computational Linguistics.
|
| 243 |
+
Rosana Ardila, Megan Branson, Kelly Davis, Michael Kohler, Josh Meyer, Michael Henrtty, Reuben Morais, Lindsay Saunders, Francis Tyers, and Gregor Weber. 2020. Common voice: A massively-multilingual speech corpus. In Proceedings of the Twelfth Language Resources and Evaluation Conference, pages 4218-4222.
|
| 244 |
+
Arun Babu, Changhan Wang, Andros Tjandra, Kushal Lakhotia, Qiantong Xu, Naman Goyal, Kritika Singh, Patrick von Platen, Yatharith Saraf, Juan Pino, et al. 2022. Xls-r: Self-supervised cross-lingual speech representation learning at scale. In Proc. Interspeech 2022, pages 2278-2282.
|
| 245 |
+
Alexei Baevski, Yuhao Zhou, Abdelrahman Mohamed, and Michael Auli. 2020. wav2vec 2.0: A framework for self-supervised learning of speech representations. Advances in neural information processing systems.
|
| 246 |
+
Houda Bouamor, Nizar Habash, Mohammad Salameh, Wajdi Zaghouani, Owen Rambow, Dana Abdulrahim, Ossama Obeid, Salam Khalifa, Fadhl Eryani, Alexander Erdmann, and Kemal Oflazer. 2018. The
|
| 247 |
+
|
| 248 |
+
MADAR Arabic dialect corpus and lexicon. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018), Miyazaki, Japan. European Language Resources Association (ELRA).
|
| 249 |
+
Amira Dhouib, Achraf Othman, Oussama El Ghoul, Mohamed Koutheair Khribi, and Aisha Al Sinani. 2022. Arabic automatic speech recognition: a systematic literature review. Applied Sciences, 12(17):8898.
|
| 250 |
+
Nawar Halabi et al. 2016. Arabic speech corpus. Oxford Text Archive Core Collection.
|
| 251 |
+
Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, and Abdelrahman Mohamed. 2021. Hubert: Self-supervised speech representation learning by masked prediction of hidden units. IEEE/ACM Transactions on Audio, Speech, and Language Processing.
|
| 252 |
+
Amir Hussein, Shinji Watanabe, and Ahmed Ali. 2022. Arabic speech recognition by end-to-end, modular systems and human. Computer Speech & Language, 71:101272.
|
| 253 |
+
Karima Kadaoui, Maryam Al Ali, Hawau Olamide Toyin, Ibrahim Mohammed, and Hanan Aldarmaki. 2024. PolyWER: A holistic evaluation framework for code-switched speech recognition. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 6144-6153, Miami, Florida, USA. Association for Computational Linguistics.
|
| 254 |
+
Ajinkya Kulkarni, Atharva Kulkarni, Sara Abedalmon'em Mohammad Shatnawi, and Hanan Aldarmaki. 2023. Clartts: An open-source classical arabic text-to-speech corpus. In 2023 INTERSPEECH.
|
| 255 |
+
Salima Mdhaffar, Fethi Bougares, Renato de Mori, Salah Zaiem, Mirco Ravanelli, and Yannick Esteve. 2024. TARIC-SLU: A Tunisian benchmark dataset for spoken language understanding. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), pages 15606-15616, Torino, Italia. ELRA and ICCL.
|
| 256 |
+
Hamdy Mubarak, Amir Hussein, Shammur Absar Chowdhury, and Ahmed Ali. 2021. QASR: QCRI aljazeera speech resource a large scale annotated Arabic speech corpus. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 2274-2285, Online. Association for Computational Linguistics.
|
| 257 |
+
Vineel Pratap, Andros Tjandra, Bowen Shi, Paden Tomasello, Arun Babu, Sayani Kundu, Ali Elkahky, Zhaoheng Ni, Apoorv Vyas, Maryam Fazel-Zarandi, et al. 2024. Scaling speech technology to 1,000+ languages. Journal of Machine Learning Research.
|
| 258 |
+
Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, and Ilya Sutskever. 2023.
|
| 259 |
+
|
| 260 |
+
Robust speech recognition via large-scale weak supervision. In International conference on machine learning, pages 28492-28518. PMLR.
|
| 261 |
+
Steffen Schneider, Alexei Baevski, Ronan Collobert, and Michael Auli. 2019. wav2vec: Unsupervised pretraining for speech recognition. In Proc. Interspeech 2019, pages 3465-3469.
|
| 262 |
+
Barbara Schuppler, Martine Adda-Decker, Catia Cucchiarini, and Rudolf Muhr. 2024. An introduction to pluricentric languages in speech science and technology. Speech Communication, 156:103007.
|
| 263 |
+
Hawau Olamide Toyin, Amirbek Djanibekov, Ajinkya Kulkarni, and Hanan Aldarmaki. 2023. ArTST: Arabic text and speech transformer. In Proceedings of ArabicNLP 2023, pages 41-51, Singapore (Hybrid). Association for Computational Linguistics.
|
| 264 |
+
Abdul Waheed, Karima Kadaoui, and Muhammad Abdul-Mageed. 2024. To distill or not to distill? on the robustness of robust knowledge distillation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12603-12621.
|
| 265 |
+
Abdul Waheed, Bashar Talafha, Peter Sullivan, Abdel-Rahim Elmadany, and Muhammad Abdul-Mageed. 2023. VoxArabica: A robust dialect-aware Arabic speech recognition system. In Proceedings of ArabicNLP 2023, pages 441-449, Singapore (Hybrid). Association for Computational Linguistics.
|
| 266 |
+
Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, and Xuedong Huang. 2021. Unispeech: Unified speech representation learning with labeled and unlabeled data. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, Proceedings of Machine Learning Research. PMLR.
|
| 267 |
+
|
| 268 |
+
# A Pre-Training Dataset Statistics
|
| 269 |
+
|
| 270 |
+
Table 12 shows the complete list of datasets used for pre-training v1, v2, and v3.
|
| 271 |
+
|
| 272 |
+
<table><tr><td>Dataset</td><td>Dialect</td><td>Hours</td><td>Words</td><td>v1</td><td>v2</td><td>v3</td></tr><tr><td>ASC</td><td>MSA</td><td>3.7 hrs</td><td>20.58 K</td><td></td><td>β</td><td>β</td></tr><tr><td>ArzEn[cs]</td><td>EGY</td><td>5.61 hrs</td><td>52.00 K</td><td></td><td></td><td>β</td></tr><tr><td>CommonVoice</td><td>Dialect Mix</td><td>133.24 hrs</td><td>494.83 K</td><td></td><td>β</td><td>β</td></tr><tr><td rowspan="3">CommonVoice</td><td>ENG</td><td>1601.92</td><td>10.35 M</td><td></td><td></td><td>β</td></tr><tr><td>FR</td><td>732.02</td><td>5.03 M</td><td></td><td></td><td>β</td></tr><tr><td>ES</td><td>408.34</td><td>2.79 M</td><td></td><td></td><td>β</td></tr><tr><td>ClArTTS</td><td>CA</td><td>12 hrs</td><td>76.31 K</td><td></td><td>β</td><td>β</td></tr><tr><td rowspan="12">MASC</td><td>EGY</td><td>175.36 hrs</td><td>1.03 M</td><td></td><td></td><td>β</td></tr><tr><td>IRA</td><td>17.37 hrs</td><td>121.12 K</td><td></td><td></td><td>β</td></tr><tr><td>JOR</td><td>42.21 hrs</td><td>330.83 K</td><td></td><td></td><td>β</td></tr><tr><td>KUW</td><td>4.04 hrs</td><td>32.37 K</td><td></td><td></td><td>β</td></tr><tr><td>LEB</td><td>25.20 hrs</td><td>155.76 K</td><td></td><td></td><td>β</td></tr><tr><td>MOR</td><td>8.60 hrs</td><td>58.38 K</td><td></td><td></td><td>β</td></tr><tr><td>MSA</td><td>612.28 hrs</td><td>3.80 M</td><td></td><td></td><td>β</td></tr><tr><td>PAL</td><td>6.17 hrs</td><td>45.35 K</td><td></td><td></td><td>β</td></tr><tr><td>SAU</td><td>452.24 hrs</td><td>301.92 K</td><td></td><td></td><td>β</td></tr><tr><td>SYR</td><td>211.33 hrs</td><td>1.06 M</td><td></td><td></td><td>β</td></tr><tr><td>TUN</td><td>12.17 hrs</td><td>34.34 K</td><td></td><td></td><td>β</td></tr><tr><td>UAE</td><td>9.87 hrs</td><td>6.42 K</td><td></td><td></td><td>β</td></tr><tr><td>MGB2</td><td>Mostly MSA</td><td>1000 hrs</td><td>7.31 M</td><td>β</td><td>β</td><td>β</td></tr><tr><td>QASR</td><td>Mostly MSA</td><td>2000 hrs</td><td>13.33 M</td><td></td><td>β</td><td></td></tr><tr><td>MGB3[ASR]</td><td>EGY</td><td>2.83 hrs</td><td>18.93 K</td><td></td><td>β</td><td></td></tr><tr><td rowspan="5">MGB3[ADI]</td><td>EGY</td><td>11.15 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>GLF</td><td>8.92 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>LAV</td><td>9.27 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>MSA</td><td>9.39 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>NOR</td><td>9.49 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>MGB5[ASR]</td><td>MOR</td><td>115.7hrs</td><td>β</td><td></td><td>β</td><td></td></tr><tr><td rowspan="17">MGB5[ADI]</td><td>ALG</td><td>115.7hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>EGY</td><td>451.1 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>IRA</td><td>815.8 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>JOR</td><td>25.9 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>KSA</td><td>186.1 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>KUW</td><td>108.2 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>LEB</td><td>116.8 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>LIB</td><td>127.4 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>MAU</td><td>456.4 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>MOR</td><td>57.8 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>OMA</td><td>58.5 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>PAL</td><td>121.4 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>QAT</td><td>62.3 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>SUD</td><td>47.7 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>SYR</td><td>119.5 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>UAE</td><td>108.4 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>YEM</td><td>53.4 hrs</td><td>β</td><td></td><td>β</td><td>β</td></tr><tr><td>Mixat[cs]</td><td>UAE</td><td>9.97 hrs</td><td>57.82 K</td><td></td><td></td><td>β</td></tr><tr><td rowspan="4">ParallelCorp</td><td>EGY</td><td>32 hrs</td><td>48.56 K</td><td></td><td></td><td>β</td></tr><tr><td>GLF</td><td>32 hrs</td><td>27.26 K</td><td></td><td></td><td>β</td></tr><tr><td>LEV</td><td>32 hrs</td><td>18.43 K</td><td></td><td></td><td>β</td></tr><tr><td>MSA</td><td>32 hrs</td><td>30.66 K</td><td></td><td></td><td>β</td></tr><tr><td rowspan="3">MADAR</td><td>MOR ALG TUN</td><td rowspan="3">β</td><td rowspan="3">532.37K</td><td></td><td rowspan="3">β</td><td rowspan="3">β</td></tr><tr><td>LIB EGY LEV</td><td></td></tr><tr><td>IRA GLF YEM</td><td></td></tr><tr><td rowspan="6">NADI</td><td>ALG BAH EGY</td><td rowspan="6">β</td><td rowspan="6">702.67K</td><td></td><td rowspan="6">β</td><td rowspan="6">β</td></tr><tr><td>IRA JOR KUW</td><td></td></tr><tr><td>LEB LIB MOR</td><td></td></tr><tr><td>OMN PAL QAT</td><td></td></tr><tr><td>SAU SUD SYR</td><td></td></tr><tr><td>TUN UAE YEM</td><td></td></tr><tr><td>SADA</td><td>SAU</td><td>417.63 hrs</td><td>3.26M</td><td></td><td></td><td>β</td></tr><tr><td>TARIC-SLU</td><td>TUN</td><td>6.81 hrs</td><td>53.48K</td><td></td><td></td><td>β</td></tr><tr><td>TunSwitch[cs]</td><td>TUN</td><td>10.89 hrs</td><td>70.86K</td><td></td><td></td><td>β</td></tr><tr><td>VoxBlink</td><td>Dialect Mix</td><td>19.92 hrs</td><td>β</td><td></td><td></td><td>β</td></tr></table>
|
| 273 |
+
|
| 274 |
+
# B Inference examples
|
| 275 |
+
|
| 276 |
+
Figure 5 lists examples of ASR outputs using the dialect-specific fine-tuned models. Note that the 'errors' in SAU, EGY, and JOR examples are in fact alternative spellings.
|
| 277 |
+
|
| 278 |
+
Table 12: Summary of Dataset Statistics for Pre-Training: Hours of Audio, Word Counts, and Associated Dialects. $[cs]$ refers to Code Switching datasets. $[txt]$ refers to textual datasets.
|
| 279 |
+
|
| 280 |
+
<table><tr><td>Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 281 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 282 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 283 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 284 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 285 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 286 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 287 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 288 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 289 |
+
Ψ§ΩΨ₯Ψ³ΨͺΨΉΩ
Ψ§Ω
|
| 290 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 291 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 292 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 293 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 294 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 295 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 296 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 297 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 298 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 299 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 300 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 301 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 302 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 303 |
+
Ψ§ΩΨ₯Ψ³ΨͺUTION
|
| 304 |
+
Ψ§Ω,en
|
| 305 |
+
Ψ§Ω,en
|
| 306 |
+
Ψ§Ω,en
|
| 307 |
+
Ψ§Ω,en
|
| 308 |
+
Ψ§Ω,en
|
| 309 |
+
Ψ§Ω,en
|
| 310 |
+
Ψ§Ω,en
|
| 311 |
+
Ψ§Ω,en
|
| 312 |
+
Ψ§Ω,en
|
| 313 |
+
Ψ§Ω,en
|
| 314 |
+
Ψ§Ω,en
|
| 315 |
+
Ψ§Ω,en
|
| 316 |
+
Ψ§Ω,en
|
| 317 |
+
Ψ§Ω,en
|
| 318 |
+
Ψ§Ω,en
|
| 319 |
+
Ψ§Ω,en
|
| 320 |
+
Ψ§Ω,en
|
| 321 |
+
Ψ§Ω,en
|
| 322 |
+
Ψ§Ω,en
|
| 323 |
+
Ψ§Ω,en
|
| 324 |
+
Ψ§Ω,en
|
| 325 |
+
Ψ§Ω,en
|
| 326 |
+
Ψ§Ω,en
|
| 327 |
+
Ψ§Ω,en
|
| 328 |
+
Ψ§Ω,en
|
| 329 |
+
Ψ§Ω,en
|
| 330 |
+
Ψ§Ω,en
|
| 331 |
+
Ψ§Ω,en
|
| 332 |
+
Ψ§Ω,en
|
| 333 |
+
Ψ§Ω,en
|
| 334 |
+
Ψ§Ω,en
|
| 335 |
+
Ψ§Ω,en
|
| 336 |
+
Ψ§Ω,en
|
| 337 |
+
Ψ§Ω,en</td></tr><tr><td>(SAU)</td></tr><tr><td>(SYR)</td></tr><tr><td>(EGY)</td></tr><tr><td>(JOR)</td></tr><tr><td>(LEB)</td></tr><tr><td>(IRA)</td></tr><tr><td>(TUN)</td></tr><tr><td>(MOR)</td></tr><tr><td>(PAL)</td></tr><tr><td>(KUW)</td></tr></table>
|
| 338 |
+
|
| 339 |
+
Figure 5: Examples of dialectal recognition after targeted fine-tuning, following MGB2 adaptation.
|
| 340 |
+
|
| 341 |
+
Figure 6 shows example outputs from each model on the code-switching datasets: ArzEn (Egyptian-English), TunSwitch (Tunisian-French), and Mixat (Emirati-English).
|
| 342 |
+
|
| 343 |
+
# C Cross-Dialectal Performance
|
| 344 |
+
|
| 345 |
+
Table 13 shows the cross-dialectal performance, where models trained on a single target dialect are tested on other dialects, including the three held-out sets: ALG, SUD, and YEM. In most cases, the best performance is achieved by the model trained on the same target dialect (the diagonal in Table 13). However, for low-resource dialects, like KUW and PAL, the model trained on SAU achieved the lowest WER. This is likely a result of the large size of the SAU train set and the wide geographical area and dialectal variants it covers. Curiously, all models perform well on the SYR test set; upon close inspection, we found that the set consists mostly of MSA utterances, which explains the result since all models are adapted from MSA.
|
| 346 |
+
|
| 347 |
+
# ArzEn
|
| 348 |
+
|
| 349 |
+
pre-training
|
| 350 |
+
|
| 351 |
+
ARTSTV1: 'IglaLo IgIgauan intervies a a a Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn Jn J
|
| 352 |
+
|
| 353 |
+
ArTSTV2:1gjyull g0uulljzuluea uulnssuul yolouo' 5j aalee buiu oaaee
|
| 354 |
+
|
| 355 |
+
ARTSTV3: 'IgLaag yIgIglaa interviews aI gIgLaIgLaIgLaIgLaIgLaIg' personality JI galalgKgagalalagJll Iglalg' 1st alol cagccl
|
| 356 |
+
|
| 357 |
+
adaptation
|
| 358 |
+
|
| 359 |
+
ARTSTV1: Iglas y Iglas interveic<unk> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 'personality jll gals lgalsgalsa galsa aull wll gaj
|
| 360 |
+
'jla alale aag pecilc
|
| 361 |
+
|
| 362 |
+
ARSTv2: 'Igaa aIgaii interviews aJbJbJcIaIgaa IaIa JbJbJcI'
|
| 363 |
+
'Agcty presonality,JI aIgaiIgaiIgaiIgaiIgaiIgaiIgai
|
| 364 |
+
|
| 365 |
+
ARTSTv3: 'Iglaas a IgSiaa interviews a 12 jnuuue uauuua'
|
| 366 |
+
'personality.jpalao Igalac g agalabu uU uU Ugay
|
| 367 |
+
'slal aloc uauuus
|
| 368 |
+
|
| 369 |
+
Reference: 'Igaaas IgSaai interviews aajn lca Igaa laa'
|
| 370 |
+
personality jpalagai gaaalaylll wll lgaye'
|
| 371 |
+
|
| 372 |
+
# TunSwitch
|
| 373 |
+
|
| 374 |
+
pre-training
|
| 375 |
+
|
| 376 |
+
ArTSTv1: $\left\{ \begin{array}{l} \text{a} \leqslant \text{c} \\ \text{g} \leqslant \text{g} \end{array} \right.$ <unk>forme g a <unk>aire
|
| 377 |
+
|
| 378 |
+
ArTSTv2: $\mathcal{A}$ 000000000000000000000000000000000000000
|
| 379 |
+
|
| 380 |
+
ArTStv3: $\omega_{\mathrm{d}^{\prime}\mathrm{d}^{\prime}}$ des formes g a daire $\omega_{\mathrm{g}}$ Lg
|
| 381 |
+
|
| 382 |
+
adaptation
|
| 383 |
+
|
| 384 |
+
ArTSTv1: \(\{a\omega ,c\omega ,d\omega ,g\omega ,h\omega ,l\omega ,e\omega ,f\omega ,g\omega ,h\omega ,l\omega ,e\omega ,f\omega ,g\omega ,h\omega ,l\omega ,e\omega ,f\omega ,g\omega ,h\omega ,l\omega ,e\omega ,f\omega ,g\omega ,h\omega ,l\omega ,e\omega ,f\omega ,g\omega ,h\omega ,l\omega ,e\omega ,
|
| 385 |
+
|
| 386 |
+
ArTSTv2: $\omega_{\mathrm{g}}$ des formes g adaire $\omega_{\mathrm{g}}$ Log
|
| 387 |
+
|
| 388 |
+
ArTSTv3:"gds gds des formes g dailleur Log
|
| 389 |
+
|
| 390 |
+
Reference: 15.2.3.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.2.
|
| 391 |
+
|
| 392 |
+
# Mixat
|
| 393 |
+
|
| 394 |
+
pre-training
|
| 395 |
+
|
| 396 |
+
ArTSTV1: 'J Jnnn nn nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
|
| 397 |
+
|
| 398 |
+
ArTSTv2: 100000000000000000000000000000000000000000000000000000000000000
|
| 399 |
+
|
| 400 |
+
ArTSTv3: $\mathbb{J}$ JI JSSS SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
|
| 401 |
+
|
| 402 |
+
adaptation
|
| 403 |
+
|
| 404 |
+
ArTSTv1:2gJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJgJg
|
| 405 |
+
|
| 406 |
+
ArTSTv2: 's w q aq s q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q q qu 1
|
| 407 |
+
|
| 408 |
+
ArTStv3: 'jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai jai
|
| 409 |
+
|
| 410 |
+
Reference: 'level two level three level four' 'level three'
|
| 411 |
+
|
| 412 |
+
Figure 6: Examples of code-switching samples from each of the code-switching dataset using (a) pre-training checkpoints fine-tuned on CS data directly, and (2) adapted models after fine-tuning on general data: v1 (MGB2), v2 (Dialectal data from Table 6), and v3 (dialectal data from Table 6 + Multilingual and CS data from Table 10).
|
| 413 |
+
|
| 414 |
+
<table><tr><td rowspan="2"></td><td rowspan="2">Dialect</td><td colspan="11">Fine-Tuning Set</td></tr><tr><td>SAU(%)</td><td>SYR(%)</td><td>EGY(%)</td><td>JOR(%)</td><td>LEB(%)</td><td>IRA(%)</td><td>TUN(%)</td><td>MOR(%)</td><td>PAL(%)</td><td>KUW(%)</td><td>UAE(%)</td></tr><tr><td rowspan="10">test set</td><td>SAU</td><td>27.33</td><td>53.88</td><td>63.24</td><td>43.95</td><td>56.64</td><td>46.10</td><td>49.36</td><td>50.02</td><td>45.48</td><td>46.85</td><td>46.14</td></tr><tr><td>SYR</td><td>19.54</td><td>17.42</td><td>23.91</td><td>16.88</td><td>25.71</td><td>16.85</td><td>24.36</td><td>17.58</td><td>16.86</td><td>17.38</td><td>17.53</td></tr><tr><td>EGY</td><td>38.07</td><td>53.43</td><td>36.43</td><td>40.08</td><td>51.61</td><td>41.37</td><td>45.58</td><td>43.88</td><td>40.41</td><td>41.88</td><td>40.38</td></tr><tr><td>JOR</td><td>22.88</td><td>30.37</td><td>34.14</td><td>21.08</td><td>28.11</td><td>28.68</td><td>32.96</td><td>30.50</td><td>25.25</td><td>27.88</td><td>28.05</td></tr><tr><td>LEB</td><td>41.03</td><td>42.53</td><td>53.23</td><td>39.07</td><td>28.05</td><td>41.23</td><td>48.53</td><td>42.34</td><td>41.55</td><td>42.14</td><td>40.97</td></tr><tr><td>IRA</td><td>35.18</td><td>49.10</td><td>56.91</td><td>40.47</td><td>46.72</td><td>36.10</td><td>47.84</td><td>42.55</td><td>40.76</td><td>41.00</td><td>42.16</td></tr><tr><td>TUN</td><td>44.44</td><td>57.78</td><td>51.85</td><td>46.67</td><td>45.19</td><td>45.19</td><td>26.67</td><td>44.44</td><td>47.41</td><td>46.67</td><td>47.41</td></tr><tr><td>MOR</td><td>59.04</td><td>71.69</td><td>74.70</td><td>54.82</td><td>69.88</td><td>57.23</td><td>74.70</td><td>56.63</td><td>56.02</td><td>59.64</td><td>57.83</td></tr><tr><td>PAL</td><td>48.53</td><td>66.18</td><td>62.65</td><td>52.35</td><td>60.59</td><td>58.53</td><td>60.00</td><td>63.24</td><td>53.53</td><td>58.53</td><td>60.59</td></tr><tr><td>KUW</td><td>26.59</td><td>59.54</td><td>78.03</td><td>43.93</td><td>67.63</td><td>46.82</td><td>53.18</td><td>51.45</td><td>44.51</td><td>46.24</td><td>50.87</td></tr><tr><td rowspan="3">held-out</td><td>ALG</td><td>50.21</td><td>60.09</td><td>73.61</td><td>52.58</td><td>62.02</td><td>57.51</td><td>57.51</td><td>59.01</td><td>52.79</td><td>58.37</td><td>57.30</td></tr><tr><td>SUD</td><td>40.89</td><td>64.97</td><td>64.32</td><td>53.15</td><td>64.86</td><td>54.12</td><td>56.51</td><td>58.79</td><td>52.39</td><td>56.18</td><td>55.53</td></tr><tr><td>YEM</td><td>38.40</td><td>42.16</td><td>38.49</td><td>34.68</td><td>39.69</td><td>34.92</td><td>30.68</td><td>35.73</td><td>33.06</td><td>34.68</td><td>34.11</td></tr></table>
|
| 415 |
+
|
| 416 |
+
Table 13: $\mathrm{{WER}}\left( \% \right)$ for various models on unseen dialects. All models are adapted from v2 $\rightarrow$ MGB2.
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fc60b40d5ebc4043ecc3c3023343889a9bcdd38b2b653801bb35ad72f040d2a
|
| 3 |
+
size 811812
|
2025/Dialectal Coverage And Generalization in Arabic Speech Recognition/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/0fedf6c1-0267-4cff-94e1-312390499cbb_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0d3e299e8da14a23329dcd9f517ab746cdcd335e546656f69719998b8f5a857
|
| 3 |
+
size 823713
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:903aaa7c4aa29a1bef5af4d7ba57be94293b5c2b170a003158f0d491aa663797
|
| 3 |
+
size 3161953
|
2025/Dialogue Systems for Emotional Support via Value Reinforcement/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/e90ef028-820e-405a-969b-99e817071213_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6abbb1201e874b563011f1ad9208848fb5b6f53ad2ede46845f2532318f3ece
|
| 3 |
+
size 2648867
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/full.md
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dialogue-RAG: Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting
|
| 2 |
+
|
| 3 |
+
Qiwei $\mathsf{Li}^{1\dagger}$ , Teng Xiao $^{1\dagger}$ , Zuchao Li $^{1*}$ , Ping Wang $^{2}$ , Mengjia Shen $^{3}$ , Hai Zhao $^{4}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ School of Computer Science, Wuhan University, Wuhan, China,
|
| 6 |
+
|
| 7 |
+
$^{2}$ School of Information Management, Wuhan University, Wuhan, China,
|
| 8 |
+
|
| 9 |
+
<sup>3</sup>Wuhan Second Ship Design and Research Institute, Wuhan, China,
|
| 10 |
+
|
| 11 |
+
$^{4}$ School of Computer Science, Shanghai Jiao Tong University, Shanghai, China {qw-line, xiaoxiao, zcli-charlie, wangping}@whu.edu.cn, shenmj13@163.com, zhaohai@cs.sjtu.edu.cn
|
| 12 |
+
|
| 13 |
+
# Abstract
|
| 14 |
+
|
| 15 |
+
Large Language Models (LLMs) and Retrieval Augmented Generation (RAG) methods have demonstrated significant potential on tasks across multiple domains. However, ellipses and coreferences, as common phenomena in dialogue scenes, pose challenges to LLMs' understanding and RAG's retrieval accuracy. The previous works ignore the negative impact of this fuzzy data on RAG system. We explore the capabilities of LLMs and RAG systems in dialogue scenarios and use Incomplete Utterance Rewriting (IUR) to complete the key information in dialogue to enhance retrieval. Besides, we propose a lightweight IUR model for query rewriting. It is an end-to-end framework for node linking and iterative inference, incorporating two newly proposed probing semantic features derived from generative pre-training. This framework treats IUR as a series of link decisions on the input sequence and the incrementally constructed rewriting outputs. To test the performance of RAG system in the model multi-round dialogue scenario, we construct an RAG dialogue dataset on English and Chinese, Dialogue-RAG-MULTI-v1.0. Experiment results show that utterance rewriting can effectively improve the retrieval and generation ability of RAG system in dialogue scenes. Experiments on IUR tasks demonstrate the excellent performance of our lightweight IUR method.
|
| 16 |
+
|
| 17 |
+
# 1 Introduction
|
| 18 |
+
|
| 19 |
+
Human-machine interactions are ubiquitous in today's international web age. With continuous technological advancements, especially in deep learning, machines have gained the ability to understand human speech and language (Dongbo et al., 2023).
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Two examples in human-machine dialogue. The question "How about Portuguese?" in Example (a) omits the noun "food". The pronoun "he" in the second question of Example (b) is a reference to "Jon Hippe".
|
| 23 |
+
|
| 24 |
+
Recently, the emergence of Large Language Models (LLMs) (DeepSeek-AI, 2024; Yang et al., 2024; GLM et al., 2024; Li et al., 2023c; Yao et al., 2024) and Retrieval Augmented Generation (RAG) (Ram et al., 2023; Asai et al., 2023a; Shi et al., 2023; Gao et al., 2023a; Asai et al., 2023b; Cuconasu et al., 2024) technologies has brought new opportunities for the development of human-computer dialogue.
|
| 25 |
+
|
| 26 |
+
Retrieval Augmented Generation is a technique that enhances text generation by utilizing information from additional data sources. In the context of LLMs, RAG technology has demonstrated outstanding performance in improving generation tasks. On one hand, models can use retrieved information to assist in generation, enhancing the quality and relevance of the generated text. On the other hand, RAG helps models acquire external knowledge and information, significantly expanding application scenarios of large language models. (Gao et al., 2023b; Gupta et al., 2024)
|
| 27 |
+
|
| 28 |
+
However, in real-world human-machine interaction scenarios, ellipses and coreferences occur quite frequently. Figure 1 illustrates an example of this situation. In dialogue tasks, the ambiguous information can hinder the ability of LLMs to accurately understand the semantics of user queries. In a RAG system, this ambiguity also impacts the retrieval of key information. The inaccurate retrieval results will lead to a decline in the generation per
|
| 29 |
+
|
| 30 |
+
formance of LLMs.
|
| 31 |
+
|
| 32 |
+
To address this limitation, we propose a retrieval enhancement method for RAG, Dialogue-RAG, based on Incomplete Utterance Rewriting (IUR). It completes utterance using IUR, and realizes accurate RAG retrieval and model generation by more complete query. Besides, a novel lightweight IUR model is designed to complete the sentence information to improve the quality of the search results, and then improve the question-answering ability of the generated model. To evaluate the ability of RAG in the dialogue scenario, we propose an RAG dialogue dataset on English and Chinese, which constructs a question answering pair in the scenario of knowledge dialogue and a knowledge base for retrieving related information. This can effectively test the knowledge retrieval and question answering ability of RAG method in dialogue scenario.
|
| 33 |
+
|
| 34 |
+
Our main contributions are as follows:
|
| 35 |
+
|
| 36 |
+
- We explore the dialogue task scenario and design a new retrieval enhancement method for RAG based on IUR. We build an enhanced RAG system based on this approach (Dialogue-RAG) and it can achieve accurate retrieval of knowledge base by rewriting and completing incomplete data. Furthermore, it effectively improve the model's ability to answer fuzzy questions in real scenarios.
|
| 37 |
+
- We design a lightweight IUR model that transforms the IUR task into a digraph parsing task and uses a node linking parser and generative pre-trained language model to realize fast digraph parsing decision-making in the IUR tasks.
|
| 38 |
+
- We manually construct a retrieval-augmented generation dialogue dataset on English and Chinese, which contains multiple rounds of question answering pairs and a knowledge base for retrieval. It can not only test the dialogue ability of the model, but also evaluate the effect of RAG method on the enhancement of dialogue ability.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
# 2.1 Retrieval Augmented Generation
|
| 43 |
+
|
| 44 |
+
Retrieval-Augmented Generation enhances language models by integrating retrieved text passages, significantly improving performance on knowledge-intensive tasks. Initial work by (Guu
|
| 45 |
+
|
| 46 |
+
et al., 2020) and (Lewis et al., 2020) combined dense passage retrieval with sequence-to-sequence models, showing notable performance gains (Ram et al., 2023). Recent advancements include (Luo et al., 2023), who instruction-tuned models with fixed retrieved passages and pre-trained retrievers and models together. (Jiang et al., 2023) proposed adaptive retrieval during generation, and Toolformer (Schick et al., 2024) trained models to generate API calls. However, these approaches face challenges in efficiency, handling irrelevant context, and attribution accuracy (Mallen et al., 2023; Shi et al., 2023; Liu et al., 2023a). Self-RAG (Asai et al., 2023b) addresses these issues by allowing models to use retrieval on demand for diverse queries to some extent. (Cuonasu et al., 2024) studied the impact of several key factors, like the type, number, and position of documents that should augment the prompt to the LLM. However, the existing benchmarks ignore the negative effects of ellipsis and coreference on knowledge retrieval.
|
| 47 |
+
|
| 48 |
+
# 2.2 Incomplete Utterance Rewriting
|
| 49 |
+
|
| 50 |
+
Early works on Incomplete Utterance Rewriting primarily employ sequence-to-sequence models combined with a copy mechanism to extract relevant information from the context (Su et al., 2019; Elgohary et al., 2019; Kumar and Joshi, 2017). These methods use pointer networks or sequence generation models to extract information and address basic rewriting issues. With the introduction of pre-trained models, Incomplete Utterance Rewriting (IUR) research has significantly advanced. For example, RUN (Liu et al., 2020a) proposes a rewriting matrix based on context and utterance embeddings, which determines whether insertion or replacement operations should be carried out by annotating each token. Additionally, SRL (Xu et al., 2020) pre-identifies the subject, predicate, and object within the context and incorporates these as extra features into the encoder, improving performance. RaST (Hao et al., 2021) models the IUR problem as a sequence labeling task, implementing rewriting by predicting actions (insertion, deletion, and None) and the spans of the context separately. HCT (Jin et al., 2022) further enhances the action predictor from previous work to a rule predictor, optimizing the generation of modified words not explicitly present in the context. Recently, (Li et al., 2023b) improve IUR performance by continued pre-training of the T5 (Raffel et al., 2020) model. Meanwhile, (Du et al., 2023) and (Li et al., 2023a)
|
| 51 |
+
|
| 52 |
+
further develop fine-grained subtasks and refined model architectures based on the edit matrix. Considering that the context of the dialogue contains similar content that tends to cause confusion and the contents of the different themes are numerous and complex, (Guo et al., 2024) design the Dynamic Context Introduction mechanism to filter out irrelevant contexts to handle the extended multi-turn dialogue. XSS (Peng et al., 2024) designs the Cross Scorer Sharing mechanism to support efficient pair locating for IUR, enabling faster and more accurate processing of extended dialogue contexts.
|
| 53 |
+
|
| 54 |
+
# 3 Methods
|
| 55 |
+
|
| 56 |
+
# 3.1 Dialogue Retrieval Augmented Generation
|
| 57 |
+
|
| 58 |
+
To effectively deal with the degradation of retrieval quality caused by incomplete utterance, we design a Dialogue Retrieval Augmented Generation (Dialogue-RAG) method. The overall architecture of the method is shown in Figure 2. We rewrite the input question according to the history context and complete the missing parts. In RAG processing, the completed information is used for corresponding information retrieval and question answering. In this way, more accurate information retrieval and high-quality question answers are achieved.
|
| 59 |
+
|
| 60 |
+
Specifically, suppose the multi-turn dialogue utterances are $U = \{u^{1}, u^{2}, \dots, u^{n}\}$ . We use our new lightweight IUR model rewrite utterance $u^{i}$ to a self-contained version $Ru^{i}$ with context $U_{c} = \{u^{1}, u^{2}, \dots, u^{i-1}\}$ , where $u^{i} = \{w_{1}^{i}, w_{2}^{i}, \dots, w_{m}^{i}\}$ is the $i$ -th utterance with $m$ words in dialogue. We define the procedure as follows:
|
| 61 |
+
|
| 62 |
+
$$
|
| 63 |
+
R u ^ {i} = I U R (\{u ^ {1}, u ^ {2}, \dots , u ^ {i - 1} \}, u ^ {i}), \quad (1)
|
| 64 |
+
$$
|
| 65 |
+
|
| 66 |
+
where $IUR(\cdot)$ is the rewriting process. Details are provided in Subsection 3.2 of this chapter. Based on $Ru^i$ , we match key information through similarity. For knowledge base information $V = \{v_1, v_2, \dots, v_l\}$ , $v_i$ represents the chunk vector in the knowledge base. We use cosine similarity to calculate the similarity $s_{i,j}$ between $Ru^i$ and $v_j$ :
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
s _ {i, j} = \frac {\mathbf {R} \mathbf {u} ^ {i} \cdot \mathbf {v} _ {j}}{\| \mathbf {R} \mathbf {u} ^ {i} \| \| \mathbf {v} _ {j} \|.} \tag {2}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
We reorder chunks according to the score $s_{i,j}$ and select the $Top - k$ chunks as the matching information $T_{m} = \{t_{1}, t_{2}, \dots, t_{k}\}$ for $Ru^{i}$ . The $t_{j} \in T_{m}$
|
| 73 |
+
|
| 74 |
+
represents the chunk text corresponding to the chunk vector $v_{j}$ . As shown in Figure 2, matched chunk information $T_{m}$ and rewritten utterance $Ru^{i}$ will be fused into the prompt template as a context prompt $P(T_{m},Ru^{i})$ and it will be used as input to the large language model for the dialogue answer $a_{j}$ :
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
a _ {i} = \operatorname {L L M} \left(P \left(T _ {m}, R u ^ {i}\right)\right), \tag {3}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
where $\mathrm{LLM}(\cdot)$ is the large language model.
|
| 81 |
+
|
| 82 |
+
# 3.2 Node Linking Iterative Inference
|
| 83 |
+
|
| 84 |
+
To meet the retrieval requirements of RAG, we design a lightweight IUR model. Following the practice of previous text editing works (Liu et al., 2020a; Zhang et al., 2022), context utterances $U_{c}$ are concatenated into a single word sequence $S_{c}$ with a special token [SEP] as the utterance separator. In this part, there are three components to our model: a node linking parser, a contextual similarity feature (CSF) extractor, and a rewrite consistency feature (RCF) extractor. The CSF and RCF feature extractors are GPT model-based probes to enhance the interactive inference in IUR.
|
| 85 |
+
|
| 86 |
+
Digraph Modeling. For IUR, it mainly uses the determined phrase from the context and inserts it into a certain position of the incomplete utterance. We transform it into a digraph modeling task and regard the beginning and ending words of the phrase span in the context and the words on the left of the insertion position in the incomplete utterance as nodes. The edge between two nodes acts as a link. We define two types of links: span link and insertion link. The first is used to determine the span of the phrase to be inserted in the context, while the second is used to determine the insertion position in the incomplete utterance.
|
| 87 |
+
|
| 88 |
+
It is worth noting that although insertion can solve the vast majority of rewriting problems, there are still some words in the rewritten sentence that don't come from the context. Since these words do not depend on context, an additional model such as grammatical error correction can be used for post-processing. However, this phenomenon is not the focus of this paper and is therefore not considered in our digraph modeling transformation.
|
| 89 |
+
|
| 90 |
+
Digraph modeling can effectively simplify the IUR problem. Since for a context of length $m$ , an incomplete utterance of $n$ , the complexity of the insertion operation is $O(m \times n)$ and the complexity for determining the insertion span is $O(m \times m)$ , so the overall complexity is $O(m \times m \times n)$ . Digraph
|
| 91 |
+
|
| 92 |
+

|
| 93 |
+
Figure 2: Overall architecture.
|
| 94 |
+
|
| 95 |
+
modeling decomposes it into two steps of digraph parsing, determining the insertion point has complexity $O(m \times n)$ , and determining the span has complexity $O(m \times m)$ , so the overall implementation complexity is $O(m \times n) + O(m \times m)$ , which greatly reduces inference difficulty. In the actual implementation, the two-step link inference is finished at one time, so the final complexity is reduced to $O\big((m + n) \times (m + n)\big)$ .
|
| 96 |
+
|
| 97 |
+
Node Linking Parser. Based on digraph modeling, we propose to use a node linking parser to learn the digraphs. The overall structure of the parser is shown on the left side of Figure 2. Formally, for an input sequence $X = \{w_{1}, w_{2}, \dots, w_{n}\}$ with length $n$ (which is a concatenation of context and incomplete utterances), we insert a special token BOS at the beginning of the sequence. We employ a sequence encoder to convert the input sentence into contextualized vector representations $H$ .
|
| 98 |
+
|
| 99 |
+
In order to distinguish the tokens in the sequence as the head node and the tail node of the link, we introduce two independent feed-forward neural (FFN) layers to project the representations from the sequence encoder to different spaces respectively:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
H ^ {\left(\text {h e a d}\right)} = \operatorname {F F N} _ {\text {h e a d}} (H), \tag {4}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
H ^ {(t a i l)} = \mathrm {F F N} _ {\text {t a i l}} (H).
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
To capture the link relationship between the head node and the tail node, we introduce biaffine attenuate
|
| 110 |
+
|
| 111 |
+
tion scorer (Dozat, 2016) to score the relationship between the head-tail node pair.
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
s (i \xrightarrow {l} j) = H _ {i} ^ {(h e a d) \top} W H _ {j} ^ {(t a i l)} + b, \tag {5}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where $i$ and $j$ indicate the index of the head and tail node in the sequence respectively, $W$ and $b$ are learnable parameters, and $l$ is the relation label of link $i \rightarrow j$ . A multi-class cross-entropy loss is applied to the biaffine score $s(i \xrightarrow{l} j)$ to guide the model to learn node linking parsing.
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\mathcal {L} = \sum_ {i, j} X E n t (s (i \xrightarrow {l} j), r (i \rightarrow j)), \tag {6}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
where $r(i\to j)$ indicates the gold relation label between node $i$ and $j$ , and NONE is used to indicate that there is no relationship between nodes.
|
| 124 |
+
|
| 125 |
+
Iterative Inference. The foundation of our proposed two probing features is generative language modeling. Its modeling objective for the input language sequence $X = \{x_{1}, x_{2}, \dots, x_{L}\}$ is to predict each token $x_{i}$ using the unidirectional visible token sequence $X_{<i}$ and maximize the following maximum likelihood so that the model can learn the language generation knowledge in an unsupervised way. GPT (Liu et al., 2023b), which is widely used in natural language generation and other fields, is one of many models that have been pre-trained with generative language modeling, thus becoming the
|
| 126 |
+
|
| 127 |
+
basis for our probing feature. Formally, the probability of distribution for the next token prediction in GPT predicting is given by:
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
P _ {\mathcal {G}} (y) = \mathbf {G P T} (x _ {0}, \dots , x _ {i - 1}). \tag {7}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
where $y$ represents the next predicted token.
|
| 134 |
+
|
| 135 |
+
# a. Contextual Similarity Feature.
|
| 136 |
+
|
| 137 |
+
In the IUR inference process, assuming incomplete utterance rewriting depends on the phrase $u_{k:k+lambda} = \{w_k^u, w_{k+1}^u, \ldots, w_{k+\lambda}^u\}$ in the context utterance $u$ . $u_{k:k+lambda}$ is a complement to incomplete utterance, and the complement insertion position is $p$ . From the perspective of generative language modeling, the generation context of phrase $u_{k:k+lambda}$ in original utterance is $u_{<k} = \{w_1^u, w_2^u, \ldots, w_{k-1}^u\}$ while the generation context at the insertion position $p$ incomplete utterance is $iu_{<p}$ . Since two generation context aims at generating the same phrase $u_{k:k+lambda}$ , we refer to this case as contextual similarity assumption. That is, by the context $u_{<k}$ and $iu_{<p}$ has similarity in the distribution of the next token prediction.
|
| 138 |
+
|
| 139 |
+
Formally, for the generation context $u_{<k}^i$ and $i u_{<p}$ , GPT model output the next token distribution respectively as:
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
P _ {\mathcal {G}} (y) ^ {u} = \mathbf {G P T} (w _ {1} ^ {u}, w _ {2} ^ {u},..., w _ {k - 1} ^ {u}),
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
P _ {\mathcal {G}} (y) ^ {i u} = \mathbf {G P T} \left(w _ {1} ^ {i u}, w _ {2} ^ {i u}, \dots , w _ {p - 1} ^ {i u}\right). \tag {8}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
According to the contextual similarity assumption, the divergence between the two distributions should be smaller if the token from the $k$ -th position of the utterance $u$ can be inserted into the position $p$ of the incomplete utterance $iu$ . In other words, the distribution divergence measures the extent to which a token at a specific position in the utterance can be inserted into the incomplete utterance in IUR. Thus, the contextual similarity feature (CSF) can be written as:
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\begin{array}{l} C S F = D _ {K L} \left(P _ {\mathcal {G}} (y) ^ {i u} | | P _ {\mathcal {G}} (y) ^ {u}\right) \\ = \sum P _ {\mathcal {G}} (y) ^ {i u} \log \frac {P _ {\mathcal {G}} (y) ^ {i u}}{P _ {\mathcal {G}} (y) ^ {u}}. \tag {9} \\ \end{array}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
# b. Rewrite Consistency Feature.
|
| 156 |
+
|
| 157 |
+
Apart from context similarity feature, for the typical scenario of incomplete utterance rewriting, inserting the phrase $u_{k:k + \lambda} = \{w_k^u,w_{k + 1}^u,\dots,w_{k + \lambda}^u\}$ started with position $k$ in the context into the position $p$ of the incomplete utterance should make the new utterance a reasonable sentence. In other words, the partial sequence of the incomplete utterance $i u_{\leq p}$ and the inserted word $u_{k}$ will form
|
| 158 |
+
|
| 159 |
+
a new valid sentence fragment. We refer to such phenomenon as rewriting consistency.
|
| 160 |
+
|
| 161 |
+
Based on this phenomenon, we deduce a rewrite consistency feature (RCF) to enhance the determination of completion words and insertion positions in IUR. Since GPT's pre-training goal is to predict the next token, we can evaluate the probability of this prediction as the likelihood that the token and its context form a valid segment. In IUR, we adopt the probability value of a given token from GPT prediction distribution as the rewrite consistency score, which reflects the probability that the partial sequence $i u_{\leq p}$ and $u_{k}$ to form a valid fragment. For all words in the context, a vector composed of scores is calculated accordingly to obtain the rewrite consistency feature for insertion position $p$ . Formally, for position $p$ in the incomplete utterance and utterance context $u = \{w_1^u, w_2^u, \dots, w_m^u\}$ , the rewrite consistency feature is written as:
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
R C F = \left[ \mathbf {G P T} \left(w _ {k} ^ {u} \mid w _ {1} ^ {i u}, w _ {2} ^ {i u}, \dots , w _ {p} ^ {i u}\right) \right] _ {k = 1} ^ {m}, \tag {10}
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
where $\left[\cdot\right]_{k=1}^{m}$ represents a list operation from 1 to $m$ elements.
|
| 168 |
+
|
| 169 |
+
# c. Feature Integration.
|
| 170 |
+
|
| 171 |
+
Denote that context length is $m$ and incomplete utterance length is $n$ . In the CSF calculation, any two token positions in the incomplete utterance and context are probed to obtain a divergence score, then the final CSF feature size is $m \times n$ . Similarly, the RCF feature size is also $m \times n$ . Since in node linking parsing, we concatenate context and incomplete utterance into one sequence. Therefore, we extend the feature to $(m + n) \times (m + n)$ by zero padding to facilitate the use of the feature. The feature integration is achieved by adding the padded features to the biaffine score, i.e.,
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\begin{array}{l} s (i \xrightarrow {l} j) = H _ {i} ^ {(h e a d) \top} W H _ {j} ^ {(t a i l)} \\ + C S F _ {i, j} + R C F _ {i, j} + b, \\ \end{array}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where $\mathbf{b}$ is the bias.
|
| 178 |
+
|
| 179 |
+
# 3.3 Dialogue RAG Dataset
|
| 180 |
+
|
| 181 |
+
To test the performance of LLM and RAG methods in real dialogue scenarios, we manually construct an dialogue dataset on English and Chinese, Dialogue-RAG-MULTI-v1.0. The dataset provides multiple rounds of conversations as well as related document. We crawl web pages to get the documents and converted them into serialized text for retrieval knowledge bases. For the test dataset, we
|
| 182 |
+
|
| 183 |
+
<table><tr><td>Spilt</td><td>Dialogue Rounds</td><td>Q&A Number</td><td>Document Number</td></tr><tr><td>Train</td><td>Total: 23,996 English: 12,005 Chinese: 11,991</td><td>Total: 226,173 English: 124,852 Chinese: 101,321</td><td rowspan="3">Total: 9,321 English: 4,889 Chinese: 4,432</td></tr><tr><td>Dev</td><td>Total: 762 English: 391 Chinese: 371</td><td>Total: 6,310 English: 3,180 Chinese: 3,130</td></tr><tr><td>Test</td><td>Total: 1,036 English: 542 Chinese: 494</td><td>Total: 8,216 English: 4,321 Chinese: 3,895</td></tr></table>
|
| 184 |
+
|
| 185 |
+
Table 1: Dataset setting.
|
| 186 |
+
|
| 187 |
+
use the document to annotate the conversation data in the form of manual annotations. For the training and development datasets, annotations were generated using DeepSeek-V3's API, followed by manual review to remove low-quality data. The conversations are constructed based on the web pages. Dialogue-RAG-MULTI-v1.0 provides subjects with a real complex dialogue scene, which contains special concepts, contextual reference, incomplete utterance and other issues that often occur in daily dialogue process.
|
| 188 |
+
|
| 189 |
+
In practical application scenarios, we can not only directly test the multi-round dialogue effect of the model, but also evaluate the dialogue ability of the model enhanced by the RAG method. The distribution of the dataset is shown in Table 1. According to the statistics of test dataset, the proportion of ellipses and coreferences in multi-round conversations exceeds $60\%$ , which can effectively test RAG system in dialogue scenarios.
|
| 190 |
+
|
| 191 |
+
# 4 Experiments
|
| 192 |
+
|
| 193 |
+
# 4.1 Setup
|
| 194 |
+
|
| 195 |
+
Dataset. We conduct knowledge dialogue task on our proposed Dialogue-RAG-MULTI-v1.0 dataset to test the effect of rewriting in RAG augmented human-machine dialogue tasks. To further explore the impact of utterance rewriting on retrieval, we conduct retrieval comparison on the CoQA (Reddy et al., 2019), TOPIOCQA (Adlakha et al., 2022) and OR-QuAC (Qu et al., 2020) dataset. To evaluate the validity of our IUR component, we conduct experiments on English Task-Oriented Dialogue dataset CANARD (Liu et al., 2020b) and Chinese Open Domain Dialogue dataset REWRITE (Su et al., 2019). Same dataset split as in the original paper has been adopted to ensure reproducibility.
|
| 196 |
+
|
| 197 |
+
Baselines for RAG. In order to verify the effect of our method, we test the knowledge dialogue task
|
| 198 |
+
|
| 199 |
+
in the condition of the generation without IUR and RAG (w/o IUR), the generation without RAG (w/IUR), the generation without IUR (RAG w/o IUR), the generation of IUR with few shot based on GPT-4o-mini (RAG w/GPT-4o-mini few shot IUR), and the generation of IUR with our Node Linking Iterative (Dialogue-RAG). In addition, we also compare the performance with other RAG methods, including GLM-RAG (ZhipuAI, 2024), AAR (Yu et al., 2023), Adaptive-RAG (Jeong et al., 2024), IRCot (Trivedi et al., 2022) and DRAGON+ (Liu et al., 2024).
|
| 200 |
+
|
| 201 |
+
Baselines for IUR For the IUR task, in the setting without BERT pre-trained language model enhancement, the LSTM encoder is used in the baselines Syntactic, L-Gen, L-Ptr, and L-Ptr-Gen, which are consistent with our work. And vanilla attention-based generator (Bahdanau et al., 2015), pointer network generator (Vinyals et al., 2015) and hybrid pointer generator (See et al., 2017) is employed in L-Gen, L-Ptr, and L-Ptr-Gen, respectively. For DuS (Kumar and Joshi, 2016), a semantic sequence and a syntactic sequence model are combined to generate accurate rewrites. And RUN (Liu et al., 2020b) shaped the problem as the prediction of a word-level edit matrix and proposed a semantic segmentation model (UNet) to predict the edit operations. For the comparison with LLMs, we choose the open source models Qwen2-7B-Instruct (Yang et al., 2024) and ChatGLM3-6B (GLM et al., 2024). In addition, we tested DeepSeek-V3 (DeepSeek-AI, 2024) and GPT-4o-mini (OpenAI, 2024). For the REWRITE dataset, our baseline Transformer-as-encoder versions (TGen, T-Ptr and T-Ptr-Gen) are used to analyze the performance difference brought by the encoder architecture. L-Ptr- $\lambda$ and T-Ptr- $\lambda$ are variants of a pointer network that use $\lambda$ to control whether to copy tokens from context or from utterance, instead of deciding to copy or generate as in the traditional pointer network.
|
| 202 |
+
|
| 203 |
+
Evaluation Metrics. We use BLEU, ROUGE, and BERTScore automatic metrics for RAG enhanced dialogue scene. In the retrieval experiment, we use accuracy, recall and MRR@5 to evaluate the retrieval effect. Besides, we use BLEU, ROUGE, and EM automatic metrics for IUR performance evaluation as done in (Pan et al., 2019)
|
| 204 |
+
|
| 205 |
+
Model Settings. For the knowledge dialogue task, ChatGLM3-6B (GLM et al., 2024)
|
| 206 |
+
|
| 207 |
+
<table><tr><td>Method</td><td>B1</td><td>B2</td><td>B3</td><td>B4</td><td>R1</td><td>R2</td><td>RL</td><td>Sp</td><td>Sr</td><td>Sf</td></tr><tr><td>GLM-RAG</td><td>8.00</td><td>5.33</td><td>4.00</td><td>3.06</td><td>16.83</td><td>8.05</td><td>15.73</td><td>55.74</td><td>66.47</td><td>60.16</td></tr><tr><td>AAR</td><td>8.78</td><td>5.88</td><td>4.43</td><td>3.33</td><td>14.35</td><td>7.29</td><td>13.28</td><td>52.07</td><td>60.78</td><td>55.80</td></tr><tr><td>Adaptive-RAG</td><td>7.33</td><td>4.90</td><td>3.67</td><td>2.76</td><td>15.56</td><td>7.05</td><td>14.62</td><td>56.61</td><td>63.01</td><td>58.51</td></tr><tr><td>IRCot</td><td>5.43</td><td>3.58</td><td>2.68</td><td>1.99</td><td>13.04</td><td>5.65</td><td>12.25</td><td>56.39</td><td>58.34</td><td>55.67</td></tr><tr><td>DRAGON+</td><td>11.91</td><td>8.73</td><td>6.88</td><td>5.41</td><td>21.53</td><td>12.38</td><td>20.07</td><td>56.37</td><td>68.4</td><td>61.46</td></tr><tr><td>w/o IUR</td><td>5.84</td><td>3.31</td><td>2.25</td><td>1.58</td><td>10.34</td><td>3.5</td><td>9.55</td><td>52.82</td><td>57.37</td><td>54.83</td></tr><tr><td>w/ IUR</td><td>6.35</td><td>3.53</td><td>2.36</td><td>1.61</td><td>11.13</td><td>3.64</td><td>10.2</td><td>52.82</td><td>59.75</td><td>55.9</td></tr><tr><td>RAG w/o IUR</td><td>10.29</td><td>7.18</td><td>5.46</td><td>4.14</td><td>19.04</td><td>9.82</td><td>17.91</td><td>57.48</td><td>67.26</td><td>61.62</td></tr><tr><td>RAG w/ GPT-4o-mini few shot IUR</td><td>13.03</td><td>9.59</td><td>7.49</td><td>5.79</td><td>25.86</td><td>14.57</td><td>24.41</td><td>59.82</td><td>73.91</td><td>65.81</td></tr><tr><td>Dialogue-RAG (ours)</td><td>13.11</td><td>9.69</td><td>7.63</td><td>5.95</td><td>26.09</td><td>14.72</td><td>24.6</td><td>60.33</td><td>74.09</td><td>66.21</td></tr></table>
|
| 208 |
+
|
| 209 |
+
Table 2: Main results. $B$ , $R$ , and $S$ are BLEU, ROUGE, and BERT SCORE respectively. The cumulative n-gram BLEU score is denote as $B_{n}$ . For ROUGE metric, it measures the n-gram overlapping (denoted as $R_{n}$ ) and longest matching (denoted as $R_{L}$ ) between the rewritten utterances and the golden ones. $S_{p}$ , $S_{r}$ , and $S_{f}$ represent the precision, recall, and F1 score of BERT SCORE respectively.
|
| 210 |
+
|
| 211 |
+

|
| 212 |
+
Figure 3: Comparison of results with and without rewrite on test sets across three datasets
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
|
| 218 |
+
is used as our inference model. We test Qwen2.5-7B-Instruct (Team, 2024) and Llama3-8B-Chinese-Chat (Wang et al., 2024) as the base model and show their results in Appendix A. We test BiLSTM and Transformer as the IUR module encoder. The encoder setting can be found in Appendix B. For CSF and RCF feature extraction, we use the official GPT2-base. For the IUR experiment of LLM, we set the number of the LLM few shot samples as 3. For the non-LLM model, we tested it on a GeForce RTX 3090 graphics card. For LLM, we deployed models on two GeForce RTX 3090 GPUs for testing.
|
| 219 |
+
|
| 220 |
+
# 4.2 Main Results and Analysis
|
| 221 |
+
|
| 222 |
+
We test the results of different RAG systems on the incomplete utterance dialogue dataset. As shown in Table 2, we can find that the results become better after IUR (w/ IUR) or RAG (RAG w/o IUR) augmentation, which verifies the positive effect of IUR and RAG method in incomplete utterance dialogues. Besides, We can find the method of using IUR to enhance RAG (Dialogue-RAG) achieves the best results in various indicators, which fully
|
| 223 |
+
|
| 224 |
+
confirms the effect of our method.
|
| 225 |
+
|
| 226 |
+
To demonstrate the retrieval improvement of IUR, we separately compare the accuracy of correctly finding the dialogue document between direct retrieval (w/o IUR) and retrieval (w/ IUR) after rewriting. The results (w/o IUR, 37.80 vs w/ IUR, 77.54) show a surprising improvement in retrieval accuracy after rewriting incomplete sentences. In addition, we score the responses of the RAG system with GPT-4, and the results (w/o IUR, 4.89 vs w/ IUR, 7.70) also showed the gains brought by the IUR method.
|
| 227 |
+
|
| 228 |
+
In addition, we also test the impact of rewriting results generated using large language models on RAG. The results show that the results generated by our IUR model have better performance than the results generated by the large language model (RAG w/ GPT-4o-mini few shot IUR). This fully validates the excellent performance of our IUR method.
|
| 229 |
+
|
| 230 |
+
# 4.3 Retrieval Comparison
|
| 231 |
+
|
| 232 |
+
To further explore the retrieval effect of utterance rewriting in the dialogue field, we conduct retrieval
|
| 233 |
+
|
| 234 |
+
comparison on CoQA, TOPIOCQA and OR-QuAC datasets. The results are shown in Figure 3. The results on three datasets show that retrieval after rewriting is significantly better than direct retrieval. This shows that the utterance rewriting of the ambiguity in the dialogue by the IUR method can significantly improve the retrieval effect, which fully verifies our point.
|
| 235 |
+
|
| 236 |
+
# 4.4 Evaluation on IUR Task
|
| 237 |
+
|
| 238 |
+
To evaluate our IUR approach, we conducted comparative experiments on the CANARD and REWRITE benchmarks. Experiment results are presented in Tables 3 and 4. To show the effect of rewriting, we show the case comparison in Appendix C. Besides, We also show the results on other datasets in Appendix D.
|
| 239 |
+
|
| 240 |
+
For the CANARD dataset, we can find that our model obtains the best results on BLEU and ROUGE, which illustrates digraph modeling, CSF and RCF features are generally effective for IUR. Besides, we test some LLM baselines on the CANARD benchmark to compare our methods. From Table 3, we can see that LLMs with both zero shot and few shot perform worse than our method. It is important to note that our approach not only performs significantly better than large models. As a lightweight model, its computing speed is also much higher than LLM. This is very important for the retrieval efficiency of the RAG system.
|
| 241 |
+
|
| 242 |
+
For the REWRITE dataset, comparing the results of LSTM-based with Transformer-based baselines, we find that Transformer has an advantage in most systems, but not in all cases (L-Gen vs T-Gen), which may be due to the absence of optimization for Transformer. It suggests that just changing LSTMs with smaller parameters and training-data to Transformers may not necessarily be the best option, we keep using BiLSTM as the encoder when without BERT. On the REWRITE dataset, our full model still exhibits performance advantages with or without BERT. And since the REWRITE dataset is smaller, to increase the stability of the results, we use stricter EM and $\mathbf{B}_2$ , $\mathbf{B}_4$ , $\mathbf{R}_2$ , $\mathbf{R}_L$ metrics. The reported improvements on these stricter metrics demonstrate the generalization ability of our method.
|
| 243 |
+
|
| 244 |
+
Additionally, we also test some LLM baselines on the CANARD benchmark to compare our methods. From Table 3, we can see that LLMs with both zero shot and few shot perform worse than our method. Besides, as a lightweight model, our IUR
|
| 245 |
+
|
| 246 |
+
<table><tr><td>Model</td><td>B1</td><td>B2</td><td>B4</td><td>R1</td><td>R2</td><td>RL</td></tr><tr><td colspan="7">Traditional Model</td></tr><tr><td>L-Ptr</td><td>52.4</td><td>46.7</td><td>37.8</td><td>72.7</td><td>54.9</td><td>68.5</td></tr><tr><td>Pronoun Subβ </td><td>60.4</td><td>55.3</td><td>47.4</td><td>73.1</td><td>63.7</td><td>73.9</td></tr><tr><td>L-Ptr-Gen</td><td>67.2</td><td>60.3</td><td>50.2</td><td>78.9</td><td>62.9</td><td>74.9</td></tr><tr><td>RUN</td><td>70.5</td><td>61.2</td><td>49.1</td><td>79.1</td><td>61.2</td><td>74.7</td></tr><tr><td colspan="7">Large Language Model w/ Zero shot</td></tr><tr><td>Qwen2</td><td>26.5</td><td>17.0</td><td>5.5</td><td>50.3</td><td>29.1</td><td>49.2</td></tr><tr><td>ChatGLM</td><td>33.6</td><td>24.8</td><td>12.2</td><td>58.9</td><td>40.8</td><td>54.8</td></tr><tr><td>DeepsEEK</td><td>27.1</td><td>18.6</td><td>7.5</td><td>50.4</td><td>31.5</td><td>46.8</td></tr><tr><td>GPT-4o-mini</td><td>34.6</td><td>25.9</td><td>18.6</td><td>60.2</td><td>42.5</td><td>56.6</td></tr><tr><td colspan="7">Large Language Model w/ Few shot</td></tr><tr><td>Qwen2</td><td>34.6</td><td>25.9</td><td>12.6</td><td>60.2</td><td>42.5</td><td>56.6</td></tr><tr><td>ChatGLM</td><td>36.9</td><td>28.1</td><td>14.7</td><td>62.8</td><td>45.0</td><td>59.3</td></tr><tr><td>DeepsEEK</td><td>42.6</td><td>34.8</td><td>20.9</td><td>70.4</td><td>55.3</td><td>67.8</td></tr><tr><td>GPT-4o-mini</td><td>44.4</td><td>36.7</td><td>22.2</td><td>72.8</td><td>58.0</td><td>70.5</td></tr><tr><td>Ours</td><td>71.5</td><td>62.8</td><td>51.3</td><td>81.0</td><td>63.5</td><td>76.0</td></tr></table>
|
| 247 |
+
|
| 248 |
+
Table 3: Experimental results on CANARD. β : Results from Liu et al. (2020b).
|
| 249 |
+
|
| 250 |
+
<table><tr><td>Model</td><td>EM</td><td>B2</td><td>B4</td><td>R2</td><td>RL</td></tr><tr><td>L-Gen</td><td>47.3</td><td>81.2</td><td>73.6</td><td>80.9</td><td>86.3</td></tr><tr><td>L-Ptr-Gen</td><td>50.5</td><td>82.9</td><td>75.4</td><td>83.8</td><td>87.8</td></tr><tr><td>L-Ptr</td><td>51.5</td><td>82.7</td><td>75.5</td><td>84.0</td><td>88.2</td></tr><tr><td>L-Ptr-Ξ»β </td><td>42.3</td><td>82.9</td><td>73.8</td><td>81.1</td><td>84.1</td></tr><tr><td>T-Gen</td><td>35.4</td><td>72.7</td><td>62.5</td><td>74.5</td><td>82.9</td></tr><tr><td>T-Ptr-Gen</td><td>53.1</td><td>84.4</td><td>77.6</td><td>85.0</td><td>89.1</td></tr><tr><td>T-Ptr</td><td>53.0</td><td>83.9</td><td>77.1</td><td>85.1</td><td>88.7</td></tr><tr><td>T-Ptr-Ξ»</td><td>52.6</td><td>85.6</td><td>78.1</td><td>85.0</td><td>89.0</td></tr><tr><td>RUN</td><td>53.8</td><td>86.1</td><td>79.4</td><td>85.1</td><td>89.5</td></tr><tr><td>Ours</td><td>57.6</td><td>86.7</td><td>79.8</td><td>85.3</td><td>90.8</td></tr><tr><td>T-Ptr-Ξ» + BERT</td><td>57.5</td><td>86.5</td><td>79.9</td><td>86.9</td><td>90.5</td></tr><tr><td>RUN + BERT</td><td>66.4</td><td>91.4</td><td>86.2</td><td>90.4</td><td>93.5</td></tr><tr><td>Ours + BERT</td><td>69.4</td><td>91.5</td><td>86.9</td><td>91.7</td><td>94.7</td></tr></table>
|
| 251 |
+
|
| 252 |
+
Table 4: Experimental results on REWRITE. β : Reproduced from the code released by Su et al. (2019).
|
| 253 |
+
|
| 254 |
+
component achieves significantly higher computing speeds. This enhances the retrieval efficiency of RAG.
|
| 255 |
+
|
| 256 |
+
# 4.5 Ablation Study
|
| 257 |
+
|
| 258 |
+
To illustrate the enhancement of CSF and RCF features on digraph modeling, we conduct an ablation study on the REWRITE dataset, and the results are shown in Table 5 and 6. We not only report the performance of IUR on the REWRITE dataset, but we also report the unique metrics of digraph modeling, parsing precision (PP), parsing recall (PR), parsing f-score (PF), and link triplet precision (TP), triplet recall (TR) and triplet f-score (TF). First, when the CSF or RCF feature is removed, the IUR and parsing performance both drop, indicating that these features can effectively help digraph decision-making. Among them, the CSF and RCF
|
| 259 |
+
|
| 260 |
+
<table><tr><td></td><td>EM</td><td>B2</td><td>B4</td><td>R2</td><td>RL</td></tr><tr><td>RUN + BERT</td><td>66.4</td><td>91.4</td><td>86.2</td><td>90.4</td><td>93.5</td></tr><tr><td>Full Model</td><td>69.4</td><td>91.5</td><td>86.9</td><td>91.7</td><td>94.7</td></tr><tr><td>w/o CSF</td><td>69.0</td><td>90.9</td><td>86.3</td><td>90.8</td><td>94.1</td></tr><tr><td>w/o RCF</td><td>69.2</td><td>90.8</td><td>86.4</td><td>90.9</td><td>94.3</td></tr><tr><td>w/o CSF, RCF</td><td>68.6</td><td>90.9</td><td>86.3</td><td>90.8</td><td>94.1</td></tr></table>
|
| 261 |
+
|
| 262 |
+
Table 5: IUR performance on REWRITE test set.
|
| 263 |
+
|
| 264 |
+
<table><tr><td></td><td>PP</td><td>PR</td><td>PF</td><td>TP</td><td>TR</td><td>TF</td></tr><tr><td>Full Model</td><td>82.6</td><td>76.8</td><td>79.6</td><td>76.9</td><td>70.1</td><td>73.3</td></tr><tr><td>w/o CSF</td><td>82.0</td><td>76.8</td><td>79.3</td><td>76.2</td><td>69.3</td><td>72.6</td></tr><tr><td>w/o RCF</td><td>81.7</td><td>77.4</td><td>79.5</td><td>75.7</td><td>70.6</td><td>73.1</td></tr><tr><td>w/o CSF, RCF</td><td>81.0</td><td>77.3</td><td>79.1</td><td>74.8</td><td>70.3</td><td>72.5</td></tr></table>
|
| 265 |
+
|
| 266 |
+
Table 6: Parsing performance on REWRITE test set.
|
| 267 |
+
|
| 268 |
+
features have the greatest impact on the EM metric, while the BLEU and ROUGE metrics are influenced slightly. Second, when CSF and RCF are completely removed, the results of digraph modeling still have a performance advantage compared to RUN, which shows the advantage of digraph modeling that simplifies the complexity without complex model designs. To further verify the advantages of our method, we conduct a case analysis in Appendix E.
|
| 269 |
+
|
| 270 |
+
# 4.6 Rewriting Speed
|
| 271 |
+
|
| 272 |
+
To illustrate the advantages of digraph modeling in IUR, we compare the rewriting speed between the RUN model, our base model, and our full model on the REWRITE test dataset in Figure 4. In order to minimize the influence of irrelevant factors, we run the three systems on the same machine for 5 times and report the average speed. Comparing the speed of RUN with our base model, it shows that modeling the IUR as a digraph structure is very efficient. Further use of our proposed CSF and RCF features reduces this efficiency advantage, but still achieves more than 3 times speedup. In addition, the speed of model w/ BERT is reduced compared with that w/o BERT, indicating that BERT encoding also occupies an important time overhead. In addition, the speed of LLM generation is about 20-30 tokens/s. We test the sentence generation speed of Qwen2-7B and ChatGLM3-6B on the same dataset and the results are 2.72 and 2.73 sentence per second, respectively. LLMs are far slower than our proposed method and not suitable for rewriting in RAG.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 4: Comparison of rewriting speed (sentences per second) on REWRITE test dataset.
|
| 276 |
+
|
| 277 |
+
# 5 Conclusion
|
| 278 |
+
|
| 279 |
+
Ellipses and coreferences in dialogues limit the retrieval capabilities of RAG systems. We propose a RAG method based on IUR enhancement. This method uses the Node Linking IUR model to rewrite queries, enabling better retrieval. In addition, we design a knowledge conversation dataset to evaluate performance of RAG in real dialogue scenarios. The experimental results show that our approach achieves better results when dealing with incomplete discourse in dialogs. In addition, our experimental results on the IUR task show that our IUR model greatly outperforms baseline and related systems, including large language models.
|
| 280 |
+
|
| 281 |
+
# Limitation
|
| 282 |
+
|
| 283 |
+
In this study, we investigate the effects of utterance rewriting methods on the enhancement of retrieval generation. Our research is centered on enhancing the generation capabilities of LLMs within RAG systems by optimizing retrieval effects. While the incorporation of IUR significantly enhances the quality of both retrieval and generation compared to standard retrieval methods, our exploration of the impact of retrieval results on generation remains incomplete. During the experiment, we find that not all queries positively influence the generation process of large models. In fact, some incorrect queries will mislead the large model generation. Moving forward, we will diligently examine how retrieval results impact models within RAG systems. By considering the necessity of retrieval, the relevance of retrieval outcomes, and other factors, we will further delve into the influence and optimization strategies for retrieval for LLMs and RAG systems.
|
| 284 |
+
|
| 285 |
+
# References
|
| 286 |
+
|
| 287 |
+
Vaibhav Adlakha, Shehzaad Dhuliawala, Kaheer Suleman, Harm de Vries, and Siva Reddy. 2022. TopiOCQA: Open-domain conversational question answering with topic switching. volume 10, pages 468-483.
|
| 288 |
+
Akari Asai, Sewon Min, Zexuan Zhong, and Danqi Chen. 2023a. Retrieval-based language models and applications. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 6: Tutorial Abstracts), pages 41-46.
|
| 289 |
+
Akari Asai, Zeqiu Wu, Yizhong Wang, Avirup Sil, and Hannaneh Hajishirzi. 2023b. Self-rag: Learning to retrieve, generate, and critique through self-reflection. arXiv preprint arXiv:2310.11511.
|
| 290 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings.
|
| 291 |
+
Florin Cuconasu, Giovanni Trappolini, Federico Siciliano, Simone Filice, Cesare Campagnano, Yoelle Maarek, Nicola Tonellotto, and Fabrizio Silvestri. 2024. The power of noise: Redefining retrieval for rag systems. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 719-729.
|
| 292 |
+
DeepSeek-AI. 2024. Deepseek llm: Scaling opensource language models with longtermism. arXiv preprint arXiv:2401.02954.
|
| 293 |
+
Ma Dongbo, Sami Miniaoui, Li Fen, Sara A Althubiti, and Theyab R Alsenani. 2023. Intelligent chatbot interaction system capable for sentimental analysis using hybrid machine learning algorithms. Information Processing & Management, 60(5):103440.
|
| 294 |
+
T Dozat. 2016. Deep biaffine attention for neural dependency parsing. arXiv preprint arXiv:1611.01734.
|
| 295 |
+
Haowei Du, Dinghao Zhang, Chen Li, Yang Li, and Dongyan Zhao. 2023. Multi-granularity information interaction framework for incomplete utterance rewriting. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 2576-2581.
|
| 296 |
+
Ahmed Elgohary, Denis Peskov, and Jordan Boyd-Graber. 2019. Can you unpack that? learning to rewrite questions-in-context. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5918-5924.
|
| 297 |
+
Tianyu Gao, Howard Yen, Jiatong Yu, and Danqi Chen. 2023a. Enabling large language models to generate text with citations. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6465-6488.
|
| 298 |
+
|
| 299 |
+
Yunfan Gao, Yun Xiong, Xinyu Gao, Kangxiang Jia, Jinliu Pan, Yuxi Bi, Yi Dai, Jiawei Sun, and Haofen Wang. 2023b. Retrieval-augmented generation for large language models: A survey. arXiv preprint arXiv:2312.10997.
|
| 300 |
+
Team GLM, Aohan Zeng, Bin Xu, Bowen Wang, Chenhui Zhang, Da Yin, Diego Rojas, Guanyu Feng, Hanlin Zhao, Hanyu Lai, Hao Yu, Hongning Wang, Jiadai Sun, Jiajie Zhang, Jiale Cheng, Jiayi Gui, Jie Tang, Jing Zhang, Juanzi Li, Lei Zhao, Lindong Wu, Lucen Zhong, Mingdao Liu, Minlie Huang, Peng Zhang, Qinkai Zheng, Rui Lu, Shuaiqi Duan, Shudan Zhang, Shulin Cao, Shuxun Yang, Weng Lam Tam, Wenyi Zhao, Xiao Liu, Xiao Xia, Xiaohan Zhang, Xiaotao Gu, Xin Lv, Xinghan Liu, Xinyi Liu, Xinyue Yang, Xixuan Song, Xunkai Zhang, Yifan An, Yifan Xu, Yilin Niu, Yuantao Yang, Yueyan Li, Yushi Bai, Yuxiao Dong, Zehan Qi, Zhaoyu Wang, Zhen Yang, Zhengxiao Du, Zhenyu Hou, and Zihan Wang. 2024. Chatglm: A family of large language models from glm-130b to glm-4 all tools. Preprint, arXiv:2406.12793.
|
| 301 |
+
Xinnan Guo, Qian Zhu, Qiuhui Shi, Xuan Lin, Liubin Wang, DaqianLi DaqianLi, and Yongrui Chen. 2024. Context-aware tracking and dynamic introduction for incomplete utterance rewriting in extended multi-turn dialogues. In Findings of the Association for Computational Linguistics ACL 2024, pages 2138-2148.
|
| 302 |
+
Shailja Gupta, Rajesh Ranjan, and Surya Narayan Singh. 2024. A comprehensive survey of retrieval-augmented generation (rag): Evolution, current landscape and future directions. arXiv preprint arXiv:2410.12837.
|
| 303 |
+
Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International conference on machine learning, pages 3929-3938. PMLR.
|
| 304 |
+
Jie Hao, Linfeng Song, Liwei Wang, Kun Xu, Zhaopeng Tu, and Dong Yu. 2021. Rast: Domain-robust dialogue rewriting as sequence tagging. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 4913-4924.
|
| 305 |
+
Soyeong Jeong, Jinheon Baek, Sukmin Cho, Sung Ju Hwang, and Jong-Cheol Park. 2024. Adaptive-rag: Learning to adapt retrieval-augmented large language models through question complexity. In 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 7036-7050. Association for Computational Linguistics.
|
| 306 |
+
Zhengbao Jiang, Frank F Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, Yiming Yang, Jamie Callan, and Graham Neubig. 2023. Active retrieval augmented generation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7969-7992.
|
| 307 |
+
|
| 308 |
+
Lisa Jin, Linfeng Song, Lifeng Jin, Dong Yu, and Daniel Gildea. 2022. Hierarchical context tagging for utterance rewriting. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pages 10849-10857.
|
| 309 |
+
Vineet Kumar and Sachindra Joshi. 2016. Non-sentential question resolution using sequence to sequence learning. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 2022-2031.
|
| 310 |
+
Vineet Kumar and Sachindra Joshi. 2017. Incomplete follow-up question resolution using retrieval based sequence to sequence learning. In Proceedings of the 40th international acm SIGIR conference on research and development in information retrieval, pages 705-714.
|
| 311 |
+
Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Kuttler, Mike Lewis, Wen-tau Yih, Tim RocktΓ€schel, et al. 2020. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in Neural Information Processing Systems, 33:9459-9474.
|
| 312 |
+
Jiang Li, Xiangdong Su, Xinlan Ma, and Guanglai Gao. 2023a. How well apply simple mlp to incomplete utterance rewriting? In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1567-1576.
|
| 313 |
+
Zitong Li, Jiawei Li, Haifeng Tang, Kenny Zhu, and Ruolan Yang. 2023b. Incomplete utterance rewriting by a two-phase locate-and-fill regime. In Findings of the Association for Computational Linguistics: ACL 2023, pages 2731-2745.
|
| 314 |
+
Zuchao Li, Shitou Zhang, Hai Zhao, Yifei Yang, and Dongjie Yang. 2023c. Batgpt: A bidirectional autoregressive talker from generative pre-trained transformer. arXiv preprint arXiv:2307.00360.
|
| 315 |
+
Nelson F Liu, Tianyi Zhang, and Percy Liang. 2023a. Evaluating verifiability in generative search engines. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 7001-7025.
|
| 316 |
+
Qian Liu, Bei Chen, Jian-Guang Lou, Bin Zhou, and Dongmei Zhang. 2020a. Incomplete utterance rewriting as semantic segmentation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2846-2857.
|
| 317 |
+
Qian Liu, Bei Chen, Jian-Guang Lou, Bin Zhou, and Dongmei Zhang. 2020b. Incomplete utterance rewriting as semantic segmentation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2846-2857, Online. Association for Computational Linguistics.
|
| 318 |
+
Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. 2023b. Gpt understands, too. AI Open.
|
| 319 |
+
|
| 320 |
+
Zihan Liu, Wei Ping, Rajarshi Roy, Peng Xu, Chankyu Lee, Mohammad Shoeybi, and Bryan Catanzaro. 2024. Chatqa: Surpassing gpt-4 on conversational qa and rag. Advances in Neural Information Processing Systems, 37:15416-15459.
|
| 321 |
+
Hongyin Luo, Yung-Sung Chuang, Yuan Gong, Tianhua Zhang, Yoon Kim, Xixin Wu, Danny Fox, Helen Meng, and James Glass. 2023. Sail: Search-augmented instruction learning. arXiv preprint arXiv:2305.15225.
|
| 322 |
+
Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi, and Hannaneh Hajishirzi. 2023. When not to trust language models: Investigating effectiveness of parametric and non-parametric memories. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9802-9822.
|
| 323 |
+
OpenAI. 2024. Gpt-4o mini: advancing cost-efficient intelligence. https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/.
|
| 324 |
+
Zhufeng Pan, Kun Bai, Yan Wang, Lianqiang Zhou, and Xiaojiang Liu. 2019. Improving open-domain dialogue systems via multi-turn incomplete utterance restoration. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 1824-1833, Hong Kong, China. Association for Computational Linguistics.
|
| 325 |
+
Letian Peng, Zuchao Li, and Hai Zhao. 2024. Fast and accurate incomplete utterance rewriting. IEEE/ACM Transactions on Audio, Speech, and Language Processing.
|
| 326 |
+
Chen Qu, Liu Yang, Cen Chen, Minghui Qiu, W. Bruce Croft, and Mohit Iyyer. 2020. Open-Retrieval Conversational Question Answering. In SIGIR.
|
| 327 |
+
Jun Quan, Deyi Xiong, Bonnie Webber, and Changjian Hu. 2019. GECOR: An end-to-end generative ellipsis and co-reference resolution model for task-oriented dialogue. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 4547-4557, Hong Kong, China. Association for Computational Linguistics.
|
| 328 |
+
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of machine learning research, 21(140):1-67.
|
| 329 |
+
Ori Ram, Yoav Levine, Itay Dalmedigos, Dor Muhlgay, Amnon Shashua, Kevin Leyton-Brown, and Yoav Shoham. 2023. In-context retrieval-augmented language models. Transactions of the Association for Computational Linguistics, 11:1316-1331.
|
| 330 |
+
|
| 331 |
+
Siva Reddy, Danqi Chen, and Christopher D. Manning. 2019. CoQA: A conversational question answering challenge. Transactions of the Association for Computational Linguistics, 7:249-266.
|
| 332 |
+
Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettle-moyer, Nicola Cancedda, and Thomas Scialom. 2024. Toolformer: Language models can teach themselves to use tools. Advances in Neural Information Processing Systems, 36.
|
| 333 |
+
Abigail See, Peter J Liu, and Christopher D Manning. 2017. Get to the point: Summarization with pointer-generator networks. arXiv preprint arXiv:1704.04368.
|
| 334 |
+
Freda Shi, Xinyun Chen, Kanishka Misra, Nathan Scales, David Dohan, Ed H Chi, Nathanael Scharli, and Denny Zhou. 2023. Large language models can be easily distracted by irrelevant context. In International Conference on Machine Learning, pages 31210-31227. PMLR.
|
| 335 |
+
Hui Su, Xiaoyu Shen, Rongzhi Zhang, Fei Sun, Pengwei Hu, Cheng Niu, and Jie Zhou. 2019. Improving multi-turn dialogue modelling with utterance rewriter. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 22-31.
|
| 336 |
+
Qwen Team. 2024. Qwen2.5: A party of foundation models.
|
| 337 |
+
Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, and Ashish Sabharwal. 2022. Interleaving retrieval with chain-of-thought reasoning for knowledge-intensive multi-step questions. arXiv preprint arXiv:2212.10509.
|
| 338 |
+
Oriol Vinyals, Meire Fortunato, and Navdeep Jaitly. 2015. Pointer networks. In Advances in Neural Information Processing Systems 28: Annual Conference on Neural Information Processing Systems 2015, December 7-12, 2015, Montreal, Quebec, Canada, pages 2692-2700.
|
| 339 |
+
Shenzhi Wang, Yaowei Zheng, Guoyin Wang, Shiji Song, and Gao Huang. 2024. Llama3-8b-chinese-chat (revision 6622a23).
|
| 340 |
+
Kun Xu, Haochen Tan, Linfeng Song, Han Wu, Haisong Zhang, Linqi Song, and Dong Yu. 2020. Semantic role labeling guided multi-turn dialogue rewriter. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6632-6639.
|
| 341 |
+
An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Zhou, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. 2024. Qwen2 technical report. arXiv preprint arXiv:2407.10671.
|
| 342 |
+
Yao Yao, Zuchao Li, and Hai Zhao. 2024. Sirllm: Streaming infinite retentive llm. In Proceedings of the 62nd Annual Meeting of the Association for
|
| 343 |
+
|
| 344 |
+
Computational Linguistics (Volume 1: Long Papers), pages 2611-2624.
|
| 345 |
+
Zichun Yu, Chenyan Xiong, Shi Yu, and Zhiyuan Liu. 2023. Augmentation-adapted retriever improves generalization of language models as generic plug-in. In The 61st Annual Meeting Of The Association For Computational Linguistics.
|
| 346 |
+
Yong Zhang, Zhitao Li, Jianzong Wang, Ning Cheng, and Jing Xiao. 2022. Self-attention for incomplete utterance rewriting. In ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 8047-8051. IEEE.
|
| 347 |
+
ZhipuAI. 2024. Glmrag. Accessed: 2024-9-10.
|
| 348 |
+
|
| 349 |
+
# A RAG Experiments on Other Base Model
|
| 350 |
+
|
| 351 |
+
The experiment results on Qwen2.5-7B-Instruct (Team, 2024) and Llama3-8B-ChineseChat (Wang et al., 2024) are shown in Table 7. We are surprised to find that the IUR results on Qwen and Llama models are not ideal compared with ChatGLM3-6B (GLM et al., 2024). We check and find that this is due to the problem of rewriting the previous reference. Although this helps the model understand the question better, it can also lead to inconsistent responses, especially when the question answering of our dataset relies more on external data. The rewritten question is also incorrectly answered due to the lack of external knowledge, and the rewriting breaks the original dialogue coherence, so it is not effective. However, it can be found that the RAG system with IUR still has better results, which benefits from the enhancement of retrieval in the RAG process by IUR.
|
| 352 |
+
|
| 353 |
+
# B Encoder Setting
|
| 354 |
+
|
| 355 |
+
In BiLSTM sequence encoder setting, we use randomly initialized word embedding with dimension 100, character embedding with dimension 50, and set the character convolutional hidden size to 100. The embedding dropout is set to 0.2. Three BiLSTM layers are stacked with hidden size 600 and dropout 0.33. The hidden size of FFN for head and tail node projection is set to 600. While for the Transformer encoder setting, we fix the parameters of the bottom Transformer layers and only finetune the top 4 layers. We use a mean pooling strategy to deal with the inconsistency between the word-level parsing and subword-level representations. The hidden size of FFN is kept the same as in the BiLSTM encoder setting.
|
| 356 |
+
|
| 357 |
+
Our models are trained using Adam optimizer for up to 200 epochs, with early stopping based on development dataset performance. The learning rate is set to 1e-3 and 5e-5 for the BiLSTM encoder and Transformer encoder settings respectively. For English, we use the official BERT-large-uncased, and for Chinese, we use BERT-base-chinese.
|
| 358 |
+
|
| 359 |
+
# C Case Study of Dialogue-RAG
|
| 360 |
+
|
| 361 |
+
To further explore the enhancement effect of IUR on RAG, we conduct a case study. Figure 5 illustrates a dialogue sample in our Dialogue-RAG-MULTI-v1.0 dataset and Figure 6 shows its related
|
| 362 |
+
|
| 363 |
+

|
| 364 |
+
Figure 5: Sample Dialogue.
|
| 365 |
+
|
| 366 |
+

|
| 367 |
+
Figure 6: Sample Document.
|
| 368 |
+
|
| 369 |
+
document. Figure 7 and Figure 8, respectively, show the query results and responses enhanced without or with IUR. Through comparison, it can be found that the IUR enhanced question carry more critical information. This enhances the retrieval accuracy, which in turn enhances the RAG system's response accuracy.
|
| 370 |
+
|
| 371 |
+
# D Supplementary Dataset Experiments for IUR Task
|
| 372 |
+
|
| 373 |
+
We conducted additional comparative experiments on English Task-Oriented Dialogue dataset MULTI (Pan et al., 2019) and Chinese Open Domain Dialogue dataset TASK (Quan et al., 2019).
|
| 374 |
+
|
| 375 |
+
<table><tr><td>Method</td><td></td><td>B1</td><td>B2</td><td>B3</td><td>B4</td><td>R1</td><td>R2</td><td>RL</td><td>Sp</td><td>Sr</td><td>Sf</td></tr><tr><td rowspan="4">Qwen2.5</td><td>w/o IUR</td><td>9.04</td><td>5.54</td><td>3.90</td><td>2.77</td><td>14.97</td><td>5.79</td><td>13.96</td><td>58.43</td><td>63.53</td><td>60.69</td></tr><tr><td>w/ IUR</td><td>9.32</td><td>5.49</td><td>3.72</td><td>2.51</td><td>15.43</td><td>5.69</td><td>14.27</td><td>57.83</td><td>65.86</td><td>61.44</td></tr><tr><td>RAG w/o IUR</td><td>10.61</td><td>7.45</td><td>5.73</td><td>4.39</td><td>20.75</td><td>10.96</td><td>19.54</td><td>59.22</td><td>70.02</td><td>63.96</td></tr><tr><td>Dialogue-RAG (ours)</td><td>14.20</td><td>10.81</td><td>8.62</td><td>6.76</td><td>29.27</td><td>17.07</td><td>27.8</td><td>62.39</td><td>77.39</td><td>68.9</td></tr><tr><td rowspan="4">LLaMA3</td><td>w/o IUR</td><td>7.79</td><td>4.71</td><td>3.29</td><td>2.32</td><td>13.11</td><td>5.05</td><td>12.11</td><td>54.7</td><td>61.75</td><td>57.82</td></tr><tr><td>w/ IUR</td><td>7.74</td><td>4.55</td><td>3.08</td><td>2.06</td><td>13.54</td><td>4.95</td><td>12.4</td><td>54.4</td><td>63.77</td><td>58.56</td></tr><tr><td>RAG w/o IUR</td><td>9.76</td><td>6.92</td><td>5.37</td><td>4.14</td><td>19.10</td><td>10.15</td><td>18.07</td><td>56.58</td><td>68.47</td><td>61.69</td></tr><tr><td>Dialogue-RAG (ours)</td><td>13.00</td><td>9.80</td><td>7.78</td><td>6.09</td><td>26.82</td><td>15.59</td><td>25.44</td><td>60.28</td><td>76.02</td><td>66.99</td></tr></table>
|
| 376 |
+
|
| 377 |
+
Table 7: RAG experiments on Qwen2.5 and LLaMA3. $B$ , $R$ , and $S$ are BLEU, ROUGE, and BERT SCORE respectively. The cumulative n-gram BLEU score is denote as $B_{n}$ . For ROUGE metric, it measures the n-gram overlapping (denoted as $R_{n}$ ) and longest matching (denoted as $R_{L}$ ) between the rewritten utterances and the golden ones. $S_{p}$ , $S_{r}$ , and $S_{f}$ represent the precision, recall, and F1 score of BERT SCORE respectively.
|
| 378 |
+
|
| 379 |
+
<table><tr><td>{</td></tr><tr><td>"question": "How long did the construction take?",</td></tr><tr><td>"ground truth": "It took 44 years to complete.",</td></tr><tr><td>"retrieval results": [</td></tr><tr><td>{'chunk id': 18941, "doc id": 5462, "content": " The work was suspended several times due to violation of the contract clauses by the customer. As of 2024, the work is not completed.\\References.\\n\\n",</td></tr><tr><td>{'chunk id': 23971, "doc id": 6828, "content": "On March 6 & 10, 2011, installation of the 653 ton ea. sector gates was completed.\\nThe Notice of Construction Complete was issued on April 8, 2014.\\nSources.\\n",</td></tr><tr><td>{'chunk id': 17610, "doc id": 5109, "content": "The first such conditions were created by the Novi Sad Urban Institute in 1970. The Novi Sad Municipal Assembly decides on the construction of the bridge in December 1973. The architects of the bridge were academics Nikola Hajdin, Gojko Nenadic and Predrag Ε½elacic.\\nWork began on 22 September 1976, when the first pier on the left bank of the Danube was stabbed. During the construction, the attention of the experts was focused on three details: The construction of the bars for pillar 17, where there were traces of land slides; the assembly of the steel structure, in pieces, weighing 200 tonnes, without scaffolding, with the help of the Derrick cranes; and the assembly of the steel ropes, which was original.\\n",</td></tr><tr><td>"model response": "The construction of the bridge took approximately 48 months."</td></tr><tr><td>}</td></tr></table>
|
| 380 |
+
|
| 381 |
+
Figure 7: The case of RAG result without IUR.
|
| 382 |
+
|
| 383 |
+
<table><tr><td>{</td></tr><tr><td>"question": "How long did the construction take?",</td></tr><tr><td>"ground truth": "It took 44 years to complete.",</td></tr><tr><td>"rewritten question": "How long did the construction of the Athar Jamad Mosque take?",</td></tr><tr><td>"retrieval results": [</td></tr><tr><td>{"chunk_id": 24918, "file_id": 7088, "content": "nAthar Jamad Mosque\nMosque in Tamil Nadu, India\nAthar Jamad Masjid ( ; ; also known as "\The Big Mosque") is located at Oppanakara Street within the Coimbatore district of Tamil Nadu in India. It is one of the oldest and biggest masjid in Coimbatore\nHistory and construction\nA perfume merchant named Athar, who migrated from Tirunelveli, built the structure. It took 44 years to complete, with construction beginning in 1860 and finishing in 1904. \nThe structure is made up of limestone and mortar and polished with egg white.",</td></tr><tr><td>{"chunk_id": 30564, "file_id": 8609, "content": " The analysis of the brickwork during the restoration showed different construction phases, and revealed that the foundations and the surviving walls were made of brick and stone. Moreover, the surveys show that during the conversion into a mosque in 1506 the atrium and the wall of the Mihrab had to be rebuilt. At the same time, a massive minaret was erected on the northeast side of the building\nReferences\nIn",</td></tr><tr><td>{"chunk_id": 16735, "file_id": 4877, "content": "Construction of the mosque took four years. It is 10,000 square meters in area. It has two minarets, each 35 meters high, and a dome of aluminum composite. The calligraphy on the interior of the dome was written by Semih Irtes. The large windows on three sides of the prayer hall were designed by Orhan Kogan. The minbar is acrylic and was designed by Tayfun Erdogmus. Decorative motifs are derived from Seljuk art. The large, asymmetrical chandelier has waterfall-shaped glass globes made by Nahide BΓΌyΓΌkaymak#, "reflecting a prayer that Allah's light should fall on worshipers like rain," and the women's section is designed especially to allow a clear view of the chandelier".],</td></tr><tr><td>"model response": " The construction of the Athar Jamad Mosque in Coimbatore, Tamil Nadu, India took 44 years, from 1860 to 1904."</td></tr></table>
|
| 384 |
+
|
| 385 |
+
Figure 8: The case of RAG result with IUR.
|
| 386 |
+
|
| 387 |
+
# D.1 Results on Multi Dataset
|
| 388 |
+
|
| 389 |
+
In Table 8, we report the IUR performance on the MULTI dataset and list five baselines for comparison: Syntactic, L-Gen, L-Ptr-Gen, PAC, and RUN.
|
| 390 |
+
|
| 391 |
+
Our method formulates IUR as a digraph parsing problem and proposes CSF and RCF features to strengthen the parsing process, thus achieving better IUR performance than the previous best system, improving on $\mathcal{F}_1$ , $\mathcal{F}_2$ , and $\mathcal{F}_3$ metrics, 2.4, 1.9, 2.0, respectively. For the final generated rewrite utterance, we get an improvement in BLEU and ROUGE metrics, reaching $+0.8\mathrm{B}_1$ , $+0.8\mathrm{B}_2$ , $+0.5\mathrm{R}_1$ , and $+1.3\mathrm{R}_2$ . On one hand, these improvements are due to digraph modeling and node linking parser, which can seek the insertion span and the insertion position more easily than UNet, due to only single-step digraph derivation is required, rather than enumerating all the words in the span as in RUN. On the other hand, the features derived from our generative PrLM can effectively help remove unreasonable digraph links, reducing
|
| 392 |
+
|
| 393 |
+
the search space for insertion decisions.
|
| 394 |
+
|
| 395 |
+
In the case of using BERT PrLM, PAC (Pan et al., 2019) proposes a "pick-and-combine" model that demonstrates strong competitiveness. We also achieved good improvements within this setting, with $\mathcal{F}_1 + 2.1$ , $\mathcal{F}_2 + 2.0$ , $\mathcal{F}_3 + 1.3$ scores respectively, and 0.8, 1.2, 0.6, 1.2 gains on $\mathbf{B}_1$ , $\mathbf{B}_2$ , $\mathbf{R}_1$ , $\mathbf{R}_2$ compared to RUN. This further illustrates the advantages of our digraph modeling compared to formalization as semantic segmentation. In addition, the improvements on $\mathbf{B}_1$ , $\mathbf{B}_2$ , $\mathbf{R}_1$ , and $\mathbf{R}_2$ show that our method makes the determination of context span and insertion point more accurate.
|
| 396 |
+
|
| 397 |
+
# D.2 Results on Task Dataset
|
| 398 |
+
|
| 399 |
+
Experiment results on the TASK benchmarks are presented in Table 9. We have additionally introduced two systems for comparison, GECOR and Pronoun Sub, of which GECOR 1 adopts the copy mechanism, while GECOR 2 adopts the gated copy mechanism. For a fair comparison, experiments
|
| 400 |
+
|
| 401 |
+
<table><tr><td>Model</td><td>P1</td><td>R1</td><td>F1</td><td>P2</td><td>R2</td><td>F2</td><td>P3</td><td>R3</td><td>F3</td><td>B1</td><td>B2</td><td>R1</td><td>R2</td></tr><tr><td>DuSβ </td><td>67.4</td><td>37.2</td><td>47.9</td><td>53.9</td><td>30.3</td><td>38.8</td><td>45.3</td><td>25.3</td><td>32.5</td><td>84.1</td><td>81.2</td><td>89.3</td><td>80.6</td></tr><tr><td>L-Genβ </td><td>65.5</td><td>40.8</td><td>50.3</td><td>52.2</td><td>32.6</td><td>40.1</td><td>43.6</td><td>27.0</td><td>33.4</td><td>84.9</td><td>81.7</td><td>88.8</td><td>80.3</td></tr><tr><td>L-Ptr-Genβ </td><td>66.6</td><td>40.4</td><td>50.3</td><td>54.0</td><td>33.1</td><td>41.1</td><td>45.9</td><td>28.1</td><td>34.9</td><td>84.7</td><td>81.7</td><td>89.0</td><td>80.9</td></tr><tr><td>RUN (Liu et al., 2020b)</td><td>66.9</td><td>54.9</td><td>60.3</td><td>53.0</td><td>43.4</td><td>47.7</td><td>43.8</td><td>35.7</td><td>39.3</td><td>91.1</td><td>88.0</td><td>91.0</td><td>83.3</td></tr><tr><td>Ours</td><td>67.3</td><td>58.7</td><td>62.7</td><td>53.7</td><td>46.1</td><td>49.6</td><td>44.9</td><td>38.3</td><td>41.3</td><td>91.9</td><td>88.8</td><td>91.5</td><td>84.6</td></tr><tr><td>PACβ </td><td>70.5</td><td>58.1</td><td>63.7</td><td>55.4</td><td>45.1</td><td>49.7</td><td>45.2</td><td>36.6</td><td>40.4</td><td>89.9</td><td>86.3</td><td>91.6</td><td>82.8</td></tr><tr><td>RUN + BERT</td><td>73.2</td><td>64.6</td><td>68.6</td><td>59.5</td><td>53.0</td><td>56.0</td><td>50.7</td><td>45.1</td><td>47.7</td><td>92.3</td><td>89.6</td><td>92.4</td><td>85.1</td></tr><tr><td>Ours + BERT</td><td>74.5</td><td>67.4</td><td>70.7</td><td>60.8</td><td>55.4</td><td>58.0</td><td>51.2</td><td>46.4</td><td>48.7</td><td>93.1</td><td>90.8</td><td>93.0</td><td>86.3</td></tr></table>
|
| 402 |
+
|
| 403 |
+
Table 8: Experimental results on the MULTI dataset. β : Results from Pan et al. (2019). The bolded results in a column indicate a statistically significant improvement against all the baselines ( $p < 0.05$ ).
|
| 404 |
+
|
| 405 |
+
<table><tr><td>Model</td><td>EM</td><td>B4</td><td>F1</td></tr><tr><td>L-Ptr-Genβ </td><td>50.4</td><td>74.1</td><td>44.1</td></tr><tr><td>GECOR 1β </td><td>68.5</td><td>83.9</td><td>66.1</td></tr><tr><td>GECOR 2β </td><td>66.2</td><td>83.0</td><td>66.2</td></tr><tr><td>RUN (Liu et al., 2020b)</td><td>69.2</td><td>85.6</td><td>70.6</td></tr><tr><td>Ours</td><td>71.2</td><td>86.7</td><td>72.8</td></tr></table>
|
| 406 |
+
|
| 407 |
+
Table 9: Experimental results on TASK. β : Results from Quan et al. (2019).
|
| 408 |
+
|
| 409 |
+
are not augmented with BERT. From the results, our model obtains the best results on EM, BLEU, and ROUGE. In conclusion, on four datasets with different languages and different domains, these improvements illustrate digraph modeling, CSF and RCF features are generally effective for IUR.
|
| 410 |
+
|
| 411 |
+
# E Case Study of Rewrite
|
| 412 |
+
|
| 413 |
+
Table 10 shows a specific case-based comparison of performance between our model and baseline RUN. To rewrite the final utterance Could you give me the phone number and postcode?, our model can locate the insertion relationship clearly, and select the appropriate spans one restaurant listing for North American food and the only restaurant serving north American food for action. In contrast, RUN resolves the reference to north American food wrongly from the previous context. Though north American food forms a proper supplementary for the sentence, it is meaningless due to the user asks for restaurant instead of north American food. The possible reason is that the semantic segmentation and region searching algorithms are misled by the inference error and decode a grammatically correct but inappropriate span for insertion. The error from CNNs prediction in RUN is passed to the decoding algorithm, resulting in such inconsistency with the fact, which makes the region wrongly attended and weakens the model performance. Thus,
|
| 414 |
+
|
| 415 |
+
it demonstrates that our model shows better robustness and is free from disturbing factors compared with region-based RUN.
|
| 416 |
+
|
| 417 |
+
In addition, comparing the model outputs with and without CSF and RCF features, although both our models found the correct reference, i.e. American food restaurant, the one without CSF and RCF features chooses Utterance 4, while w/ CSF,RCF finds Utterance 5. Since CSF and RCF bring constraints from contextual similarity and rewriting consistency, the only restaurant serving American food in Utterance 5 is more consistent with the requirement. This also illustrates the effectiveness of our proposed CSF and RCF for IUR. However, in the final generation from surface tokens, there is an additional only compared to a gold reference, which is a common problem in extractive IUR modeling, but it does not have much effect on the actual role of IUR.
|
| 418 |
+
|
| 419 |
+
<table><tr><td>Utterance 1: I am looking for a Danish restaurant.</td></tr><tr><td>Utterance 2: There are no danish restaurants listed . may i direct you toward another restaurant ?</td></tr><tr><td>Utterance 3: How about American food ?</td></tr><tr><td>Utterance 4: There is one restaurant listing for north American food , gourmet burger kitchen in centre part of town .</td></tr><tr><td>Utterance 5: Is there any north American food in centre part of town else ?</td></tr><tr><td>Utterance 6: That is the only restaurant serving north American food .</td></tr><tr><td>Utterance 7: Could you give me the phone number and postcode ?</td></tr><tr><td>Gold: Could you give me the phone number and postcode of the restaurant serving north American food?</td></tr><tr><td>RUN: Could you give me the phone number and postcode of north American food ?</td></tr><tr><td>Ours: Could you give me the phone number and postcode of one restaurant listing for north American food?</td></tr><tr><td>Ours w/ CSF,RCF: Could you give me the phone number and postcode of the only restaurant serving north American food?</td></tr></table>
|
| 420 |
+
|
| 421 |
+
Table 10: Case study for comparison between our model and baselines.
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01eb5317d422ae8b69bd0c319a4517e9ff84c4632704dadc6bf89a4ee37c98ac
|
| 3 |
+
size 1139145
|
2025/Dialogue-RAG_ Enhancing Retrieval for LLMs via Node-Linking Utterance Rewriting/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/604d7a09-272a-416a-80c9-92a91e82a9aa_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f095709f35f9426ffe6393395322080ed6d3f3cfd80058fb2ebd5d9ff85901c9
|
| 3 |
+
size 416271
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/full.md
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Did Translation Models Get More Robust Without Anyone Even Noticing?
|
| 2 |
+
|
| 3 |
+
Ben Peters* and AndrΓ© F. T. Martins*β β‘
|
| 4 |
+
|
| 5 |
+
* Instituto de TelecomunicaΓ§Γ΅es, Lisbon, Portugal
|
| 6 |
+
|
| 7 |
+
β Instituto Superior TΓ©cnico, Universidade de Lisboa, Lisbon, Portugal
|
| 8 |
+
|
| 9 |
+
$^{\ddagger}$ ELLIS Unit Lisbon (LULIS), Lisbon, Portugal
|
| 10 |
+
|
| 11 |
+
Unbabel, Lisbon, Portugal
|
| 12 |
+
|
| 13 |
+
benzurdopeters@gmail.com, andre.t.martins@tecnico.ulisboa.pt
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Neural machine translation (MT) models achieve strong results across a variety of settings, but it is widely believed that they are highly sensitive to "noisy" inputs, such as spelling errors, abbreviations, and other formatting issues. In this paper, we revisit this insight in light of recent multilingual MT models and large language models (LLMs) applied to machine translation. Somewhat surprisingly, we show through controlled experiments that these models are far more robust to many kinds of noise than previous models, even when they perform similarly on clean data. This is notable because, even though LLMs have more parameters and more complex training processes than past models, none of the open ones we consider use any techniques specifically designed to encourage robustness. Next, we show that similar trends hold for social media translation experiments - LLMs are more robust to social media text. We include an analysis of the circumstances in which source correction techniques can be used to mitigate the effects of noise. Altogether, we show that robustness to many types of noise has increased.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
For years, the conventional wisdom has been that neural machine translation (MT) models are highly sensitive to source-side artificial and natural noise at inference time (Belinkov and Bisk, 2018). This insight has motivated many works that seek to make MT models more robust to noise through either specialized training (Ebrahimi et al., 2018; Karpukhin et al., 2019; Park et al., 2020; Vaibhav et al., 2019) or bespoke architectures (Rust et al., 2022; Salesky et al., 2021). However, MT is increasingly being performed in a different paradigm than when these analyses and architectures were created. Previously, models were mostly trained from scratch on task-specific data. Nowadays, strong results often depend on instruction-tuned large language models
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: COMET-22 on the FLORES English-French devtest set when some proportion of source tokens are noised by swapping an adjacent pair of characters.
|
| 25 |
+
|
| 26 |
+
(LLMs) like TowerLLM (Alves et al., 2024) or opaque proprietary systems like ChatGPT. These huge models may make existing robustness techniques more expensive (due to higher parameter counts) or impossible (specialized architectures cannot be grafted onto an existing pretrained system). So the question is, are these robustness techniques still necessary in the era of LLMs, or have larger models and training sets made today's models sufficiently robust on their own?
|
| 27 |
+
|
| 28 |
+
In this work, we investigate these questions through experiments on social media text and synthetically noised corpora. These experiments play complementary roles: social media text contains diverse noise phenomena, but their effect is hard to isolate because the errors are unlabeled. On the other hand, synthetic errors differ from real-world noise, but they are interpretable and controllable, offering a way to measure noise in vitro. By evaluating on a broad spectrum of error types, we can paint a more vivid picture of what kinds of noise, and at what quantities, cause problems for MT sys
|
| 29 |
+
|
| 30 |
+
tems. We make the following contributions:2
|
| 31 |
+
|
| 32 |
+
- We show (Β§3) that large pretrained models are much more robust to synthetic errors than conventional NMT models (see Figure 1), even when they perform similarly on clean data. This result holds across noise types and language pairs, even though the large models lack architectural features that specifically encourage robustness to character noise.
|
| 33 |
+
- We introduce (Β§3.1) a novel technique for measuring the robustness of MT models by learning a regression to predict the quality decline as a function of how noisy the source is.
|
| 34 |
+
- We show (Β§4.1) that models that are robust to synthetic errors perform better at translating social media text. We investigate the relationship between synthetic robustness and performance on "real-world" noise.
|
| 35 |
+
- We conduct (Β§4.2) reference-free MT experiments on MultiLexNorm (van der Goot et al., 2021), which has never before been used for MT. We show that LLMs are more robust than conventional models to this type of noise.
|
| 36 |
+
- We show (Β§5) that finetuning on noisy translation data and source correction pipelines are both effective approaches to mitigate synthetic noise without substantially worsening performance on clean data, allowing conventional NMT models to become more robust than GPT-3.5 to 3 out of 4 synthetic noise types. Combining correction with 7-13B parameter LLM-based translation models yields even higher robustness, allowing these pipelines to surpass GPT-3.5 on all of our synthetic benchmarks, often by a wide margin. Although correction is less effective for social media data on the whole, many individual examples benefit from it, suggesting that identifying these examples is a future direction.
|
| 37 |
+
|
| 38 |
+
# 2 Background
|
| 39 |
+
|
| 40 |
+
# 2.1 Architectures for MT
|
| 41 |
+
|
| 42 |
+
The transformer. In recent years, mainstream MT techniques have been based on the transformer (Vaswani et al., 2017), which uses multi-headed self-attention to mix information across time steps.
|
| 43 |
+
|
| 44 |
+
In the original work, transformers used an encoder-decoder paradigm similar to recurrent MT models (Bahdanau et al., 2014). These models pair an encoder over the source with a decoder, an autoregressive language model that predicts target tokens one at a time. These tokens usually come from a subword vocabulary (Kudo, 2018; Sennrich et al., 2016). Initially, transformer MT models were trained from scratch for a single language pair on parallel data from sources such as the OPUS parallel corpus collection (Tiedemann, 2012).
|
| 45 |
+
|
| 46 |
+
Multilingual models. Although single language pair models often perform well, they struggle in the absence of large quantities of data, making it difficult to achieve good results in low resource language settings. This problem can be mitigated through multilingual training with systems like M2M-100 (Fan et al., 2021) and NLLB-200 (NLLB Team et al., 2022). Low resource language pairs often benefit from training data in other languages. One challenge is language imbalance β the subword vocabulary and training procedure need to be designed to allow strong performance across covered language pairs in spite of this imbalance.
|
| 47 |
+
|
| 48 |
+
LLMs for MT. In parallel to these MT-centric developments, transformers have increasingly been used in a transfer learning set-up in which a model is pretrained on a generic objective for which massive data is available. The model can then be finetuned on one or more downstream tasks. When the pretraining objective is language modeling (Radford et al., 2018), it is straightforward to use the model for generation tasks, including MT (Hendy et al., 2023). Recently, the paradigm has shifted from traditional finetuning to instruction tuning (Sanh et al., 2022; Wei et al., 2022), in which the finetuning data is accompanied by an instructional prompt. This has been shown to give models the ability to generalize to related tasks and has proven effective for MT (Alves et al., 2023, 2024).
|
| 49 |
+
|
| 50 |
+
# 2.2 Robustness to Character Noise
|
| 51 |
+
|
| 52 |
+
Character perturbations can have a large negative impact on MT model performance (Belinkov and Bisk, 2018). Consequently, a number of techniques have been proposed to mitigate their impact.
|
| 53 |
+
|
| 54 |
+
Robustness through training. A common technique to increase robustness is to train MT models on examples with added source errors. Given that high-quality corpora containing authentic er
|
| 55 |
+
|
| 56 |
+
<table><tr><td colspan="6">xxβen</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>88.17</td><td>89.19</td><td>86.35</td><td>88.36</td><td>88.02</td></tr><tr><td>NLLB</td><td>89.28</td><td>89.29</td><td>87.69</td><td>89.72</td><td>89.00</td></tr><tr><td>TI</td><td>89.77</td><td>89.76</td><td>88.69</td><td>90.16</td><td>89.60</td></tr><tr><td>GPT-3.5</td><td>89.64</td><td>89.45</td><td>87.98</td><td>89.81</td><td>89.22</td></tr></table>
|
| 57 |
+
|
| 58 |
+
<table><tr><td colspan="6">enβxx</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>84.02</td><td>87.63</td><td>86.58</td><td>88.94</td><td>86.79</td></tr><tr><td>NLLB</td><td>88.07</td><td>88.30</td><td>88.48</td><td>89.58</td><td>88.61</td></tr><tr><td>TI</td><td>88.57</td><td>89.16</td><td>90.12</td><td>90.02</td><td>89.47</td></tr><tr><td>GPT-3.5</td><td>88.52</td><td>88.83</td><td>89.04</td><td>89.83</td><td>89.05</td></tr></table>
|
| 59 |
+
|
| 60 |
+
Table 1: COMET on FLORES without added noise.
|
| 61 |
+
|
| 62 |
+
rors are rare, the added noise is generally synthetic (Karpukhin et al., 2019), although it can be tuned to resemble natural errors (Martucci et al., 2021; Vaibhav et al., 2019). Whether training on synthetic noise is actually helpful for becoming robust to natural errors is an open question, with various works coming to contradictory conclusions (Belinkov and Bisk, 2018; Vaibhav et al., 2019).
|
| 63 |
+
|
| 64 |
+
Robustness through architecture. As an alternative to specialized training techniques, robustness can be achieved with architectures other than the ubiquitous subword-level transformer. Modeling at the character or byte level (Sutskever et al., 2011; Xue et al., 2022) means that perturbations make only small changes to the sequence of tokens that the model is exposed to, whereas these same perturbations can cause a subword-level model to be exposed to completely different subword types. This may make character- and byte-level models more robust, although the evidence is mixed (Mielke et al., 2021). These models are also much slower than subword-level models because of longer sequence lengths. As an alternative, MT models can be trained on representations that are invariant to character shuffles (Belinkov and Bisk, 2018) or on visual representations of text (Salesky et al., 2021).
|
| 65 |
+
|
| 66 |
+
# 3 Robustness to Synthetic Noise
|
| 67 |
+
|
| 68 |
+
In our first experiments, we evaluate how models perform in the presence of token-level synthetic errors. Although these errors differ from "naturally occurring" noise, they are adjustable and function as a stress test for MT systems.
|
| 69 |
+
|
| 70 |
+
# 3.1 Experiments
|
| 71 |
+
|
| 72 |
+
In all of our synthetic experiments, we adopt a simple set-up: for each translation corpus, we in-
|
| 73 |
+
|
| 74 |
+
troduce a particular type of perturbation into some percentage of the source-side tokens. We then compare performance translating this perturbed corpus to the performance on clean data. A model's robustness can be characterized by the steepness of its decline as the noise level is increased: a flatter slope indicates that the model handles noise better.
|
| 75 |
+
|
| 76 |
+
Data. We use four types of synthetic perturbations, each of which is a plausible error based on the mechanics of typing. For each noise type, we create ten noised versions of the FLORES-200 devtest set (NLLB Team et al., 2022) corresponding to noise levels $p \in \{0.1, 0.2, \ldots, 1.0\}$ . Within a version of the corpus, each whitespace-delimited token is perturbed with probability $p$ and otherwise not altered. Therefore each token can be perturbed at most once. We use the following noise types:
|
| 77 |
+
|
| 78 |
+
- swap: flip two adjacent characters.
|
| 79 |
+
- dupe: duplicate a character.
|
| 80 |
+
- drop: delete a character.
|
| 81 |
+
- key: replace a character with an adjacent key. Further details are in Appendix A.
|
| 82 |
+
|
| 83 |
+
Models. We use models that differ in their scope (bi- or multilingual), architecture (encoder-decoder or decoder-only), and size (74M-13B parameters).
|
| 84 |
+
|
| 85 |
+
- OPUS: We use transformer encoder-decoder models trained from scratch on a single language pair and released as part of OPUS-MT (Tiedemann and Thottingal, 2020). Model and vocabulary sizes are listed in Appendix B.
|
| 86 |
+
- NLLB (NLLB Team et al., 2022), like OPUS, is an encoder-decoder transformer trained on parallel text. However, NLLB is a many-to-many system trained on data in 202 languages. We use the 3.3 billion parameter version.
|
| 87 |
+
- TI: We use the 13 billion parameter version of TowerInstruct-v0.1 (Alves et al., 2024), an instruction-tuned LLM that can translate between 10 languages.
|
| 88 |
+
- GPT-3.5:Β³ the architecture and training data of GPT-3.5 are unknown, but we include it because of its success at MT (Hendy et al., 2023); the related GPT-4 can also correct character perturbations (Cao et al., 2023).
|
| 89 |
+
|
| 90 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-65.05</td><td>-65.41</td><td>-36.18</td><td>-63.44</td><td>-57.52</td></tr><tr><td>NLLB</td><td>-18.14</td><td>-20.97</td><td>-23.79</td><td>-20.81</td><td>-20.93</td></tr><tr><td>TI</td><td>-27.61</td><td>-27.01</td><td>-23.45</td><td>-25.54</td><td>-25.90</td></tr><tr><td>GPT-3.5</td><td>-4.36</td><td>-5.85</td><td>-20.89</td><td>-6.78</td><td>-9.47</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-53.61</td><td>-49.92</td><td>-29.54</td><td>-52.48</td><td>-46.39</td></tr><tr><td>NLLB</td><td>-16.50</td><td>-17.27</td><td>-21.11</td><td>-19.04</td><td>-18.48</td></tr><tr><td>TI</td><td>-19.62</td><td>-18.01</td><td>-17.33</td><td>-17.71</td><td>-18.17</td></tr><tr><td>GPT-3.5</td><td>-6.55</td><td>-5.68</td><td>-17.81</td><td>-7.09</td><td>-9.28</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-34.31</td><td>-31.83</td><td>-6.92</td><td>-34.58</td><td>-26.91</td></tr><tr><td>NLLB</td><td>-4.07</td><td>-5.31</td><td>-4.36</td><td>-4.58</td><td>-4.58</td></tr><tr><td>TI</td><td>-3.37</td><td>-4.54</td><td>-1.82</td><td>-3.62</td><td>-3.38</td></tr><tr><td>GPT-3.5</td><td>-1.36</td><td>-1.42</td><td>-5.64</td><td>-1.44</td><td>-2.47</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-63.78</td><td>-65.40</td><td>-38.48</td><td>-65.50</td><td>-58.29</td></tr><tr><td>NLLB</td><td>-20.66</td><td>-21.86</td><td>-28.01</td><td>-23.60</td><td>-23.53</td></tr><tr><td>TI</td><td>-29.15</td><td>-32.18</td><td>-19.80</td><td>-34.15</td><td>-28.82</td></tr><tr><td>GPT-3.5</td><td>-9.17</td><td>-8.63</td><td>-16.31</td><td>-10.27</td><td>-11.09</td></tr></table>
|
| 91 |
+
|
| 92 |
+
Table 2: COMET-slope on FLORES for xxβen.
|
| 93 |
+
|
| 94 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-72.01</td><td>-69.59</td><td>-73.99</td><td>-72.97</td><td>-72.14</td></tr><tr><td>NLLB</td><td>-23.33</td><td>-22.75</td><td>-19.68</td><td>-22.41</td><td>-22.04</td></tr><tr><td>TI</td><td>-16.64</td><td>-13.71</td><td>-12.63</td><td>-13.44</td><td>-14.11</td></tr><tr><td>GPT-3.5</td><td>-3.89</td><td>-4.46</td><td>-4.79</td><td>-3.76</td><td>-4.23</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-67.77</td><td>-63.30</td><td>-71.31</td><td>-69.66</td><td>-68.01</td></tr><tr><td>NLLB</td><td>-22.65</td><td>-22.23</td><td>-18.45</td><td>-21.71</td><td>-21.26</td></tr><tr><td>TI</td><td>-17.22</td><td>-15.00</td><td>-9.08</td><td>-14.68</td><td>-14.00</td></tr><tr><td>GPT-3.5</td><td>-6.59</td><td>-7.32</td><td>-6.72</td><td>-6.63</td><td>-6.81</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-54.90</td><td>-46.25</td><td>-65.86</td><td>-57.94</td><td>-56.24</td></tr><tr><td>NLLB</td><td>-4.04</td><td>-3.81</td><td>-2.79</td><td>-4.13</td><td>-3.69</td></tr><tr><td>TI</td><td>-2.40</td><td>-1.79</td><td>-1.39</td><td>-1.89</td><td>-1.87</td></tr><tr><td>GPT-3.5</td><td>-1.14</td><td>-1.32</td><td>-1.42</td><td>-0.98</td><td>-1.21</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-72.46</td><td>-72.01</td><td>-76.64</td><td>-75.81</td><td>-74.23</td></tr><tr><td>NLLB</td><td>-27.32</td><td>-25.91</td><td>-23.90</td><td>-25.57</td><td>-25.67</td></tr><tr><td>TI</td><td>-24.51</td><td>-21.10</td><td>-15.95</td><td>-22.04</td><td>-20.90</td></tr><tr><td>GPT-3.5</td><td>-8.19</td><td>-8.17</td><td>-8.91</td><td>-7.78</td><td>-8.26</td></tr></table>
|
| 95 |
+
|
| 96 |
+
As TI and GPT-3.5 were both trained on closed data, it is possible that they were trained on our test sets. We include them because of the lack of high-quality fully-open LLM-based translation systems.
|
| 97 |
+
|
| 98 |
+
Inference. For GPT-3.5, we sample with temperature 0. For other models, we decode with a beam size of 5. Details are in Appendix C.
|
| 99 |
+
|
| 100 |
+
Evaluation. Our base corpus-level translation metric is COMET (Rei et al., 2020). COMET computes a normalized score for a hypothesis $y$ , conditioned on the source $x$ and a reference $r$ . When we compute scores for translations from noisy data, we provide the COMET model the clean source, not the noisy version that was actually used to generate hypotheses. We measure the trajectory of performance as the amount of noise is increased, as depicted in Figure 1. To represent this trajectory as a single number, we fit a linear regression to predict the COMET decline relative to the clean score as a function of the proportion of noised tokens. We report the learned slope, which we call COMET-slope. A higher (closer to zero) COMET-slope indicates a more robust model. This metric
|
| 101 |
+
|
| 102 |
+
Table 3: COMET-slope on FLORES for en $\rightarrow$ xx.
|
| 103 |
+
|
| 104 |
+
<table><tr><td>Model</td><td>clean</td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>OPUS</td><td>88.94</td><td>-72.97</td><td>-69.66</td><td>-57.94</td><td>-75.81</td></tr><tr><td>OPUSLLM</td><td>85.78</td><td>-73.05</td><td>-69.68</td><td>-55.63</td><td>-74.48</td></tr></table>
|
| 105 |
+
|
| 106 |
+
Table 4: Robustness of OPUSLLM on enβpt.
|
| 107 |
+
|
| 108 |
+
can be interpreted as the number of COMET points that would be lost if every token were corrupted.
|
| 109 |
+
|
| 110 |
+
Results. Table 1 shows that on clean data, TI records the highest COMET for all eight language pairs. The gap between the strongest system and the much smaller OPUS models is less than 2.5 COMET for all pairs except enβde and enβko. However, Tables 2 and 3 show that OPUS suffers more from perturbations than the other models do. On the other end of the spectrum, GPT-3.5 is almost always the most robust system. NLLB and TI are between these two extremes. For swap and drop noise, NLLB is more robust than TI when translating to English, while the reverse is true when translating from English. This trend is less consistent for dupe noise. For key noise, NLLB is more robust than TI for every pair except koβen. BLEU and chrF results are in Appendix H.
|
| 111 |
+
|
| 112 |
+

|
| 113 |
+
Figure 2: COMET on enβfr swaps.
|
| 114 |
+
|
| 115 |
+
# 3.2 Analysis
|
| 116 |
+
|
| 117 |
+
Size and multilinguality. From these experiments, one might conclude that robustness depends largely on model size (OPUS is 14 times smaller than any other system) or multilinguality (all except OPUS are multilingual). However, Figure 2 shows that these are not the only factors. We reran swap experiments with NLLB-600M, NLLB-1.3B, and M2M-1.2B (Fan et al., 2021); despite the similar sizes of NLLB-1.3B and M2M-1.2B, and the fact that they are both massively multilingual, they handle noise differently: NLLB-1.3B is similar to NLLB-3.3B, while M2M-1.2B suffers as much as OPUS.
|
| 118 |
+
|
| 119 |
+
Impact of architecture. Having shown that model size does not have a strong effect on robustness (at least not for NLLB), we next investigate the impact of architecture on performance. Is the gap between OPUS and other models primarily due to differences in training data, or is there some aspect of the LLMs' decoder-only structure that encourages robustness? To investigate, we trained a 1.3B parameter $^{6}$ decoder-only model on the same Tatoeba Challenge data as was used by the enβpt OPUS model. Training details are given in Appendix D. The performance and robustness of this model, which we dub OPUSLLM, are shown in Table 4. Although its performance on clean data lags 3 COMET points behind OPUS, the COMET-slope is similar for all four noise types, suggesting that the robustness of recent models is due to their training data, not their size or architecture.
|
| 120 |
+
|
| 121 |
+
Tokenizer robustness. Introducing perturbations affects not only translation quality but also run
|
| 122 |
+
|
| 123 |
+
<table><tr><td></td><td colspan="2">English</td><td colspan="2">Portuguese</td><td colspan="2">Korean</td></tr><tr><td></td><td>clean</td><td>key</td><td>clean</td><td>key</td><td>clean</td><td>key</td></tr><tr><td>OPUS</td><td>1.25</td><td>2.71</td><td>1.29</td><td>2.62</td><td>1.75</td><td>2.93</td></tr><tr><td>NLLB</td><td>1.40</td><td>2.20</td><td>1.53</td><td>2.21</td><td>2.03</td><td>3.02</td></tr><tr><td>TI</td><td>1.42</td><td>2.47</td><td>1.88</td><td>2.55</td><td>6.37</td><td>7.44</td></tr><tr><td>GPT-3.5</td><td>1.24</td><td>2.23</td><td>1.71</td><td>2.34</td><td>4.17</td><td>5.12</td></tr></table>
|
| 124 |
+
|
| 125 |
+
Table 5: Tokenizer fertility with clean and key-perturbed data. For English, we used the enβfr OPUS model.
|
| 126 |
+
|
| 127 |
+
<table><tr><td></td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>OPUS</td><td>21.6</td><td>27.3</td><td>36.9</td><td>33.8</td></tr><tr><td>NLLB</td><td>27.6</td><td>35.1</td><td>45.7</td><td>42.3</td></tr><tr><td>TI</td><td>50.0</td><td>62.4</td><td>74.8</td><td>71.9</td></tr><tr><td>GPT-3.5</td><td>39.5</td><td>52.3</td><td>65.5</td><td>62.8</td></tr></table>
|
| 128 |
+
|
| 129 |
+
Table 6: F1 between clean Korean token sequences and their $100\%$ noisy counterparts.
|
| 130 |
+
|
| 131 |
+
time. Perturbations create character sequences that are less similar to the data that tokenizers are trained on, which leads to more pieces being used to encode the sentence. This is true even for drop noise, which increases the length of the tokenized sequence even as it shortens the detokenized sequence. In Table 5, we compare tokenizers by their fertility β the average number of subword pieces per whitespace word β on clean and key data. While OPUS tokenizers generally have very low fertility on clean data, it increases more than the other tokenizers, suggesting the tokenizer itself is less robust to character perturbations. It is also notable that TI and GPT-3.5 have high fertility even on clean Korean text. While this is a symptom of tokenizer unfairness in large models (Petrov et al., 2023), it can also be a sign of tokenizer robustness: the higher the fertility, the closer the model is to byte-level tokenization. This results in noisy token sequences that are much closer to the clean sequences for TI and GPT-3.5, as can be seen in terms of F1 in Table 6. The same trend does not hold for the other languages.
|
| 132 |
+
|
| 133 |
+
# 4 Robustness to Social Media Text
|
| 134 |
+
|
| 135 |
+
The previous experiments show that large translation models and LLMs are more robust to synthetic character perturbations than conventional MT models. But is this result applicable to "authentically noisy" domains such as social media text? The nature of "noise" here is different than in the synthetic task: social media text does not necessarily contain many errors (Rello and Baeza-Yates, 2012), but the domain is very different from FLORES. This
|
| 136 |
+
|
| 137 |
+
<table><tr><td>Method</td><td>enβfr</td><td>frβen</td></tr><tr><td>OPUS</td><td>77.21</td><td>79.64</td></tr><tr><td>r/OPUS</td><td>79.22</td><td>81.94</td></tr><tr><td>NLLB</td><td>79.33</td><td>80.59</td></tr><tr><td>TI</td><td>81.91</td><td>83.66</td></tr><tr><td>GPT-3.5</td><td>81.33</td><td>84.72</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Table 7: COMET on the MTNT test set.
|
| 140 |
+
|
| 141 |
+
makes it difficult to isolate the effect of noise from the general domain adaptation problem. Ideally, we would have a translation corpus in which each example is a triple consisting of an original noisy source, a manually annotated cleaned source, and a gold standard translation. This would allow translations of clean and noisy versions of the same source to be compared on some reference-based metric, isolating the effect of the errors. As we are aware of only one such corpus (Bawden and Sagot, 2023), we instead perform two complementary investigations. First, we evaluate on MTNT (Michel and Neubig, 2018), a noisy social media MT corpus. Although this is a useful test of our models, the noise is not labeled and there is no clean version of the same data to compare to. This motivates our second experiment, in which we translate data from MultiLexNorm (van der Goot et al., 2021), a lexical normalization benchmark. Together, these experiments allow us to see both which models succeed and how badly they fail.
|
| 142 |
+
|
| 143 |
+
# 4.1 MTNT Experiments
|
| 144 |
+
|
| 145 |
+
MTNT pairs Reddit posts with high-quality professional translations. Although the references are somewhat clean, the sources are only lightly filtered, making them potentially noisy. $^{7}$ Unfortunately no cleaned sources exist, making the effect of noise difficult to isolate. Despite this difficulty, it is often used as a robustness benchmark (Karpukhin et al., 2019; Park et al., 2020; Salesky et al., 2021; Vaibhav et al., 2019, inter alia).
|
| 146 |
+
|
| 147 |
+
Finetuning. We finetuned OPUS on MTNT en $\leftrightarrow$ fr as described in Appendix E. We dub this model r/OPUS.
|
| 148 |
+
|
| 149 |
+
Results. Results are shown in Table 7. Despite in-domain finetuning benefiting OPUS by more than 2 COMET points for both enβfr and frβen, this does not close the gap to TI and GPT-3.5.
|
| 150 |
+
|
| 151 |
+
This suggests that TI and GPT-3.5 benefit from their massive training corpora, which likely contain large quantities of social media text. In contrast, the only social media text the finetuned OPUS models have seen are MTNT's tiny training sets (36k parallel examples for enβfr, 19k for frβen), plus whatever is in the Tatoeba Challenge corpora.
|
| 152 |
+
|
| 153 |
+
# 4.2 MultiLexNorm Experiments
|
| 154 |
+
|
| 155 |
+
While MTNT is an established benchmark and useful sanity check, it is not controllable like our synthetic experiments; we cannot isolate the effect of noise because there is no non-noisy version of the corpus. Therefore we pivot to evaluate models on translating MultiLexNorm (van der Goot et al., 2021), a lexical normalization dataset that pairs social media text primarily from Twitter with manually cleaned versions of the same. Switching from MTNT to MultiLexNorm comes with a trade-off: in order to gain clean sources, we lose references.
|
| 156 |
+
|
| 157 |
+
Data. We use the English, German, and Spanish data from MultiLexNorm as our translation sources. In experiments with English sources, we translate to German and Spanish; otherwise, we translate to English. Statistics are presented in Appendix F.
|
| 158 |
+
|
| 159 |
+
Evaluation. As MultiLexNorm lacks reference translations, we use three reference-free metrics. Faux-BLEU (Anastasopoulos, 2019) computes $\mathrm{spBLEU}(y_n, y_c)$ (Papineni et al., 2002; NLLB Team et al., 2022), where $y_n$ and $y_c$ are the hypotheses computed from the noisy source and the clean source, respectively. $y_c$ is treated as a pseudoreference. By analogy we also compute faux-COMET. These faux-metrics measure the similarity between $y_c$ and $y_n$ , with faux-BLEU capturing lexical features while faux-COMET is "deeper." In addition, we use a new metric that we dub $\Delta \mathrm{QE}$ . Given $y_n$ , $y_c$ , noisy and clean source sequences $x_n$ and $x_c$ , and a reference-free quality estimation metric QE, $\Delta \mathrm{QE} = \mathrm{QE}(x_c, y_c) - \mathrm{QE}(x_c, y_n)$ . We compute QE with COMETKiwi<sup>8</sup> (Rei et al., 2022b). A $\Delta \mathrm{QE}$ close to zero means that a model produces similar-quality outputs for both inputs, indicating robustness, whereas a large positive value indicates that translation quality suffers on noisy data.
|
| 160 |
+
|
| 161 |
+
Results. Table 8 shows the performance of all models with both noisy and gold-standard cleaned versions of the corpora. In terms of $\Delta \mathrm{QE}$ , GPT-3.5 performs best for all language pairs. It also
|
| 162 |
+
|
| 163 |
+
<table><tr><td rowspan="2">Model</td><td colspan="3">enβde</td><td colspan="3">deβen</td><td colspan="3">enβes</td><td colspan="3">esβen</td></tr><tr><td>FB</td><td>FC</td><td>ΞQE</td><td>FB</td><td>FC</td><td>ΞQE</td><td>FB</td><td>FC</td><td>ΞQE</td><td>FB</td><td>FC</td><td>ΞQE</td></tr><tr><td>OPUS</td><td>81.9</td><td>81.50</td><td>6.21</td><td>74.8</td><td>88.36</td><td>3.95</td><td>80.3</td><td>82.54</td><td>4.11</td><td>86.2</td><td>88.52</td><td>2.54</td></tr><tr><td>NLLB</td><td>87.3</td><td>87.28</td><td>2.81</td><td>74.8</td><td>87.75</td><td>2.88</td><td>88.3</td><td>88.62</td><td>2.24</td><td>84.2</td><td>88.70</td><td>2.30</td></tr><tr><td>TI</td><td>88.8</td><td>89.07</td><td>1.86</td><td>75.2</td><td>90.57</td><td>2.41</td><td>89.0</td><td>90.26</td><td>1.19</td><td>85.3</td><td>89.32</td><td>2.63</td></tr><tr><td>GPT-3.5</td><td>87.1</td><td>88.45</td><td>1.15</td><td>83.1</td><td>91.86</td><td>1.32</td><td>89.1</td><td>90.14</td><td>0.72</td><td>87.9</td><td>91.23</td><td>0.91</td></tr></table>
|
| 164 |
+
|
| 165 |
+
records the best faux-BLEU for all pairs except $\mathrm{en} \rightarrow \mathrm{de}$ , on which TI and NLLB both outperform it. The faux-COMET results show a split, where GPT-3.5 has the highest scores for both to-English pairs but TI passes it for $\mathrm{en} \rightarrow \mathrm{de}$ and $\mathrm{en} \rightarrow \mathrm{es}$ .
|
| 166 |
+
|
| 167 |
+
# 5 Strategies for Mitigating Noise
|
| 168 |
+
|
| 169 |
+
So far we have shown that OPUS is less robust to synthetic noise than larger models and performs worse on social media text. Next we evaluate two techniques for mitigating noise: finetuning MT models on synthetically noised data and incorporating a source correction pipeline. These approaches have contrasting trade-offs. Finetuning the MT model allows the robust translation task to be learned end-to-end. However, this is expensive if a model is very large (TI, NLLB) and impossible if its weights are closed (GPT-3.5). On the other hand, pipelines are modular, allowing the same correction system to be reused with any model. The drawback of this modularity is that pipelines may introduce errors as well as fixing them.
|
| 170 |
+
|
| 171 |
+
# 5.1 Synthetic Experiments
|
| 172 |
+
|
| 173 |
+
As a comparison of finetuning and source correction, we focus on enβpt with the same synthetically noised corpora as in Section 3. We kept the training data as similar as possible between finetuning and correction experiments: in both cases, we subsampled 5 million examples from the Tatoeba Challenge enβpt training set. We noised $15\%$ of source tokens with each of the four noise types used in Section 3, so a total of $60\%$ of tokens were corrupted. For validation, we concatenated the original FLORES enβpt development set to a version of the same set in which $20\%$ of tokens have been corrupted with each noise type. By including clean validation data, this favors models that do not forget how to translate clean data. For finetuning OPUS, these noised source examples are paired with clean Portuguese targets. For finetuning correction models, they are paired with the original clean English sources. We followed the training procedure in
|
| 174 |
+
|
| 175 |
+
Table 8: MultiLexNorm results. FB is faux-BLEU and FC is faux-COMET.
|
| 176 |
+
|
| 177 |
+
<table><tr><td>Model</td><td>clean</td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>OPUS</td><td>88.94</td><td>-72.97</td><td>-69.66</td><td>-57.94</td><td>-75.81</td></tr><tr><td>+finetuning</td><td>88.52</td><td>-2.14</td><td>-7.59</td><td>-0.87</td><td>-5.01</td></tr><tr><td>+correction</td><td>88.36</td><td>-2.02</td><td>-11.81</td><td>-0.08</td><td>-7.20</td></tr><tr><td>NLLB</td><td>89.58</td><td>-22.41</td><td>-21.71</td><td>-4.13</td><td>-25.57</td></tr><tr><td>+correction</td><td>89.11</td><td>-1.57</td><td>-9.09</td><td>-0.07</td><td>-5.47</td></tr><tr><td>TI</td><td>90.02</td><td>-13.44</td><td>-14.68</td><td>-1.89</td><td>-22.04</td></tr><tr><td>+correction</td><td>89.57</td><td>-0.86</td><td>-5.59</td><td>-0.16</td><td>-2.99</td></tr><tr><td>ChatGPT</td><td>89.83</td><td>-3.76</td><td>-6.63</td><td>-0.98</td><td>-7.78</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 9: Clean COMET and COMET-slope for enβpt with finetuning and source correction.
|
| 180 |
+
MT Finetuning
|
| 181 |
+
|
| 182 |
+
<table><tr><td>Model</td><td>clean</td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>100k</td><td>88.28</td><td>-12.08</td><td>-18.96</td><td>-4.63</td><td>-18.65</td></tr><tr><td>1m</td><td>88.13</td><td>-5.21</td><td>-11.72</td><td>-2.04</td><td>-9.49</td></tr><tr><td>5m</td><td>88.52</td><td>-2.14</td><td>-7.59</td><td>-0.87</td><td>-5.01</td></tr></table>
|
| 183 |
+
|
| 184 |
+
Source Correction
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Model</td><td>clean</td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>100k</td><td>88.59</td><td>-4.12</td><td>-15.31</td><td>-0.11</td><td>-10.84</td></tr><tr><td>1m</td><td>88.30</td><td>-2.25</td><td>-12.83</td><td>-0.15</td><td>-7.83</td></tr><tr><td>5m</td><td>88.36</td><td>-2.02</td><td>-11.81</td><td>-0.08</td><td>-7.20</td></tr></table>
|
| 187 |
+
|
| 188 |
+
Table 10: Performance of noise mitigation with OPUS en $\rightarrow$ pt at varying quantities of noisy training data.
|
| 189 |
+
|
| 190 |
+
Appendix E for both MT and correction models.
|
| 191 |
+
|
| 192 |
+
Source correction (SC). As our base model for SC, we adopted ByT5-Small (Xue et al., 2022). At inference time we report the results of a pipeline that pairs the corrector with a translation model. In intrinsic terms, this corrector manages a chrF (PopoviΔ, 2015) of at least 89.6 at correcting each noise type, and over 97.5 for swaps and dupes. Additional results are shown in Appendix G.
|
| 193 |
+
|
| 194 |
+
Results. Our main results are shown in Table 9. For OPUS, both MT finetuning and correction greatly improve robustness to synthetic errors, with both techniques reporting flatter COMET-slopes than GPT-3.5 for all noise types except drop. At a more granular level, in Figure 3 we show OPUS's COMET scores at all levels of swap noise for MT
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 3: OPUS en $\rightarrow$ pt swaps with finetuning and SC.
|
| 198 |
+
|
| 199 |
+
finetuning and SC. It is clear that MT finetuning outperforms SC across almost all noise levels. Despite NLLB and TI being more robust than OPUS in general, they too benefit from SC, suggesting that its effect is complementary with the models' inherent robustness. Both MT finetuning and SC slightly degrade model performance on clean translation. However, these degradations are small, and become smaller as the base model gets larger: corrected OPUS declines 0.58 COMET, versus only 0.45 for TI. These results also show the surprising difficulty of drop errors: although these are not more problematic for baseline models than other error types (see Tables 2 and 3), neither correction nor MT finetuning handles them as effectively as the other error types. This suggests that the missing information from a single deleted character often cannot be recovered from surrounding context.
|
| 200 |
+
|
| 201 |
+
Effect of training size. Although we used 5 million training examples in our main experiments, Table 10 shows the effect that using fewer has on OPUS's robustness. The correction approach performs much better when data is restricted to $100k$ examples, but this advantage shrinks as the training size is increased and eventually MT finetuning outperforms it. This supports the intuition that noisy translation is a harder task than correction, so the OPUS model requires more examples to learn it.
|
| 202 |
+
|
| 203 |
+
How often does mitigation work? In the main results, we showed that MT finetuning and SC both greatly improve robustness. However, as the scores are presented at corpus level, they do not give insight into what percentage of examples are actually helped, versus how many are harmed. To fill in this missing piece, we compared sentence-level COMET between our baseline models and the two
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
|
| 207 |
+

|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 4: Percentage of enβpt swap examples for which finetuning OPUS (top), correcting OPUS (middle), or correcting TI (bottom) outperforms the baseline.
|
| 211 |
+
|
| 212 |
+
mitigation approaches. Results are shown in Figure 4. At high noise levels, both techniques nearly always help OPUS. However, they behave differently on clean sources. While SC almost never improves clean scores and harms less than $10\%$ of examples, finetuning is more of a high-risk strategy, as it makes scores worse for about half of examples while also improving COMET for $38\%$ of them. The trend is subtly different for SC with TI. While correction helps more examples than it hurts whenever the noise level is at least $10\%$ , the percentage of examples that are harmed by correction actually increases up to $30\%$ noise. This suggests that correction may introduce errors into some noisy sequences that TI could have handled itself.
|
| 213 |
+
|
| 214 |
+
# 5.2 Mitigating Errors in MTNT
|
| 215 |
+
|
| 216 |
+
Having shown that MT finetuning and SC are both effective techniques for improving robustness to synthetic errors, we return to MTNT. Our goal is to determine whether either MT finetuning or SC can provide some benefit to performance on enβfr.
|
| 217 |
+
|
| 218 |
+
Finetuning vs. correction for OPUS. We evaluate MT finetuning and SC on MTNT. For MT finetuning, we compare two techniques: finetuning only on MTNT, as in Section 4.1; and finetuning on
|
| 219 |
+
|
| 220 |
+
<table><tr><td>Finetuning</td><td>Uncorrected</td><td>Corrected</td></tr><tr><td>None</td><td>77.21</td><td>76.31</td></tr><tr><td>MTNT</td><td>79.22</td><td>77.97</td></tr><tr><td>Synthetic</td><td>75.95</td><td>75.31</td></tr></table>
|
| 221 |
+
|
| 222 |
+
Table 11: OPUS performance on the MTNT enβfr test set with various finetuning techniques.
|
| 223 |
+
|
| 224 |
+
<table><tr><td>Method</td><td>r/OPUS</td><td>NLLB</td><td>TI</td></tr><tr><td>Base</td><td>79.22</td><td>79.33</td><td>81.91</td></tr><tr><td>Correction</td><td>77.97</td><td>78.32</td><td>80.94</td></tr><tr><td>Oracle</td><td>79.71</td><td>79.82</td><td>82.43</td></tr></table>
|
| 225 |
+
|
| 226 |
+
Table 12: MTNT results with and without source correction. The oracle selects the translation with the higher COMET between the baseline and the pipeline.
|
| 227 |
+
|
| 228 |
+
5 million synthetically noised Tatoeba Challenge enβfr examples, matching the procedure used for enβpt in Section 5.1. For SC, we use the same English model as in the synthetic experiments. Results are shown in Table 11. Finetuning on MTNT outperforms the baseline, but both SC and MT finetuning are harmful, confirming that MTNT is not very noisy in terms of spelling errors (Karpukhin et al., 2019; Michel and Neubig, 2018).
|
| 229 |
+
|
| 230 |
+
Effect of source correction. In Table 12, we show results with and without SC for various models. Although correction does not improve results on the whole, the oracle consistently outperforms the baseline by about 0.5 COMET, illustrating that many sequences do benefit from correction. Indeed, $21.8\%$ of MTNT examples improve with correction and another $46.1\%$ are not harmed. Future work could investigate the use of a routing mechanism that decides for each example whether to apply SC.
|
| 231 |
+
|
| 232 |
+
# 6 Conclusion
|
| 233 |
+
|
| 234 |
+
We presented several experiments testing the robustness of MT systems to synthetic and natural noise. On synthetic noise, we showed that large multilingual MT models and LLMs are far more robust than older models. The experiments on social media translation showed that larger models also worked better on natural noise. We further supported this conclusion through reference-free translation experiments with a novel evaluation metric based on quality estimation. Finally, we showed that noisy finetuning and source correction allow smaller models to exceed GPT-3.5's robustness synthetic noise, while also being useful in many cases
|
| 235 |
+
|
| 236 |
+
for handling natural errors.
|
| 237 |
+
|
| 238 |
+
# Limitations
|
| 239 |
+
|
| 240 |
+
We acknowledge the limitations of our work. All of the languages included in this study have large speaker populations and many resources available, and are the official languages of countries. Some conclusions may not generalize to low resource languages. Additionally, this paper studies only one source of natural noise, namely social media text. Other varieties of text perceived as noisy, such as transcribed speech or text written by nonfluent language users, may have different properties. Finally, the evaluation techniques used in this work are all automatic or neural, and may differ from gold-standard human evaluation.
|
| 241 |
+
|
| 242 |
+
# Acknowledgments
|
| 243 |
+
|
| 244 |
+
This work was supported by EU's Horizon Europe Research and Innovation Actions (UTTER, contract 101070631), by the project DECOLLAGE (ERC-2022-CoG 101088763), by the Portuguese Recovery and Resilience Plan through project C645008882-00000055 (Center for Responsible AI), and by FCT/MECI through national funds and when applicable co-funded EU funds under UID/50008: Instituto de TelecomunicaΓ§Γ΅es. We thank Sweta Agrawal and the anonymous reviewers for their helpful comments.
|
| 245 |
+
|
| 246 |
+
# References
|
| 247 |
+
|
| 248 |
+
Inaki Alegria, Nora Aranberri, VΓctor Fresno, Pablo Gamallo, Lluis Padro, Inaki San Vicente, Jordi Turmo, and Arkaitz Zubiaga. 2013. IntroducciΓ³n a la tarea compinta Tweet-Norm 2013: NormalizaciΓ³n lΓ©xica de tuits en EspaΓ±ol. In Tweet-Norm@ SEPLN, pages 1-9.
|
| 249 |
+
Duarte Alves, Nuno Guerreiro, JoΓ£o Alves, JosΓ© Pombal, Ricardo Rei, JosΓ© de Souza, Pierre Colombo, and Andre Martins. 2023. Steering large language models for machine translation with finetuning and in-context learning. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 11127-11148, Singapore. Association for Computational Linguistics.
|
| 250 |
+
Duarte M. Alves, JosΓ© Pombal, Nuno M. Guerreiro, Pedro H. Martins, JoΓ£o Alves, Amin Farajian, Ben Peters, Ricardo Rei, Patrick Fernandes, Sweta Agrawal, Pierre Colombo, JosΓ© G. C. de Souza, and AndrΓ© F. T. Martins. 2024. Tower: An open multilingual large language model for translation-related tasks. Preprint, arXiv:2402.17733.
|
| 251 |
+
|
| 252 |
+
Antonios Anastasopoulos. 2019. An analysis of source-side grammatical errors in NMT. In Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 213-223, Florence, Italy. Association for Computational Linguistics.
|
| 253 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2014. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473.
|
| 254 |
+
Timothy Baldwin, Marie Catherine de Marneffe, Bo Han, Young-Bum Kim, Alan Ritter, and Wei Xu. 2015. Shared tasks of the 2015 workshop on noisy user-generated text: Twitter lexical normalization and named entity recognition. In Proceedings of the Workshop on Noisy User-generated Text, pages 126-135, Beijing, China. Association for Computational Linguistics.
|
| 255 |
+
Rachel Bawden and Benoit Sagot. 2023. RoCS-MT: Robustness challenge set for machine translation. In Proceedings of the Eighth Conference on Machine Translation, pages 198-216, Singapore. Association for Computational Linguistics.
|
| 256 |
+
Yonatan Belinkov and Yonatan Bisk. 2018. Synthetic and natural noise both break neural machine translation. In International Conference on Learning Representations.
|
| 257 |
+
Qi Cao, Takeshi Kojima, Yutaka Matsuo, and Yusuke Iwasawa. 2023. Unnatural error correction: GPT-4 can almost perfectly handle unnatural scrambled text. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 8898β8913, Singapore. Association for Computational Linguistics.
|
| 258 |
+
Javid Ebrahimi, Daniel Lowd, and Dejing Dou. 2018. On adversarial examples for character-level neural machine translation. In Proceedings of the 27th International Conference on Computational Linguistics, pages 653-663, Santa Fe, New Mexico, USA. Association for Computational Linguistics.
|
| 259 |
+
Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandep Baines, Onur Celebi, Guillaume Wenzek, Vishrav Chaudhary, et al. 2021. Beyond english-centric multilingual machine translation. The Journal of Machine Learning Research, 22(1):4839-4886.
|
| 260 |
+
Amr Hendy, Mohamed Abdelrehim, Amr Sharaf, Vikas Raunak, Mohamed Gabr, Hitokazu Matsushita, Young Jin Kim, Mohamed Afify, and Hany Hassan Awadalla. 2023. How good are gpt models at machine translation? a comprehensive evaluation. Preprint, arXiv:2302.09210.
|
| 261 |
+
Marcin Junczys-Dowmunt, Roman Grundkiewicz, Tomasz Dwojak, Hieu Hoang, Kenneth Heafield, Tom Neckermann, Frank Seide, Ulrich Germann, Alham Fikri Aji, Nikolay Bogoychev, Andre F. T. Martins, and Alexandra Birch. 2018. Marian: Fast
|
| 262 |
+
|
| 263 |
+
neural machine translation in $\mathrm{C + + }$ . In Proceedings of ACL 2018, System Demonstrations, pages 116-121, Melbourne, Australia. Association for Computational Linguistics.
|
| 264 |
+
Vladimir Karpukhin, Omer Levy, Jacob Eisenstein, and Marjan Ghazvininejad. 2019. Training on synthetic noise improves robustness to natural noise in machine translation. In Proceedings of the 5th Workshop on Noisy User-generated Text (W-NUT 2019), pages 42-47, Hong Kong, China. Association for Computational Linguistics.
|
| 265 |
+
Taku Kudo. 2018. Subword regularization: Improving neural network translation models with multiple subword candidates. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 66-75, Melbourne, Australia. Association for Computational Linguistics.
|
| 266 |
+
Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles.
|
| 267 |
+
Giuseppe Martucci, Mauro Cettolo, Matteo Negri, and Marco Turchi. 2021. Lexical modeling of asr errors for robust speech translation. In Proceedings of Interspeech 2021, pages 2282-2286. ISCA.
|
| 268 |
+
Paul Michel and Graham Neubig. 2018. MTNT: A testbed for machine translation of noisy text. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 543-553, Brussels, Belgium. Association for Computational Linguistics.
|
| 269 |
+
Sabrina J Mielke, Zaid Alyafeai, Elizabeth Salesky, Colin Raffel, Manan Dey, Matthias Galle, Arun Raja, Chenglei Si, Wilson Y Lee, Benoit Sagot, et al. 2021. Between words and characters: a brief history of open-vocabulary modeling and tokenization in nlp. arXiv preprint arXiv:2112.10508.
|
| 270 |
+
NLLB Team, Marta R. Costa-jussa, James Cross, Onur Celebi, Maha Elbayad, Kenneth Heafield, Kevin Helfernan, Elahe Kalbassi, Janice Lam, Daniel Licht, Jean Maillard, Anna Sun, Skyler Wang, Guillaume Wenzek, Al Youngblood, Bapi Akula, Loic Barrault, Gabriel Mejia Gonzalez, Prangthip Hansanti, John Hoffman, Semarley Jarrett, Kaushik Ram Sadagopan, Dirk Rowe, Shannon Spruit, Chau Tran, Pierre Andrews, Necip Fazil Ayan, Shruti Bhosale, Sergey Edunov, Angela Fan, Cynthia Gao, Vedanuj Goswami, Francisco GuzmΓ‘n, Philipp Koehn, Alexandre Mourachko, Christophe Ropers, Safiyyah Saleem, Holger Schwenk, and Jeff Wang. 2022. No language left behind: Scaling human-centered machine translation. Preprint, arXiv:2207.04672.
|
| 271 |
+
Filipp Ozinov. 2019. Jamspell.
|
| 272 |
+
|
| 273 |
+
Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311-318, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics.
|
| 274 |
+
Jungsoo Park, Mujeen Sung, Jinhyuk Lee, and Jaewoo Kang. 2020. Adversarial subword regularization for robust neural machine translation. In *Findings of the Association for Computational Linguistics: EMNLP* 2020, pages 1945β1953, Online. Association for Computational Linguistics.
|
| 275 |
+
Aleksandar Petrov, Emanuele La Malfa, Philip Torr, and Adel Bibi. 2023. Language model tokenizers introduce unfairness between languages. Advances in Neural Information Processing Systems, 36.
|
| 276 |
+
Maja Popovic. 2015. *chrF: character n-gram F-score* for automatic MT evaluation. In *Proceedings of the Tenth Workshop on Statistical Machine Translation*, pages 392β395, Lisbon, Portugal. Association for Computational Linguistics.
|
| 277 |
+
Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. 2018. Improving language understanding by generative pre-training. OpenAI blog.
|
| 278 |
+
Ricardo Rei, JosΓ© G. C. de Souza, Duarte Alves, Chrysoula Zerva, Ana C Farinha, Taisiya Glushkova, Alon Lavie, Luisa Coheur, and AndrΓ© F. T. Martins. 2022a. COMET-22: Unbabel-IST 2022 submission for the metrics shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), pages 578-585, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
|
| 279 |
+
Ricardo Rei, Craig Stewart, Ana C Farinha, and Alon Lavie. 2020. COMET: A neural framework for MT evaluation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 2685-2702, Online. Association for Computational Linguistics.
|
| 280 |
+
Ricardo Rei, Marcos Treviso, Nuno M. Guerreiro, Chrysoula Zerva, Ana C Farinha, Christine Maroti, JosΓ© G. C. de Souza, Taisiya Glushkova, Duarte Alves, Luisa Coheur, Alon Lavie, and AndrΓ© F. T. Martins. 2022b. CometKiwi: IST-unbabel 2022 submission for the quality estimation shared task. In Proceedings of the Seventh Conference on Machine Translation (WMT), pages 634-645, Abu Dhabi, United Arab Emirates (Hybrid). Association for Computational Linguistics.
|
| 281 |
+
Luz Rello and Ricardo Baeza-Yates. 2012. Social media is not that bad! the lexical quality of social media. In Proceedings of the International AAAI Conference on Web and Social Media, volume 6, pages 559-562.
|
| 282 |
+
Phillip Rust, Jonas F Lotz, Emanuele Bugliarello, Elizabeth Salesky, Miryam de Lhoneux, and Desmond Elliott. 2022. Language modelling with pixels. arXiv preprint arXiv:2207.06991.
|
| 283 |
+
|
| 284 |
+
Elizabeth Salesky, David Etter, and Matt Post. 2021. Robust open-vocabulary translation from visual text representations. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7235-7252, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 285 |
+
Victor Sanh, Albert Webson, Colin Raffel, Stephen Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Teven Le Scao, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M Rush. 2022. Multitask prompted training enables zero-shot task generalization. In International Conference on Learning Representations.
|
| 286 |
+
Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715-1725, Berlin, Germany. Association for Computational Linguistics.
|
| 287 |
+
Uladzimir Sidarenka, Tatjana Scheffler, and Manfred Stede. 2013. Rule-based normalization of German Twitter messages. In Proc. of the GSCL Workshop Verarbeitung und Annotation von Sprachdaten aus Genres internetbasierten Kommunikation.
|
| 288 |
+
Ilya Sutskever, James Martens, and Geoffrey E Hinton. 2011. Generating text with recurrent neural networks. In Proceedings of the 28th international conference on machine learning (ICML-11), pages 1017-1024.
|
| 289 |
+
JΓΆrg Tiedemann. 2012. Parallel data, tools and interfaces in OPUS. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12), pages 2214-2218, Istanbul, Turkey. European Language Resources Association (ELRA).
|
| 290 |
+
JΓΆrg Tiedemann. 2020. The tatoeba translation challenge - realistic data sets for low resource and multilingual MT. In Proceedings of the Fifth Conference on Machine Translation, pages 1174-1182, Online. Association for Computational Linguistics.
|
| 291 |
+
JΓΆrg Tiedemann and Santhosh Thottingal. 2020. OPUSMT - building open translation services for the world. In Proceedings of the 22nd Annual Conference of the European Association for Machine Translation, pages 479-480, Lisboa, Portugal. European Association for Machine Translation.
|
| 292 |
+
Vaibhav Vaibhav, Sumeet Singh, Craig Stewart, and Graham Neubig. 2019. Improving robustness of machine
|
| 293 |
+
|
| 294 |
+
translation with synthetic noise. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 1916-1920, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 295 |
+
|
| 296 |
+
Rob van der Goot, Alan Ramponi, Arkaitz Zubiaga, Barbara Plank, Benjamin Muller, Inaki San Vicente Roncal, Nikola Ljubesic, Ozlem Cetinoglu, Rahmad Mahendra, Talha Γolakoglu, Timothy Baldwin, Tommaso Caselli, and Wladimir Sidorenko. 2021. MultiLexNorm: A shared task on multilingual lexical normalization. In Proceedings of the Seventh Workshop on Noisy User-generated Text (W-NUT 2021), pages 493-509, Online. Association for Computational Linguistics.
|
| 297 |
+
|
| 298 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. Advances in neural information processing systems, 30.
|
| 299 |
+
|
| 300 |
+
Jason Wei, Maarten Bosma, Vincent Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V Le. 2022. Finetuned language models are zero-shot learners. In International Conference on Learning Representations.
|
| 301 |
+
|
| 302 |
+
Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, and Colin Raffel. 2022. ByT5: Towards a token-free future with pre-trained byte-to-byte models. Transactions of the Association for Computational Linguistics, 10:291-306.
|
| 303 |
+
|
| 304 |
+
# A Key Noise
|
| 305 |
+
|
| 306 |
+
As different languages customarily use different keyboard layouts, we made slight alterations to our key noising procedure for each source language. We use the QWERTZ layout for German, AZERTY for French, QWERTY for English and Portuguese, and South Korean Dubeolsik for Korean. For Korean, we used hangul-jamo<sup>9</sup> to decompose hangul characters into jamo, which represent individual keystrokes, before applying perturbations.
|
| 307 |
+
|
| 308 |
+
# B OPUS Models
|
| 309 |
+
|
| 310 |
+
The parameters and vocabulary sizes of the OPUS models are shown in Table 13. All checkpoints come from the Tatoeba Challenge (Tiedemann, 2020).<sup>10</sup>
|
| 311 |
+
|
| 312 |
+
<table><tr><td>LP</td><td>Vocab</td><td>Params</td></tr><tr><td>enβde</td><td>58.1k</td><td>74.4M</td></tr><tr><td>deβen</td><td>58.1k</td><td>74.4M</td></tr><tr><td>enβes</td><td>55.0k</td><td>234.8M</td></tr><tr><td>esβen</td><td>65.0k</td><td>77.9M</td></tr><tr><td>enβfr</td><td>53.0k</td><td>232.7M</td></tr><tr><td>frβen</td><td>53.0k</td><td>232.7M</td></tr><tr><td>enβko</td><td>32.0k*</td><td>209.2M</td></tr><tr><td>koβen</td><td>32.0k*</td><td>209.2M</td></tr><tr><td>enβpt</td><td>54.7k</td><td>234.5M</td></tr><tr><td>ptβen</td><td>60.0k</td><td>75.4M</td></tr></table>
|
| 313 |
+
|
| 314 |
+
Table 13: OPUS models. Each path is preceded by Helsinki-NLP/. *enβko use separate 32k source and target vocabularies. All others use shared vocabularies.
|
| 315 |
+
|
| 316 |
+
# C Inference
|
| 317 |
+
|
| 318 |
+
Owing to the differing frameworks between OPUS, OPUSLLM, NLLB, TI, and ByT5 models, we use different beam search implementations depending on the model. For OPUS models, we decode with Marian (Junczys-Dowmunt et al., 2018), while NLLB and ByT5 use Hugging Face transformers.[11] TI models and OPUSLLM are decoded with v11m (Kwon et al., 2023).[12] Regardless of framework, we used a beam size of 5 across all experiments.
|
| 319 |
+
|
| 320 |
+
# C.1 Prompt for TowerInstruct
|
| 321 |
+
|
| 322 |
+
"Translate the following text from [source language] to [target language].\nSource: [source text]\n[target language]:"
|
| 323 |
+
|
| 324 |
+
# C.2 Prompt for GPT-3.5
|
| 325 |
+
|
| 326 |
+
"Translate this sentence from [source language] to [target language].\nSource: [source text]\nTarget:"
|
| 327 |
+
|
| 328 |
+
# D OPUSLLM Training Details
|
| 329 |
+
|
| 330 |
+
The OPUSLLM model was trained with used Megatron-DeepSpeed $^{13}$ for a maximum of 300k steps with an effective batch size of 65k tokens and a base learning rate of $3 \times 10^{-4}$ , with a constant learning rate schedule and 5000 warmup steps.
|
| 331 |
+
|
| 332 |
+
The model used the same 32k tokenizer as TI. To account for the model's decoder-only structure, examples were formatted with two special tokens to indicate the beginning of the source and target sequences. At inference time, we selected the checkpoint with the best COMET on the FLORES enβpt dev set.
|
| 333 |
+
|
| 334 |
+
# E Training Hyperparameters
|
| 335 |
+
|
| 336 |
+
In this work, we finetune two types of base models: OPUS models and ByT5-Small. Despite the various technical differences between these two models, we used almost identical training procedures for them, with differences noted below.
|
| 337 |
+
|
| 338 |
+
Basic training procedure. We finetuned using early stopping with patience 3. We validated every 500 steps. We used a grid over the learning rates $\{10^{-4}, 10^{-5}, 10^{-6}\}$ and selected the best checkpoint by validation loss.
|
| 339 |
+
|
| 340 |
+
Training library. For OPUS models, we finetuned with the marian command line tool from Marian (Junczys-Dowmunt et al., 2018). For ByT5-Small, we used a script that leverages the Trainer class from Hugging Face transformers.
|
| 341 |
+
|
| 342 |
+
# F MultiLexNorm Statistics
|
| 343 |
+
|
| 344 |
+
<table><tr><td>Lang.</td><td>Sent.</td><td>%Noisy</td><td>Reference</td></tr><tr><td>English</td><td>1967</td><td>6.9</td><td>(Baldwin et al., 2015)</td></tr><tr><td>German</td><td>583</td><td>8.9</td><td>(Sidarenka et al., 2013)</td></tr><tr><td>Spanish</td><td>531</td><td>7.7</td><td>(Alegria et al., 2013)</td></tr></table>
|
| 345 |
+
|
| 346 |
+
# G Intrinsic Correction Performance
|
| 347 |
+
|
| 348 |
+
Table 14: Statistics of selected MultiLexNorm corpora.
|
| 349 |
+
|
| 350 |
+
<table><tr><td></td><td>swap</td><td>drop</td><td>dupe</td><td>key</td></tr><tr><td>None</td><td>40.0</td><td>47.0</td><td>68.2</td><td>45.7</td></tr><tr><td>JamSpell</td><td>75.5</td><td>63.5</td><td>91.7</td><td>78.0</td></tr><tr><td>ByT5-Small</td><td>97.5</td><td>89.6</td><td>99.6</td><td>94.4</td></tr></table>
|
| 351 |
+
|
| 352 |
+
Intrinsic correction results in terms of chrF (Popovic, 2015) are shown in Table 15. In addition to our ByT5-Small corrector, we include the results of the pretrained English model from JamSpell[14] (Ozinov, 2019), a trigram-based spell-checker.
|
| 353 |
+
|
| 354 |
+
Table 15: chrF (PopoviΔ, 2015) of source correctors at $100\%$ noise in FLORES.
|
| 355 |
+
|
| 356 |
+
<table><tr><td colspan="6">xxβen</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>44.7</td><td>49.7</td><td>30.7</td><td>49.3</td><td>43.6</td></tr><tr><td>NLLB</td><td>49.3</td><td>50.3</td><td>34.8</td><td>55.1</td><td>47.4</td></tr><tr><td>TI</td><td>50.6</td><td>52.1</td><td>37.0</td><td>56.7</td><td>49.1</td></tr><tr><td>GPT-3.5</td><td>48.8</td><td>49.1</td><td>32.5</td><td>53.6</td><td>46.0</td></tr></table>
|
| 357 |
+
|
| 358 |
+
<table><tr><td colspan="6">enβxx</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>42.0</td><td>55.6</td><td>23.8</td><td>54.6</td><td>44.0</td></tr><tr><td>NLLB</td><td>46.8</td><td>56.2</td><td>24.8</td><td>54.5</td><td>45.6</td></tr><tr><td>TI</td><td>47.0</td><td>57.1</td><td>29.5</td><td>52.8</td><td>46.6</td></tr><tr><td>GPT-3.5</td><td>47.8</td><td>56.6</td><td>25.6</td><td>56.6</td><td>46.7</td></tr></table>
|
| 359 |
+
|
| 360 |
+
Table 16: BLEU on FLORES without added noise.
|
| 361 |
+
|
| 362 |
+
<table><tr><td colspan="6">xxβen</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>66.4</td><td>69.1</td><td>55.8</td><td>69.4</td><td>65.2</td></tr><tr><td>NLLB</td><td>69.2</td><td>69.9</td><td>58.6</td><td>72.9</td><td>67.7</td></tr><tr><td>TI</td><td>69.9</td><td>70.6</td><td>60.3</td><td>73.9</td><td>68.7</td></tr><tr><td>GPT-3.5</td><td>69.8</td><td>69.7</td><td>58.2</td><td>72.7</td><td>67.6</td></tr></table>
|
| 363 |
+
|
| 364 |
+
<table><tr><td colspan="6">enβxx</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>62.9</td><td>71.7</td><td>36.2</td><td>71.3</td><td>60.5</td></tr><tr><td>NLLB</td><td>65.7</td><td>71.8</td><td>36.7</td><td>71.0</td><td>61.3</td></tr><tr><td>TI</td><td>66.2</td><td>72.3</td><td>38.7</td><td>70.3</td><td>61.9</td></tr><tr><td>GPT-3.5</td><td>67.1</td><td>72.6</td><td>35.1</td><td>72.8</td><td>61.9</td></tr></table>
|
| 365 |
+
|
| 366 |
+
Table 17:chrF on FLORES without added noise.
|
| 367 |
+
|
| 368 |
+
# H Synthetic Results with Other Metrics
|
| 369 |
+
|
| 370 |
+
The models' synthetic performance on clean data is shown in terms of $\mathrm{BLEU}^{15}$ in Table 16 and in $\mathrm{chrF}^{16}$ in Table 17. Synthetic results showing BLEU-slope are shown in Tables 18 and 19. Synthetic results showing chrF-slope are shown in Tables 20 and 21. BLEU-slope and chrF-slope are computed analogously to COMET-slope.
|
| 371 |
+
|
| 372 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-51.4</td><td>-58.2</td><td>-28.2</td><td>-56.2</td><td>-48.5</td></tr><tr><td>NLLB</td><td>-33.4</td><td>-35.8</td><td>-30.6</td><td>-37.5</td><td>-34.3</td></tr><tr><td>TI</td><td>-37.9</td><td>-38.8</td><td>-30.4</td><td>-39.6</td><td>-36.7</td></tr><tr><td>GPT-3.5</td><td>-10.9</td><td>-14.4</td><td>-27.4</td><td>-17.2</td><td>-17.5</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-45.6</td><td>-49.6</td><td>-26.4</td><td>-49.1</td><td>-42.7</td></tr><tr><td>NLLB</td><td>-29.8</td><td>-29.9</td><td>-26.1</td><td>-32.7</td><td>-29.6</td></tr><tr><td>TI</td><td>-29.5</td><td>-29.7</td><td>-25.6</td><td>-30.0</td><td>-28.7</td></tr><tr><td>GPT-3.5</td><td>-14.4</td><td>-13.8</td><td>-24.9</td><td>-16.0</td><td>-17.3</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-34.3</td><td>-38.0</td><td>-8.8</td><td>-37.6</td><td>-29.7</td></tr><tr><td>NLLB</td><td>-13.9</td><td>-15.7</td><td>-11.5</td><td>-14.8</td><td>-14.0</td></tr><tr><td>TI</td><td>-9.9</td><td>-13.0</td><td>-5.5</td><td>-10.5</td><td>-9.7</td></tr><tr><td>GPT-3.5</td><td>-5.5</td><td>-5.3</td><td>-12.0</td><td>-5.8</td><td>-7.2</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-50.3</td><td>-57.3</td><td>-27.8</td><td>-57.2</td><td>-48.2</td></tr><tr><td>NLLB</td><td>-35.2</td><td>-36.4</td><td>-33.3</td><td>-40.3</td><td>-36.3</td></tr><tr><td>TI</td><td>-38.5</td><td>-42.7</td><td>-27.2</td><td>-46.3</td><td>-38.7</td></tr><tr><td>GPT-3.5</td><td>-18.3</td><td>-18.2</td><td>-22.5</td><td>-21.9</td><td>-20.2</td></tr></table>
|
| 373 |
+
|
| 374 |
+
Table 18: BLEU-slope on FLORES for xxβen.
|
| 375 |
+
|
| 376 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-45.2</td><td>-47.4</td><td>-32.9</td><td>-46.0</td><td>-42.9</td></tr><tr><td>NLLB</td><td>-25.3</td><td>-26.6</td><td>-27.7</td><td>-26.4</td><td>-26.5</td></tr><tr><td>TI</td><td>-28.4</td><td>-27.3</td><td>-29.0</td><td>-28.1</td><td>-28.2</td></tr><tr><td>GPT-3.5</td><td>-7.1</td><td>-9.6</td><td>-29.2</td><td>-10.9</td><td>-14.2</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-40.1</td><td>-39.7</td><td>-29.0</td><td>-38.7</td><td>-36.9</td></tr><tr><td>NLLB</td><td>-23.8</td><td>-23.6</td><td>-26.6</td><td>-24.1</td><td>-24.5</td></tr><tr><td>TI</td><td>-22.3</td><td>-20.9</td><td>-25.5</td><td>-21.1</td><td>-22.5</td></tr><tr><td>GPT-3.5</td><td>-10.0</td><td>-9.3</td><td>-26.0</td><td>-10.4</td><td>-13.9</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-22.9</td><td>-24.5</td><td>-6.8</td><td>-23.1</td><td>-19.3</td></tr><tr><td>NLLB</td><td>-7.6</td><td>-8.6</td><td>-6.1</td><td>-7.5</td><td>-7.4</td></tr><tr><td>TI</td><td>-5.1</td><td>-6.4</td><td>-3.9</td><td>-5.3</td><td>-5.2</td></tr><tr><td>GPT-3.5</td><td>-2.7</td><td>-2.7</td><td>-10.2</td><td>-2.8</td><td>-4.6</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>deβen</td><td>frβen</td><td>koβen</td><td>ptβen</td><td>avg.</td></tr><tr><td>OPUS</td><td>-43.6</td><td>-45.5</td><td>-34.5</td><td>-46.0</td><td>-42.4</td></tr><tr><td>NLLB</td><td>-26.6</td><td>-27.7</td><td>-31.0</td><td>-29.6</td><td>-28.7</td></tr><tr><td>TI</td><td>-28.6</td><td>-30.6</td><td>-26.3</td><td>-34.6</td><td>-30.0</td></tr><tr><td>GPT-3.5</td><td>-12.1</td><td>-11.9</td><td>-22.6</td><td>-14.0</td><td>-15.2</td></tr></table>
|
| 377 |
+
|
| 378 |
+
Table 20:chrF-slope on FLORES for xx $\rightarrow$ en.
|
| 379 |
+
|
| 380 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-49.1</td><td>-62.6</td><td>-28.9</td><td>-64.5</td><td>-51.3</td></tr><tr><td>NLLB</td><td>-31.2</td><td>-33.8</td><td>-18.1</td><td>-37.1</td><td>-30.0</td></tr><tr><td>TI</td><td>-19.8</td><td>-20.7</td><td>-12.6</td><td>-20.0</td><td>-18.3</td></tr><tr><td>GPT-3.5</td><td>-7.8</td><td>-9.3</td><td>-7.1</td><td>-5.1</td><td>-7.3</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-47.8</td><td>-59.4</td><td>-27.9</td><td>-61.4</td><td>-49.1</td></tr><tr><td>NLLB</td><td>-30.7</td><td>-33.7</td><td>-16.6</td><td>-36.2</td><td>-29.3</td></tr><tr><td>TI</td><td>-21.9</td><td>-23.5</td><td>-13.7</td><td>-22.6</td><td>-20.4</td></tr><tr><td>GPT-3.5</td><td>-12.0</td><td>-13.4</td><td>-9.6</td><td>-12.8</td><td>-12.0</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-39.5</td><td>-45.9</td><td>-26.5</td><td>-54.5</td><td>-41.6</td></tr><tr><td>NLLB</td><td>-9.3</td><td>-8.9</td><td>-3.6</td><td>-14.7</td><td>-9.1</td></tr><tr><td>TI</td><td>-4.6</td><td>-5.0</td><td>-3.5</td><td>-5.2</td><td>-4.6</td></tr><tr><td>GPT-3.5</td><td>-3.7</td><td>-4.0</td><td>-3.2</td><td>-3.1</td><td>-3.5</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-48.8</td><td>-62.9</td><td>-29.0</td><td>-64.6</td><td>-51.3</td></tr><tr><td>NLLB</td><td>-34.1</td><td>-37.4</td><td>-20.1</td><td>-40.3</td><td>-33.0</td></tr><tr><td>TI</td><td>-25.0</td><td>-26.9</td><td>-15.3</td><td>-26.8</td><td>-23.5</td></tr><tr><td>GPT-3.5</td><td>-11.8</td><td>-13.1</td><td>-10.5</td><td>-12.5</td><td>-12.0</td></tr></table>
|
| 381 |
+
|
| 382 |
+
Table 19: BLEU-slope on FLORES for en $\rightarrow$ xx.
|
| 383 |
+
|
| 384 |
+
<table><tr><td colspan="6">swap</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-50.0</td><td>-56.8</td><td>-38.0</td><td>-55.7</td><td>-50.1</td></tr><tr><td>NLLB</td><td>-24.7</td><td>-26.4</td><td>-21.0</td><td>-27.4</td><td>-24.9</td></tr><tr><td>TI</td><td>-15.9</td><td>-15.0</td><td>-11.8</td><td>-14.8</td><td>-14.4</td></tr><tr><td>GPT-3.5</td><td>-5.1</td><td>-6.0</td><td>-6.4</td><td>-5.1</td><td>-5.7</td></tr><tr><td colspan="6">drop</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-48.3</td><td>-53.3</td><td>-36.6</td><td>-53.5</td><td>-47.9</td></tr><tr><td>NLLB</td><td>-24.7</td><td>-26.6</td><td>-20.3</td><td>-27.2</td><td>-24.7</td></tr><tr><td>TI</td><td>-17.4</td><td>-17.0</td><td>-12.7</td><td>-16.6</td><td>-15.9</td></tr><tr><td>GPT-3.5</td><td>-8.3</td><td>-9.0</td><td>-8.4</td><td>-8.2</td><td>-8.5</td></tr><tr><td colspan="6">dupe</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-34.7</td><td>-36.8</td><td>-33.6</td><td>-41.8</td><td>-36.7</td></tr><tr><td>NLLB</td><td>-5.7</td><td>-5.8</td><td>-5.7</td><td>-8.6</td><td>-6.4</td></tr><tr><td>TI</td><td>-2.8</td><td>-2.6</td><td>-2.8</td><td>-2.7</td><td>-2.7</td></tr><tr><td>GPT-3.5</td><td>-1.9</td><td>-2.1</td><td>-2.5</td><td>-1.3</td><td>-2.0</td></tr><tr><td colspan="6">key</td></tr><tr><td>Model</td><td>enβde</td><td>enβfr</td><td>enβko</td><td>enβpt</td><td>avg.</td></tr><tr><td>OPUS</td><td>-50.0</td><td>-56.6</td><td>-37.9</td><td>-55.9</td><td>-50.1</td></tr><tr><td>NLLB</td><td>-27.9</td><td>-29.8</td><td>-22.7</td><td>-30.4</td><td>-27.7</td></tr><tr><td>TI</td><td>-21.0</td><td>-20.6</td><td>-15.3</td><td>-20.5</td><td>-19.4</td></tr><tr><td>GPT-3.5</td><td>-8.4</td><td>-9.0</td><td>-8.8</td><td>-8.1</td><td>-8.6</td></tr></table>
|
| 385 |
+
|
| 386 |
+
Table 21:chrF-slope on FLORES for en $\rightarrow$ xx.
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9287062e69800c9f45ee9e5e03e044733738a7eb54cf29ee5ae4bedefe98b63a
|
| 3 |
+
size 939200
|
2025/Did Translation Models Get More Robust Without Anyone Even Noticing_/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/46b5b625-0dc0-459e-9994-9544997fc1e4_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12e8473369b408625d018058979502e5adf9700d27731ddc694b936940ab376c
|
| 3 |
+
size 6246424
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/full.md
ADDED
|
@@ -0,0 +1,414 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DIFFPO: Diffusion-styled Preference Optimization for Efficient Inference-Time Alignment of Large Language Models
|
| 2 |
+
|
| 3 |
+
Ruizhe Chen $^{1,2,5}$
|
| 4 |
+
Joey Tianyi Zhou
|
| 5 |
+
|
| 6 |
+
Wenhao Chai 3 Tony Quek 3,*
|
| 7 |
+
|
| 8 |
+
Zhifei Yang Soujanya Poria 7,*
|
| 9 |
+
|
| 10 |
+
Xiaotian Zhang<sup>1</sup>
|
| 11 |
+
Zuozhu Liu<sup>1,5,*β </sup>
|
| 12 |
+
|
| 13 |
+
<sup>1</sup> Zhejiang University <sup>2</sup> SUTD <sup>3</sup> Princeton University <sup>4</sup> Peking University <sup>5</sup> Zhejiang Key Laboratory of Medical Imaging Artificial Intelligence <sup>6</sup> A*STAR Centre for Frontier AI Research <sup>7</sup> Nanyang Technological University
|
| 14 |
+
|
| 15 |
+
# Abstract
|
| 16 |
+
|
| 17 |
+
Inference-time alignment provides an efficient alternative for aligning LLMs with humans. However, these approaches still face challenges, such as limited scalability due to policy-specific value functions and latency during the inference phase. In this paper, we propose a novel approach, Diffusion-styled Preference Optimization (DIFFPO), which provides an efficient and policy-agnostic solution for aligning LLMs with humans. By directly performing alignment at sentence level, DIFFPO avoids the time latency associated with token-level generation. Designed as a plug-and-play module, DIFFPO can be seamlessly integrated with various base models to enhance their alignment. Extensive experiments on AlpacaEval 2, MT-bench, and HH-RLHF demonstrate that DIFFPO achieves superior alignment performance across various settings, achieving a favorable trade-off between alignment quality and inference-time latency. Furthermore, DIFFPO demonstrates model-agnostic scalability, significantly improving the performance of large models such as Llama-3-70B. Our model and code are available here.
|
| 18 |
+
|
| 19 |
+
# 1 Introduction
|
| 20 |
+
|
| 21 |
+
The alignment of large language models (LLMs) with human preferences has recently emerged as a focal area of research (Wang et al., 2023; Shen et al., 2023). Prominent techniques such as Reinforcement Learning from Human Feedback (RLHF) (Ouyang et al., 2022) and Direct Preference Optimization (DPO) (Rafailov et al., 2024) have demonstrated substantial efficacy. However, these methods require the optimization of individual policies, posing challenges such as high consumption of training resources. Inference-time alignment (Mudgal et al., 2023; Han et al., 2024)
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Comparison with Inference-Time Methods. Points closer to the top-right indicate a superior trade-off between performance and inference time.
|
| 25 |
+
|
| 26 |
+
provides an efficient alternative through direct adjustment of the model's output distribution, thus avoiding the need for resource-intensive retraining. Despite its advantages, this approach still requires policy-specific value functions, limiting its scalability across different models. Additionally, the inference-time latency remains high, presenting further challenges to its practical deployment.
|
| 27 |
+
|
| 28 |
+
In this paper, we investigate an efficient and policy-agnostic preference optimization method. We begin by reconsidering the objective of aligning with humans (Yao et al., 2023; Shen et al., 2023). As illustrated in Fig. 2(a), the alignment process operates at the sentence level, focusing on adjusting key components of the generated content, such as style or format, to better reflect human intentions or values. Inspired by the global controllability of the diffusion process (Li et al., 2022; Lyu et al., 2023), we propose Diffusion-styled Preference Optimization (DIFFPO). DIFFPO draws an analogy from the diffusion-based denoising process to model the iterative adjustment required for aligning human preferences, as shown in Fig. 2(b). By employing parallel decoding (Santilli et al., 2023; Leviathan et al., 2023), DIFFPO directly predicts sentence
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
(a) Alignment Objectives
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
(b) DIFFPO Framework
|
| 35 |
+
|
| 36 |
+

|
| 37 |
+
(c) Inference
|
| 38 |
+
Figure 2: Illustration of the DIFFPO Framework. (a) The objective of LLM alignment is to adjust the output of LLMs to reflect human values and intentions. In this process, preferences are considered at the sentence level, focusing on aspects such as the style and format of the complete output. (b) We propose Diffusion-style Preference Optimization (DIFFPO), which reconceptualizes the alignment process as a sentence-level denoising process, where the goal is to transform an unaligned sentence $\mathbf{y}^{(0)}$ into an aligned sentence $\mathbf{y}^{(T)}$ step by step. (c) Designed as a plug-and-play module, DIFFPO can be directly integrated with the base model output and yield better alignment.
|
| 39 |
+
|
| 40 |
+
level transitions, thus avoiding the time latency associated with token-level generation. During the training phase, we optimize the DIFFPO with an objective that maps generations with varying alignment levels to an aligned target, making it a policy-agnostic, plug-and-play module. The optimized DIFFPO can then be seamlessly integrated with the output of the base model, enhancing its alignment level, as demonstrated in Fig. 2(c).
|
| 41 |
+
|
| 42 |
+
We evaluate the performance of DIFFPO on several benchmark datasets, including AlpacaEval 2 (Dubois et al., 2024), MT-bench (Zheng et al., 2023), and HH-RLHF (Bai et al., 2022). Empirical results demonstrate that DIFFPO achieves superior alignment performance across various base models and settings. Compared to inference-time alignment techniques, DIFFPO strikes an optimal trade-off between alignment performance and inference-time latency, as shown in Fig. 1. Additional experiments highlight the model-agnostic scalability of DIFFPO across different base models.
|
| 43 |
+
|
| 44 |
+
Specifically, DIFFPO-9B significantly enhances the performance of models such as Llama-3-70B and GPT-4o, showcasing its capability to improve weak-to-strong supervision.
|
| 45 |
+
|
| 46 |
+
The advantages of DIFFPO can be summarized as:
|
| 47 |
+
|
| 48 |
+
- Model-agnostic. DIFFPO is optimized to learn sentence-level refinement, independent of the specific base LLMs. This allows it to be applied across a variety of base LLMs. Furthermore, DIFFPO does not require access to model parameters, which enhances its compatibility with API-based models and existing preference-aligned models.
|
| 49 |
+
- Training and Inference Efficiency. As a post-inference alignment strategy, DIFFPO adopts a one-for-all approach: it involves training one single DIFFPO and applying it for all base models, thus significantly reducing the resource intensiveness associated with policy optimization. Moreover, by framing alignment as sentence-level prediction,
|
| 50 |
+
|
| 51 |
+
DIFFPO bypasses the time latency associated with token-level generation, thereby improving inference-time efficiency.
|
| 52 |
+
|
| 53 |
+
# 2 Method
|
| 54 |
+
|
| 55 |
+
# 2.1 Preliminaries: Large Language Models
|
| 56 |
+
|
| 57 |
+
Next-Token Prediction. The text generation of autoregressive large language models (LLMs) with prompt $\mathbf{x}$ and response $\mathbf{y}$ can be modelled as a next-token prediction process. Given the input $\mathbf{x}$ , The language model $\pi (\cdot |\mathbf{x})$ autoregressively maps from current tokens $(\mathbf{x},\mathbf{y}_{1:n - 1})$ to a distribution over the next token $\mathbf{y}_n$ . The maximum token, $N$ , sets the length limit for LLM outputs, which conclude with an end-of-sentence (EoS) token $\mathbf{y}_N = \mathrm{EoS}$ that ends the generation. The generated output $\mathbf{y}$ consists of predicted tokens $(\mathbf{y}_1,\mathbf{y}_2,\dots ,\mathbf{y}_N)$ .
|
| 58 |
+
|
| 59 |
+
Alignment of LLMs. During the alignment of LLMs, the objective is to optimize a language model $\pi_{\theta}$ that maximizes the user's preference (Christiano et al., 2017; Ouyang et al., 2022; Rafailov et al., 2024):
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\begin{array}{l} \max _ {\pi_ {\theta}} \mathbb {E} _ {x \sim D, \mathbf {y} \sim \pi_ {\theta} (\mathbf {y} | \mathbf {x})} [ p (\mathbf {y} \succ \mathbf {y} ^ {\prime} | \mathbf {x}) \\ - \beta D _ {K L} \left(\pi_ {\theta} \| \pi_ {\text {r e f}}\right) ], \tag {1} \\ \end{array}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where $p(\mathbf{y} \succ \mathbf{y}'|\mathbf{x})$ represents the preference, i.e., the probability that $\mathbf{y}$ is preferred over $\mathbf{y}'$ given the context $\mathbf{x}$ , which can be generally represented by the reward function $r$ . The parameter $\beta$ controls the deviation from the reference policy $\pi_{\mathrm{ref}}$ , which generally corresponds to the SFT model.
|
| 66 |
+
|
| 67 |
+
Parallel Decoding of LLMs. In comparison to next-token prediction, where token-level generation is performed sequentially to obtain a sentence, parallel decoding has demonstrated the capacity by enabling sentence-level generation and improving content quality (Santilli et al., 2023; Leviathan et al., 2023). Concretely, supposing
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
f (\mathbf {y} _ {n}, \mathbf {y} _ {< n}, \mathbf {x}) := \mathbf {y} _ {n} - \underset {\mathbf {y}} {\arg \max} \pi (\mathbf {y} | \mathbf {y} _ {< n}, \mathbf {x}),
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
parallel decoding re-frames the LLM inference process as solving a system of nonlinear equations w.r.t. all tokens in a sentence $\mathbf{y}_n$ for $n = 1,\dots ,N$
|
| 74 |
+
|
| 75 |
+
It can be solved in a parallel and iterative way:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
\left\{ \begin{array}{l} \mathbf {y} _ {1} ^ {(t + 1)} = \arg \max _ {\mathbf {y}} \pi (\mathbf {y} \mid \mathbf {x}) \\ \mathbf {y} _ {2} ^ {(t + 1)} = \arg \max _ {\mathbf {y}} \pi (\mathbf {y} \mid \mathbf {y} _ {1} ^ {(t)}, \mathbf {x}) \\ \vdots \\ \mathbf {y} _ {N} ^ {(t + 1)} = \arg \max _ {\mathbf {y}} \pi (\mathbf {y} \mid \mathbf {y} _ {< N} ^ {(t)}, \mathbf {x}) \end{array} \right. \tag {2}
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
In this way, for one forward pass of the LLM at time $t$ , we can obtain the next sentence $\mathbf{y}^{(t + 1)}$ based on the previous one $\mathbf{y}^{(t)}$ .
|
| 82 |
+
|
| 83 |
+
# 2.2 Diffusion-styled Preference Optimization
|
| 84 |
+
|
| 85 |
+
Motivation. The goal of LLM alignment is to align the outputs of LLMs with human values or intentions (Yao et al., 2023). In this process, preferences are defined at the sentence-level, focusing on the style or format of complete generated answers, as illustrated in Fig. 2(a). However, the generation of these responses occurs at the token level, following the next-token prediction pattern inherent in LLM modeling. This requires existing alignment techniques to optimize preferences (or rewards) at the token-level, which complicates the learning process (Andrychowicz et al., 2017; Zhong et al., 2024; Zeng et al., 2024). This inconsistency prompts us to reconsider the formulation of the alignment process.
|
| 86 |
+
|
| 87 |
+
Reformulation. Inspired by the potential benefits of the diffusion process in controllable text generation (Gong et al., 2022; Han et al., 2022; Ye et al., 2024b), we draw an analogy between the aligning LLMs and the diffusion process. Specifically, we propose Diffusion-styled Preference Optimization (DIFFPO), which reconceptualizes alignment as a sentence-level denoising process. The denoising process $\pi$ gradually refines the initial unaligned output $\mathbf{y}^{(0)}$ by adjusting the format or style as a whole. This process ultimately produces the aligned output $\mathbf{y}^{(T)}$ , as illustrated in Fig. 2(b). The sentence-level alignment process can be formulated as follows:
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\pi \left(\mathbf {y} ^ {(0: T)}\right) := p \left(\mathbf {y} ^ {(0)}\right) \prod_ {t = 1} ^ {T} \pi \left(\mathbf {y} ^ {(t)} \mid \mathbf {y} ^ {(t - 1)}, \mathbf {x}\right), \tag {3}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
where $\mathbf{y}^{(0)}$ and $\mathbf{y}^{(T)}$ represent the initial unaligned and final aligned generations, respectively. The intermediate sequence $\mathbf{y}^{(1:T-1)}$ can be viewed as the unaligned generations progressively transitioning along the trajectory from $\mathbf{y}^{(0)}$ to $\mathbf{y}^{(T)}$ .
|
| 94 |
+
|
| 95 |
+
Assuming the existence of a reward model $r(\mathbf{x},\mathbf{y})$ , which captures how well the generated output $\mathbf{y}$ aligns with human preferences given the input $\mathbf{x}$ , the goal is to optimize a DIFFPO model $\pi_{\theta}$ . This model learns to take a sentence as input and predict the next sentence with a higher reward, as illustrated in Fig. 2(c). The goal can be expressed as follows:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\pi_ {\theta} (\mathbf {y} ^ {(t)} | \mathbf {y} ^ {(t - 1)}, \mathbf {x}) \propto p (\mathbf {y} ^ {(t - 1)}, \mathbf {x}) \mathrm {e x p} (r (\mathbf {x}, \mathbf {y} ^ {(t)})).
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
By employing parallel decoding, the DIFFPO model directly performs sentence-level predictions.
|
| 102 |
+
|
| 103 |
+
# 2.3 Consistency Optimization of DIFFPO
|
| 104 |
+
|
| 105 |
+
Inspired by Consistency LLMs (Kou et al., 2024), we propose to consistently map any intermediate (unaligned) generation $\mathbf{y}^{(t)}$ to the aligned generation $\mathbf{y}^{(T)}$ . We jointly optimize the DIFFPO model $\pi_{\theta}$ with two losses: one aligns the intermediate generation with the aligned generation, and the other prevents the corruption of the autoregressive (AR) modeling in the base model, thereby maintaining the generation quality.
|
| 106 |
+
|
| 107 |
+
Consistency Loss. For a prompt $\mathbf{x}$ with an unaligned generation $\mathbf{y}^{(t)}$ , we directly guide the model to output $\mathbf{y}^{(T)}$ with $\mathbf{y}^{(t)}$ as the input by minimizing the following loss $L_{\mathrm{Con}} =$
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\mathbb {E} _ {(\mathbf {x}, \mathbf {y} ^ {(t)}, \mathbf {y} ^ {(T)}) \sim \mathcal {D}} \left[ \sum_ {i = 1} ^ {N} \mathrm {K L} \left(\pi_ {\theta^ {-}} \left(\mathbf {y} _ {< i} ^ {(T)}, \mathbf {x}\right) \| \pi_ {\theta} \left(\mathbf {y} _ {< i} ^ {(t)}, \mathbf {x}\right)\right) \right. \tag {4}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
where $\theta^{-} = \mathrm{stopgrad}(\theta)$ and $N$ denotes the length of generation. $\mathrm{KL}(\cdot |\cdot)$ denotes the forward KL distance between two distributions.
|
| 114 |
+
|
| 115 |
+
AR Loss. To prevent the corruption of the autoregressive (AR) modeling in the base model and maintain the generation quality, we incorporate the AR loss based on the generated sequence $\mathbf{y}^{(T)}$ :
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
L _ {\mathrm {A R}} = \mathbb {E} _ {(\mathbf {x}, \mathbf {y} ^ {(T)}) \sim \mathcal {D}} \left[ - \sum_ {i = 1} ^ {N} \log \pi_ {\theta} \left(\mathbf {y} _ {i} ^ {(T)} \mid \mathbf {y} _ {< i} ^ {(T)}, \mathbf {x}\right) \right]. \tag {5}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
The total loss with weight $\omega$ is:
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
L (\theta) = L _ {\mathrm {A R}} + \omega L _ {\mathrm {C o n}}. \tag {6}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
# 2.4 The Objective of DIFFPO within RLHF
|
| 128 |
+
|
| 129 |
+
In this section, we analyze the role of DIFFPO in achieving the goal of RLHF. We start with the same RL objective as prior work, Eq. 1, under a general reward function $r^*$ . Following prior work (Peng et al., 2019; Rafailov et al., 2024), the optimal solution to the KL-constrained reward maximization objective in Eq. 1 takes the form: $r^*(\mathbf{x}, \mathbf{y}) = \beta \log \left( \frac{\pi^*(\mathbf{y}|\mathbf{x})}{\pi_{\mathrm{ref}}(\mathbf{y}|\mathbf{x})} \right) + \beta \log Z(\mathbf{x})$ , where $Z(\mathbf{x}) = \sum_{\mathbf{y}} \pi_{\mathrm{ref}}(\mathbf{y}|\mathbf{x}) \exp \left( \frac{1}{\beta} r^*(\mathbf{x}, \mathbf{y}) \right)$ is the partition function. With Bradley-Terry model, we can represent the preference function as the difference of rewards for a preferred answer $\mathbf{y}_w$ and a dispreferred answer $\mathbf{y}_l$ :
|
| 130 |
+
|
| 131 |
+
$$
|
| 132 |
+
\begin{array}{l} p \left(\mathbf {y} _ {w} \succ \mathbf {y} _ {l} | \mathbf {x}\right) = \sigma \left(r ^ {*} (\mathbf {x}, \mathbf {y} _ {w}) - r ^ {*} (\mathbf {x}, \mathbf {y} _ {l})\right) \\ = \sigma \left(\beta \log \frac {\pi^ {*} (\mathbf {y} _ {w} \mid \mathbf {x})}{\pi_ {\mathrm {r e f}} (\mathbf {y} _ {w} \mid \mathbf {x})} - \beta \log \frac {\pi^ {*} (\mathbf {y} _ {l} \mid \mathbf {x})}{\pi_ {\mathrm {r e f}} (\mathbf {y} _ {l} \mid \mathbf {x})}\right). \\ \end{array}
|
| 133 |
+
$$
|
| 134 |
+
|
| 135 |
+
Substitute by $\pi^{*}(\mathbf{y}\mid \mathbf{x}) = \pi_{\mathbf{DIFFPO}}(\mathbf{y}\mid \mathbf{y}^{\prime},x)$ $\pi_{\mathrm{ref}}(\mathbf{y}'\mid \mathbf{x})$ , we obtain $p(\mathbf{y}_w\succ \mathbf{y}_l|\mathbf{x})$ equals to
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\sigma \left(\beta \log \frac {\pi_ {\mathbf {D I F F P O}} (\mathbf {y} _ {w} \mid \mathbf {y} _ {l} , \mathbf {x})}{\pi_ {\mathbf {D I F F P O}} (\mathbf {y} _ {l} \mid \mathbf {y} _ {l} , \mathbf {x})} - \beta \log \frac {\pi_ {\text {r e f}} (\mathbf {y} _ {w} \mid \mathbf {x})}{\pi_ {\text {r e f}} (\mathbf {y} _ {l} \mid \mathbf {x})}\right).
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
Note that the first term in Eq. 7 is optimized through the consistency loss in Eq. 4 by maximizing the probability of predicting $\mathbf{y}_w$ . The second term depends only on $\mathbf{x}$ , with $\pi_{\mathrm{ref}}$ remaining constant. Moreover, the deviation from the base policy can be easily controlled, since $\mathbf{y}_w$ is derived from $\mathbf{y}_l$ .
|
| 142 |
+
|
| 143 |
+
In summary, the objective of DIFFPO as defined in Eq. 6 aligns with the RLHF objective in Eq. 1. Furthermore, since $\pi_{\mathrm{DIFFPO}}$ is optimized independently from the base model $\pi_{\mathrm{ref}}$ , it can be deployed in a model-agnostic manner.
|
| 144 |
+
|
| 145 |
+
# 2.5 Practical Implementations
|
| 146 |
+
|
| 147 |
+
Generate Alignment Trajectories. To implement DIFFPO, we collect the alignment trajectory for each prompt, thereby forming an original training set $\mathcal{D}$ . Specifically, for each prompt $\mathbf{x}$ from the UltraFeedback dataset (Cui et al., 2023), we generate $T$ responses using different base models. We then employ ArmoRM (Wang et al., 2024) reward model to score these responses. The response with the highest score is selected as $\mathbf{y}^{(T)}$ . The remaining five responses are ranked based on their scores to form $\mathbf{y}^{(0:T-1)}$ . $T$ is set to 6.
|
| 148 |
+
|
| 149 |
+
Training and Inference. During the training phase, we initialize our aligning model $\pi_{\theta}$ using three backbones of varying sizes: Gemma-2-it-2B/9B, and Llama-3-8B-Instruct. The DIFFPO model is optimized adhering to the optimization loss in Eq. 6 with parameters $N = 256$ and $w = 10^{3}$ . Given the variable lengths of generations in $\mathcal{D}$ , we standardize their lengths through padding or truncation. In the inference phase, the optimized model $\pi_{\theta}^{*}$ is employed to align responses from the vanilla generations produced by base models. Appendix B.1 shows more implementation details.
|
| 150 |
+
|
| 151 |
+
# 3 Experiment
|
| 152 |
+
|
| 153 |
+
# 3.1 Experiment Setup
|
| 154 |
+
|
| 155 |
+
Evaluation Benchmarks and Metrics. We conduct our experiments using two widely recognized benchmarks for open-ended instruction-following: MT-Bench (Zheng et al., 2023) and AlpacaEval 2 (Dubois et al., 2024). These benchmarks are designed to evaluate the conversational abilities of models across a diverse set of queries. AlpacaEval 2 includes 805 questions drawn from five distinct datasets, while MT-Bench covers eight categories and comprises a total of 80 questions. Additionally, we employ the HH-RLHF (Bai et al., 2022) datasets to assess how well the models' generative capabilities align with human values, particularly emphasizing helpfulness and harmlessness. We adhere to each benchmark's specific evaluation protocol to report scores. In AlpacaEval 2, we report both the raw win rate (WR) and the length-controlled win rate (LC), comparing performance against the GPT-4 model. In contrast, we present the average score for MT-Bench, also utilizing GPT-4 as the judge model. For HH-RLHF, we report scores that reflect the models' helpfulness and harmlessness, as well as the overall score. These scores are measured using ArmoRM (Wang et al., 2024), a state-of-the-art reward model from RewardBench (Lambert et al., 2024), designed to align with human preferences.
|
| 156 |
+
|
| 157 |
+
Baselines. We compare DIFFPO with two primary categories of offline preference optimization methods. In the category of training-based methods: Direct Preference Optimization (DPO) (Rafailov et al., 2024) reparameterizes reward functions to simplify and stabilize the preference learning process. SimPO (Meng et al., 2024) utilizes the average log probability of a sequence as an implicit reward, aligning more closely with model generation. For training-free methods:
|
| 158 |
+
|
| 159 |
+
Black-Box Prompt Optimization (BPO) (Cheng et al., 2024) adapts user prompts to better align with LLMs' input comprehension, achieving user intents optimally without altering LLM parameters. ARGs (Khanov et al., 2024) integrates alignment into the decoding process through reward-guided search, eliminating the need for costly RL training. Best-of-N sampling (BoN) (Nakano et al., 2021) samples N times and selects the highest-scoring sample based on the reward model, with N set to 4 in our experiments using ArmoRM (Wang et al., 2024) as the reward model. Furthermore, Aligner (Ji et al., 2024) and MetaAligner (Yang et al., 2024a) employ an additional model to learn corrective residuals between preferred and dispreferred responses to refine model generation.
|
| 160 |
+
|
| 161 |
+
Base Models and Inference Settings. We perform preference optimization primarily on two model families: Llama-3-8B (AI@Meta, 2024) and Mistral-7B (Jiang et al., 2023), under two configurations: SFT and Instruct. In the SFT configuration, we utilize open-source models from SimPO (Meng et al., 2024) that follow Zephyr (Tunstall et al., 2023) to train the base models (i.e., meta-llama/Meta-Llama-3-8B) on the UltraChat-200k (Ding et al., 2023) dataset to derive an SFT model. For the Instruct configuration, we employ an off-the-shelf instruction-tuned models (i.e., meta-llama/Meta-Llama-3-8B-Instruct). To further validate scalability, we conduct additional experiments using the Llama-3.2 series, Qwen-2.5 series (Team, 2024), and GPT4o (Achiam et al., 2023) as the base models.
|
| 162 |
+
|
| 163 |
+
During the inference phase of DIFFPO, we initially generate responses using the base models. For each benchmark. In AlpacaEval 2 and HHRLHF, we employ a sampling decoding strategy with a temperature setting of 0.7. For MT-Bench, we adhere to the official decoding configuration, which specifies varying temperatures for different categories. In our primary experiments, we set the maximum token generation length to 256. Results for experiments conducted at various lengths are provided in Tab. 4. Subsequently, the responses generated by the base models are aligned using the trained DIFFPO. For the main results, parallel decoding is executed with a block size of 256.
|
| 164 |
+
|
| 165 |
+
# 3.2 Experiment Results
|
| 166 |
+
|
| 167 |
+
DIFFPO significantly outperforms existing preference optimization methods. As shown in Ta
|
| 168 |
+
|
| 169 |
+
<table><tr><td rowspan="3">Method</td><td colspan="5">Llama-3-SFT (8B)</td><td colspan="5">Llama-3-Instruct (8B)</td></tr><tr><td>MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="2">HH-RLHF</td><td>MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="2">HH-RLHF</td></tr><tr><td>GPT-4</td><td>LC (%)</td><td>WR (%)</td><td>Helpful</td><td>Harmless</td><td>GPT-4</td><td>LC (%)</td><td>WR (%)</td><td>Helpful</td><td>Harmless</td></tr><tr><td>Base Model</td><td>6.21</td><td>22.09</td><td>20.81</td><td>0.59</td><td>0.91</td><td>6.78</td><td>36.83</td><td>42.12</td><td>0.67</td><td>0.93</td></tr><tr><td>w. DPO</td><td>6.59</td><td>29.84</td><td>36.77</td><td>0.68</td><td>0.89</td><td>6.90</td><td>47.20</td><td>53.56</td><td>0.74</td><td>0.92</td></tr><tr><td>w. SimPO</td><td>6.62</td><td>32.27</td><td>40.96</td><td>0.66</td><td>0.86</td><td>7.05</td><td>52.57</td><td>58.33</td><td>0.75</td><td>0.92</td></tr><tr><td>w. BPO</td><td>5.84</td><td>21.34</td><td>22.33</td><td>0.60</td><td>0.92</td><td>6.43</td><td>22.39</td><td>34.06</td><td>0.67</td><td>0.92</td></tr><tr><td>w. ARGs</td><td>6.14</td><td>9.06</td><td>13.97</td><td>0.49</td><td>0.86</td><td>6.84</td><td>31.83</td><td>34.74</td><td>0.64</td><td>0.89</td></tr><tr><td>w. BoN</td><td>6.79</td><td>35.14</td><td>32.26</td><td>0.62</td><td>0.92</td><td>6.89</td><td>45.10</td><td>49.94</td><td>0.67</td><td>0.92</td></tr><tr><td>w. Aligner</td><td>4.88</td><td>20.41</td><td>17.15</td><td>0.60</td><td>0.91</td><td>4.82</td><td>32.53</td><td>32.69</td><td>0.67</td><td>0.96</td></tr><tr><td>w. MetaAligner</td><td>4.46</td><td>19.81</td><td>18.23</td><td>0.52</td><td>0.89</td><td>4.50</td><td>20.75</td><td>19.08</td><td>0.52</td><td>0.91</td></tr><tr><td>w. DIFFPO-8B</td><td>6.96</td><td>36.24</td><td>40.96</td><td>0.62</td><td>0.93</td><td>7.02</td><td>36.44</td><td>41.01</td><td>0.68</td><td>0.93</td></tr><tr><td>w. DIFFPO-9B</td><td>7.45</td><td>49.72</td><td>54.23</td><td>0.71</td><td>0.98</td><td>7.40</td><td>55.84</td><td>61.88</td><td>0.72</td><td>0.98</td></tr><tr><td colspan="6">Mistral-SFT (7B)</td><td colspan="5">Mistral-Instruct (7B)</td></tr><tr><td rowspan="2">Method</td><td>MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="2">HH-RLHF</td><td>MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="2">HH-RLHF</td></tr><tr><td>GPT-4</td><td>LC (%)</td><td>WR (%)</td><td>Helpful</td><td>Harmless</td><td>GPT-4</td><td>LC (%)</td><td>WR (%)</td><td>Helpful</td><td>Harmless</td></tr><tr><td>Base Model</td><td>5.73</td><td>20.15</td><td>17.24</td><td>0.56</td><td>0.87</td><td>6.39</td><td>32.81</td><td>34.86</td><td>0.66</td><td>0.94</td></tr><tr><td>w. DPO</td><td>5.91</td><td>31.28</td><td>32.65</td><td>0.66</td><td>0.91</td><td>6.29</td><td>35.60</td><td>37.73</td><td>0.67</td><td>0.92</td></tr><tr><td>w. SimPO</td><td>6.17</td><td>31.16</td><td>33.72</td><td>0.63</td><td>0.86</td><td>6.36</td><td>35.78</td><td>40.21</td><td>0.67</td><td>0.93</td></tr><tr><td>w. BPO</td><td>5.55</td><td>18.23</td><td>17.23</td><td>0.64</td><td>0.92</td><td>5.99</td><td>19.61</td><td>27.49</td><td>0.66</td><td>0.93</td></tr><tr><td>w. ARGs</td><td>5.12</td><td>11.07</td><td>13.95</td><td>0.55</td><td>0.87</td><td>6.20</td><td>26.60</td><td>29.68</td><td>0.66</td><td>0.92</td></tr><tr><td>w. BoN</td><td>6.21</td><td>33.36</td><td>27.74</td><td>0.64</td><td>0.94</td><td>6.40</td><td>34.75</td><td>39.24</td><td>0.68</td><td>0.94</td></tr><tr><td>w. Aligner</td><td>4.27</td><td>18.27</td><td>15.53</td><td>0.60</td><td>0.95</td><td>4.42</td><td>28.88</td><td>30.30</td><td>0.66</td><td>0.93</td></tr><tr><td>w. MetaAligner</td><td>4.08</td><td>12.40</td><td>9.72</td><td>0.51</td><td>0.85</td><td>3.71</td><td>18.55</td><td>16.91</td><td>0.55</td><td>0.91</td></tr><tr><td>w. DIFFPO-8B</td><td>6.87</td><td>34.42</td><td>40.08</td><td>0.62</td><td>0.88</td><td>7.04</td><td>35.92</td><td>40.70</td><td>0.68</td><td>0.92</td></tr><tr><td>w. DIFFPO-9B</td><td>7.13</td><td>48.99</td><td>52.87</td><td>0.70</td><td>0.96</td><td>7.33</td><td>56.22</td><td>61.71</td><td>0.72</td><td>0.98</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Table 1: Comparison results with baseline methods. DIFFPO achieves the superior alignment performance across all benchmarks, outperforming the training-based baselines (i.e., SimPO and DPO) in various settings. Notably, DIFFPO requires only a single training session and is applicable to multiple base models. The best result is highlighted in bold, while the second-best result is highlighted with underline.
|
| 172 |
+
|
| 173 |
+
ble 1, while all preference optimization algorithms improve performance over the base model, DIFFPO achieves the best overall performance across all benchmarks and settings. These consistent and significant improvements underscore the robustness and effectiveness of DIFFPO. Notably, DIFFPO outperforms the training-based baselines (i.e., SimPO and DPO) across various settings, despite requiring only a single training session of DIFFPO model and being capable of enhancing the performance of multiple base models.
|
| 174 |
+
|
| 175 |
+
DIFFPO consistently improves the performance of base models of various sizes. We report the performance of DIFFPO-2B and DIFFPO-9B on base models of various sizes, with the results presented in Table 2. The results demonstrate that both DIFFPO-2B and DIFFPO-9B lead to performance improvements across different base models. However, the performance gain of DIFFPO-2B is limited, showing notable improvements primarily for smaller models. In contrast, DIFFPO-9B enhances the performance of larger models, such as
|
| 176 |
+
|
| 177 |
+
Qwen2.5-14B and 32B, as well as black-box GPT-4, exhibiting a weak-to-strong improvement pattern. Furthermore, the results show that DIFFPO can be effectively integrated with existing preference optimization methods, such as DPO and SimPO, further enhancing alignment performance. These results underscore the scalability of DIFFPO.
|
| 178 |
+
|
| 179 |
+
DIFFPO achieves a surpassing performance-efficiency trade-off. We compare DIFFPO with existing inference-time alignment techniques, evaluating both alignment performance and execution time. The results are illustrated in Fig. 3, with the execution time measured on a single NVIDIA A100 80GB GPU. Points located closer to the top-right corner indicate a more favorable Pareto frontier. BoN and MetaAligner achieves commendable alignment performance and inference time respectively. However, when considering both aspects, DIFFPO demonstrates a surpassing performance-efficiency trade-off on all three datasets. The experiments are conducted on Llama-3-SFT.
|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan="2">Base Models</td><td colspan="3">MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="3">HH-RLHF</td></tr><tr><td>1-Turn</td><td>2-Turn</td><td>Avg.</td><td>LC (%)</td><td>WR (%)</td><td>Overall</td><td>Helpful</td><td>Harmless</td></tr><tr><td>Llama-3.2-1B-Instruct</td><td>5.32</td><td>5.13</td><td>5.25</td><td>15.57</td><td>19.09</td><td>0.0955</td><td>0.5978</td><td>0.9313</td></tr><tr><td>w. DIFFPO-2B</td><td>6.97</td><td>5.97</td><td>6.47</td><td>39.42</td><td>44.20</td><td>0.1077</td><td>0.6948</td><td>0.9728</td></tr><tr><td>w. DIFFPO-9B</td><td>7.56</td><td>6.95</td><td>7.30</td><td>50.70</td><td>56.08</td><td>0.1130</td><td>0.7059</td><td>0.9770</td></tr><tr><td>Llama-3.2-3B-Instruct</td><td>6.84</td><td>6.06</td><td>6.45</td><td>33.41</td><td>37.43</td><td>0.1037</td><td>0.6533</td><td>0.9183</td></tr><tr><td>w. DIFFPO-2B</td><td>7.13</td><td>6.46</td><td>6.79</td><td>39.94</td><td>45.32</td><td>0.1069</td><td>0.6956</td><td>0.9682</td></tr><tr><td>w. DIFFPO-9B</td><td>7.58</td><td>7.00</td><td>7.36</td><td>54.06</td><td>59.30</td><td>0.1132</td><td>0.7106</td><td>0.9875</td></tr><tr><td>Llama-3-8B-SFT+DPO</td><td>6.70</td><td>6.48</td><td>6.59</td><td>29.84</td><td>36.77</td><td>0.1044</td><td>0.6814</td><td>0.8900</td></tr><tr><td>w. DIFFPO-9B</td><td>7.42</td><td>7.03</td><td>7.22</td><td>54.29</td><td>59.51</td><td>0.1134</td><td>0.7178</td><td>0.9765</td></tr><tr><td>Llama-3-8B-SFT+SimPO</td><td>6.63</td><td>6.61</td><td>6.62</td><td>32.27</td><td>40.96</td><td>0.1022</td><td>0.6640</td><td>0.8589</td></tr><tr><td>w. DIFFPO-9B</td><td>7.59</td><td>7.08</td><td>7.42</td><td>55.66</td><td>60.67</td><td>0.1121</td><td>0.7156</td><td>0.9638</td></tr><tr><td>Llama-3-8B-it+DPO</td><td>6.75</td><td>7.05</td><td>6.90</td><td>47.20</td><td>53.56</td><td>0.1120</td><td>0.7387</td><td>0.9154</td></tr><tr><td>w. DIFFPO-9B</td><td>7.79</td><td>6.98</td><td>7.39</td><td>58.56</td><td>63.60</td><td>0.1140</td><td>0.7211</td><td>0.9831</td></tr><tr><td>Llama-3-8B-it+SimPO</td><td>7.09</td><td>7.00</td><td>7.05</td><td>52.57</td><td>58.33</td><td>0.1143</td><td>0.7483</td><td>0.9182</td></tr><tr><td>w. DIFFPO-9B</td><td>7.43</td><td>7.22</td><td>7.33</td><td>59.66</td><td>65.32</td><td>0.1142</td><td>0.7229</td><td>0.9756</td></tr><tr><td>Llama-3-70B-Instruct</td><td>7.41</td><td>7.59</td><td>7.5</td><td>46.14</td><td>51.12</td><td>0.1087</td><td>0.6928</td><td>0.9163</td></tr><tr><td>w. DIFFPO-9B</td><td>8.23</td><td>7.28</td><td>7.75</td><td>58.18</td><td>62.34</td><td>0.1137</td><td>0.719</td><td>0.9757</td></tr><tr><td>Qwen2.5-3B-Instruct</td><td>6.73</td><td>5.59</td><td>6.16</td><td>35.52</td><td>40.42</td><td>0.1050</td><td>0.6802</td><td>0.9587</td></tr><tr><td>w. DIFFPO-2B</td><td>7.06</td><td>6.26</td><td>6.66</td><td>42.63</td><td>47.83</td><td>0.1065</td><td>0.6973</td><td>0.9771</td></tr><tr><td>w. DIFFPO-9B</td><td>7.58</td><td>7.24</td><td>7.41</td><td>55.71</td><td>61.43</td><td>0.1132</td><td>0.7106</td><td>0.9875</td></tr><tr><td>Qwen2.5-7B-Instruct</td><td>7.11</td><td>6.96</td><td>7.03</td><td>45.03</td><td>49.95</td><td>0.1095</td><td>0.6995</td><td>0.9442</td></tr><tr><td>w. DIFFPO-2B</td><td>7.01</td><td>6.34</td><td>6.67</td><td>43.89</td><td>49.07</td><td>0.1074</td><td>0.7013</td><td>0.9659</td></tr><tr><td>w. DIFFPO-9B</td><td>7.62</td><td>7.10</td><td>7.35</td><td>57.89</td><td>63.01</td><td>0.1117</td><td>0.7100</td><td>0.9445</td></tr><tr><td>Qwen2.5-14B-Instruct</td><td>7.24</td><td>6.71</td><td>6.98</td><td>51.60</td><td>57.10</td><td>0.1117</td><td>0.7100</td><td>0.9445</td></tr><tr><td>w. DIFFPO-2B</td><td>7.08</td><td>6.33</td><td>6.71</td><td>43.70</td><td>48.76</td><td>0.1078</td><td>0.7017</td><td>0.9704</td></tr><tr><td>w. DIFFPO-9B</td><td>7.62</td><td>7.35</td><td>7.48</td><td>55.13</td><td>60.65</td><td>0.1136</td><td>0.7185</td><td>0.9759</td></tr><tr><td>Qwen2.5-32B-Instruct</td><td>7.35</td><td>6.95</td><td>7.15</td><td>54.93</td><td>60.95</td><td>0.1132</td><td>0.7189</td><td>0.9594</td></tr><tr><td>w. DIFFPO-9B</td><td>7.58</td><td>7.63</td><td>7.60</td><td>55.13</td><td>61.94</td><td>0.1143</td><td>0.7248</td><td>0.9797</td></tr><tr><td>GPT-4o (API)</td><td>7.40</td><td>7.47</td><td>7.43</td><td>53.64</td><td>62.01</td><td>0.1119</td><td>0.6974</td><td>0.9669</td></tr><tr><td>w. DIFFPO-9B</td><td>7.66</td><td>7.37</td><td>7.51</td><td>58.91</td><td>64.30</td><td>0.1129</td><td>0.7167</td><td>0.9893</td></tr></table>
|
| 182 |
+
|
| 183 |
+
Table 2: Performance of DIFFPO models. The results demonstrate that both DIFFPO-2B and DIFFPO-9B lead to performance improvements across different base models. DIFFPO-9B enhances the performance of larger models, such as Qwen2.5-14B and 32B, as well as black-box GPT-4o, exhibiting a weak-to-strong improvement pattern. Furthermore, the results show that DIFFPO can be effectively integrated with existing preference optimization methods, such as DPO and SimPO, further enhancing alignment performance.
|
| 184 |
+
|
| 185 |
+
# 3.3 Analysis
|
| 186 |
+
|
| 187 |
+
Performance Under Hybrid Decoding. We investigate the hybrid decoding strategy of DiffPO, with results provided in Tab 3. We segment the vanilla generation, which has a maximum length of 256, into blocks of varying sizes and sequentially apply DiffPO-8B to each block. This approach allows DiffPO decoding to be parallel within blocks and auto-regressive between blocks. It can be observed that hybrid decoding significantly reduces the decoding time, with optimal efficiency achieved at a block size of 32. On the other hand, performance is enhanced when the block size is set to 256, which corresponds to purely paral
|
| 188 |
+
|
| 189 |
+
Ie1 decoding, indicating a feasible trade-off. The experiments are conducted on Llama-3-SFT.
|
| 190 |
+
|
| 191 |
+
Scaling towards Longer Generation Lengths. We validate the scalability of the DIFFPO model in response to increasing generation lengths, with results presented in Tab 4. Using base models, we generate outputs on MT-Bench under various maximum length settings and observe a positive correlation between increased text length and higher scores. Subsequently, the same optimized DIFFPO-8B and 9B is applied to these outputs using the hybrid decoding strategy described in the previous section. This approach consistently
|
| 192 |
+
|
| 193 |
+

|
| 194 |
+
Figure 3: Comparison of Inference-Time Efficiency. We compare DIFFPO with existing inference-time alignment techniques, evaluating both alignment performance and execution time. Points located closer to the top-right corner indicate a better trade-off. When considering both aspects, DIFFPO demonstrates a surpassing performance-efficiency trade-off on all three datasets.
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
|
| 200 |
+
<table><tr><td>Block Size</td><td>16</td><td>32</td><td>64</td><td>128</td><td>256</td></tr><tr><td>MT (GPT-4)</td><td>6.86</td><td>6.96</td><td>6.84</td><td>6.81</td><td>6.77</td></tr><tr><td>Time (s)</td><td>1080</td><td>1012</td><td>1390</td><td>1520</td><td>1937</td></tr><tr><td>AE2 (LC)</td><td>33.52</td><td>33.54</td><td>33.46</td><td>32.98</td><td>36.24</td></tr><tr><td>Time (s)</td><td>3712</td><td>3471</td><td>4614</td><td>5510</td><td>7520</td></tr><tr><td>HH (Avg.)</td><td>0.7742</td><td>0.7749</td><td>0.7743</td><td>0.7741</td><td>0.7761</td></tr><tr><td>Time (s)</td><td>1564</td><td>1551</td><td>1620</td><td>1816</td><td>2684</td></tr></table>
|
| 201 |
+
|
| 202 |
+
yields enhanced alignment performance, demonstrating DIFFPO's robust scaling capabilities towards longer generation lengths.
|
| 203 |
+
|
| 204 |
+
Loss and Hyperparameter Ablation. We evaluate the effectiveness of the training loss of DIFFPO in Section 2.3 and the inference strategy in Section 2.5. The results are presented in Table 5. We report on two decoding strategies: vanilla decoding of a single model and DIFFPO decoding, which applies the optimized DIFFPO-9B on the output of the base model. The findings indicate that applying DIFFPO to the base model achieves performance superior to that of single models alone, thus demonstrating the effectiveness of the DIFFPO strategy. Furthermore, we report the results of an ablation study on the hyperparameter $w$ in Eq. 6. When using DIFFPO decoding, employing $L_{\mathrm{Con}}$ with larger values of $w$ lead to a more pronounced improvement in performance.
|
| 205 |
+
|
| 206 |
+
Table 3: Performance Under Hybrid Decoding. We segment the vanilla generation into blocks of varying sizes and sequentially apply DIFFPO-8B to each block. This approach allows DIFFPO decoding to be parallel within blocks and auto-regressive between blocks. Hybrid decoding significantly reduces the decoding time, indicating a feasible trade-off for performance.
|
| 207 |
+
|
| 208 |
+
<table><tr><td>Generation Length</td><td>256</td><td>512</td><td>1,024</td><td>2,048</td></tr><tr><td>Llama-3-SFT</td><td>6.21</td><td>6.61</td><td>6.76</td><td>6.71</td></tr><tr><td>w. DIFFPO-8B (Ξ)</td><td>+0.75</td><td>+0.81</td><td>+0.93</td><td>+1.05</td></tr><tr><td>w. DIFFPO-9B (Ξ)</td><td>+1.24</td><td>+1.64</td><td>+1.48</td><td>+0.50</td></tr><tr><td>Llama-3-Instruct</td><td>6.78</td><td>7.87</td><td>7.99</td><td>8.00</td></tr><tr><td>w. DIFFPO-8B (Ξ)</td><td>+0.24</td><td>-0.12</td><td>+0.01</td><td>+0.02</td></tr><tr><td>w. DIFFPO-9B (Ξ)</td><td>+0.62</td><td>+0.68</td><td>+0.34</td><td>+0.62</td></tr><tr><td>Mistral-SFT</td><td>5.73</td><td>6.42</td><td>6.50</td><td>6.36</td></tr><tr><td>w. DIFFPO-8B (Ξ)</td><td>+1.14</td><td>+1.16</td><td>+1.25</td><td>+1.51</td></tr><tr><td>w. DIFFPO-9B (Ξ)</td><td>+1.40</td><td>+1.47</td><td>+1.71</td><td>+1.86</td></tr><tr><td>Mistral-Instruct</td><td>6.39</td><td>7.47</td><td>7.68</td><td>7.64</td></tr><tr><td>w. DIFFPO-8B (Ξ)</td><td>+0.65</td><td>+0.06</td><td>+0.13</td><td>+0.17</td></tr><tr><td>w. DIFFPO-9B (Ξ)</td><td>+0.94</td><td>+0.59</td><td>+0.58</td><td>+0.78</td></tr></table>
|
| 209 |
+
|
| 210 |
+
Table 4: Scaling towards Longer Generation Lengths. We evaluate the performance of DIFFPO under various maximum length settings. When the same optimized DIFFPO-8B and 9B is applied to these outputs, consistently enhanced performance demonstrates DIFFPO's robust scaling capabilities.
|
| 211 |
+
|
| 212 |
+
# 4 Conclusion
|
| 213 |
+
|
| 214 |
+
This paper introduces a novel inference-time alignment framework for large language models, DiffPO. DiffPO achieves alignment at the sentence level to better model human preferences, drawing inspiration from the denoising process. DiffPO outperforms both strong training-based and inference-time alignment techniques in terms of alignment performance and inference speed. Experiments scaling DiffPO from 2B to 9B parameters, expanding the base model from 1B to 70B, and increasing the context length from 256 to 2,048 demonstrate that DiffPO is a robust and scalable framework for LLM alignment.
|
| 215 |
+
|
| 216 |
+
<table><tr><td rowspan="2">Loss</td><td>MT</td><td>AE2</td><td>HH</td></tr><tr><td>GPT-4</td><td>LC (%)</td><td>Avg.</td></tr><tr><td colspan="4">Vanilla Decoding</td></tr><tr><td>Llama-3-Instruct</td><td>6.78</td><td>36.83</td><td>0.7985</td></tr><tr><td>\( L_{\text{AR}} \)</td><td>6.90</td><td>36.35</td><td>0.7971</td></tr><tr><td colspan="4">Llama-3-it w. DIFFPO-8B</td></tr><tr><td>\( L_{\text{AR}} \) only</td><td>6.75</td><td>35.84</td><td>0.7968</td></tr><tr><td>\( 10 \times L_{\text{Con}} + L_{\text{AR}} \)</td><td>6.85</td><td>35.96</td><td>0.7997</td></tr><tr><td>\( 100 \times L_{\text{Con}} + L_{\text{AR}} \)</td><td>6.86</td><td>35.92</td><td>0.7998</td></tr><tr><td>\( 1,000 \times L_{\text{Con}} + L_{\text{AR}} \)</td><td>7.02</td><td>36.44</td><td>0.7998</td></tr></table>
|
| 217 |
+
|
| 218 |
+
Table 5: Loss and Hyperparameter Ablation. We report the results of vanilla decoding from the base model and the optimized DIFFPO model. The results indicate that applying DIFFPO to the base model yields outperforming performance than single models, demonstrating the effectiveness of DIFFPO strategy.
|
| 219 |
+
|
| 220 |
+
# Limitations
|
| 221 |
+
|
| 222 |
+
We acknowledge the presence of certain limitations. While DiffPO has demonstrated a superior tradeoff between performance and inference-time cost, it still introduces additional inference latency due to the need for an extra model for alignment. Moreover, we observe that the performance of DiffPO scales with its size, which presents challenges for cost-effectiveness during deployment. Additionally, despite the empirical success and intuitive motivation behind DiffPO, a more rigorous theoretical analysis is required to fully understand its effectiveness. Future work could explore how to combine the diffusion process (i.e., the denoising process) with the alignment task more effectively. This paper draws insights from the analogy between the denoising process and alignment. We hope our findings will facilitate future exploration of existing successful techniques in the natural language processing domain.
|
| 223 |
+
|
| 224 |
+
# Potential Risks
|
| 225 |
+
|
| 226 |
+
As an inference-time alignment technique, DIFFPO aims to develop AI assistants that align with positive human intentions and social values. However, there is a potential risk that DIFFPO could be misused to align with harmful or negative values. We strongly oppose any such misuse, as it could hinder human progress, and advocate for the responsible and ethical use of DIFFPO.
|
| 227 |
+
|
| 228 |
+
# Acknowledgements
|
| 229 |
+
|
| 230 |
+
This work is supported by the National Natural Science Foundation of China (Grant No. 12326612, 62476241), the Natural Science Foundation of Zhejiang Province, China (Grant No. LZ23F020008), Zhejiang Key Laboratory of Medical Imaging Artificial Intelligence, and the Zhejiang University-Angelalign Inc. R&D Center for Intelligent Healthcare.
|
| 231 |
+
|
| 232 |
+
This research/project is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG3-GV2023-010).
|
| 233 |
+
|
| 234 |
+
# References
|
| 235 |
+
|
| 236 |
+
Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.
|
| 237 |
+
Arash Ahmadian, Chris Cremer, Matthias Galle, Marzieh Fadaee, Julia Kreutzer, Olivier Pietquin, Ahmet ΓstΓΌn, and Sara Hooker. 2024. Back to basics: Revisiting reinforce style optimization for learning from human feedback in llms. arXiv preprint arXiv:2402.14740.
|
| 238 |
+
AI@Meta. 2024. Llama 3 model card.
|
| 239 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. 2017. Hindsight experience replay. Advances in neural information processing systems, 30.
|
| 240 |
+
Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, et al. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.
|
| 241 |
+
Souradip Chakraborty, Soumya Suvra Ghosal, Ming Yin, Dinesh Manocha, Mengdi Wang, Amrit Singh Bedi, and Furong Huang. 2024. Transfer q star: Principled decoding for llm alignment. arXiv preprint arXiv:2405.20495.
|
| 242 |
+
Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau, Laurent Sifre, and John Jumper. 2023. Accelerating large language model decoding with speculative sampling. arXiv preprint arXiv:2302.01318.
|
| 243 |
+
Ruizhe Chen, Tianxiang Hu, Yang Feng, and Zuozhu Liu. 2024a. Learnable privacy neurons localization in language models. arXiv preprint arXiv:2405.10989.
|
| 244 |
+
Ruizhe Chen, Yichen Li, Jianfei Yang, Joel Tianyi Zhou, and Zuozhu Liu. 2024b. Editable fairness: Fine-grained bias mitigation in language models. arXiv preprint arXiv:2408.11843.
|
| 245 |
+
Ruizhe Chen, Jianfei Yang, Huimin Xiong, Jianhong Bai, Tianxiang Hu, Jin Hao, Yang Feng, Joey Tianyi Zhou, Jian Wu, and Zuozhu Liu. 2024c. Fast model debias with machine unlearning. Advances in Neural Information Processing Systems, 36.
|
| 246 |
+
Ruizhe Chen, Xiaotian Zhang, Meng Luo, Wenhao Chai, and Zuozhu Liu. 2024d. Pad: Personalized alignment of llms at decoding-time. arXiv preprint arXiv:2410.04070.
|
| 247 |
+
Jiale Cheng, Xiao Liu, Kehan Zheng, Pei Ke, Hongning Wang, Yuxiao Dong, Jie Tang, and Minlie Huang. 2024. Black-box prompt optimization: Aligning large language models without model training. Preprint, arXiv:2311.04155.
|
| 248 |
+
|
| 249 |
+
Paul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. 2017. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30.
|
| 250 |
+
Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback. Preprint, arXiv:2310.01377.
|
| 251 |
+
Prafulla Dhariwal and Alexander Nichol. 2021. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780-8794.
|
| 252 |
+
Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. arXiv preprint arXiv:2305.14233.
|
| 253 |
+
Yann Dubois, BalΓ‘zs Galambosi, Percy Liang, and Tatsunori B Hashimoto. 2024. Length-controlled alpacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475.
|
| 254 |
+
Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. 2024. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306.
|
| 255 |
+
Zhiting Fan, Ruizhe Chen, Tianxiang Hu, and Zuozhu Liu. 2024a. Fairmt-bench: Benchmarking fairness for multi-turn dialogue in conversational llms. arXiv preprint arXiv:2410.19317.
|
| 256 |
+
Zhiting Fan, Ruizhe Chen, Ruiling Xu, and Zuozhu Liu. 2024b. Biasalert: A plug-and-play tool for social bias detection in llms. arXiv preprint arXiv:2407.10241.
|
| 257 |
+
Yichao Fu, Peter Bailis, Ion Stoica, and Hao Zhang. 2024. Break the sequential dependency of llm inference using lookahead decoding. arXiv preprint arXiv:2402.02057.
|
| 258 |
+
Shansan Gong, Mukai Li, Jiangtao Feng, Zhiyong Wu, and LingPeng Kong. 2022. Diffuseq: Sequence to sequence text generation with diffusion models. arXiv preprint arXiv:2210.08933.
|
| 259 |
+
Shansan Gong, Mukai Li, Jiangtao Feng, Zhiyong Wu, and Lingpeng Kong. 2023. Diffuseq-v2: Bridging discrete and continuous text spaces for accelerated seq2seq diffusion models. arXiv preprint arXiv:2310.05793.
|
| 260 |
+
Ishaan Gulrajani and Tatsunori B Hashimoto. 2024. Likelihood-based diffusion language models. Advances in Neural Information Processing Systems, 36.
|
| 261 |
+
Seungwook Han, Idan Shenfeld, Akash Srivastava, Yoon Kim, and Pulkit Agrawal. 2024. Value augmented sampling for language model alignment and personalization. arXiv preprint arXiv:2405.06639.
|
| 262 |
+
|
| 263 |
+
Xiaochuang Han, Sachin Kumar, and Yulia Tsvetkov. 2022. Ssd-lm: Semi-autoregressive simplex-based diffusion language model for text generation and modular control. arXiv preprint arXiv:2210.17432.
|
| 264 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851.
|
| 265 |
+
James Y Huang, Sailik Sengupta, Daniele Bonadiman, Yi-an Lai, Arshit Gupta, Nikolaos Pappas, Saab Mansour, Katrin Kirchhoff, and Dan Roth. 2024. Deal: Decoding-time alignment for large language models. arXiv preprint arXiv:2402.06147.
|
| 266 |
+
Jiaming Ji, Boyuan Chen, Hantao Lou, Donghai Hong, Borong Zhang, Xuehai Pan, Juntao Dai, Tianyi Qiu, and Yaodong Yang. 2024. Aligner: Efficient alignment by learning to correct. arXiv preprint arXiv:2402.02416.
|
| 267 |
+
Albert Q Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, et al. 2023. Mistral 7b. arXiv preprint arXiv:2310.06825.
|
| 268 |
+
Maxim Khanov, Jirayu Burapacheep, and Yixuan Li. 2024. *Args: Alignment as reward-guided search.* Preprint, arXiv:2402.01694.
|
| 269 |
+
Siqi Kou, Lanxiang Hu, Zhezhi He, Zhijie Deng, and Hao Zhang. 2024. Cllms: Consistency large language models. arXiv preprint arXiv:2403.00835.
|
| 270 |
+
Nathan Lambert, Valentina Pyatkin, Jacob Morrison, LJ Miranda, Bill Yuchen Lin, Khyathi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, et al. 2024. Rewardbench: Evaluating reward models for language modeling. arXiv preprint arXiv:2403.13787.
|
| 271 |
+
Yaniv Leviathan, Matan Kalman, and Yossi Matias. 2023. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274-19286. PMLR.
|
| 272 |
+
Xiang Li, John Thickstun, Ishaan Gulrajani, Percy S Liang, and Tatsunori B Hashimoto. 2022. Diffusion improves controllable text generation. Advances in Neural Information Processing Systems, 35:4328-4343.
|
| 273 |
+
Yuhui Li, Fangyun Wei, Jinjing Zhao, Chao Zhang, and Hongyang Zhang. 2023a. Rain: Your language models can align themselves without finetuning. arXiv preprint arXiv:2309.07124.
|
| 274 |
+
Ziniu Li, Tian Xu, Yushun Zhang, Zhihang Lin, Yang Yu, Ruoyu Sun, and Zhi-Quan Luo. 2023b. Remax: A simple, effective, and efficient reinforcement learning method for aligning large language models. In *Forty-first International Conference on Machine Learning*.
|
| 275 |
+
|
| 276 |
+
Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2023. Let's verify step by step. arXiv preprint arXiv:2305.20050.
|
| 277 |
+
Justin Lovelace, Varsha Kishore, Chao Wan, Eliot Shekhtman, and Kilian Q Weinberger. 2024. Latent diffusion for language generation. Advances in Neural Information Processing Systems, 36.
|
| 278 |
+
Hanjun Luo, Ziye Deng, Ruizhe Chen, and Zuozhu Liu. 2024. Faintbench: A holistic and precise benchmark for bias evaluation in text-to-image models. arXiv preprint arXiv:2405.17814.
|
| 279 |
+
Yiwei Lyu, Tiange Luo, Jiacheng Shi, Todd C Hollon, and Honglak Lee. 2023. Fine-grained text style transfer with diffusion-based language models. arXiv preprint arXiv:2305.19512.
|
| 280 |
+
Yu Meng, Mengzhou Xia, and Danqi Chen. 2024. Simpo: Simple preference optimization with a reference-free reward. Preprint, arXiv:2405.14734.
|
| 281 |
+
Sidharth Mudgal, Jong Lee, Harish Ganapathy, YaGuang Li, Tao Wang, Yanping Huang, Zhifeng Chen, Heng-Tze Cheng, Michael Collins, Trevor Strohman, et al. 2023. Controlled decoding from language models. arXiv preprint arXiv:2310.17022.
|
| 282 |
+
Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. 2021. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332.
|
| 283 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730-27744.
|
| 284 |
+
Xue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey Levine. 2019. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177.
|
| 285 |
+
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2024. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36.
|
| 286 |
+
Andrea Santilli, Silvio Severino, Emilian Postolache, Valentino Maiorca, Michele Mancusi, Riccardo Marin, and Emanuele RodolΓ . 2023. Accelerating transformer inference for translation via parallel decoding. arXiv preprint arXiv:2305.10427.
|
| 287 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347.
|
| 288 |
+
|
| 289 |
+
Tianhao Shen, Renren Jin, Yufei Huang, Chuang Liu, Weilong Dong, Zishan Guo, Xinwei Wu, Yan Liu, and Deyi Xiong. 2023. Large language model alignment: A survey. arXiv preprint arXiv:2309.15025.
|
| 290 |
+
Jiaming Song, Chenlin Meng, and Stefano Ermon. 2020. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502.
|
| 291 |
+
Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. 2023. Consistency models. arXiv preprint arXiv:2303.01469.
|
| 292 |
+
Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008-3021.
|
| 293 |
+
Qwen Team. 2024. Qwen2.5: A party of foundation models.
|
| 294 |
+
Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, ClΓ©mentine Fourrier, Nathan Habib, et al. 2023. Zephyr: Direct distillation of lm alignment. arXiv preprint arXiv:2310.16944.
|
| 295 |
+
Haoxiang Wang, Wei Xiong, Tengyang Xie, Han Zhao, and Tong Zhang. 2024. Interpretable preferences via multi-objective reward modeling and mixture-of-experts. In EMNLP.
|
| 296 |
+
Yufei Wang, Wanjun Zhong, Liangyou Li, Fei Mi, Xingshan Zeng, Wenyong Huang, Lifeng Shang, Xin Jiang, and Qun Liu. 2023. Aligning large language models with human: A survey. arXiv preprint arXiv:2307.12966.
|
| 297 |
+
Kailai Yang, Zhiwei Liu, Qianqian Xie, Jimin Huang, Tianlin Zhang, and Sophia Ananiadou. 2024a. Metaaligner: Towards generalizable multi-objective alignment of language models. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.
|
| 298 |
+
Shentao Yang, Shujian Zhang, Congying Xia, Yihao Feng, Caiming Xiong, and Mingyuan Zhou. 2024b. Preference-grounded token-level guidance for language model fine-tuning. Advances in Neural Information Processing Systems, 36.
|
| 299 |
+
Jing Yao, Xiaoyuan Yi, Xiting Wang, Jindong Wang, and Xing Xie. 2023. From instructions to intrinsic human valuesβa survey of alignment goals for big models. arXiv preprint arXiv:2308.12014.
|
| 300 |
+
Jiacheng Ye, Jiahui Gao, Shansan Gong, Lin Zheng, Xin Jiang, Zhenguo Li, and Lingpeng Kong. 2024a. Beyond autoregression: Discrete diffusion for complex reasoning and planning. arXiv preprint arXiv:2410.14157.
|
| 301 |
+
|
| 302 |
+
Jiacheng Ye, Shansan Gong, Liheng Chen, Lin Zheng, Jiahui Gao, Han Shi, Chuan Wu, Xin Jiang, Zhenguo Li, Wei Bi, et al. 2024b. Diffusion of thoughts: Chain-of-thought reasoning in diffusion language models. arXiv preprint arXiv:2402.07754.
|
| 303 |
+
Yongcheng Zeng, Guoqing Liu, Weiyu Ma, Ning Yang, Haifeng Zhang, and Jun Wang. 2024. Token-level direct preference optimization. arXiv preprint arXiv:2404.11999.
|
| 304 |
+
Yizhe Zhang, Jiatao Gu, Zhuofeng Wu, Shuangfei Zhai, Joshua Susskind, and Navdeep Jaitly. 2024. Planner: generating diversified paragraph via latent language diffusion model. Advances in Neural Information Processing Systems, 36.
|
| 305 |
+
Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric Xing, et al. 2023. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in Neural Information Processing Systems, 36:46595-46623.
|
| 306 |
+
Han Zhong, Guhao Feng, Wei Xiong, Xinle Cheng, Li Zhao, Di He, Jiang Bian, and Liwei Wang. 2024. Dpo meets ppo: Reinforced token optimization for rlhf. arXiv preprint arXiv:2404.18922.
|
| 307 |
+
|
| 308 |
+
# A Related Works
|
| 309 |
+
|
| 310 |
+
# A.1 Align LLM with Human Preference.
|
| 311 |
+
|
| 312 |
+
A prominent approach to learning from human preferences is RLHF (Ouyang et al., 2022; Stiennon et al., 2020; Christiano et al., 2017; Bai et al., 2022). In this framework, a reward model is first trained, followed by the training of a bandit policy using Proximal Policy Optimization (PPO) (Schulman et al., 2017). Recent advancements such as direct preference optimization (DPO) (Rafailov et al., 2024; Meng et al., 2024; Ethayarajh et al., 2024) optimize the bandit policy directly from human preferences, bypassing the need for a reward model. These approaches are simpler to implement and require fewer computational resources. Inference-time approaches, on the other hand, achieve alignment by customizing the output of large language models (LLMs) during the decoding phase, without the need for parameter optimization. This results in enhanced flexibility and efficiency (Khanov et al., 2024; Mudgal et al., 2023; Chen et al., 2024d). One representative method treats the text-generation process as a search problem, guided by external rewards (Huang et al., 2024; Han et al., 2024; Chakraborty et al., 2024). Another category of methods focuses on learning to refine the generated text (Li et al., 2023a; Ji et al., 2024; Yang et al., 2024a).
|
| 313 |
+
|
| 314 |
+
Token and Sentence-level. Existing training-based or inference-time alignment approaches typically rely on token-level rewards, while human preferences are generally provided and defined at the sentence level (Li et al., 2023b; Ahmadian et al., 2024; Zeng et al., 2024). To address this discrepancy, some works (Lightman et al., 2023; Yang et al., 2024b; Zeng et al., 2024) leverage token-wise or step-wise information to improve alignment performance. In contrast, this paper proposes modeling alignment as a sentence-level denoising process. We introduce a model-agnostic, inference-time alignment method, and our empirical results demonstrate its superiority in both performance and efficiency.
|
| 315 |
+
|
| 316 |
+
# A.2 Parallel Decoding and Diffusion Process.
|
| 317 |
+
|
| 318 |
+
Parallel Decoding of LLMs Parallel decoding has been increasingly utilized and developed in recent research to accelerate the inference processes of large language models (LLMs). One line of research, including works by Leviathan et al. (2023);
|
| 319 |
+
|
| 320 |
+
Chen et al. (2023), focuses on speculative decoding. These techniques enhance LLM decoding speed by employing a smaller draft model to predict the outputs, which are then verified in parallel by a larger target model. Another research trajectory explores parallel decoding strategies that do not rely on a draft model. Methods such as conditioning on "look-ahead" tokens or employing Jacobi iterations have been investigated by Santilli et al. (2023); Fu et al. (2024). These approaches allow the target model to produce several tokens simultaneously, aiming for rapid convergence to a fixed point on a Jacobi trajectory. CLLMs (Song et al., 2023) develop a novel approach, refining the target LLM to consistently predict the fixed point from any given state.
|
| 321 |
+
|
| 322 |
+
Text Diffusion Models Diffusion models have demonstrated significant diversity and controllability in image generation (Ho et al., 2020; Song et al., 2020; Dhariwal and Nichol, 2021). Recently, these models have been extended to text generation, as evidenced by the works of (Li et al., 2022; Gong et al., 2022; Lovelace et al., 2024). In essence, diffusion models execute a multi-step denoising process that progressively transforms random noise into a coherent data sample. In the context of text, diffusion models can be considered an evolution of traditional iterative Non-Autoregressive models, as described by Gong et al. (2022). These models have demonstrated the ability to match or surpass Autoregressive (AR) models in terms of text perplexity (Han et al., 2022; Gulrajani and Hashimoto, 2024), diversity (Gong et al., 2023; Zhang et al., 2024), and various sequence-to-sequence tasks (Ye et al., 2024b,a).
|
| 323 |
+
|
| 324 |
+
Connection with DIFFPO In this paper, we are motivated by the goal of aligning Large Language Models (LLMs) with human values or intentions, as outlined in (Yao et al., 2023). We define preferences at the sentence-level, focusing on the style or format of complete answers generated by the LLMs. If we consider each iteration of parallel decoding as a transition between states, this bears a formal resemblance to discrete diffusion models. In DIFFPO, we leverage parallel decoding to implement sentence-level denoising, thereby enhancing the modeling of the alignment process.
|
| 325 |
+
|
| 326 |
+
The development of DIFFPO is also inspired by Consistency Models (Song et al., 2023) and CLLMs (Kou et al., 2024). Consistency models address the limitation of the slow iterative sampling
|
| 327 |
+
|
| 328 |
+
Table 6: Comparison results of DIFFPO models. The experiments are conducted on base models of Qwen-2.5-7B and 14B. It shows that DIFFPO consistently achieves superior performance across various base models.
|
| 329 |
+
|
| 330 |
+
<table><tr><td rowspan="2">Base Models</td><td colspan="3">MT-bench</td><td colspan="2">AlpacaEval 2</td><td colspan="3">HH-RLHF</td></tr><tr><td>1-Turn</td><td>2-Turn</td><td>Avg.</td><td>LC (%)</td><td>WR (%)</td><td>Overall</td><td>Helpful</td><td>Harmless</td></tr><tr><td>Qwen2.5-7B-Instruct</td><td>7.11</td><td>6.96</td><td>7.03</td><td>45.03</td><td>49.95</td><td>0.1095</td><td>0.6995</td><td>0.9442</td></tr><tr><td>w. DPO</td><td>7.37</td><td>6.96</td><td>7.17</td><td>50.55</td><td>55.00</td><td>0.1109</td><td>0.7061</td><td>0.9460</td></tr><tr><td>w. SimPO</td><td>7.41</td><td>6.98</td><td>7.20</td><td>48.76</td><td>52.75</td><td>0.1100</td><td>0.7047</td><td>0.9387</td></tr><tr><td>w. BPO</td><td>6.90</td><td>6.16</td><td>6.53</td><td>29.44</td><td>39.85</td><td>0.1086</td><td>0.6765</td><td>0.9418</td></tr><tr><td>w. BoN</td><td>7.50</td><td>7.10</td><td>7.30</td><td>50.42</td><td>55.43</td><td>0.1159</td><td>0.7066</td><td>0.9440</td></tr><tr><td>w. Aligner</td><td>6.24</td><td>3.76</td><td>5.00</td><td>42.15</td><td>45.82</td><td>0.1088</td><td>0.6993</td><td>0.9438</td></tr><tr><td>w. MetaAligner</td><td>6.41</td><td>5.13</td><td>5.77</td><td>36.58</td><td>38.45</td><td>0.0995</td><td>0.6966</td><td>0.9422</td></tr><tr><td>w. DIFFPO-2B</td><td>7.01</td><td>6.34</td><td>6.67</td><td>43.89</td><td>49.07</td><td>0.1074</td><td>0.7013</td><td>0.9659</td></tr><tr><td>w. DIFFPO-9B</td><td>7.62</td><td>7.10</td><td>7.35</td><td>57.89</td><td>63.01</td><td>0.1117</td><td>0.7100</td><td>0.9445</td></tr><tr><td>Qwen2.5-14B-Instruct</td><td>7.24</td><td>6.71</td><td>6.98</td><td>51.60</td><td>57.10</td><td>0.1117</td><td>0.7100</td><td>0.9445</td></tr><tr><td>w. BPO</td><td>7.21</td><td>6.82</td><td>7.02</td><td>37.02</td><td>47.51</td><td>0.1005</td><td>0.6853</td><td>0.9323</td></tr><tr><td>w. BoN</td><td>7.49</td><td>6.98</td><td>7.24</td><td>54.92</td><td>59.02</td><td>0.1182</td><td>0.7163</td><td>0.9485</td></tr><tr><td>w. Aligner</td><td>6.14</td><td>4.11</td><td>5.13</td><td>45.14</td><td>47.24</td><td>0.1114</td><td>0.7099</td><td>0.9438</td></tr><tr><td>w. MetaAligner</td><td>6.24</td><td>5.73</td><td>5.99</td><td>41.25</td><td>43.23</td><td>0.1092</td><td>0.7074</td><td>0.9375</td></tr><tr><td>w. DIFFPO-2B</td><td>7.08</td><td>6.33</td><td>6.71</td><td>43.70</td><td>48.76</td><td>0.1078</td><td>0.7017</td><td>0.9704</td></tr><tr><td>w. DIFFPO-9B</td><td>7.62</td><td>7.35</td><td>7.48</td><td>55.13</td><td>60.65</td><td>0.1136</td><td>0.7185</td><td>0.9759</td></tr></table>
|
| 331 |
+
|
| 332 |
+
process by mapping any point along the probability flow ODE of the diffusion process back to the original point in a single step. CLLMs propose accelerating LLM inference by mapping the intermediate process of LLM parallel decoding to the final process. Similar to these works, we optimize DIFFPO with consistency loss, thus enabling model-agnostic alignment.
|
| 333 |
+
|
| 334 |
+
# B Experiment
|
| 335 |
+
|
| 336 |
+
# B.1 Experimental Setups
|
| 337 |
+
|
| 338 |
+
Training Details. As for the training set, we collect 6 generations from 6 base models (i.e., Llama-3-8B-Instruct, Llama-3-8B-SFT, Mistral-7B-SFT, Mistral-7B-Instruct, Gemma-2-2B-Instruct, Gemma-2-9B-Instruct). We then employ ArmoRM (Wang et al., 2024) to score these responses. The response with the highest score is selected as $\mathbf{y}^{(T)}$ . The remaining five responses are ranked according to their scores to serve as $\mathbf{y}^{(0:T - 1)}$ . In the training process, at each iteration, we randomly sample $\mathbf{y}^t$ from $\mathbf{y}^{(0:T - 1)}$ for optimization. We train DIFFPO models using the following hyperparameters: a learning rate of 1e-9, a batch size of 1 and gradient accumulation steps of 4, a max sequence length of 1024, and a cosine learning rate schedule with $3\%$ warmup steps for 1 epoch. All the models are trained with an Adam optimizer. All the training experiments in this paper were con
|
| 339 |
+
|
| 340 |
+
duced on $8\times \mathrm{A}100$ GPUs.
|
| 341 |
+
|
| 342 |
+
Evaluation Details. For the MT-bench, we use GPT-4 as the judge model, following the default settings. The scores are based on a single-answer rating scale from 1 to 10. For AlpacaEval, we use GPT-4 Turbo as the judge model, which performs pairwise comparison of responses generated by GPT-4, each with the same maximum length. For HH-RLHF, we use ArmoRM for single-answer rating and report the overall score, along with the "helpful" and "harmless" scores, which are provided in dimensions 9 and 10, respectively.
|
| 343 |
+
|
| 344 |
+
Baseline Details. Implementation details for different baselines are as follows:
|
| 345 |
+
|
| 346 |
+
MetaAligner: we use the opensourced MetaAligner-7B model https://huggingface.co/MetaAligner/
|
| 347 |
+
MetaAligner-HH-RLHF-7B on Huggingface and follow its official inference guideline on Huggingface.
|
| 348 |
+
DPO, SimPO: we directly use open-sourced models https://huggingface.co/princeton-nlp on Huggingface, which are fine-tuned according to the recipes in SimPO (Meng et al., 2024).
|
| 349 |
+
-Args: We reproduceArgs according to https://github.com/deeplearning-wisc/args/
|
| 350 |
+
|
| 351 |
+
tree/main by replacing the reward model with ArmoRM (Wang et al., 2024).
|
| 352 |
+
|
| 353 |
+
- Aligner: we use the open-sourced Aligner-7B https://huggingface.co/aligner/ aligner-7b-v1.0 on Huggingface and follow its guideline on Huggingface.
|
| 354 |
+
- BPO: we use the open-sourced BPO model https://huggingface.co/THUDM/BPO on Huggingface and follow its official inference on Huggingface.
|
| 355 |
+
|
| 356 |
+
# B.2 Experimental Results
|
| 357 |
+
|
| 358 |
+
DIFFPO significantly outperforms existing preference optimization methods. We provided additional comparison with baselines, with results presented in Table 6. The experiments are conducted on base models of Qwen-2.5-7B and 14B. While all preference optimization algorithms improve performance over the base model, DIFFPO achieves the best overall performance across all benchmarks and settings. These consistent and significant improvements underscore the robustness and effectiveness of DIFFPO. Notably, DIFFPO outperforms the training-based baselines (i.e., SimPO and DPO) across various settings, despite requiring only a single training session of DIFFPO model and being capable of enhancing the performance of multiple base models.
|
| 359 |
+
|
| 360 |
+
# C Analysis
|
| 361 |
+
|
| 362 |
+
# C.1 Illustration of the Speed-up of DiffPO
|
| 363 |
+
|
| 364 |
+
As shown in Figure 4, AR decoding (e.g., Aligner (Ji et al., 2024)) typically generates only one aligned token per iteration. In contrast, DIFFPO enables the skipping of satisfied tokens, thereby avoiding the time latency associated with token-level generation. As a result, DIFFPO can predict the modified subsequence in 3 iterations, achieving the same result as 11 iterations of AR decoding.
|
| 365 |
+
|
| 366 |
+
# D More Related Works
|
| 367 |
+
|
| 368 |
+
LLM Pluralism and Fairness LLM alignment ensures AI systems follow human intentions and values (Stiennon et al., 2020; Bai et al., 2022; Ouyang et al., 2022; Achiam et al., 2023). However, within a single task, users' goals and values often differ. As AI systems are increasingly used by diverse groups, they must address a broader
|
| 369 |
+
|
| 370 |
+
range of needs. In short, we need AI systems that are pluralistic and fair, being capable of reflecting diverse human values (Chen et al., 2024c,b; Fan et al., 2024b; Luo et al., 2024; Fan et al., 2024a; Chen et al., 2024a).
|
| 371 |
+
|
| 372 |
+
t=0
|
| 373 |
+
|
| 374 |
+
I hope this email finds you well. I am writing to seek your feedback on the 'Quarterly Financial Report'
|
| 375 |
+
|
| 376 |
+
t=1
|
| 377 |
+
|
| 378 |
+
1 ...
|
| 379 |
+
|
| 380 |
+
t=2
|
| 381 |
+
|
| 382 |
+
I hope ...
|
| 383 |
+
|
| 384 |
+
t=3
|
| 385 |
+
|
| 386 |
+
I hope this ...
|
| 387 |
+
|
| 388 |
+
Β·Β·Β·
|
| 389 |
+
|
| 390 |
+
t=12
|
| 391 |
+
|
| 392 |
+
I hope this email finds you well. I would kindly seek
|
| 393 |
+
|
| 394 |
+
# (b) DIFFPO
|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
(a) AR decoding
|
| 398 |
+
Figure 4: Illustration of the Speedup of DIFFPO.
|
| 399 |
+
|
| 400 |
+
t=0
|
| 401 |
+
|
| 402 |
+
I hope this email finds you well. I am writing to seek your feedback on the 'Quarterly Financial Report'
|
| 403 |
+
|
| 404 |
+
t=1
|
| 405 |
+
|
| 406 |
+
I hope this email finds you well. I would writing to seek your feedback on the 'Quarterly Financial Report'
|
| 407 |
+
|
| 408 |
+
t=2
|
| 409 |
+
|
| 410 |
+
I hope this email finds you well. I would kindly to seek your feedback on the 'Quarterly Financial Report'
|
| 411 |
+
|
| 412 |
+
t=3
|
| 413 |
+
|
| 414 |
+
I hope this email finds you well. I would kindly seek seek your feedback on the 'Quarterly Financial Report'
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaec13ff3e986d8b3931b7e550fc5057dc00d36a49fbfa71afaa6ebed1578a6e
|
| 3 |
+
size 974961
|
2025/DiffPO_ Diffusion-styled Preference Optimization for Inference Time Alignment of Large Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/dc48f8da-29af-45f8-a455-c2476233d7d9_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04edcdd3d531bd4540c6c648559d2c1308a9da5d7a704f8bf23b8e0d1b747243
|
| 3 |
+
size 1083730
|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/full.md
ADDED
|
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DiffuseDef: Improved Robustness to Adversarial Attacks via Iterative Denoising
|
| 2 |
+
|
| 3 |
+
Zhenhao Li, Huichi Zhou, Marek Rei, Lucia Specia
|
| 4 |
+
|
| 5 |
+
Language and Multimodal AI (LAMA) Lab, Imperial College London {zhenhao.li18, h.zhou24, marek.rei, l.specia}@imperial.ac.uk
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Pretrained language models have significantly advanced performance across various natural language processing tasks. However, adversarial attacks continue to pose a critical challenge to systems built using these models, as they can be exploited with carefully crafted adversarial texts. Inspired by the ability of diffusion models to predict and reduce noise in computer vision, we propose a novel and flexible adversarial defense method for language classification tasks, DiffuseDef<sup>1</sup>, which incorporates a diffusion layer as a denoiser between the encoder and the classifier. The diffusion layer is trained on top of the existing classifier, ensuring seamless integration with any model in a plug-and-play manner. During inference, the adversarial hidden state is first combined with sampled noise, then denoised iteratively and finally ensembled to produce a robust text representation. By integrating adversarial training, denoising, and ensembling techniques, we show that DiffuseDef improves over existing adversarial defense methods and achieves state-of-the-art performance against common black-box and white-box adversarial attacks.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Pretrained language models (PLM) have significantly advanced the performance of various natural language processing (NLP) tasks. Despite such improvements, current NLP systems remain susceptible to adversarial attacks where carefully crafted text perturbations can lead to incorrect model outputs (Alzantot et al., 2018; Jin et al., 2020; Li et al., 2020). In order to improve robustness to adversarial attacks, various defense methods have been proposed, such as adversarial training (Zhu et al., 2020; Si et al., 2021; Zhou et al., 2021; Xi et al., 2022), text denoising (Nguyen Minh and Luu, 2022; Wang et al., 2023), ensembling (Zhou et al., 2021; Zeng
|
| 14 |
+
|
| 15 |
+
et al., 2023; Li et al., 2023), etc. However, existing defense methods either assume the test-time perturbation/attack set is similar to that used in training (Li et al., 2021), or are limited to specific architectures (Xi et al., 2022), or at inference time require large computational costs, thereby limiting their practical applicability.
|
| 16 |
+
|
| 17 |
+
Diffusion models are commonly used in computer vision (CV) to generate high-quality images by predicting and removing noise from a sampled noisy image. Therefore, they can be adopted to remove noise from adversarial images and thus improve robustness to attacks (Im et al., 2016; Nie et al., 2022; Gulsen et al., 2024). However, in NLP very limited research has investigated adversarial defense with diffusion models due to the discrete and contextual nature of text data. Li et al. (2023) adopt the idea of iterative denoising and reconstruct adversarial texts from masked texts, while Yuan et al. (2024) use a diffusion model as a classifier and perform reverse diffusion steps on the label vector, conditioning on the input text. Inspired by the general noise prediction and reduction capability of diffusion models, we propose DiffuseDef, a novel adversarial defense method which employs diffusion training to denoise hidden representations of adversarial texts. Unlike Li et al. (2023) and Yuan et al. (2024), which apply diffusion on texts or labels, DiffuseDef directly removes noise from the hidden states, providing a more effective and robust text representation to defend against adversarial texts. Different from diffusion-based defenses in CV (Nie et al., 2022; Gulsen et al., 2024) that apply purification to input images, DiffuseDef only performs denoising at the final hidden layer, resulting in an improvement in efficiency. This improvement is further enhanced when combined with ensembling, as it eliminates the need for a forward pass through all classifier parameters for each ensemble.
|
| 18 |
+
|
| 19 |
+
DiffuseDef combines adversarial training with diffusion training, where the diffusion layer is
|
| 20 |
+
|
| 21 |
+
trained to predict randomly sampled noise at a given timestep. During inference, the diffusion layer serves as a denoiser, iteratively removing noise from adversarial hidden states to yield a robust hidden representation. Moreover, we adopt the ensembling strategy by first adding random noise to the text hidden states to create multiple variants, then denoising them via the diffusion layer. The model output is made by averaging all denoised hidden states. Since ensembling happens solely at the diffusion layer, DiffuseDef is more efficient than traditional ensembling-based methods (Ye et al., 2020; Zeng et al., 2023), which require a full forward pass through all model parameters.
|
| 22 |
+
|
| 23 |
+
Through systematic experimentation, we demonstrate that DiffuseDef outperforms strong defense methods and is able to defend against multiple types of black-box and white-box adversarial attacks, while preserving performance on clean texts. Our analysis also reveals that the ensembling diffused representation provides a stronger defense against finding vulnerable words to attack and can reduce the distance in latent space between adversarial texts and their clean text counterparts.
|
| 24 |
+
|
| 25 |
+
Our contributions can be summarized as follows:
|
| 26 |
+
|
| 27 |
+
- We propose DiffuseDef, a novel and flexible adversarial defense method that can be added on top of any existing adversarial defense methods to further improve robustness to adversarial attacks.
|
| 28 |
+
- DiffuseDef outperforms existing adversarial methods and achieves state-of-the-art performance against prevalent black-box and white-box adversarial attacks.
|
| 29 |
+
- Through extensive analysis, we demonstrate the effectiveness of the ensembling diffused representation and the efficiency of DiffuseDef compared to existing ensembling-based methods.
|
| 30 |
+
|
| 31 |
+
# 2 Related Work
|
| 32 |
+
|
| 33 |
+
# 2.1 Textual Adversarial Attacks
|
| 34 |
+
|
| 35 |
+
Textual adversarial attacks focus on constructing adversarial examples from an original text that maximize the likelihood of incorrect predictions by a neural network. These attacks require adversarial examples to be perceptually similar to the original text, which is typically achieved by introducing subtle perturbations to the original text, such as character swapping (Gao et al., 2018; Ebrahimi et al.,
|
| 36 |
+
|
| 37 |
+
2018), synonym-substitutions (Ren et al., 2019; Yoo and Qi, 2021; Liu et al., 2023), and paraphrasing (Gan and Ng, 2019; Huang and Chang, 2021). Taking the text classification task as an example, given a classifier $\mathcal{C}(\mathbf{x})$ that maps an input sequence of words $\mathbf{x} = [w_{1}, w_{2}, \dots, w_{L}]$ to its designated label $y$ , the goal of the attack model is to construct an adversarial example $\mathbf{x}' = \mathbf{x} + \delta$ to fool the classifier, where $\delta$ is a subtle adversarial perturbation constrained by $||\delta|| < \omega$ . The adversarial example $\mathbf{x}'$ is considered a successful attack if it leads to an incorrect prediction $\mathcal{C}(\mathbf{x}') \neq y$ . The attacker can iteratively generate multiple adversarial examples and query the classifier to obtain a successful attack, whereas the classifier must consistently return the correct prediction within a specified number of query attempts to be considered robust.
|
| 38 |
+
|
| 39 |
+
Common textual adversarial attack methods adopt a two-stage process to construct effective adversarial examples: word importance ranking and word substitution. In the first stage, words or subwords are ranked based on their influence on the model's prediction. This is measured by leveraging either gradient information (Liu et al., 2022) or changes in prediction probabilities when words are removed (Jin et al., 2020) or masked (Ren et al., 2019; Li et al., 2020). In the second stage, candidate words are substituted with synonyms (Zang et al., 2020), perturbed variants (Gao et al., 2018), or outputs from masked language models (Garg and Ramakrishnan, 2020; Li et al., 2020). The substitution process is guided by various constraints to ensure the adversarial example remains natural and semantically equivalent to the original text. Common constraints include thresholding the similarity between the replacement word embedding and the substituted word embedding, or ensuring the semantic similarity (Zhou et al., 2024) between sentence vectors modeled from Universal Sentence Encoder (Cer et al., 2018). Despite these constraints, current textual adversarial attacks still pose significant challenges to NLP models (Liu et al., 2022; Xu et al., 2021; Yuan et al., 2023), highlighting the necessity for defense methods for better adversarial robustness.
|
| 40 |
+
|
| 41 |
+
# 2.2 Adversarial Defense Methods
|
| 42 |
+
|
| 43 |
+
To mitigate the performance degradation caused by adversarial attacks, various adversarial defense methods have been developed. They can be grouped into three categories: training-based, ensembling-based, and denoising-based methods.
|
| 44 |
+
|
| 45 |
+
Adversarial training improves the robustness of the model to adversarial examples through strategies like data augmentation (Si et al., 2021; Bao et al., 2021) and adversarial regularization (Madry et al., 2018; Zhu et al., 2020; Wang et al., 2021; Xi et al., 2022; Gao et al., 2023; Formento et al., 2024). However, adversarial training methods are limited as they assume similar train-test adversarial examples, and thus tend to overfit to specific types of adversarial attacks. Ensembling-based methods generate multiple variants of the input text at inference time and ensemble model predictions over all the variants (Ye et al., 2020; Zhou et al., 2021; Zeng et al., 2023; Li et al., 2023), but they can be inefficient given that model predictions are needed on every ensemble, increasing the inference time with the number of ensembles. More recently, denoising-based methods have been proposed to improve adversarial robustness by mapping the vector representation of the adversarial text to another point in the latent space that is close to the clean text (Nguyen Minh and Luu, 2022; Wang et al., 2023; Moon et al., 2023; Yuan et al., 2024; Ji et al., 2024). The denoised representation makes it more difficult to find vulnerable words to attack, thus improving adversarial robustness (Wang et al., 2023). Nevertheless, denoising might lead to very different representations of clean text and adversarial text, therefore changing the semantic meanings.
|
| 46 |
+
|
| 47 |
+
The proposed DiffuseDef builds on these three approaches and can use any adversarially trained classifier as the base, applying denoising via a diffusion layer, and ensembling the diffused representations with a small number of ensembles. Using a diffusion layer as a denoiser addresses the overfitting problem from adversarial training and mitigates the efficiency problem by performing ensembling only at the diffusion layer. By averaging denoised hidden states across all ensembles, DiffuseDef also addresses the issue stemming from denoising, maintaining good performance on clean texts.
|
| 48 |
+
|
| 49 |
+
# 3 DiffuseDef
|
| 50 |
+
|
| 51 |
+
# 3.1 Training
|
| 52 |
+
|
| 53 |
+
The proposed diffusion defense model consists of a pretrained encoder for feature extraction, a transformer-based diffusion layer for noise prediction and reduction, and a classifier layer for output generation. The training process is split into two stages: adversarial training and diffusion training
|
| 54 |
+
|
| 55 |
+
(Figure 1). The adversarial training stage employs a neural network-based adversarial training method like FreeLB++ (Li et al., 2021) or RSMI (Moon et al., 2023), which optimizes the encoder and classifier for robustness by perturbing the latent representation of the text input.
|
| 56 |
+
|
| 57 |
+
In the diffusion training stage, only the diffusion layer is trained to predict random noise added to the clean text hidden state at different timesteps, enabling it to denoise the adversarial hidden state at inference time. The pretrained encoder, however, is frozen during this stage. Since the pretrained encoder is only used for feature extraction, the diffusion training method is compatible with any neural network-based adversarial training method.
|
| 58 |
+
|
| 59 |
+
Given an input sequence of tokens $\mathbf{x} \in \mathbb{R}^L$ , the pretrained encoder extracts the hidden state $h \in \mathbb{R}^{L \times D}$ . A random Gaussian noise $\epsilon$ is sampled to perturb the hidden state $h$ . Sohl-Dickstein et al. (2015) define the forward diffusion process as a Markov Chain where at each timestep a Gaussian noise is sampled and added to the previous latent feature: $h_t = \sqrt{1 - \beta_t} h_{t-1} + \sqrt{\beta} \epsilon$ , where $\epsilon \in \mathcal{N}(0, \mathcal{I})$ , $h_t$ is the noisy hidden state at step $t$ and $\beta$ is a pre-calculated variance schedule changing with $t$ . As shown by Ho et al. (2020), this equation can be reformulated to calculate $h_t$ directly from $h$ by defining $\alpha_t = 1 - \beta_t$ and $\bar{\alpha} = \prod_{i=1}^t \alpha_i$ , thus
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
h _ {t} = \sqrt {\bar {\alpha} _ {t}} h + \sqrt {1 - \bar {\alpha} _ {t}} \epsilon \tag {1}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
At each training step, a random forward diffusion timestep $t$ is sampled from a uniform distribution. Therefore, the noisy hidden state $h_t$ is created from $h$ , $t$ , and $\epsilon$ . The diffusion layer $\theta$ consists of a time embedding and a transformer layer. The time embedding receives the diffusion timestep $t$ as input and produces an embedding $e_t$ , which is added to $h_t$ as input for the transformer layer. Finally, the transformer layer outputs the predicted noise $\epsilon_{\theta}(h_t, t)$ , and mean square error (MSE) is used to compute the loss between the predicted noise $\epsilon_{\theta}(h_t, t)$ and the actual sampled noise $\epsilon$ .
|
| 66 |
+
|
| 67 |
+
$$
|
| 68 |
+
L = \mathbb {E} _ {t, h, \epsilon} \left[ \left\| \epsilon - \epsilon_ {\theta} \left(\sqrt {\bar {\alpha} _ {t}} h + \sqrt {1 - \bar {\alpha} _ {t}} \epsilon\right) \right\| ^ {2} \right] \tag {2}
|
| 69 |
+
$$
|
| 70 |
+
|
| 71 |
+
# 3.2 Inference
|
| 72 |
+
|
| 73 |
+
Leveraging the diffusion layer's ability to predict noise at a given timestep $t$ , we utilize it as a denoiser during inference by iteratively performing the reverse diffusion steps, which sample from $p_{\theta}(h_{t - 1}|h_t) = \mathcal{N}(h_{t - 1};\mu_{\theta}(h_t,t),\Sigma_{\theta}(h_t,t))$ to
|
| 74 |
+
|
| 75 |
+

|
| 76 |
+
Figure 1: Training and inference of DiffuseDef model. The adversarial training stage trains the pretrained encoder and classifier with perturbed input for adversarial robustness. The diffusion training trains the diffusion layer to predict injected noise at a given timestep $t$ . At inference time, the text hidden state is first noised by 1 step and then denoised by $t'$ steps to create the denoised hidden states, which are ensembled to make the final prediction.
|
| 77 |
+
|
| 78 |
+
produce the denoised hidden state
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
\mu_ {\theta} \left(h _ {t}, t\right) = \frac {1}{\sqrt {\alpha_ {t}}} \left(h _ {t} - \frac {1 - \alpha_ {t}}{\sqrt {1 - \bar {\alpha} _ {t}}} \epsilon_ {t}\right) \tag {3}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
$$
|
| 85 |
+
\Sigma_ {\theta} \left(h _ {t}, t\right) = \sigma_ {t} ^ {2} \mathcal {I} \tag {4}
|
| 86 |
+
$$
|
| 87 |
+
|
| 88 |
+
where $\epsilon_{t}$ is the predicted noise from diffusion layer and $\sigma_t^2 = \beta_t$ . The denoised hidden state can thus be computed with
|
| 89 |
+
|
| 90 |
+
$$
|
| 91 |
+
h _ {t - 1} = \frac {1}{\sqrt {\alpha_ {t}}} \left(h _ {t} - \frac {1 - \alpha_ {t}}{\sqrt {1 - \bar {\alpha} _ {t}}} \epsilon_ {t}\right) + \sigma_ {t} z \tag {5}
|
| 92 |
+
$$
|
| 93 |
+
|
| 94 |
+
where $z\in \mathcal{N}(0,\mathcal{I})$
|
| 95 |
+
|
| 96 |
+
Inference in DiffuseDef combines a one-step noising, a multi-step denoising, and an ensembling step. After the pretrained encoder extracts its hidden state $h$ , a set of $k$ Gaussian noise vectors $E = [\epsilon^0, \epsilon^1, \dots, \epsilon^k]$ are sampled to perform a single forward diffusion step. These noise vectors $E$ are then added to the hidden state $h$ following equation 1, resulting in a set of noisy hidden states $H_{t'} = [h_{t'}, h_{t'}, \dots, h_{t'}^k]$ , where $t'$ denotes the number of denoising steps. The noisy hidden states $H_{t'}$ are subsequently denoised through $t'$ reverse diffusion steps, where noise is predicted by the diffusion layer and subtracted from the previous noisy hidden states. Unlike Ho et al. (2020), where the reverse diffusion step starts with pure noise sampled from a
|
| 97 |
+
|
| 98 |
+
standard normal distribution, we assume the noisy hidden state $H_{t'}$ is already an intermediate state in the reverse diffusion steps. This allows us to use a smaller number of $t'$ than the training timestep $t$ to prevent the denoised hidden states from diverging substantially from the initial hidden state $h$ . This sequence of denoising steps creates the final denoised hidden states $H_0 = [h_0^0, h_0^1, \dots, h_0^k]$ , which are averaged and used by the classifier to output the final predicted label. This process is summarized in Algorithm 1.
|
| 99 |
+
|
| 100 |
+
# Algorithm 1: Inference of DiffuseDef
|
| 101 |
+
|
| 102 |
+
# Data: Input text x
|
| 103 |
+
|
| 104 |
+
Result: Predicted label $y'$
|
| 105 |
+
|
| 106 |
+
1 $h\gets Enc(\mathbf{x})$
|
| 107 |
+
2 Sample $E = [\epsilon^0, \epsilon^1, \dots, \epsilon^k], \epsilon \sim \mathcal{N}(0, \mathcal{I})$ ;
|
| 108 |
+
3 $H_{t^{\prime}}\gets \sqrt{\bar{\alpha}_{1}} h + \sqrt{1 - \bar{\alpha}_{1}} E;$
|
| 109 |
+
4 for $i\gets 0$ to $t^{\prime} - 1$ do
|
| 110 |
+
5 $E_{t^{\prime} - i}\gets \epsilon_{\theta}(H_{t^{\prime} - i},t^{\prime} - i);$
|
| 111 |
+
6 $H_{t^{\prime} - i - 1}\gets$
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\begin{array}{l} \frac {1}{\sqrt {\alpha_ {t ^ {\prime} - i}}} \left(H _ {t ^ {\prime} - i} - \frac {1 - \alpha_ {t ^ {\prime} - i}}{\sqrt {1 - \bar {\alpha} _ {t ^ {\prime} - i}}} E _ {t ^ {\prime} - i}\right) + \\ \sigma_ {t ^ {\prime} - i} z; \end{array}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
7 end
|
| 118 |
+
$y^\prime \gets CLS(\text{avg}(H_0));$
|
| 119 |
+
|
| 120 |
+
# 4 Experiments
|
| 121 |
+
|
| 122 |
+
Datasets. We focus on two common NLP tasks in our experiments: topic classification and natural language inference (NLI). We conduct experiments on three common datasets: AG News (Zhang et al., 2015a), IMDB (Maas et al., 2011a), and QNLI datasets (Wang et al., 2018). We randomly split AGNews, IMDB, and QNLI datasets into train, validation, and test splits. Appendix A gives details on data preparation.
|
| 123 |
+
|
| 124 |
+
Evaluation. Following previous work on adversarial defense, we use three benchmarking black-box attack methods to evaluate the robustness of DiffuseDef: TextFooler (TF) (Jin et al., 2020), TextBugger (TB) (Li et al., 2019), and Bert-Attack (BA) (Li et al., 2020). We also evaluated the robustness against two white-box attacks: T-PGD (Yuan et al., 2023) and SemAttack (Wang et al., 2022). Regarding evaluation metrics, we measure the clean accuracy ( $\text{Clean}\%$ ) on the test set, the accuracy under attack ( $\text{AUA}\%$ ), and the number of adversarial queries ( $\# \text{Query}$ ) needed for a successful attack. Higher scores on the three metrics denote a better robustness performance of a defense method. The accuracy on clean data is measured across the entire test set. The accuracy under attack and number of queries, due to the lengthy attacking process, is measured on a randomly sampled subset of 1000 examples from the test set. We use the TextAttack library as the adversarial evaluation framework. To ensure a fair comparison and high-quality adversarial examples, we follow the same evaluation constraints as in Li et al. (2021). The evaluation metrics are averaged based on experiments run with 5 random seeds.
|
| 125 |
+
|
| 126 |
+
# 4.1 Comparison to SOTA
|
| 127 |
+
|
| 128 |
+
We compare our proposed method with state-of-the-art adversarial defense approaches, trained using both BERT (Devlin et al., 2019) and RoBERTa (Liu et al., 2019) as backbones: Fine-tune: Finetuning pretrained models on downstream tasks with no defense method applied<sup>2</sup>. InfoBERT (Wang et al., 2021): Applying mutual-information-based regularizer during fine-tuning of pretrained models to improve robustness. FreeLB++ (Li et al., 2021): An adversarial training method improving on FreeLB(Zhu et al., 2020), which adds adversarial perturbations to word embedding during fine
|
| 129 |
+
|
| 130 |
+
tuning. EarlyRobust $^3$ (Xi et al., 2022): Extracting early-bird subnetworks and pruning pretrained models for efficient adversarial training. RMLM (Wang et al., 2023): A denoising-based model combined with adversarial text detection. ATINTER (Gupta et al., 2023): A fine-tuned T5 model that rewrites the input adversarial texts, and the classifier predicts labels from the rewritten texts. RSMI (Moon et al., 2023): A two-stage training method that combines randomized smoothing and masked inference to improve adversarial robustness.
|
| 131 |
+
|
| 132 |
+
# 4.2 Implementation and Settings
|
| 133 |
+
|
| 134 |
+
We train two DiffuseDef variants using FreeLB++ and RSMI models as base models considering their robust adversarial defense capabilities. In the diffusion layer, only one transformer encoder layer (Vaswani et al., 2017) is used. The maximum nois-ing timestep $t$ during training is set to 30 for AG-News and QNLI datasets, and 10 for the IMDB dataset, while at inference time, we only apply 5 denoising steps for $t'$ . We follow (Ho et al., 2020) to use a linear $\beta_{t}$ schedule from $\beta_{1} = 10^{-4}$ to $\beta_{t} = 0.02$ . The base encoder and classifier are first fine-tuned for 10 epochs, and the diffusion layer is trained for 100 epochs, with the base encoder and classifier parameters frozen for efficiency. During the diffusion training stage, the same train-dev splits are used as in the adversarial training stage, thus ensuring no data leakage. At inference time, the number of ensembles is set to 10. Appendix C lists the training hyperparameters.
|
| 135 |
+
|
| 136 |
+
# 5 Results and Analysis
|
| 137 |
+
|
| 138 |
+
# 5.1 Adversarial Robustness
|
| 139 |
+
|
| 140 |
+
In Table 1, we compare the adversarial robustness of DiffuseDef with baselines and SOTA methods on AGNews, IMDB, and QNLI datasets trained with BERT (results for RoBERTa in Appendix E). DiffuseDef consistently outperforms all other methods on all three datasets across the three attacks, exhibiting substantial improvements in accuracy under attack. After applying diffusion training, the AUA score for both FreeLB++ and RSMI models improves significantly, with an average increase of $30\%$ AUA against the three attack methods. When comparing the clean accuracies to its base model (i.e., FreeLB++ and RSMI), DiffuseDef only
|
| 141 |
+
|
| 142 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Method</td><td rowspan="2">Clean%</td><td colspan="3">AUA %</td><td colspan="3">#Query</td></tr><tr><td>TF</td><td>TB</td><td>BA</td><td>TF</td><td>TB</td><td>BA</td></tr><tr><td rowspan="9">AGNews</td><td>Fine-Tuned</td><td>94.4</td><td>10.2</td><td>25.4</td><td>27.1</td><td>348</td><td>372</td><td>379</td></tr><tr><td>InfoBERT (Wang et al., 2021)</td><td>95.0</td><td>35.5</td><td>39.1</td><td>42.6</td><td>377</td><td>397</td><td>397</td></tr><tr><td>FreeLB++ (Li et al., 2021)</td><td>95.0</td><td>54.7</td><td>56.5</td><td>44.6</td><td>426</td><td>430</td><td>390</td></tr><tr><td>EarlyRobust (Xi et al., 2022)</td><td>94.4</td><td>35.6</td><td>37.2</td><td>45.7</td><td>475</td><td>516</td><td>533</td></tr><tr><td>RMLM (Wang et al., 2023)</td><td>94.3</td><td>45.6</td><td>44.4</td><td>54.1</td><td>642</td><td>738</td><td>705</td></tr><tr><td>ATINTER (Gupta et al., 2023)</td><td>94.2</td><td>68.0</td><td>59.0</td><td>81.0</td><td>527</td><td>235</td><td>122</td></tr><tr><td>RSMI (Moon et al., 2023)</td><td>94.3</td><td>52.6</td><td>56.7</td><td>55.4</td><td>680</td><td>737</td><td>687</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>94.8</td><td>84.5</td><td>86.0</td><td>84.6</td><td>877</td><td>972</td><td>910</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>93.8</td><td>82.7</td><td>83.3</td><td>84.4</td><td>894</td><td>1029</td><td>930</td></tr><tr><td rowspan="9">IMDB</td><td>Fine-Tuned</td><td>93.3</td><td>7.7</td><td>8.3</td><td>10.5</td><td>540</td><td>534</td><td>378</td></tr><tr><td>InfoBERT (Wang et al., 2021)</td><td>93.9</td><td>29.2</td><td>25.4</td><td>30.7</td><td>642</td><td>644</td><td>390</td></tr><tr><td>FreeLB++ (Li et al., 2021)</td><td>94.3</td><td>44.2</td><td>39.6</td><td>40.6</td><td>784</td><td>829</td><td>426</td></tr><tr><td>EarlyRobust (Xi et al., 2022)</td><td>92.7</td><td>49.7</td><td>46.8</td><td>43.8</td><td>2267</td><td>2788</td><td>1841</td></tr><tr><td>RMLM (Wang et al., 2023)</td><td>93.6</td><td>48.8</td><td>47.9</td><td>47.1</td><td>2554</td><td>3258</td><td>2064</td></tr><tr><td>ATINTER (Gupta et al., 2023)</td><td>94.3</td><td>25.0</td><td>15.0</td><td>39.0</td><td>1173</td><td>645</td><td>637</td></tr><tr><td>RSMI (Moon et al., 2023)</td><td>90.9</td><td>60.0</td><td>54.4</td><td>51.1</td><td>2840</td><td>3455</td><td>2070</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>94.4</td><td>82.1</td><td>83.0</td><td>84.0</td><td>3174</td><td>4348</td><td>2842</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>90.2</td><td>80.9</td><td>79.8</td><td>79.8</td><td>3590</td><td>4748</td><td>2901</td></tr><tr><td rowspan="8">QNLI</td><td>Fine-Tuned</td><td>90.8</td><td>21.5</td><td>15.5</td><td>13.3</td><td>195</td><td>206</td><td>177</td></tr><tr><td>InfoBERT (Wang et al., 2021)</td><td>91.2</td><td>27.8</td><td>22.8</td><td>18.7</td><td>217</td><td>232</td><td>201</td></tr><tr><td>FreeLB++ (Li et al., 2021)</td><td>90.3</td><td>45.6</td><td>40.2</td><td>30.5</td><td>253</td><td>279</td><td>226</td></tr><tr><td>EarlyRobust (Xi et al., 2022)</td><td>89.2</td><td>24.3</td><td>21.2</td><td>19.1</td><td>265</td><td>292</td><td>255</td></tr><tr><td>ATINTER (Gupta et al., 2023)</td><td>90.4</td><td>43.0</td><td>24.8</td><td>34.0</td><td>185</td><td>115</td><td>89</td></tr><tr><td>RSMI (Moon et al., 2023)</td><td>87.4</td><td>35.2</td><td>30.9</td><td>28.2</td><td>314</td><td>353</td><td>314</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>90.3</td><td>66.7</td><td>65.3</td><td>64.4</td><td>485</td><td>587</td><td>543</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>86.4</td><td>55.5</td><td>54.8</td><td>57.2</td><td>459</td><td>569</td><td>528</td></tr></table>
|
| 143 |
+
|
| 144 |
+
Table 1: Main adversarial robustness results on classification tasks with BERT. Clean: accuracy on clean test set. TF: TextFooler. TB: TextBugger. BA: BertAttack.
|
| 145 |
+
|
| 146 |
+
shows a minor decline, between 0.2 and 0.7 accuracy score, which indicates that it can preserve the clean text performance while improving adversarial robustness. Moreover, models trained with DiffuseDef show a much smaller gap between clean accuracy and accuracy under attack, and such a difference can be reduced to less than $10\%$ AUA.
|
| 147 |
+
|
| 148 |
+
Another benefit of DiffuseDef is the increased number of adversarial queries needed to obtain a successful attack. Models applying DiffuseDef require over twice the number of queries on all three datasets compared to the other methods. This increase is even larger on the IMDB dataset due to the longer text length. For example, the DiffuseDef model requires on average over 3000 queries to achieve a successful attack, while FreeLB++ can only defend for 400 to 800 queries. The substantial increase suggests that even if the attackers manage to construct a successful adversarial attack, they need $2\mathrm{x}$ to $3\mathrm{x}$ more time to find the attack on DiffuseDef than other models, affirming the improved robustness from diffusion train
|
| 149 |
+
|
| 150 |
+
ing. In addition, we observe that the number of queries for denoising-based methods (i.e., RSMI, RMLM, and DiffuseDef) is generally higher than adversarial training-based methods (i.e., InfoBERT, FreeLB++) This is because denoising-based methods transform the hidden representations of the adversarial texts into a non-deterministic representation. The introduction of randomness in hidden states results in uncertainty in model logits, thus increasing the difficulty of finding vulnerable words to attack (Wang et al., 2023).
|
| 151 |
+
|
| 152 |
+
# 5.2 Robustness against White-box Attacks
|
| 153 |
+
|
| 154 |
+
In addition to black-box attacks, we also measure the robustness against white-box attacks, where the attackers can access the defender model's gradients and parameters, which is a more challenging adversarial attack scenario than black-box attacks. In Table 2, we report AUA score under T-PGD (Yuan et al., 2023) and SemAttack (Wang et al., 2022), the former being a variant of PGD attack (Madry et al., 2019) for text, while the latter adopts C&W
|
| 155 |
+
|
| 156 |
+
attack (Carlini and Wagner, 2017) on embedding layers. We observe that white-box attacks result in lower AUA for all defense methods. For example, FreeLB++ performs poorly on IMDB when attacked by SemAttack, with the AUA score being 0.03. However, applying diffusion training still significantly improves adversarial robustness to white-box attacks. Note that even RSMI shows very robust performance against T-PGD<sup>4</sup>, it can still further improve from DiffuseDef.
|
| 157 |
+
|
| 158 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">AGNews</td><td colspan="2">IMDB</td></tr><tr><td>T-PGD</td><td>Sem</td><td>T-PGD</td><td>Sem</td></tr><tr><td>Fine-Tuned</td><td>8.8</td><td>41.5</td><td>3.0</td><td>1.3</td></tr><tr><td>InfoBERT</td><td>32.1</td><td>47.1</td><td>25.4</td><td>2.0</td></tr><tr><td>FreeLB++</td><td>19.6</td><td>58.2</td><td>15.5</td><td>3.4</td></tr><tr><td>RSMI</td><td>79.6</td><td>n/a</td><td>43.3</td><td>n/a</td></tr><tr><td>DiffuseDef-FreeLB</td><td>59.4</td><td>68.1</td><td>50.3</td><td>28.2</td></tr><tr><td>DiffuseDef-RSMI</td><td>81.7</td><td>n/a</td><td>48.4</td><td>n/a</td></tr></table>
|
| 159 |
+
|
| 160 |
+
# 5.3 Ablation analysis
|
| 161 |
+
|
| 162 |
+
To understand how each component contributes to DiffuseDef, we conduct an ablation analysis on the AGNews dataset by disabling ensembling, diffusion denoising, and adversarial training one at a time. Table 3 shows the ablation results, and we find that removing either component (e.g., ensembling and diffusion denoising) at inference time leads to a sharp decrease in accuracy under attack, which indicates that both denoising and ensembling contribute significantly to the improved robustness. Nevertheless, removing adversarial training, though also introducing a degraded AUA score, is less detrimental than the other inference time components, showing that DiffuseDef is not dependent on a specific adversarial training method.
|
| 163 |
+
|
| 164 |
+
Table 2: Accuracy under white-box attacks.
|
| 165 |
+
|
| 166 |
+
<table><tr><td>Method</td><td>TF</td><td>TB</td><td>BA</td></tr><tr><td>DiffuseDef</td><td>84.5</td><td>86.0</td><td>84.6</td></tr><tr><td>w/o ensembling</td><td>64.2</td><td>65.8</td><td>54.9</td></tr><tr><td>w/o diffusion denoising</td><td>57.1</td><td>58.4</td><td>47.7</td></tr><tr><td>w/o adv training</td><td>80.3</td><td>80.9</td><td>80.5</td></tr></table>
|
| 167 |
+
|
| 168 |
+
Table 3: Ablation results for DiffuseDef's accuracy under attack on AGNews datasets.
|
| 169 |
+
|
| 170 |
+
# 5.4 DiffuseDef + Adversarial Augmentation
|
| 171 |
+
|
| 172 |
+
In Figure 2, we combine DiffuseDef with adversarial data augmentation and evaluate the robustness on AGNews. We first generate adversarial augmentation data using TextFooler and adversariely train the classifier with augmented training data. The augmented classifier is further performed with diffusion training, resulting in a DiffuseDef variant. We notice that adversarial training on augmented data helps improve the performance on all three attacks. After applying diffusion training, the adversarial performance significantly improves over the augmented model, which proves the flexibility of DiffuseDef to be applied with different types of adversarial training methods.
|
| 173 |
+
|
| 174 |
+

|
| 175 |
+
Figure 2: Robustness of DiffuseDef with textual adversarial augmentation method.
|
| 176 |
+
|
| 177 |
+
# 5.5 Effect of Additional Denoising Steps
|
| 178 |
+
|
| 179 |
+
In Figure 3, we study how the inference denoising steps $t'$ can affect the adversarial performance. For the DiffuseDef model without ensembling, both the AUA score and the number of queries required to attack increase as the inference denoising step is larger. As the denoising step $t'$ grows from 1 to 30, the AUA score improves from 58 to 65 while the number of attack queries grows from 430 to 780. In contrast, for DiffuseDef with ensembling, the model maintains a stable but robust performance in AUA and number of queries, regardless of the increase of $t'$ . Considering that the ensembling introduces a notable performance increase, the DiffuseDef model is likely to be hitting an upper bound in both metrics, thus no further improvement is reached by increasing the denoising steps. However, it also shows that with ensembling, DiffuseDef can be applied with a smaller $t'$ for better efficiency while maintaining a robust adversarial performance.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
Figure 3: AUA and #Query (Text,Follower) w.r.t inference denoising step for DiffuseDef w/ and w/o ensembling.
|
| 183 |
+
|
| 184 |
+
# 5.6 Ensembling Diffused Hidden Representations
|
| 185 |
+
|
| 186 |
+
In DiffuseDef, the text hidden state is diffused and ensembled to form a denoised hidden representation, which contributes significantly to the improved adversarial robustness. In this section, we study how the ensembling diffused hidden representation helps defend against adversarial attacks.
|
| 187 |
+
|
| 188 |
+

|
| 189 |
+
Figure 4: Distribution of max token importance score in the AGNews test set.
|
| 190 |
+
|
| 191 |
+
As mentioned in Section 2.1, attack methods need to first rank token importance based on its influence on prediction. Specifically, the importance score is calculated by comparing the changes in model prediction probabilities after removing each word. In Figure 4, we compare the density distribution of the max token importance score between FreeLB++ and its DiffuseDef counterpart. DiffuseDef shows a notably lower percentage than FreeLB++ when the max importance score is high, where the attacker can easily find the vulnerable token to construct adversarial examples. This difference shows that DiffuseDef can complicate the process of important word searching, which ac
|
| 192 |
+
|
| 193 |
+
counts for the increased number of queries required for a successful attack.
|
| 194 |
+
|
| 195 |
+
<table><tr><td>Method</td><td>L2</td><td>Cosine</td></tr><tr><td>FreeLB++</td><td>12.53</td><td>0.35</td></tr><tr><td>DiffuseDef-FreeLB++</td><td>10.66</td><td>0.27</td></tr><tr><td>RSMI</td><td>9.72</td><td>0.24</td></tr><tr><td>DiffuseDef-RSMI</td><td>8.61</td><td>0.21</td></tr></table>
|
| 196 |
+
|
| 197 |
+
In addition, DiffuseDef mitigates the difference between clean and adversarial texts by reducing the distance between their hidden states. In Table 4, we report the L2 and cosine distance between clean and adversarial hidden states for FreeLB++ and RSMI. Both show lower L2 and cosine distance after applying DiffuseDef, indicating that ensembling diffused representation repositions the adversarial example closer to the clean example, leading to the model maintaining its predictions.
|
| 198 |
+
|
| 199 |
+
# 5.7 Efficiency of DiffuseDef
|
| 200 |
+
|
| 201 |
+
Table 4: L2 and cosine distance between hidden states for clean and adversarial texts.
|
| 202 |
+
|
| 203 |
+
<table><tr><td>Method</td><td>Params</td><td>FLOPS</td><td>Train</td></tr><tr><td>Fine-Tuned (BERT)</td><td>110M</td><td>46G</td><td>1x</td></tr><tr><td>EarlyRobust</td><td>82M</td><td>32G</td><td>0.8x</td></tr><tr><td>FreeLB++</td><td>110M</td><td>46G</td><td>10.5x</td></tr><tr><td>InfoBERT</td><td>110M</td><td>46G</td><td>6.5x</td></tr><tr><td>RSMI</td><td>110M</td><td>92G</td><td>1.25x</td></tr><tr><td>RanMask (k=10)</td><td>110M</td><td>459G</td><td>1.2x</td></tr><tr><td>SAFER (k=10)</td><td>110M</td><td>459G</td><td>1x</td></tr><tr><td>DiffuseDef (t' = 1, k = 10)</td><td>120M</td><td>96G</td><td>1.1x</td></tr><tr><td>DiffuseDef (t' = 5, k = 10)</td><td>120M</td><td>267G</td><td>1.1x</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 5: Efficiency comparison of DiffuseDef and other methods. Params: number of model parameters. FLOPS: number of floating point operations per second at inference time, calculated with batch size of 1 and sequence length of 256. Train: training time.
|
| 206 |
+
|
| 207 |
+
Given that DiffuseDef adds additional denoising and ensembling steps during inference, it inevitably increases the computation time compared to its base model. To study its efficiency, we report the number of model parameters, inference FLOPS, and training time in Table 5. In addition to the defense methods in Table 1, we also compare the efficiency of DiffuseDef with two other SOTA ensembling-based defense methods, i.e., RanMask (Zeng et al., 2023) and SAFER (Ye et al., 2020).
|
| 208 |
+
|
| 209 |
+
All SOTA models have the same number of parameters as the fine-tuned BERT model, except EarlyRobust, which applies attention head pruning for
|
| 210 |
+
|
| 211 |
+
better efficiency. DiffuseDef requires more inference FLOPS than non-ensembling-based baselines such as FreeLB++ and EarlyRobust, due to the diffusion steps. With $t' = 1$ and $k = 10$ , the FLOPS for DiffuseDef doubles from 46G to 96G, nevertheless, this number is close to the RSMI model as it requires gradient information during inference. Despite this increase, DiffuseDef is more efficient than ensembling-based methods like RanMask and SAFER, which require a full forward pass for all ensembles. With the same ensembling number of 10, both RanMask and SAFER require 459G FLOPS, which is 10x the number for the BERT baseline. In contrast, even with $t'$ increased to 5, DiffuseDef can be run faster with 267G FLOPS, mitigating the efficiency problem from ensembling while maintaining the benefit of improved robustness.
|
| 212 |
+
|
| 213 |
+
Regarding training time, although training the diffusion layer requires more epochs, it costs similar time as training the classifier due to the small size of the diffusion layer. By contrast, adversarial training methods such as FreeLB++ and InfoBERT require much longer training time due to increased iterations of back-propagation per training batch.
|
| 214 |
+
|
| 215 |
+
# 6 Conclusions
|
| 216 |
+
|
| 217 |
+
We propose a novel adversarial defense method, DiffuseDef, which combines adversarial training, diffusion training, and ensembling to improve model robustness to adversarial attacks. DiffuseDef can build on any existing adversarial training method, training an additional diffusion layer to predict and remove randomly sampled noise at a given timestep. During inference, the diffusion layer is used to denoise the adversarial hidden states, which are ensembled to construct a robust text representation. Our experiments validate the effectiveness and efficiency of DiffuseDef, which significantly outperforms SOTA on common blackbox and white-box adversarial attack methods, and maintains the performance on clean texts. Analysis shows that DiffuseDef makes it difficult to find vulnerable tokens to attack, and also reduces the difference between the hidden representations of clean and adversarial texts.
|
| 218 |
+
|
| 219 |
+
# Limitations
|
| 220 |
+
|
| 221 |
+
Despite the fact that DiffuseDef is more efficient than existing ensembling-based methods, it still requires more model parameters and inference FLOPS than non-ensembling-based models
|
| 222 |
+
|
| 223 |
+
to achieve better robustness. Future directions of this work might involve efforts to reduce the size of the diffusion layer and the number of ensembles to make DiffuseDef more efficient.
|
| 224 |
+
|
| 225 |
+
# Ethical Considerations
|
| 226 |
+
|
| 227 |
+
In this paper, we propose a new method DiffuseDef, which uses a diffusion layer as a denoiser to provide robust and efficient text representation. We demonstrate that the proposed method could significantly improve the robustness of NLP systems to adversarial attacks. However, DiffuseDef cannot defend against all adversarial attacks without limitations (e.g., number of perturbed words, semantic similarity between original and adversarial examples). Potential risks might include the creation of new adversarial attacks devised specifically for DiffuseDef.
|
| 228 |
+
|
| 229 |
+
# References
|
| 230 |
+
|
| 231 |
+
Moustafa Alzantot, Yash Sharma, Ahmed Elgohary, Bo-Jhang Ho, Mani Srivastava, and Kai-Wei Chang. 2018. Generating natural language adversarial examples. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2890β2896, Brussels, Belgium. Association for Computational Linguistics.
|
| 232 |
+
Rongzhou Bao, Jiayi Wang, and Hai Zhao. 2021. Defending pre-trained language models from adversarial word substitution without performance sacrifice. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 3248-3258, Online. Association for Computational Linguistics.
|
| 233 |
+
Nicholas Carlini and David Wagner. 2017. Towards evaluating the robustness of neural networks. Preprint, arXiv:1608.04644.
|
| 234 |
+
Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St. John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, Brian Strope, and Ray Kurzweil. 2018. Universal sentence encoder for English. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 169-174, Brussels, Belgium. Association for Computational Linguistics.
|
| 235 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171-4186, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 236 |
+
|
| 237 |
+
Javid Ebrahimi, Daniel Lowd, and Dejing Dou. 2018. On adversarial examples for character-level neural machine translation. In Proceedings of the 27th International Conference on Computational Linguistics, pages 653-663, Santa Fe, New Mexico, USA. Association for Computational Linguistics.
|
| 238 |
+
Brian Formento, Wenjie Feng, Chuan-Sheng Foo, Anh Tuan Luu, and See-Kiong Ng. 2024. SemRoDe: Macro adversarial training to learn representations that are robust to word-level attacks. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 8005-8028, Mexico City, Mexico. Association for Computational Linguistics.
|
| 239 |
+
Wee Chung Gan and Hwee Tou Ng. 2019. Improving the robustness of question answering systems to question paraphrasing. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 6065-6075, Florence, Italy. Association for Computational Linguistics.
|
| 240 |
+
J. Gao, J. Lanchantin, M. L. Soffa, and Y. Qi. 2018. Black-box generation of adversarial text sequences to evade deep learning classifiers. In 2018 IEEE Security and Privacy Workshops (SPW), pages 50-56.
|
| 241 |
+
SongYang Gao, Shihan Dou, Yan Liu, Xiao Wang, Qi Zhang, Zhongyu Wei, Jin Ma, and Ying Shan. 2023. DSRM: Boost textual adversarial training with distribution shift risk minimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12177-12189, Toronto, Canada. Association for Computational Linguistics.
|
| 242 |
+
Siddhant Garg and Goutham Ramakrishnan. 2020. BAE: BERT-based adversarial examples for text classification. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6174-6181, Online. Association for Computational Linguistics.
|
| 243 |
+
Mert Gulsen, Batuhan Cengiz, Yusuf H. Sahin, and Gozde Unal. 2024. Pcld: Point cloud layerwise diffusion for adversarial purification. Preprint, arXiv:2403.06698.
|
| 244 |
+
Ashim Gupta, Carter Wood Blum, Temma Choji, Yingjie Fei, Shalin Shah, Alakananda Vempala, and Vivek Srikumar. 2023. Don't retrain, just rewrite: Countering adversarial perturbations by rewriting text. arXiv preprint arXiv:2305.16444.
|
| 245 |
+
Jonathan Ho, Ajay Jain, and Pieter Abbeel. 2020. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems, volume 33, pages 6840-6851. Curran Associates, Inc.
|
| 246 |
+
Kuan-Hao Huang and Kai-Wei Chang. 2021. Generating syntactically controlled paraphrases without using annotated parallel pairs. In Proceedings of the
|
| 247 |
+
|
| 248 |
+
16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 1022-1033, Online. Association for Computational Linguistics.
|
| 249 |
+
Daniel Jiwoong Im, Sungjin Ahn, Roland Memisevic, and Yoshua Bengio. 2016. Denoising criterion for variational auto-encoding framework. Preprint, arXiv:1511.06406.
|
| 250 |
+
Jiabao Ji, Bairu Hou, Zhen Zhang, Guanhua Zhang, Wenqi Fan, Qing Li, Yang Zhang, Gaowen Liu, Sijia Liu, and Shiyu Chang. 2024. Advancing the robustness of large language models through self-denoised smoothing. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pages 246-257, Mexico City, Mexico. Association for Computational Linguistics.
|
| 251 |
+
Di Jin, Zhijing Jin, Joey Tianyi Zhou, and Peter Szolovits. 2020. Is bert really robust? a strong baseline for natural language attack on text classification and entailment. Proceedings of the AAAI Conference on Artificial Intelligence, 34(05):8018-8025.
|
| 252 |
+
Jinfeng Li, Shouling Ji, Tianyu Du, Bo Li, and Ting Wang. 2019. Textbugger: Generating adversarial text against real-world applications. In 26th Annual Network and Distributed System Security Symposium, NDSS 2019, San Diego, California, USA, February 24-27, 2019. The Internet Society.
|
| 253 |
+
Linyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue, and Xipeng Qiu. 2020. BERT-ATTACK: Adversarial attack against BERT using BERT. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6193β6202, Online. Association for Computational Linguistics.
|
| 254 |
+
Linyang Li, Demin Song, and Xipeng Qiu. 2023. Text adversarial purification as defense against adversarial attacks. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 338-350, Toronto, Canada. Association for Computational Linguistics.
|
| 255 |
+
Zongyi Li, Jianhan Xu, Jiehang Zeng, Linyang Li, Xiaoting Zheng, Qi Zhang, Kai-Wei Chang, and Cho-Jui Hsieh. 2021. Searching for an effective defender: Benchmarking defense against adversarial word substitution. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 3137-3147, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 256 |
+
Aiwei Liu, Honghai Yu, Xuming Hu, Shu'ang Li, Li Lin, Fukun Ma, Yawen Yang, and Lijie Wen. 2022. Character-level white-box adversarial attacks against transformers via attachable subwords substitution. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages
|
| 257 |
+
|
| 258 |
+
7664-7676, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 259 |
+
Han Liu, Zhi Xu, Xiaotong Zhang, Xiaoming Xu, Feng Zhang, Fenglong Ma, Hongyang Chen, Hong Yu, and Xianchao Zhang. 2023. Sspattack: A simple and sweet paradigm for black-box hard-label textual adversarial attack. Proceedings of the AAAI Conference on Artificial Intelligence, 37(11):13228-13235.
|
| 260 |
+
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. Preprint, arXiv:1907.11692.
|
| 261 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. 2011a. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142-150, Portland, Oregon, USA. Association for Computational Linguistics.
|
| 262 |
+
Andrew L. Maas, Raymond E. Daly, Peter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. 2011b. Learning word vectors for sentiment analysis. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies, pages 142-150, Portland, Oregon, USA. Association for Computational Linguistics.
|
| 263 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. 2018. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations.
|
| 264 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. 2019. Towards deep learning models resistant to adversarial attacks. Preprint, arXiv:1706.06083.
|
| 265 |
+
Han Cheol Moon, Shafiq Joty, Ruochen Zhao, Megh Thakkar, and Chi Xu. 2023. Randomized smoothing with masked inference for adversarially robust text classifications. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5145-5165, Toronto, Canada. Association for Computational Linguistics.
|
| 266 |
+
John Morris, Eli Lifland, Jin Yong Yoo, Jake Grigsby, Di Jin, and Yanjun Qi. 2020. TextAttack: A framework for adversarial attacks, data augmentation, and adversarial training in NLP. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 119-126, Online. Association for Computational Linguistics.
|
| 267 |
+
Dang Nguyen Minh and Anh Tuan Luu. 2022. Textual manifold-based defense against natural language adversarial examples. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language
|
| 268 |
+
|
| 269 |
+
Processing, pages 6612-6625, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 270 |
+
Weili Nie, Brandon Guo, Yujia Huang, Chaowei Xiao, Arash Vahdat, and Anima Anandkumar. 2022. Diffusion models for adversarial purification. In International Conference on Machine Learning (ICML).
|
| 271 |
+
Shuhuai Ren, Yihe Deng, Kun He, and Wanxiang Che. 2019. Generating natural language adversarial examples through probability weighted word saliency. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1085-1097, Florence, Italy. Association for Computational Linguistics.
|
| 272 |
+
Chenglei Si, Zhengyan Zhang, Fanchao Qi, Zhiyuan Liu, Yasheng Wang, Qun Liu, and Maosong Sun. 2021. Better robustness by more coverage: Adversarial and mixup data augmentation for robust finetuning. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, pages 1569-1576, Online. Association for Computational Linguistics.
|
| 273 |
+
Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. 2015. Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 2256-2265, Lille, France. PMLR.
|
| 274 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc.
|
| 275 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. 2018. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, pages 353-355, Brussels, Belgium. Association for Computational Linguistics.
|
| 276 |
+
Boxin Wang, Shuohang Wang, Yu Cheng, Zhe Gan, Ruoxi Jia, Bo Li, and Jingjing Liu. 2021. Infobert: Improving robustness of language models from an information theoretic perspective. In International Conference on Learning Representations.
|
| 277 |
+
Boxin Wang, Chejian Xu, Xiangyu Liu, Yu Cheng, and Bo Li. 2022. SemAttack: Natural textual attacks via different semantic spaces. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 176β205, Seattle, United States. Association for Computational Linguistics.
|
| 278 |
+
Zhaoyang Wang, Zhiyue Liu, Xiaopeng Zheng, Qinliang Su, and Jiahai Wang. 2023. RMLM: A flexible defense framework for proactively mitigating word-level adversarial attacks. In Proceedings of the
|
| 279 |
+
|
| 280 |
+
61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2757-2774, Toronto, Canada. Association for Computational Linguistics.
|
| 281 |
+
|
| 282 |
+
Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumont, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Remi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander Rush. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 38-45, Online. Association for Computational Linguistics.
|
| 283 |
+
|
| 284 |
+
Zhiheng Xi, Rui Zheng, Tao Gui, Qi Zhang, and Xuanjing Huang. 2022. Efficient adversarial training with robust early-bird tickets. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8318-8331, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 285 |
+
|
| 286 |
+
Ying Xu, Xu Zhong, Antonio Jimeno Yepes, and Jey Han Lau. 2021. Grey-box adversarial attack and defence for sentiment classification. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4078-4087, Online. Association for Computational Linguistics.
|
| 287 |
+
|
| 288 |
+
Mao Ye, Chengyue Gong, and Qiang Liu. 2020. SAFER: A structure-free approach for certified robustness to adversarial word substitutions. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 3465-3475, Online. Association for Computational Linguistics.
|
| 289 |
+
|
| 290 |
+
Jin Yong Yoo and Yanjun Qi. 2021. Towards improving adversarial training of NLP models. In *Findings of the Association for Computational Linguistics: EMNLP* 2021, pages 945β956, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 291 |
+
|
| 292 |
+
Lifan Yuan, YiChi Zhang, Yangyi Chen, and Wei Wei. 2023. Bridge the gap between CV and NLP! a gradient-based textual adversarial attack framework. In Findings of the Association for Computational Linguistics: ACL 2023, pages 7132-7146, Toronto, Canada. Association for Computational Linguistics.
|
| 293 |
+
|
| 294 |
+
Shilong Yuan, Wei Yuan, Hongzhi Yin, and Tieke He. 2024. Roic-dm: Robust text inference and classification via diffusion model. Preprint, arXiv:2401.03514.
|
| 295 |
+
|
| 296 |
+
Yuan Zang, Fanchao Qi, Chenghao Yang, Zhiyuan Liu, Meng Zhang, Qun Liu, and Maosong Sun. 2020. Word-level textual adversarial attacking as combinatorial optimization. In Proceedings of the 58th Annual Meeting of the Association for Computational
|
| 297 |
+
|
| 298 |
+
Linguistics, pages 6066-6080, Online. Association for Computational Linguistics.
|
| 299 |
+
|
| 300 |
+
Jiehang Zeng, Jianhan Xu, Xiaoqing Zheng, and Xuanjing Huang. 2023. Certified robustness to text adversarial attacks by randomized [MASK]. Computational Linguistics, 49(2):395-427.
|
| 301 |
+
|
| 302 |
+
Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015a. Character-level convolutional networks for text classification. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 1, NIPS'15, page 649-657, Cambridge, MA, USA. MIT Press.
|
| 303 |
+
|
| 304 |
+
Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015b. Character-level convolutional networks for text classification. In Advances in Neural Information Processing Systems, volume 28. Curran Associates, Inc.
|
| 305 |
+
|
| 306 |
+
Huichi Zhou, Zhaoyang Wang, Hongtao Wang, Dongping Chen, Wenhan Mu, and Fangyuan Zhang. 2024. Evaluating the validity of word-level adversarial attacks with large language models. In *Findings of the Association for Computational Linguistics: ACL* 2024, pages 4902-4922, Bangkok, Thailand. Association for Computational Linguistics.
|
| 307 |
+
|
| 308 |
+
Yi Zhou, Xiaqing Zheng, Cho-Jui Hsieh, Kai-Wei Chang, and Xuanjing Huang. 2021. Defense against synonym substitution-based adversarial attacks via Dirichlet neighborhood ensemble. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5482-5492, Online. Association for Computational Linguistics.
|
| 309 |
+
|
| 310 |
+
Chen Zhu, Yu Cheng, Zhe Gan, Siqi Sun, Tom Goldstein, and Jingjing Liu. 2020. Freelb: Enhanced adversarial training for natural language understanding. In International Conference on Learning Representations.
|
| 311 |
+
|
| 312 |
+
# A Data Preparation
|
| 313 |
+
|
| 314 |
+
<table><tr><td>Dataset</td><td>Train</td><td>Valid</td><td>Test</td><td>Avg Len</td></tr><tr><td>AGNews</td><td>108K</td><td>12K</td><td>7K</td><td>51.3</td></tr><tr><td>IMDB</td><td>40K</td><td>5K</td><td>5K</td><td>311.9</td></tr><tr><td>QNLI</td><td>94K</td><td>10K</td><td>5K</td><td>47.2</td></tr></table>
|
| 315 |
+
|
| 316 |
+
Table 6: Dataset statistics. The average text length is counted with BertTokenizer.
|
| 317 |
+
|
| 318 |
+
Table 6 presents the number of examples in train-valid/test splits and the average token length for the three datasets used in the experiments. For QNLI and AGNews datasets, we randomly split the training set into our train-valid splits, with a ratio of $0.9 / 0.1$ , and use their test sets as our test split. For IMDB dataset, we randomly split the dataset
|
| 319 |
+
|
| 320 |
+
into train-valid/test splits with a ratio of 0.8/0.1/0.1. All train-valid/test splitting is performed using a random seed of 42.
|
| 321 |
+
|
| 322 |
+
# B Evaluation Constraints
|
| 323 |
+
|
| 324 |
+
<table><tr><td>Dataset</td><td>Ξ΅min</td><td>Kmax</td><td>Οmax</td></tr><tr><td>AGNews</td><td>0.84</td><td>50</td><td>0.3</td></tr><tr><td>IMDB</td><td>0.84</td><td>50</td><td>0.1</td></tr><tr><td>QNLI</td><td>0.84</td><td>50</td><td>0.2</td></tr></table>
|
| 325 |
+
|
| 326 |
+
When evaluating with adversarial attack, we follow the parameter settings for TextAttack as suggested in (Li et al., 2021). The minimum semantic similarity $\varepsilon_{\mathrm{min}}$ between the clean text and adversarial text is set to 0.84, with the score computed using Universal Sentence Encoder (Cer et al., 2018). The maximum number of candidate substitutions $\mathbf{K}_{\mathrm{max}}$ from the attacker is 50, thus the maximum number of queries $\mathbf{Q}_{\mathrm{max}} = \mathbf{K}_{\mathrm{max}} \times \mathbf{L}$ where $\mathbf{L}$ is the number of tokens. Finally, the maximum percentage of changed tokens $\rho_{\mathrm{max}}$ is set to 0.3/0.1/0.2 for AGNews, IMDB, and QNLI datasets respectively.
|
| 327 |
+
|
| 328 |
+
# C Training
|
| 329 |
+
|
| 330 |
+
Table 7: Evaluation parameters for each dataset.
|
| 331 |
+
|
| 332 |
+
<table><tr><td></td><td>AGNews</td><td>IMDB</td><td>QNLI</td></tr><tr><td>Epochs</td><td>100</td><td>100</td><td>100</td></tr><tr><td>Batch size</td><td>64</td><td>64</td><td>64</td></tr><tr><td>Sequence len</td><td>128</td><td>256</td><td>256</td></tr><tr><td>Dropout</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Optimizer</td><td>AdamW</td><td>AdamW</td><td>AdamW</td></tr><tr><td>Lr</td><td>2e-5</td><td>2e-5</td><td>2e-5</td></tr><tr><td>t</td><td>30</td><td>10</td><td>30</td></tr><tr><td>t'</td><td>5</td><td>5</td><td>5</td></tr><tr><td>k</td><td>10</td><td>10</td><td>10</td></tr></table>
|
| 333 |
+
|
| 334 |
+
The details on hyperparameters of diffusion training can be found in Table 8. All models are trained on a single RTX A6000 GPU. The diffusion training of 100 epochs takes $6/4/3$ hours on AGNews, IMDB, and QNLI datasets respectively.
|
| 335 |
+
|
| 336 |
+
# D License for Scientific Artifacts
|
| 337 |
+
|
| 338 |
+
Table 9 lists the scientific artifacts, including data, codes, and models used in this paper. The use of these artifacts in this paper is consistent with their intended use, i.e., for scientific research only. The data used in the experiment is in English and does
|
| 339 |
+
|
| 340 |
+
Table 8: Hyperparameters for training DiffuseDef.
|
| 341 |
+
|
| 342 |
+
<table><tr><td>Artifact</td><td>License</td></tr><tr><td>AGNews (Zhang et al., 2015b)</td><td>Custom (non-commercial)</td></tr><tr><td>IMDB (Maas et al., 2011b)</td><td>-</td></tr><tr><td>QNLI (Wang et al., 2018)</td><td>CC BY-SA 4.0</td></tr><tr><td>transformers (Wolf et al., 2020)</td><td>Apache License 2.0</td></tr><tr><td>TextAttack (Morris et al., 2020)</td><td>MIT License</td></tr><tr><td>BERT (Devlin et al., 2019)</td><td>Apache License 2.0</td></tr><tr><td>RoBERTa (Liu et al., 2019)</td><td>MIT License</td></tr></table>
|
| 343 |
+
|
| 344 |
+
Table 9: Licenses of scientific artifacts used in this paper.
|
| 345 |
+
|
| 346 |
+
not contain personally identifying information or offensive content.
|
| 347 |
+
|
| 348 |
+
# E Robustness with RoBERTa
|
| 349 |
+
|
| 350 |
+
In Table 10, we report the black-box attack results on RoBERTa-based models. A similar conclusion holds for BERT-based models, and DiffuseDef significantly outperforms other defense methods on all 3 datasets.
|
| 351 |
+
|
| 352 |
+
# F Robustness w.r.t Token Length
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Figure 5: Defense rate (against TextFollower) w.r.t token length for different models on IMDB dataset.
|
| 356 |
+
|
| 357 |
+
Figure 5 provides a comparison of the defense rate for different models by token length on the IMDB dataset. The defense rate is calculated as the percentage of test examples in which TextFooler fails to construct a successful attack. All models except RSMI show a consistent trend that the defense rate declines as the texts lengthen. This trend can be attributed to the nature of adversarial attacks, as longer texts allow for the generation of more adversarial examples. Specifically, adversarial training defense methods like InfoBERT and FreeLB++ show poor performance on longer texts (more than 300 tokens), with the defense rate reduced to nearly 0. This drastic decline indicates
|
| 358 |
+
|
| 359 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">PLM</td><td rowspan="2">Method</td><td rowspan="2">Clean%</td><td colspan="3">AUA %</td><td colspan="3">#Query</td></tr><tr><td>TF</td><td>TB</td><td>BA</td><td>TF</td><td>TB</td><td>BA</td></tr><tr><td rowspan="6">AGNews</td><td rowspan="6">RoBERTa-base</td><td>Fine-Tuned</td><td>94.9</td><td>34.1</td><td>36.9</td><td>43.6</td><td>372</td><td>396</td><td>410</td></tr><tr><td>InfoBERT</td><td>95.5</td><td>40.2</td><td>45.2</td><td>48.6</td><td>392</td><td>421</td><td>430</td></tr><tr><td>FreeLB++</td><td>95.4</td><td>57.5</td><td>62.9</td><td>55.9</td><td>444</td><td>467</td><td>447</td></tr><tr><td>RSMI</td><td>93.1</td><td>64.2</td><td>66.4</td><td>67.4</td><td>774</td><td>861</td><td>808</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>95.3</td><td>85.6</td><td>87.6</td><td>85.3</td><td>880</td><td>976</td><td>906</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>92.9</td><td>82.9</td><td>83.5</td><td>82.2</td><td>905</td><td>925</td><td>1047</td></tr><tr><td rowspan="6">IMDB</td><td rowspan="6">RoBERTa-base</td><td>Fine-Tuned</td><td>94.6</td><td>21.3</td><td>17.9</td><td>13.6</td><td>587</td><td>671</td><td>493</td></tr><tr><td>InfoBERT</td><td>94.8</td><td>30.9</td><td>27.9</td><td>21.8</td><td>681</td><td>760</td><td>549</td></tr><tr><td>FreeLB++</td><td>95.3</td><td>46.0</td><td>42.1</td><td>33.9</td><td>829</td><td>974</td><td>637</td></tr><tr><td>RSMI</td><td>92.7</td><td>77.9</td><td>74.3</td><td>70.6</td><td>3443</td><td>4342</td><td>2619</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>95.0</td><td>86.2</td><td>85.9</td><td>86.8</td><td>3573</td><td>4663</td><td>2941</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>92.4</td><td>84.7</td><td>84.1</td><td>84.3</td><td>3673</td><td>4782</td><td>3007</td></tr><tr><td rowspan="6">QNLI</td><td rowspan="6">RoBERTa-base</td><td>Fine-Tuned</td><td>92.8</td><td>26.6</td><td>22.5</td><td>20.3</td><td>204</td><td>219</td><td>188</td></tr><tr><td>InfoBERT</td><td>92.5</td><td>29.1</td><td>25.8</td><td>20.3</td><td>205</td><td>223</td><td>189</td></tr><tr><td>FreeLB++</td><td>92.8</td><td>33.9</td><td>27.7</td><td>20</td><td>227</td><td>244</td><td>200</td></tr><tr><td>RSMI</td><td>89.3</td><td>38.8</td><td>33.2</td><td>30.0</td><td>340</td><td>375</td><td>343</td></tr><tr><td>DiffuseDef-FreeLB++ (Ours)</td><td>92.7</td><td>64.6</td><td>64.3</td><td>61.5</td><td>473</td><td>579</td><td>524</td></tr><tr><td>DiffuseDef-RSMI (Ours)</td><td>88.8</td><td>57.7</td><td>55.7</td><td>53.9</td><td>469</td><td>578</td><td>518</td></tr></table>
|
| 360 |
+
|
| 361 |
+
Table 10: Main adversarial robustness results on classification tasks with RoBERTa. Clean: accuracy on clean test set. TF: TextFooler. TB: TextBugger. BA: BertAttack.
|
| 362 |
+
|
| 363 |
+
that, given an adequate number of queries, the attacker is guaranteed to find a successful attack to fool these models. Similarly, EarlyRobust exhibits a performance drop on long texts as it is based on FreeLB training. RSMI, however, performs worse on short texts, but its defense rate increases as the text length grows. Compared to all SOTA defense approaches, the two DiffuseDef variants show a more steadily declining trend and maintain a higher defense rate across all token lengths, i.e., DiffuseDef is more robust to input text length.
|
| 364 |
+
|
| 365 |
+
# G Example of noising and denoising in DiffuseDef
|
| 366 |
+
|
| 367 |
+
Adding and removing noise to hidden states are essential features in DiffuseDef, which contribute to the improved adversarial robustness. To study how adding or removing noise can affect the semantic meaning of the text, we feed the hidden states to the pretrained BERT model with a masked language modeling (MLM) head to generate the text output.
|
| 368 |
+
|
| 369 |
+
In Table 11, we present the MLM outputs from hidden states added with different steps of noise and the MLM outputs from noise hidden states denoised with the same number of steps. In the example shown, with more noise added some semantic information can be lost and replaced by symbols or function words like β.β or βtheβ. In contrast, denoising for the same number of steps helps alleviate such information loss. For example, the word βIBMβ can be recovered from the noise.
|
| 370 |
+
|
| 371 |
+
However, in practice, it is not possible to assume
|
| 372 |
+
|
| 373 |
+
the number of denoising steps; therefore in Table 12 we show the MLM outputs of denoised hidden states directly from clean and adversarial texts. On clean text, we observe that a higher number of denoising steps can result in more abstraction of the texts. For example, more words are replaced with "the" in the MLM outputs as $t'$ grows. However, words related to the topic (e.g., "Manchester United", "Liverpool") are kept during the denoising process, thus the model can predict correctly. Similarly, the trend of abstraction can also be found on adversarial text while we observe that the denoising can help remove the adversarial noise/perturbation and recover the word "united" from "nation", thus resulting in its correct prediction on the adversarial text.
|
| 374 |
+
|
| 375 |
+
# H Confusion Matrix under Attack
|
| 376 |
+
|
| 377 |
+
Figure 6 and 7 present the confusion matrices of models' predictions on clean text and on adversarial texts (successful attack example) on AGNews and IMDB test sets respectively.
|
| 378 |
+
|
| 379 |
+
<table><tr><td>t'</td><td>MLM Output (add noise)</td><td>MLM Output (add noise then denoise)</td></tr><tr><td>0</td><td>IBM Chips May Someday Heal Themselves New technology applies electrical fuses to help identify and repair faults.</td><td>-</td></tr><tr><td>5</td><td>the.ibm chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td><td>the.ibm chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td></tr><tr><td>6</td><td>)IBM chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td><td>the.ibm chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td></tr><tr><td>7</td><td>the.chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td><td>the.chips may someday heal themselves new technology uses electrical fuses to help identify and repair faults.</td></tr><tr><td>8</td><td>).. may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td><td>the.ibm. may someday heal themselves new technology uses electrical fuses to help identify and repair faults.</td></tr><tr><td>9</td><td>the.ibm chips may someday heal themselves new technology uses electrical fuses to help identify and repair faults.</td><td>the.ibm chips may someday heal themselves new technology introduces electrical fuses to help identify and repair faults.</td></tr><tr><td>10</td><td>the.chips may someday heal themselves new technology extends electrical fuses to help identify and repair faults.</td><td>the.ibm. may someday heal themselves new technology develops electrical fuses to help identify and repair faults.</td></tr></table>
|
| 380 |
+
|
| 381 |
+
Table 11: MLM outputs from hidden states with noise added and hidden states with first noise added but then denoised. We only report $t'$ above 5 as the MLM outputs with smaller $t'$ are identical to the clean text.
|
| 382 |
+
|
| 383 |
+
<table><tr><td>t'</td><td>Clean Text / MLM Output</td><td>Adv Text / MLM Output</td><td>Pred clean</td><td>Pred adv</td></tr><tr><td>0</td><td>United Apology over Website Abuse Manchester United have been forced to issue an embarrassing apology to Liverpool for an ill-advised attack on the Anfield outfit on its own website.</td><td>United Apology over Website Abuse Manchester Nations have been forced to issue an embarrassing apology to Liverpool for an ill-advised attack on the Anfield outfit on its own website.</td><td>Sports</td><td>World</td></tr><tr><td>1</td><td>football: apology over website abuse manch-ester united have been - to issue an embar-rassing apology to liverpool for an the - advised attack on the anfield outfit on its own website.</td><td>the: apology over website abuse manchester nations have been the to issue an embarrass-ing apology to liverpool for an the - advised attack on the anfield outfit on its own web-site.</td><td>Sports</td><td>World</td></tr><tr><td>2</td><td>the: apology over website abuse manch-ester united have been - to issue an embarrassa-ing apology to liverpool for an the - advised at-tack on the anfield outfit on its own website.</td><td>the: apology over website abuse manchester nations have been the to issue an embarrassa-ing apology to liverpool for an the - advised attack on the anfield outfit on its own web-site.</td><td>Sports</td><td>World</td></tr><tr><td>3</td><td>the: apology over website abuse manch-ester united have been the to issue an embarrassa-ing apology to liverpool for an the - advised attack on the anfield outfit on its own web-site.</td><td>the: apology over website abuse manchester s have been the to issue an embarrassa-ing apology to liverpool for an the - advised at-tack on the anfield outfit on its own website.</td><td>Sports</td><td>Sports</td></tr><tr><td>4</td><td>the: apology over website abuse manch-ester united have the - to issue an embarrassa-ing apology to liverpool for an the - advised at-tack on the anfield outfit on its own website.</td><td>the: apology over website abuse manchester s have been the to issue an embarrassa-ing apology to liverpool for an the - advised at-tack on the anfield outfit on its own website.</td><td>Sports</td><td>Sports</td></tr><tr><td>5</td><td>the: apology over website abuse manch-ester united have the the to issue an a apology to liverpool for an the - advised attack on the anfield outfit on its own website.</td><td>the: apology over website abuse manchester united have been the to issue an the apology to liverpool for an - advised attack on the anfield outfit on its own website.</td><td>Sports</td><td>Sports</td></tr></table>
|
| 384 |
+
|
| 385 |
+
Table 12: MLM outputs and FreeLB++ model predictions from ensembling diffused hidden states at different denoising steps.
|
| 386 |
+
|
| 387 |
+

|
| 388 |
+
|
| 389 |
+

|
| 390 |
+
|
| 391 |
+

|
| 392 |
+
Figure 6: Confusion matrix of models under attack on AGNews test set.
|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
Figure 7: Confusion matrix of models under attack on IMDB test set.
|
| 402 |
+
|
| 403 |
+

|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77da91ed0d2219b981e73b2e1a07ad60da398f1e517de875870a1d03e049d32c
|
| 3 |
+
size 1106467
|
2025/DiffuseDef_ Improved Robustness to Adversarial Attacks via Iterative Denoising/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/be4ec170-e143-4698-8d75-ef7f1065f540_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34bff174d9bb8aa9579facf6af505a650f595c3490b6de17e31b2b3bdee1c584
|
| 3 |
+
size 3938290
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/full.md
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Diffusion Models Through a Global Lens: Are They Culturally Inclusive?
|
| 2 |
+
|
| 3 |
+
Zahra Bayramli $^{1,3*}$ Ayhan Suleymanzade $^{1*}$ Na Min An $^{2}$ Huzama Ahmad $^{2}$ Eunsu Kim $^{1}$ Junyeong Park $^{1}$ James Thorne $^{2β‘}$ Alice Oh $^{1β‘}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ School of Computing, KAIST $^{2}$ Graduate School of AI, KAIST $^{3}$ SOCAR
|
| 6 |
+
|
| 7 |
+
# Abstract
|
| 8 |
+
|
| 9 |
+
Text-to-image diffusion models have recently enabled the creation of visually compelling, detailed images from textual prompts. However, their ability to accurately represent various cultural nuances remains an open question. In our work, we introduce CULTDIFF benchmark, evaluating whether state-of-the-art diffusion models can generate culturally specific images spanning ten countries. We show that these models often fail to generate cultural artifacts in architecture, clothing, and food, especially for underrepresented country regions, by conducting a fine-grained analysis of different similarity aspects, revealing significant disparities in cultural relevance, description fidelity, and realism compared to real-world reference images. With the collected human evaluations, we develop a neural-based image-image similarity metric, namely, CULTDIFF-S, to predict human judgment on real and generated images with cultural artifacts. Our work highlights the need for more inclusive generative AI systems and equitable dataset representation over a wide range of cultures.
|
| 10 |
+
|
| 11 |
+
# 1 Introduction
|
| 12 |
+
|
| 13 |
+
Text-to-image (T2I) diffusion models recently have shown a significant advance in generating high-quality images from text prompts(Saharia et al., 2022; Ramesh et al., 2022; Betker et al., 2023; Podell et al., 2023; Blattmann et al., 2023; Esser et al., 2024). Remarkable success has been demonstrated in producing realistic and detailed visual representations, ranging from generating complex scenes (Liu et al., 2024c) to performing style transfer using diffusion models (Wang et al., 2023; Zhang et al., 2023). While it is crucial to address
|
| 14 |
+
|
| 15 |
+
the challenge of generating culture-aware imagery, current diffusion models have yet to be evaluated on their ability to create a distribution of accurate and fair representations of images (Cao et al., 2024b; Liu et al., 2023).
|
| 16 |
+
|
| 17 |
+
A recent study, Basu et al. (2023) reveals that while current diffusion models can generate realistic and contextually relevant images, they frequently fail to achieve geographical inclusiveness, generating globally representative images. Furthermore, a critical gap remains in these models' ability to produce culturally accurate representations, failing to create concepts or artifacts for particular cultures, thus, lacking in culture awareness (Kannen et al., 2024). While benchmark datasets have been developed to capture cultural diversity (Jha et al., 2023; Myung et al., 2024; Li et al., 2024c), to the best of our knowledge, there is limited prior work exploring the ability of diffusion models to generate culturally specific artifacts, particularly those representing underrepresented cultures (Kannen et al., 2024; Nayak et al., 2024).
|
| 18 |
+
|
| 19 |
+
The primary motivation of our study is to investigate the capability of state-of-the-art diffusion models in accurately representing cultural themes for both overrepresented and underrepresented cultures. We consider culture as societal constructs tied to country boundaries and use 'culture' and 'country' interchangeably in this paper, similar to prior approaches (Kannen et al., 2024; Li et al., 2024b). The overrepresented cultures defined here include countries from Western, European, Industrialized, Rich, and Democratic (WEIRD) regions (Henrich et al., 2010) (e.g., United States, United Kingdom), as well as countries from Asia, based on their Asia Power Index<sup>1</sup> (e.g., China, South Korea). In contrast, countries where the primary languages (e.g., Amharic, Azerbaijani) have limited resource availability, as defined in Joshi et al. (2020), are
|
| 20 |
+
|
| 21 |
+
considered underrepresented (e.g., Ethiopia, Azerbaijan).
|
| 22 |
+
|
| 23 |
+
In this paper, we present a new benchmark dataset designed to evaluate these models' ability to generate images that accurately reflect both high-resource and low-resource cultures<sup>2</sup>. Our benchmarking dataset includes a curated collection of prompts for architectural landmarks, clothing, and food from various countries to ensure comprehensive coverage of cultural diversity. Since existing image similarity metrics (e.g., FID (Heusel et al., 2017)) struggle to evaluate cultural nuances accurately, we propose a model-based metric trained and validated with human feedback and compare its correlation. Our contributions can be summarized as follows:
|
| 24 |
+
|
| 25 |
+
- CultDiff benchmark dataset: We introduce a novel dataset, CultDiff, specifically designed to evaluate diffusion models on their ability to generate culturally accurate images across ten countries with varying resource levels, incorporating human evaluations.
|
| 26 |
+
- Analysis on various culture representations of generated images: We explore how well diffusion models represent low- and high-resource cultures, providing a fine-grained analysis of different aspects of similarity (e.g., image-image, image-description).
|
| 27 |
+
- An automatic image-image similarity evaluation metric: We present a similarity metric trained and validated with human feedback and compare its capabilities to existing similarity metrics, demonstrating its potential to better capture cultural nuances in generated images.
|
| 28 |
+
|
| 29 |
+
# 2 Related Works
|
| 30 |
+
|
| 31 |
+
# 2.1 Cultural-Aware Datasets
|
| 32 |
+
|
| 33 |
+
Beginning with the benchmark to evaluate image quality from simpler text prompts using text-to-image (T2I) diffusion models, such as HPDv2 (Wu et al., 2023) using human preferences, more recently advanced efforts include creating comprehensive benchmarks such as T2I-CompBench (Huang et al., 2023) and GenAI-Bench (Li et al., 2024a). These prior benchmarks assess the performance of T2I models across various aspects,
|
| 34 |
+
|
| 35 |
+
including realism, fidelity, and compositional text-to-image generation. Although a very recent study (Jha et al., 2024) has started investigating global representation in T2I models, their emphasis has primarily been on regional social stereotypes. From another perspective, Khanuja et al. (2024) proposed the task of image transcreation for cultural relevance demonstrating that image-editing models struggle to adapt images meaningfully across cultures.
|
| 36 |
+
|
| 37 |
+
On the other hand, many widely-used datasets for training T2I synthesis models, such as LAION-400M (Schuhmann et al., 2021), tend to exhibit Anglo-centric and Euro-centric biases, as noted by Birhane et al. (2021). These biases skew the representation of cultures in generated images, often favoring Western perspectives (Mihalcea et al., 2024). In response to this, several researchers have worked to create datasets that better represent diverse cultures. For example, the MaRVL dataset (Liu et al., 2021) was specifically designed to include a broader array of languages and cultural concepts, covering regions such as Indonesia, Swahili-speaking Africa, Tamil-speaking South Asia, Turkey, and Mandarin-speaking China and addressing biases in datasets that predominantly focused on North American and Western European cultures. Likewise, Culturally-aware Image Captioning (CIC) framework (Yun and Kim, 2024) was proposed to enhance cultural diversity in image descriptions.
|
| 38 |
+
|
| 39 |
+
In the Large Language Models (LLMs) domains, SeeGULL dataset (Jha et al., 2023) broadens stereotype benchmarking to encompass global and regional diversity, and BLEnD benchmark (Myung et al., 2024) evaluates the cultural knowledge of LLMs across various languages, including lowresource ones. Similarly, the Dollar Street dataset (Gaviria Rojas et al., 2022) sought to capture every day life across a wide variety of socioeconomic backgrounds, presenting a more globally inclusive view. Furthermore, CulText2I (Ventura et al., 2023) was introduced as a multilingual benchmark and evaluation framework to analyze cultural encoding in TTI models across languages, cultural concepts, and domains, highlighting how language impacts cultural representation in generated images. In addition, Liu et al. (2023) introduced the CCUB dataset, which was developed to promote cultural inclusivity by collecting images and captions representing the cultural contexts of different countries. Liu et al. (2024a) introduced a Chal
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 1: The overall framework for image generation, annotation, and evaluation, consisting of six steps. (1) 50 text prompts for three categoriesβarchitecture, food, and clothingβacross 10 countries were generated. (2) Reference images were collected using Bing search. (3) Three diffusion models (SD-XL, SD-3-Medium, FLUX.1-dev) were used to generate images. (4) Human annotators evaluated images based on similarity, description match, and realism. (5) Human feedback was used to create positive and negative pairs for contrastive learning. (6) Model performance was assessed by measuring agreement with human scores.
|
| 43 |
+
|
| 44 |
+
lenging Cross-Cultural (C3) benchmark to evaluate failures in culturally specific generation and proposed fine-tuning on curated data. In the multimodal large language model (MLLM) domain, recent benchmarks such as CVQA (Romero et al., 2024) focused on culturally aware question answering by capturing nuances across a diverse set of languages. Most recently, CUBE (Kannen et al., 2024) is a large-scale dataset of cultural artifacts spanning 8 countries across different geo-cultural regions for evaluating cultural diversity. Our work further contributes to dataset creation by expanding the focus to include low-resource cultures, thereby addressing gaps between overrepresented and underrepresented cultural contexts.
|
| 45 |
+
|
| 46 |
+
# 2.2 Diffusion Model Evaluation
|
| 47 |
+
|
| 48 |
+
Several metrics have been developed and widely used to evaluate the quality of images generated by T2I models. These include measures of realism such as the Inception Score (IS) (Salimans et al.,
|
| 49 |
+
|
| 50 |
+
2016), FrΓ©chet Inception Distance (FID) (Heusel et al., 2017), and Image Realism Score (IRS) (Chen et al., 2023). In particular, IS evaluates image quality and diversity based on classification probabilities, FID quantifies the similarity between generated and real image distributions, and IRS mainly analyzes basic image characteristics to measure the realism of the visual content. In addition, the alignment between generated images and the corresponding prompts has been evaluated using various metrics, such as CLIPScore (Hessel et al., 2021), VQA Score (Lin et al., 2025), and ImageReward (Xu et al., 2023), which incorporates human feedback to enhance T2I models further. Although Kannen et al. (2024) has explored cultural diversity in text-to-image model generations using the Vendi Score (Nguyen and Dieng, 2024), measuring cultural accuracy in generated images has not yet been successfully achieved with existing metrics. As a result, the most reliable approach remains relying on human participants, as demonstrated in several
|
| 51 |
+
|
| 52 |
+
works (Kannen et al., 2024; Nayak et al., 2024). In our work, we also utilize human annotation; however, due to the time and cost associated with it, there is a pressing need for automatic evaluation. To address this, we present a metric specifically trained on a culture-aware dataset to observe its potential for aligning with human preferences.
|
| 53 |
+
|
| 54 |
+
# 3 CULTDIFF Benchmark
|
| 55 |
+
|
| 56 |
+
This section outlines the process of building our CULTDIFF benchmark, including the data construction (steps 1-3 in Figure 1 and Section 3.1), human annotation (step 4 in Figure 1 and Section 3.2), and design of the architectural framework for the metric evaluation (steps 5-6 in Figure 1 and Section 3.3).
|
| 57 |
+
|
| 58 |
+
# 3.1 CULTDIFF Dataset Construction
|
| 59 |
+
|
| 60 |
+
In this section, we present the construction of the CULTDIFF dataset, which is designed to evaluate the performance of diffusion models in generating culturally relevant images across various artifact categories and countries. The dataset creation process is composed of three key steps as outlined in Figure 1: (1) prompt generation, (2) collection of real images, and (3) synthetic image generation.
|
| 61 |
+
|
| 62 |
+
Prompt Generation. To create the benchmark dataset for evaluating the diffusion models, we focused on three artifact categories: architecture (or landmarks), clothing, and food across ten countries. The prompt generation process involved the following steps: (1) Artifact Collection: Compiled a list of 50 artifact names per category and country using Wikipedia, cultural heritage websites, and travel platforms<sup>3</sup> for landmarks. (2) Prompt Engineering: Created custom-generated prompts for each artifact which are simple, structured prompts (e.g., "A panoramic view of {landmark} in {country}", realistic.) similar to the prompts used in Kannen et al. (2024) (refer to Appendix A.1 for the list of prompts).
|
| 63 |
+
|
| 64 |
+
Image Collection and Generation. To acquire real images for training and evaluation, we collected images for each artifact across all categories and countries from the internet using the generated prompts. Recognizing that real-world images vary significantly due to factors such as location, camera angle, lighting, and weather conditions, we aimed to minimize potential biases by selecting five images instead of just one for each artifact.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: Proposed contrastive learning pipeline with image pairs using Vision Transformer (ViT).
|
| 68 |
+
|
| 69 |
+
The images were scraped using Bulk Bing Image Downloader (BBID) $^4$ , an open-source Python tool that enables fast downloads and filters out adult content.
|
| 70 |
+
|
| 71 |
+
The image generation process involved synthesizing images based on the generated prompts. We used three diffusion models: Stable Diffusion XL (Podell et al., 2023), Stable Diffusion 3 Medium Diffusers (Esser et al., 2024), and FLUX.1-dev $^5$ (Labs, 2023).
|
| 72 |
+
|
| 73 |
+
# 3.2 Human Evaluation
|
| 74 |
+
|
| 75 |
+
A critical part of our experimental design involved human annotation to assess the cultural and contextual relevance of AI-generated images. We first created a survey comprising 150 images for all ten countries (e.g., United States, China, Azerbaijan, and Indonesia), where the images for each country were equally divided across three categories: architecture, clothing, and food items. Each survey included a set of four images for each artifact: three real images (collected via web scraping) and one AI-generated image (produced by one of the three diffusion models).
|
| 76 |
+
|
| 77 |
+
To prevent model bias, each human annotator was distributed with randomly selected images generated from one of three diffusion models for each question. Hence, the degree of annotator agreement implies varying image quality generated by different models (Appendix A.3 for details). Three human annotators from each country participated in the study, ensuring cultural familiarity and context-specific insights. All 30 annotators were asked to evaluate each image based on the following multiple-choice questions:
|
| 78 |
+
|
| 79 |
+
Image-image similarity scores are collected for each category as follows:
|
| 80 |
+
|
| 81 |
+
- Architecture: How similar is the rightmost image (i.e., AI-generated image) to the first three images (i.e., real reference images) in terms of overall similarity, shapes, materials/textures, and background/surroundings?
|
| 82 |
+
- Clothing: How similar is the rightmost image to the first three images in terms of overall similarity, color/texture, design/patterns, and background elements?
|
| 83 |
+
- Food: How similar is the rightmost image to the first three images regarding overall similarity, presentation/plating, colors/textures, and ingredients/components?
|
| 84 |
+
|
| 85 |
+
Image-text alignment scores are calculated how well the description (i.e., prompts mentioned in Section 3.1) matches the content of the AI-generated image?
|
| 86 |
+
|
| 87 |
+
Realism scores are assessed based on how realistic the AI-generated image appears.
|
| 88 |
+
|
| 89 |
+
Each question for these three multiple-choice subquestions was rated using a Likert scale of 1 to 5: (1) Not at all, (2) Slightly, (3) Somewhat, (4) Mostly, (5) Completely, allowing annotators to express their level of agreement or similarity with the presented image (detailed in Appendix A.3). We recruited 30 annotators from 10 countries: Azerbaijan, Pakistan, Ethiopia, South Korea, Indonesia, China, Spain, Mexico, the United States, and the United Kingdom. Annotators from the first five countries were recruited through college communities, while those from the remaining countries were recruited via the Prolific crowdsourcing platform. The recruitment on Prolific involved screening participants based on their location, nationality, and birthplace.
|
| 90 |
+
|
| 91 |
+
# 3.3 Model Evaluation
|
| 92 |
+
|
| 93 |
+
# 3.3.1 Pair and Dataset Creation
|
| 94 |
+
|
| 95 |
+
Our training data consists of real image and realistic image pairs, ensuring a rich, wide variety of training samples. Specifically, we constructed the following image pairs:
|
| 96 |
+
|
| 97 |
+
Real image pairs: Positive pairs consist of real images of the same artifact (e.g., two images of the Flame Towers in Azerbaijan), while negative
|
| 98 |
+
|
| 99 |
+
pairs include real images of different artifacts from the same country or any artifacts from different countries (e.g., the Flame Towers vs. the Empire State Building).
|
| 100 |
+
|
| 101 |
+
Real-synthetic image pairs: The positive image pairs generated by diffusion models (as described in Section 3.1) with an average image-image similarity score $\geq 3$ , paired with three real images used in the human evaluation. The negative pairs consist of AI-generated images with an average image-image similarity score $< 3$ , paired with three real images similar to the positive pairs.
|
| 102 |
+
|
| 103 |
+
We split our dataset using disjoint prompts for each set to ensure no overlap between the training, validation, and test sets. We selected 30 random prompts for the training set, 10 for the validation set, and 10 for the test set, along with their respective pairs from each model, across all categories and countries. In total, the training set consists of approximately $11\mathrm{k}$ image pairs, while both the validation and test sets contain $2.7\mathrm{k}$ image pairs each. The training set includes both real image pairs and real-synthetic image pairs, while the validation and test sets consist solely of real-synthetic image pairs, with no overlapping images between the sets.
|
| 104 |
+
|
| 105 |
+
# 3.3.2 Similarity Metric
|
| 106 |
+
|
| 107 |
+
To build a model-based image-image similarity metric, CULTDIFF-S, we adopted a contrastive learning approach, utilizing Vision Transformers (ViT) (Alexey, 2020) to learn embeddings for both real and AI-generated images, as illustrated in Figure 2. The global attention mechanism in ViT enables effective "local-to-global" correspondence, enhancing self-supervised learning (Caron et al., 2021; Mo et al., 2023). This ViT property is particularly important in our work, where it helps evaluate the cultural and contextual relevance of images by capturing both local features and their broader context. To achieve this, we employed a weighted margin loss during the training process, utilizing the scores (collected from our human annotation process explained in Section 3.2) as weights ( $w_i$ , $i = 1, 2, \dots, N$ in Eq. 3.3.2), motivated by previous studies that utilized GPT feedback scores as the weights in building sentence embedding models (Cheng et al., 2023; An et al., 2024). These scores are normalized to 0 to 1 and applied to their corresponding real-synthetic (human-annotated) positive and negative image pairs. For real-image pairs that were not annotated by humans, we assigned a default weight of $w = 1$ . Our margin loss is
|
| 108 |
+
|
| 109 |
+
<table><tr><td>Diffusion Models</td><td colspan="3">Stable Diffusion XL</td><td colspan="3">Stable Diffusion 3 Medium Diffusers</td><td colspan="3">FLUX.1 dev</td></tr><tr><td>Category</td><td>Architecture</td><td>Clothing</td><td>Food</td><td>Architecture</td><td>Clothing</td><td>Food</td><td>Architecture</td><td>Clothing</td><td>Food</td></tr><tr><td rowspan="5">Q1.1-Highest Score</td><td>S. Korea</td><td>Pakistan</td><td>USA</td><td>Azerbaijan</td><td>Mexico</td><td>Mexico</td><td>UK</td><td>Mexico</td><td>USA</td></tr><tr><td>UK</td><td>S. Korea</td><td>Spain</td><td>Mexico</td><td>UK</td><td>USA</td><td>S. Korea</td><td>Pakistan</td><td>Pakistan</td></tr><tr><td>Mexico</td><td>Mexico</td><td>Pakistan</td><td>S. Korea</td><td>S. Korea</td><td>Pakistan</td><td>Mexico</td><td>S. Korea</td><td>Mexico</td></tr><tr><td>USA</td><td>USA</td><td>Mexico</td><td>UK</td><td>Pakistan</td><td>Spain</td><td>USA</td><td>UK</td><td>UK</td></tr><tr><td>Ethiopia</td><td>UK</td><td>Indonesia</td><td>Ethiopia</td><td>Indonesia</td><td>UK</td><td>Ethiopia</td><td>USA</td><td>Spain</td></tr><tr><td rowspan="5">Q1.1-Lowest Score</td><td>Spain</td><td>Indonesia</td><td>UK</td><td>USA</td><td>USA</td><td>Indonesia</td><td>Azerbaijan</td><td>Indonesia</td><td>Azerbaijan</td></tr><tr><td>Azerbaijan</td><td>Azerbaijan</td><td>Azerbaijan</td><td>Indonesia</td><td>Azerbaijan</td><td>Azerbaijan</td><td>China</td><td>Azerbaijan</td><td>China</td></tr><tr><td>Pakistan</td><td>Spain</td><td>S. Korea</td><td>China</td><td>Spain</td><td>Ethiopia</td><td>Indonesia</td><td>Spain</td><td>Indonesia</td></tr><tr><td>Indonesia</td><td>Ethiopia</td><td>Ethiopia</td><td>Spain</td><td>Ethiopia</td><td>China</td><td>Pakistan</td><td>China</td><td>S. Korea</td></tr><tr><td>China</td><td>China</td><td>China</td><td>Pakistan</td><td>China</td><td>S. Korea</td><td>Spain</td><td>Ethiopia</td><td>Ethiopia</td></tr><tr><td rowspan="5">Q1.2-Highest Score</td><td>S. Korea</td><td>S. Korea</td><td>USA</td><td>USA</td><td>UK</td><td>USA</td><td>USA</td><td>S. Korea</td><td>USA</td></tr><tr><td>Mexico</td><td>UK</td><td>Spain</td><td>Mexico</td><td>S. Korea</td><td>Spain</td><td>UK</td><td>Indonesia</td><td>Spain</td></tr><tr><td>UK</td><td>Mexico</td><td>Pakistan</td><td>S. Korea</td><td>Mexico</td><td>Pakistan</td><td>Mexico</td><td>Mexico</td><td>Azerbaijan</td></tr><tr><td>USA</td><td>USA</td><td>Indonesia</td><td>Azerbaijan</td><td>Indonesia</td><td>Mexico</td><td>S. Korea</td><td>Pakistan</td><td>Pakistan</td></tr><tr><td>Spain</td><td>Indonesia</td><td>Azerbaijan</td><td>UK</td><td>Pakistan</td><td>China</td><td>Ethiopia</td><td>USA</td><td>Mexico</td></tr><tr><td rowspan="5">Q1.2-Lowest Score</td><td>Ethiopia</td><td>Pakistan</td><td>S. Korea</td><td>Ethiopia</td><td>USA</td><td>Indonesia</td><td>Azerbaijan</td><td>UK</td><td>UK</td></tr><tr><td>Azerbaijan</td><td>Azerbaijan</td><td>Mexico</td><td>Pakistan</td><td>Azerbaijan</td><td>Azerbaijan</td><td>China</td><td>Azerbaijan</td><td>China</td></tr><tr><td>Pakistan</td><td>Spain</td><td>UK</td><td>China</td><td>China</td><td>UK</td><td>Pakistan</td><td>Spain</td><td>S. Korea</td></tr><tr><td>China</td><td>Ethiopia</td><td>Ethiopia</td><td>Spain</td><td>Ethiopia</td><td>S. Korea</td><td>Spain</td><td>China</td><td>Indonesia</td></tr><tr><td>Indonesia</td><td>China</td><td>China</td><td>Indonesia</td><td>Spain</td><td>Ethiopia</td><td>Indonesia</td><td>Ethiopia</td><td>Ethiopia</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Table 1: Ranking of countries by average Q1.1 scores (top half) and Q1.2 scores (bottom half), organized from highest to lowest. The table presents scores across three models for the categories of Architecture, Clothing, and Food. Overrepresented countries are highlighted in red, while underrepresented countries are highlighted in blue.
|
| 112 |
+
|
| 113 |
+
defined as:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
\mathcal {L} = \frac {1}{N} \sum_ {i = 1} ^ {N} w _ {i} \cdot \left(y _ {i} \cdot d _ {i} ^ {2} + (1 - y _ {i}) \cdot \max (0, m - d _ {i}) ^ {2}\right),
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
where $w_{i}$ denotes the weight derived from the normalized human score when available (default is 1.0), $d_{i}$ represents the Euclidean distance between the embeddings of a pair of images $(d_{i} = \| f(x_{i1}) - f(x_{i2})\| _2)$ , and $f(x)$ is the embedding function learned by the Vision Transformer. The binary label $y_{i}\in \{0,1\}$ indicates whether a pair is positive $(y_{i} = 1)$ or negative $(y_{i} = 0)$ . The margin $m$ enforces a minimum distance between embeddings of negative pairs, while $N$ is the total number of image pairs in the batch.
|
| 120 |
+
|
| 121 |
+
This loss function is optimized to make the model learn to (1) push the positive image pairs together and pull the negative image pairs apart and (2) assign importance to pairs with human judgment scores. The second goal guides the model to attend more to the image pairs with higher human scores and less with lower human scores.
|
| 122 |
+
|
| 123 |
+
# 4 Results
|
| 124 |
+
|
| 125 |
+
# 4.1 Benchmark Results and Analysis
|
| 126 |
+
|
| 127 |
+
# 4.1.1 Overall Image-Image Similarity
|
| 128 |
+
|
| 129 |
+
We first analyze the similarity results (image-image similarity scores) of the real and generated images from the survey's first question (Q1), which examined various aspects of similarity. In particular,
|
| 130 |
+
|
| 131 |
+
Q1.1 asked participants to rate the overall similarity. Table 1 highlights the average scores for all countries across three models. The first half of Table 1 summarizes the country results: overrepresented countries (South Korea, USA, UK, Mexico) predominantly occupy the top half (highest scores), while underrepresented countries (Azerbaijan, Ethiopia) are mostly in the lower half, with some exceptions.
|
| 132 |
+
|
| 133 |
+
Q1.2 specifically addressed distinct features: shapes for architectural structures, color/texture for clothing, and presentation/plating for food. The results, summarized in Table 1, highlight that the USA, UK, and South Korea consistently ranked among the highest-scoring countries across all categories and models. In contrast, Ethiopia and Indonesia frequently appeared in the lower half of the rankings. Interestingly, China also consistently received some of the lowest scores in this analysis. These findings suggest a need for the development of diffusion models that better represent underrepresented countries, such as Ethiopia and Indonesia, to improve their cultural and contextual accuracy compared to overrepresented countries like the USA, UK, and South Korea.
|
| 134 |
+
|
| 135 |
+
# 4.1.2 Image-Description Match
|
| 136 |
+
|
| 137 |
+
Our analysis focused on the responses to the second question (Q2), which assessed the fidelity of the generated content to the provided description. Figure 3 presents the results for the FLUX model's
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
Figure 3: Average description match scores for the FLUX model's outputs across three categories: Architecture (left), Clothing (center), and Food (right). Each bar plot represents the average description match scores for countries within the respective category, ranked from highest to lowest. Error bars indicate the standard error of the mean.
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 4: Scatter plots of Q1.1 (horizontal axis) vs. Q2 (vertical axis) scores for Food images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 148 |
+
|
| 149 |
+
outputs across architecture, clothing, and food, respectively. The United States and the United Kingdom consistently achieved the highest average fidelity scores across all three categories. In contrast, Azerbaijan, South Korea, and Ethiopia recorded the lowest average scores of 2.28, 1.55, and 1.54 in the architecture, food, and clothing categories, respectively. It is important to note that there is no significant statistical difference between the overrepresented and underrepresented countries in our study, likely due to the small dataset. However, the country rankings remain relevant. In fact, these average scores reveal a noticeable gap between the scores of the United States and those of other countries across all categories. These results suggest a potential bias in the model, favoring countries with a more extensive cultural presence on the internet. Addressing this limitation by incorporating more diverse and balanced datasets could improve the model's fidelity for underrepresented countries and
|
| 150 |
+
|
| 151 |
+
enhance its overall cultural accuracy (Ananthram et al., 2024; Liu et al., 2025).
|
| 152 |
+
|
| 153 |
+
Results for Stable Diffusion XL and Stable Diffusion 3 Medium Diffusers (see Appendix A.4 for corresponding graphs) also indicate that the United States consistently receives higher scores. Conversely, countries like Azerbaijan and Ethiopia frequently appear in the lower half of the rankings. However, the relative ordering of countries varies across models.
|
| 154 |
+
|
| 155 |
+
We also visualized the correlations between responses to the overall similarity question (Q1.1) for real and generated images and the text-image alignment score (Q2). As shown in Figure 4, most countries exhibit a strong positive Pearson correlation coefficient $(r)$ in the Food category (refer to Appendix A.5 for results on architecture and clothing), indicating consistent agreement between Q1.1 and Q2 responses across most countries.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 5: Average realism scores across three models: Stable Diffusion XL (left), Stable Diffusion 3 Medium Diffusers (center), and FLUX (right). The bar plots show realism scores for three categoriesβArchitecture, Clothing, and Foodβaveraged across countries for each model. Error bars indicate the standard error of the mean.
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
|
| 164 |
+
# 4.1.3 Realism
|
| 165 |
+
|
| 166 |
+
The third question, which focused on rating the realism of the generated images, is visualized in the bar graphs in Figure 5. The FLUX model's output shows that realism scores are relatively higher for the United Kingdom, United States, and Mexico, while Spain, Ethiopia, and South Korea have lower scores. In contrast, the Stable Diffusion 3 Medium model exhibits relatively consistent realism scores across all countries. Meanwhile, the Stable Diffusion XL model demonstrates slightly lower average realism scores across all countries and categories compared to the other two models.
|
| 167 |
+
|
| 168 |
+
# 4.2 Similarity Metric Analysis
|
| 169 |
+
|
| 170 |
+
After training the similarity model, we evaluated its performance using our test dataset pairs. For each evaluation pair, we computed additional similarity metrics, including FrΓ©chet Inception Distance (FID) (Heusel et al., 2017), Learned Perceptual Image Patch Similarity (LPIPS) (Zhang et al., 2018), and the Structural Similarity Index Measure (SSIM) (Wang et al., 2004). Additionally, we calculated the correlation between image-image similarity scoresβderived by averaging the responses to the first four questions in the surveyβand each of these similarity metrics. In our metric model, we compute the cosine similarity of the embeddings produced by the model during evaluation as the final similarity score. The results of these correlations are summarized in Table 2. The proposed metric, CULTDIFF-S, achieves notably higher correlation values, suggesting the usefulness of using our automatic pre-trained image-image metric, showing potential to replace the previous metrics. However, we leave future work to further enhance model correlations with human judgments.
|
| 171 |
+
|
| 172 |
+
<table><tr><td>Similarity Metrics</td><td>Spearman Ο</td><td>Pearson r</td><td>Kendall Οb</td><td>Kendall Οc</td></tr><tr><td>SISM</td><td>0.0458</td><td>0.0464</td><td>0.0315</td><td>0.0324</td></tr><tr><td>FID</td><td>-0.1078</td><td>-0.1085</td><td>-0.0768</td><td>-0.0783</td></tr><tr><td>LPIPS</td><td>-0.1352</td><td>-0.1376</td><td>-0.1002</td><td>-0.1029</td></tr><tr><td>CULTDIFF-S</td><td>0.1848</td><td>0.1559</td><td>0.1278</td><td>0.1312</td></tr></table>
|
| 173 |
+
|
| 174 |
+
Table 2: Correlation between human judgment scores and similarity values produced using different metrics.
|
| 175 |
+
|
| 176 |
+
# 5 Discussion
|
| 177 |
+
|
| 178 |
+
# 5.1 Human-Aligned Image-Image Similarity Evaluation Metric
|
| 179 |
+
|
| 180 |
+
Designing an image-image similarity metric that closely correlates with human rankings is inherently difficult due to the complexity of cultural attributes and subjective interpretations. Culture itself is a broad and multifaceted concept, making it challenging to define in a universally accepted manner (Liu et al., 2024b). In fact, many previous studies in related domains that incorporate cultural aspects either provide only a high-level definition or avoid in-depth discussions on its nuances (Adilazuarda et al., 2024; Huang and Yang, 2023; Zhou et al., 2023; Cao et al., 2024a; Wan et al., 2023). In our study, we treated countries as representatives of distinct cultures. However, individuals, even within the same country, may have diverse interpretations of cultural artifacts, reflecting regional, ethnic, and personal differences in cultural perception, which can lead to subjective similarity scores given by human annotators. Additionally, cultural artifacts often evolve over time, influenced by various internal or external factors, further complicating the task of cultural representations. As a result, an effective similarity metric that correlates more closely with human perception must account for both objective attributes, such as structural and visual features, and subjective factors, including historical context, regional variations, and personal
|
| 181 |
+
|
| 182 |
+
interpretations. We believe that developing such a metric necessitates integrating human feedback into the process, combining both data-driven approaches and human-centered evaluations to bridge the gap, as has been demonstrated in other contexts and domains in prior works (Xu et al., 2023; Stiennon et al., 2020; Ouyang et al., 2022), as well as in our research.
|
| 183 |
+
|
| 184 |
+
# 5.2 Culturally Aware Diffusion Models
|
| 185 |
+
|
| 186 |
+
Recent advancements in fine-tuning diffusion models have demonstrated significant improvement (Ruiz et al., 2023). Following similar approaches in cultural contexts, fine-tuning diffusion models on smaller, culturally-curated datasets has been shown to lead to more culturally relevant image generation (Liu et al., 2023). While approaches relying on large culture-specific datasets, such as Japanese Stable Diffusion (Shing and Sawada, 2022), have been generally successful in enhancing cultural awareness for specific cultures, the limited resource presence of underrepresented cultures creates a challenge for applying similar methods. In this context, our dataset further provides a foundation for incorporating data from underrepresented cultures/countries, broadening the reach of culturally inclusive image generation. We hope that our work will inspire further research into improving the fairness of T2I generation models, particularly by expanding representation for low-resource cultures in both model training and evaluation.
|
| 187 |
+
|
| 188 |
+
# 6 Conclusion
|
| 189 |
+
|
| 190 |
+
In this paper, we assessed the cultural awareness diffusion models spanning 10 countries and 3 categories (i.e., 2015) for AI-generated images to real counterparts, description fidelity, and realismβrevealed that the diffusion models exhibit better cultural awareness for high-resource countries than low-resource countries, such as Ethiopia, Azerbaijan, and Indonesia. Furthermore, we proposed an automatic image-image similarity metric that shows improvement in correlating with human judgments to evaluate cultural aspects.
|
| 191 |
+
|
| 192 |
+
# Limitations
|
| 193 |
+
|
| 194 |
+
The main limitation of our work lies in recruiting only three annotators per country due to budget constraints, similar to most human experiments
|
| 195 |
+
|
| 196 |
+
in other studies. While we could derive valuable insights from the human evaluation results, increasing the number of survey participants per country would enhance the robustness and generalizability of our findings.
|
| 197 |
+
|
| 198 |
+
# Ethical Statement
|
| 199 |
+
|
| 200 |
+
This study was conducted with prior approval from the Institutional Review Board (IRB), ensuring adherence to ethical research standards. All participants recruited through Prolific were compensated at a competitive rate (18 pounds $\sim$ 22.38 USD in January 2025), meeting or exceeding ethical guidelines. Similarly, participants recruited directly, primarily from low-resource countries, were fairly compensated (30K KRW $\sim$ 20.89 USD in January 2025).
|
| 201 |
+
|
| 202 |
+
To ensure the appropriateness of the materials, all generated images were reviewed by the authors before being provided to the annotators. Additionally, we included a question at the end of the survey asking whether each image was inappropriate or disturbing. All annotators responded "No" to this question, confirming the suitability of the content used in the study.
|
| 203 |
+
|
| 204 |
+
# Acknowledgments
|
| 205 |
+
|
| 206 |
+
This research was supported by the MSIT (Ministry of Science, ICT), Korea, under the National Program for Excellence in SW), supervised by the IITP (Institute of Information & communications Technology Planing & Evaluation) in 2024 (2022-0-01092) and National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No.RS-2024-00406715), and Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No. RS-2024-00509258 and No. RS-2024-00469482, Global AI Frontier Lab).
|
| 207 |
+
|
| 208 |
+
This research project has benefited from the Microsoft Accelerate Foundation Models Research (AFMR) grant program through which leading foundation models hosted by Microsoft Azure along with access to Azure credits were provided to conduct the research.
|
| 209 |
+
|
| 210 |
+
# References
|
| 211 |
+
|
| 212 |
+
Muhammad Farid Adilazuarda, Sagnik Mukherjee, Pradhyumna Lavania, Siddhant Singh, Alham Fikri Aji, Jacki O'Neill, Ashutosh Modi, and Monojit
|
| 213 |
+
|
| 214 |
+
Choudhury. 2024. Towards measuring and modeling culture in llms: A survey. arXiv preprint arXiv:2403.15412.
|
| 215 |
+
Dosovitskiy Alexey. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv: 2010.11929.
|
| 216 |
+
Na Min An, Sania Waheed, and James Thorne. 2024. Capturing the relationship between sentence triplets for llm and human-generated texts to enhance sentence embeddings. In *Findings of the Association for Computational Linguistics: EACL* 2024, pages 624-638.
|
| 217 |
+
Amith Ananthram, Elias Stengel-Eskin, Carl Vondrick, Mohit Bansal, and Kathleen McKeown. 2024. See it from my perspective: Diagnosing the western cultural bias of large vision-language models in image understanding. arXiv preprint arXiv:2406.11665.
|
| 218 |
+
Abhipsa Basu, R Venkatesh Babu, and Danish Pruthi. 2023. Inspecting the geographical representativeness of images from text-to-image models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 5136-5147.
|
| 219 |
+
James Betker, Gabriel Goh, Li Jing, Tim Brooks, Jianfeng Wang, Linjie Li, Long Ouyang, Juntang Zhuang, Joyce Lee, Yufei Guo, et al. 2023. Improving image generation with better captions. Computer Science. https://cdn.opennai.com/papers/dall-e-3.pdf, 2(3):8.
|
| 220 |
+
Abeba Birhane, Vinay Uday Prabhu, and Emmanuel Kahembwe. 2021. Multimodal datasets: misogyny, pornography, and malignant stereotypes. arXiv preprint arXiv:2110.01963.
|
| 221 |
+
Andreas Blattmann, Robin Rombach, Huan Ling, Tim Dockhorn, Seung Wook Kim, Sanja Fidler, and Karsten Kreis. 2023. Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22563-22575.
|
| 222 |
+
Yong Cao, Yova Kementchedjhieva, Ruixiang Cui, Antonia Karamolegkou, Li Zhou, Megan Dare, Lucia Donatelli, and Daniel Hershcovich. 2024a. Cultural adaptation of recipes. Transactions of the Association for Computational Linguistics, 12:80-99.
|
| 223 |
+
Yong Cao, Wenyan Li, Jiaang Li, Yifei Yuan, Antonia Karamolegkou, and Daniel Hershcovich. 2024b. Exploring visual culture awareness in gpt-4v: A comprehensive probing. arXiv preprint arXiv:2402.06015.
|
| 224 |
+
Mathilde Caron, Hugo Touvron, Ishan Misra, HervΓ© JΓ©gou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. 2021. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pages 9650-9660.
|
| 225 |
+
|
| 226 |
+
Yunzhuo Chen, Naveed Akhtar, Nur Al Hasan Haldar, and Ajmal Mian. 2023. On quantifying and improving realism of images generated with diffusion. arXiv preprint arXiv:2309.14756.
|
| 227 |
+
Qinyuan Cheng, Xiaogui Yang, Tianxiang Sun, Linyang Li, and Xipeng Qiu. 2023. Improving contrastive learning of sentence embeddings from AI feedback. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 11122-11138, Toronto, Canada. Association for Computational Linguistics.
|
| 228 |
+
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas MΓΌller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. 2024. Scaling rectified flow transformers for high-resolution image synthesis. In *Forty-first International Conference on Machine Learning*.
|
| 229 |
+
William Gaviria Rojas, Sudnya Diamos, Keertan Kini, David Kanter, Vijay Janapa Reddi, and Cody Coleman. 2022. The dollar street dataset: Images representing the geographic and socioeconomic diversity of the world. Advances in Neural Information Processing Systems, 35:12979-12990.
|
| 230 |
+
Joseph Henrich, Steven J Heine, and Ara Norenzayan. 2010. The weirdest people in the world? Behavioral and brain sciences, 33(2-3):61-83.
|
| 231 |
+
Jack Hessel, Ari Holtzman, Maxwell Forbes, Ronan Le Bras, and Yejin Choi. 2021. Clipscore: A reference-free evaluation metric for image captioning. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 7514-7528.
|
| 232 |
+
Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. 2017. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30.
|
| 233 |
+
Jing Huang and Diyi Yang. 2023. Culturally aware natural language inference. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 7591-7609.
|
| 234 |
+
Kaiyi Huang, Kaiyue Sun, Enze Xie, Zhenguo Li, and Xihui Liu. 2023. T2i-compbench: A comprehensive benchmark for open-world compositional text-to-image generation. Advances in Neural Information Processing Systems, 36:78723-78747.
|
| 235 |
+
Akshita Jha, Aida Mostafazadeh Davani, Chandan K Reddy, Shachi Dave, Vinodkumar Prabhakaran, and Sunipa Dev. 2023. SeeGULL: A stereotype benchmark with broad geo-cultural coverage leveraging generative models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9851-9870, Toronto, Canada. Association for Computational Linguistics.
|
| 236 |
+
Akshita Jha, Vinodkumar Prabhakaran, Remi Denton, Sarah Laszlo, Shachi Dave, Rida Qadri, Chandan
|
| 237 |
+
|
| 238 |
+
Reddy, and Sunipa Dev. 2024. Visage: A global-scale analysis of visual stereotypes in text-to-image generation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12333-12347.
|
| 239 |
+
Pratik Joshi, Sebastin Santy, Amar Budhiraja, Kalika Bali, and Monjit Choudhury. 2020. The state and fate of linguistic diversity and inclusion in the nlp world. arXiv preprint arXiv:2004.09095.
|
| 240 |
+
Nithish Kannen, Arif Ahmad, Vinodkumar Prabhakaran, Utsav Prabhu, Adji Bousso Dieng, Pushpak Bhattacharyya, Shachi Dave, et al. 2024. Beyond aesthetics: Cultural competence in text-to-image models. In The Thirty-eight Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
|
| 241 |
+
Simran Khanuja, Sathyanarayanan Ramamoorthy, Yueqi Song, and Graham Neubig. 2024. An image speaks a thousand words, but can everyone listen? on image transcreation for cultural relevance. arXiv preprint arXiv:2404.01247.
|
| 242 |
+
Black Forest Labs. 2023. Flux. https://github.com/black-forest-labs/flux.
|
| 243 |
+
Baiqi Li, Zhiqiu Lin, Deepak Pathak, Jiayao Li, Yixin Fei, Kewen Wu, Tiffany Ling, Xide Xia, Pengchuan Zhang, Graham Neubig, et al. 2024a. Genai-bench: Evaluating and improving compositional text-to-visual generation. arXiv preprint arXiv:2406.13743.
|
| 244 |
+
Huihan Li, Liwei Jiang, Jena D Hwang, Hyunwoo Kim, Sebastin Santiy, Taylor Sorensen, Bill Yuchen Lin, Nouha Dziri, Xiang Ren, and Yejin Choi. 2024b. Culture-gen: Revealing global cultural perception in language models through natural language prompting. arXiv preprint arXiv:2404.10199.
|
| 245 |
+
Wenyan Li, Xinyu Zhang, Jiaang Li, Qiwei Peng, Raphael Tang, Li Zhou, Weijia Zhang, Guimin Hu, Yifei Yuan, Anders SΓΈgaard, et al. 2024c. Foodieqa: A multimodal dataset for fine-grained understanding of chinese food culture. arXiv preprint arXiv:2406.11030.
|
| 246 |
+
Zhiqiu Lin, Deepak Pathak, Baiqi Li, Jiayao Li, Xide Xia, Graham Neubig, Pengchuan Zhang, and Deva Ramanan. 2025. Evaluating text-to-visual generation with image-to-text generation. In European Conference on Computer Vision, pages 366-384. Springer.
|
| 247 |
+
Bingshuai Liu, Longyue Wang, Chenyang Lyu, Yong Zhang, Jinsong Su, Shuming Shi, and Zhaopeng Tu. 2024a. On the cultural gap in text-to-image generation. In ECAI 2024, pages 930-937. IOS Press.
|
| 248 |
+
Chen Cecilia Liu, Iryna Gurevych, and Anna Korhonen. 2024b. Culturally aware and adapted nlp: A taxonomy and a survey of the state of the art. arXiv preprint arXiv:2406.03930.
|
| 249 |
+
|
| 250 |
+
Fangyu Liu, Emanuele Bugliarello, Edoardo Maria Ponti, Siva Reddy, Nigel Collier, and Desmond Eliott. 2021. Visually grounded reasoning across languages and cultures. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10467-10485.
|
| 251 |
+
Minghao Liu, Le Zhang, Yingjie Tian, Xiaochao Qu, Luoqi Liu, and Ting Liu. 2024c. Draw like an artist: Complex scene generation with diffusion model via composition, painting, and retouching. arXiv preprint arXiv:2408.13858.
|
| 252 |
+
Shudong Liu, Yiqiao Jin, Cheng Li, Derek F Wong, Qingsong Wen, Lichao Sun, Haipeng Chen, Xing Xie, and Jindong Wang. 2025. Culturevlm: Characterizing and improving cultural understanding of vision-language models for over 100 countries. arXiv preprint arXiv:2501.01282.
|
| 253 |
+
Zhixuan Liu, Youeun Shin, Beverley-Claire Okogwu, Youngsik Yun, Lia Coleman, Peter Schaldenbrand, Jihie Kim, and Jean Oh. 2023. Towards equitable representation in text-to-image synthesis models with the cross-cultural understanding benchmark (ccub) dataset. arXiv preprint arXiv:2301.12073.
|
| 254 |
+
Rada Mihalcea, Oana Ignat, Longju Bai, Angana Borah, Luis Chiruzzo, Zhijing Jin, Claude Kwizera, Joan Nwatu, Soujanya Poria, and Thamar Solorio. 2024. Why ai is weird and should not be this way: Towards ai for everyone, with everyone, by everyone. arXiv preprint arXiv:2410.16315.
|
| 255 |
+
Shentong Mo, Zhun Sun, and Chao Li. 2023. Multi-level contrastive learning for self-supervised vision transformers. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2778-2787.
|
| 256 |
+
Junho Myung, Nayeon Lee, Yi Zhou, Jiho Jin, Rifki Afina Putri, Dimosthenis Antypas, Hsuvas Borkakoty, Eunsu Kim, Carla Perez-Almendros, Abinew Ali Ayele, et al. 2024. Blend: A benchmark for llms on everyday knowledge in diverse cultures and languages. arXiv preprint arXiv:2406.09948.
|
| 257 |
+
Shravan Nayak, Kanishk Jain, Rabiul Awal, Siva Reddy, Sjoerd Steenkiste, Lisa Hendricks, Karolina Stanczak, and Aishwarya Agrawal. 2024. Benchmarking vision language models for cultural understanding. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 5769-5790.
|
| 258 |
+
Quan Nguyen and Adji Bousso Dieng. 2024. Quality-weighted vendi scores and their application to diverse experimental design. arXiv preprint arXiv:2405.02449.
|
| 259 |
+
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730-27744.
|
| 260 |
+
|
| 261 |
+
Dustin Podell, Zion English, Kyle Lacey, Andreas Blattmann, Tim Dockhorn, Jonas MΓΌller, Joe Penna, and Robin Rombach. 2023. Sdxl: Improving latent diffusion models for high-resolution image synthesis. arXiv preprint arXiv:2307.01952.
|
| 262 |
+
Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. 2022. Hierarchical text-conditional image generation with clip latents. arXiv preprint arXiv:2204.06125, 1(2):3.
|
| 263 |
+
David Romero, Chenyang Lyu, Haryo Akbarianto Wibowo, Teresa Lynn, Injy Hamed, Aditya Nanda Kishore, Aishik Mandal, Alina Dragonetti, Artem Abzaliev, Atnafu Lambebo Tonja, et al. 2024. Cvqa: Culturally-diverse multilingual visual question answering benchmark. arXiv preprint arXiv:2406.05967.
|
| 264 |
+
Nataniel Ruiz, Yuanzhen Li, Varun Jampani, Yael Pritch, Michael Rubinstein, and Kfir Aberman. 2023. Dreambooth: Fine tuning text-to-image diffusion models for subject-driven generation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 22500-22510.
|
| 265 |
+
Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. 2022. Photorealistic text-to-image diffusion models with deep language understanding. Advances in neural information processing systems, 35:36479-36494.
|
| 266 |
+
Tim Salimans, Ian Goodfellow, Wojciech Zaremba, Vicki Cheung, Alec Radford, and Xi Chen. 2016. Improved techniques for training gans. Advances in neural information processing systems, 29.
|
| 267 |
+
Christoph Schuhmann, Richard Vencu, Romain Beaumont, Robert Kaczmarczyk, Clayton Mullis, Aarush Katta, Theo Coombes, Jenia Jitsev, and Aran Komatsuzaki. 2021. Laion-400m: Open dataset of clip-filtered 400 million image-text pairs. arXiv preprint arXiv:2111.02114.
|
| 268 |
+
Makoto Shing and Kei Sawada. 2022. Japanese stable diffusion. https://github.com/rinnakk/japanese-stable-diffusion.
|
| 269 |
+
Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008-3021.
|
| 270 |
+
Mor Ventura, Eyal Ben-David, Anna Korhonen, and Roi Reichart. 2023. Navigating cultural chasms: Exploring and unlocking the cultural pov of text-to-image models. arXiv e-prints, pages arXiv-2310.
|
| 271 |
+
Yixin Wan, Jieyu Zhao, Aman Chadha, Nanyun Peng, and Kai-Wei Chang. 2023. Are personalized stochastic parrots more dangerous? evaluating persona biases in dialogue systems. arXiv preprint arXiv:2310.05280.
|
| 272 |
+
|
| 273 |
+
Zhizhong Wang, Lei Zhao, and Wei Xing. 2023. Style diffusion: Controllable disentangled style transfer via diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 7677-7689.
|
| 274 |
+
Zhou Wang, Alan C Bovik, Hamid R Sheikh, and Eero P Simoncelli. 2004. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600-612.
|
| 275 |
+
Xiaoshi Wu, Yiming Hao, Keqiang Sun, Yixiong Chen, Feng Zhu, Rui Zhao, and Hongsheng Li. 2023. Human preference score v2: A solid benchmark for evaluating human preferences of text-to-image synthesis. arXiv preprint arXiv:2306.09341.
|
| 276 |
+
Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. 2023. Imagereward: learning and evaluating human preferences for text-to-image generation. In Proceedings of the 37th International Conference on Neural Information Processing Systems, pages 15903-15935.
|
| 277 |
+
Youngsik Yun and Jihie Kim. 2024. Cic: A framework for culturally-aware image captioning. arXiv preprint arXiv:2402.05374.
|
| 278 |
+
Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. 2018. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 586-595.
|
| 279 |
+
Yuxin Zhang, Nisha Huang, Fan Tang, Haibin Huang, Chongyang Ma, Weiming Dong, and Changsheng Xu. 2023. Inversion-based style transfer with diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10146-10156.
|
| 280 |
+
Li Zhou, Antonia Karamolegkou, Wenyu Chen, and Daniel Hershcovich. 2023. Cultural compass: Predicting transfer learning success in offensive language detection with cultural features. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 12684β12702, Singapore. Association for Computational Linguistics.
|
| 281 |
+
|
| 282 |
+
# A Appendix
|
| 283 |
+
|
| 284 |
+
# A.1 Prompt Details
|
| 285 |
+
|
| 286 |
+
For each category, we used prompts in the following format:
|
| 287 |
+
|
| 288 |
+
1. "A panoramic view of {landmark} in {country}, realistic"
|
| 289 |
+
2. "An image of {clothes} from {country} clothing, realistic"
|
| 290 |
+
3. "An image of {food} from {country} cuisine, realistic"
|
| 291 |
+
|
| 292 |
+
# For example:
|
| 293 |
+
|
| 294 |
+
1. "A panoramic view of the Empire State Building in the United States, realistic"
|
| 295 |
+
2. "An image of Hanfu from Chinese clothing, realistic"
|
| 296 |
+
3. "An image of plov from Azerbaijani cuisine, realistic"
|
| 297 |
+
|
| 298 |
+
Additionally, we experimented with various prompting techniques, including GPT-4-generated detailed prompts. However, we observed that these prompts occasionally introduced hallucinations leading to inaccurate image generation. Through empirical analysis, we found that simpler prompts tended to provide more accurate and culturally relevant generations.
|
| 299 |
+
|
| 300 |
+
# A.2 Model Parameters
|
| 301 |
+
|
| 302 |
+
# A.2.1 Image Generation
|
| 303 |
+
|
| 304 |
+
The models used for image generation have the following parameter counts: Stable Diffusion XL (Podell et al., 2023) has 2.6 billion U-Net parameters, Stable Diffusion 3 Medium (Esser et al., 2024) has 2 billion parameters, and FLUX.1-dev (Labs, 2023) is a 12-billion-parameter rectified flow transformer.
|
| 305 |
+
|
| 306 |
+
# A.2.2 Model Training
|
| 307 |
+
|
| 308 |
+
For model training, we used ViT-Base (Alexey, 2020), which has 86 million parameters, 12 layers, a hidden size of 768, an MLP size of 3072, and 12 attention heads. We trained our contrastive learning model using ViT-Base for 10 epochs with a learning rate of $1 \times 10^{-4}$ , a batch size of 32, and an image resolution of $224 \times 224$ .
|
| 309 |
+
|
| 310 |
+
# A.3 Survey Question Details
|
| 311 |
+
|
| 312 |
+
This section provides additional details regarding the survey questions and instructions used during the study. Annotators received clear guidance to ensure consistent evaluations of both real and AI-generated images (Figure 6 left). Examples of spe
|
| 313 |
+
|
| 314 |
+
cific survey questions for cultural contexts, such as those related to Azerbaijan, are shown in Figure 6 right top and right bottom. The estimated time to complete the survey was approximately 1.5 to 2 hours. Table 3 presents the Fleiss' Kappa scores, reflecting annotator agreement across different diffusion models (Stable Diffusion XL, Stable Diffusion 3 Medium Diffusers, FLUX). The relatively low agreement scores may stem from the fact that annotators from the same country evaluated images generated by different models rather than assessing a shared set of images. Note that we showed a comparative analysis across three models in terms of image-description match (Section 4.1.2) and realism (Section 4.1.3).
|
| 315 |
+
|
| 316 |
+
<table><tr><td>Country</td><td>Fleiss' Kappa</td></tr><tr><td>Azerbaijan</td><td>0.14</td></tr><tr><td>China</td><td>0.13</td></tr><tr><td>Ethiopia</td><td>0.13</td></tr><tr><td>Indonesia</td><td>0.10</td></tr><tr><td>Mexico</td><td>0.10</td></tr><tr><td>Pakistan</td><td>0.11</td></tr><tr><td>South Korea</td><td>0.17</td></tr><tr><td>Spain</td><td>0.11</td></tr><tr><td>United Kingdom</td><td>0.12</td></tr><tr><td>United States</td><td>0.07</td></tr></table>
|
| 317 |
+
|
| 318 |
+
Table 3: Inter-annotator agreement across diffusion models, measured by Fleiss' Kappa, for each country.
|
| 319 |
+
|
| 320 |
+
# A.4 Survey Responses
|
| 321 |
+
|
| 322 |
+
We analyzed the scores for each image quadruple by averaging the scores from six questions, assigning the resulting value as the final score for each image. We then calculated the average of these final scores for each category and country, as shown in Figure 7.
|
| 323 |
+
|
| 324 |
+
The description match scores for Stable Diffusion XL and Stable-Diffusion 3 Medium Diffusers are presented in Figures 8 and 9 respectively.
|
| 325 |
+
|
| 326 |
+
# A.5 Survey Response Correlations
|
| 327 |
+
|
| 328 |
+
We calculated the correlations between the scores for Q1.1 (overall similarity) and Q1.2 for three distinct image categories: Architecture, Clothing, and Food. For each image, we first averaged the responses across the models to compute a unified score. These scatter plots (Figure 10, 11, 12) depict the relationship between the two survey questions. Similarly, the correlation results for the Architecture and Clothing categories for Q1.1 (over
|
| 329 |
+
|
| 330 |
+
# Azerbaijan 1
|
| 331 |
+
|
| 332 |
+
# Survey Instructions and Rating Scale
|
| 333 |
+
|
| 334 |
+
In this survey, you will assess the rightmost image compared to the first three images based on three categories: Image Similarity, Description Match, and Realism. Each category has specific definitions for the rating scale:
|
| 335 |
+
|
| 336 |
+
# 1. Image Similarity (in terms of the given aspects)
|
| 337 |
+
|
| 338 |
+
- Not at all (1): The images look entirely different, with almost no overlap.
|
| 339 |
+
- Slightly (2): The images share some elements, but differences are clear.
|
| 340 |
+
- Somewhat (3): The images have a fair amount of overlap, though differences are noticeable.
|
| 341 |
+
- Mostly (4): The images appear largely similar, with only minor differences.
|
| 342 |
+
- Completely (5): The images are nearly the same, with very few, if any, differences.
|
| 343 |
+
|
| 344 |
+
# 2.Description Match
|
| 345 |
+
|
| 346 |
+
- Not at all (1): The image does not match the description at all, with no recognizable overlap.
|
| 347 |
+
- Slightly (2): Only a few aspects of the description are present in the image, and it mostly doesn't align.
|
| 348 |
+
- Somewhat (3): There is some alignment between the description and the image, but several key elements are missing or differ.
|
| 349 |
+
- Mostly (4): The description mostly fits the image, with only minor details missing or slightly different.
|
| 350 |
+
|
| 351 |
+
- Completely (5): The description perfectly aligns with the image, capturing every detail accurately.
|
| 352 |
+
|
| 353 |
+
# 3. Realism
|
| 354 |
+
|
| 355 |
+
- Not at all (1): The image appears highly artificial or cartoonish, lacking any elements of realism.
|
| 356 |
+
- Slightly (2): The image has some realistic elements, but overall it seems unrealistic or exaggerated.
|
| 357 |
+
- Somewhat (3): The image is moderately realistic, though it contains noticeable discrepancies that detract from its overall believability.
|
| 358 |
+
- Mostly (4): The image is mostly realistic, with only minor details that may seem off or less believable.
|
| 359 |
+
- Completely (5): The image appears very realistic, closely resembling actual photographs or real-life scenes.
|
| 360 |
+
|
| 361 |
+
Note: Use these definitions consistently as you rate each question to ensure accuracy and reliability in your responses.
|
| 362 |
+
|
| 363 |
+
Next
|
| 364 |
+
|
| 365 |
+
Page 1 of 17
|
| 366 |
+
|
| 367 |
+
Clear form
|
| 368 |
+
|
| 369 |
+

|
| 370 |
+
Image 2
|
| 371 |
+
|
| 372 |
+
How similar do you think the rightmost image is to the first three images in terms of the following aspects?
|
| 373 |
+
|
| 374 |
+
<table><tr><td></td><td>Not at all</td><td>Slightly</td><td>Somewhat</td><td>Mostly</td><td>Completely</td></tr><tr><td>Overall similarity: The overall resemblance between the two images.</td><td>β</td><td>β</td><td>β</td><td>β</td><td>β</td></tr><tr><td>Shapes: The shapes of the structures in the images.</td><td>β</td><td>β</td><td>β</td><td>β</td><td>β</td></tr><tr><td>Materials/Textures: The materials or textures used in the architecture (e.g., glass, concrete).</td><td>β</td><td>β</td><td>β</td><td>β</td><td>β</td></tr></table>
|
| 375 |
+
|
| 376 |
+
Background/Surroundings:
|
| 377 |
+
|
| 378 |
+
The surroundings,
|
| 379 |
+
|
| 380 |
+
including elements like
|
| 381 |
+
|
| 382 |
+
natural features, in context, or other.
|
| 383 |
+
|
| 384 |
+
context, or other background details.
|
| 385 |
+
|
| 386 |
+
How well does the description match the content of the rightmost image? *
|
| 387 |
+
|
| 388 |
+
"A panoramic view of the Palace of Shaki Khans in Azerbaijan, realistic"
|
| 389 |
+
|
| 390 |
+

|
| 391 |
+
|
| 392 |
+

|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
|
| 396 |
+

|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
|
| 400 |
+

|
| 401 |
+
|
| 402 |
+

|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
|
| 406 |
+

|
| 407 |
+
|
| 408 |
+

|
| 409 |
+
|
| 410 |
+
How realistic does the rightmost image appear? *
|
| 411 |
+
|
| 412 |
+

|
| 413 |
+
|
| 414 |
+

|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
Figure 6: Survey setup illustrating instructions, an image comparison task, and rating questions. The left image shows the survey instructions outlining the tasks and evaluation criteria, while the right side presents examples of the survey questions.
|
| 424 |
+
|
| 425 |
+

|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
|
| 429 |
+

|
| 430 |
+
|
| 431 |
+

|
| 432 |
+
|
| 433 |
+
all similarity) and Q2 (description match) are presented in Figures 13 and 14, respectively. Moreover, we present the correlation scores for all three categories for Q2 (description match) and Q3 (realism) in Figures 15, 16, and 17.
|
| 434 |
+
|
| 435 |
+
# A.6 Common Failure Patterns
|
| 436 |
+
|
| 437 |
+
We provide a brief analysis of common failure patterns observed in the generated images. While our primary focus is on evaluating cultural accuracy, understanding these recurring errors offers insight into model limitations:
|
| 438 |
+
|
| 439 |
+
- Azerbaijani Clothing: Models often produced garments resembling Central Asian (Uzbek, Kyrgyz) attire rather than accurately reflecting Azerbaijani traditional clothing.
|
| 440 |
+
- Ethiopian Architecture: Generated outputs frequently featured elements drawn from other African regions instead of distinctively
|
| 441 |
+
|
| 442 |
+
Ethiopian structures, such as the rock-hewn churches of Lalibela.
|
| 443 |
+
|
| 444 |
+
- Korean Clothing: Models sometimes confused Korean traditional clothing with Chinese hanfu or Japanese kimono, reflecting difficulty in distinguishing nuanced East Asian cultural features.
|
| 445 |
+
- Pakistani Food: The models frequently generated Indian dishes such as dosa or idli when prompted for Pakistani cuisine.
|
| 446 |
+
|
| 447 |
+

|
| 448 |
+
Figure 7: Average mean scores across categories for the outputs of three models: Stable-Diffusion XL (left), Stable-Diffusion 3 Medium Diffusers (center), and FLUX (right). The bar plots represent the average scores for Architecture, Clothing, and Food categories.
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
|
| 452 |
+

|
| 453 |
+
|
| 454 |
+

|
| 455 |
+
Figure 8: Average description match scores for the Stable-Diffusion XL model's outputs across three categories: Architecture (left), Clothing (center), and Food (right). Each bar plot represents the average match scores for countries within the respective category, ranked from highest to lowest. Error bars indicate the standard error of the mean.
|
| 456 |
+
|
| 457 |
+

|
| 458 |
+
|
| 459 |
+

|
| 460 |
+
|
| 461 |
+

|
| 462 |
+
Figure 9: Average description match scores for the Stable-Diffusion 3 Medium Diffusers model's outputs across three categories: Architecture (left), Clothing (center), and Food (right). Each bar plot represents the average match scores for countries within the respective category, ranked from highest to lowest. Error bars indicate the standard error of the mean.
|
| 463 |
+
|
| 464 |
+

|
| 465 |
+
|
| 466 |
+

|
| 467 |
+
|
| 468 |
+

|
| 469 |
+
Figure 10: Scatter plots of Q1.1 (horizontal axis) vs. Q1.2 (vertical axis) scores for Architecture images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ . Dots represent individual image averages.
|
| 470 |
+
|
| 471 |
+

|
| 472 |
+
Figure 11: Scatter plots of Q1.1 (horizontal axis) vs. Q1.2 (vertical axis) scores for Clothing images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 473 |
+
|
| 474 |
+

|
| 475 |
+
Figure 12: Scatter plots of Q1.1 (horizontal axis) vs. Q1.2 (vertical axis) scores for Food images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
Figure 13: Scatter plots of Q1.1 (horizontal axis) vs. Q2 (vertical axis) scores for Architecture images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 479 |
+
|
| 480 |
+

|
| 481 |
+
Figure 14: Scatter plots of Q1.1 (horizontal axis) vs. Q2 (vertical axis) scores for Clothing images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 482 |
+
|
| 483 |
+

|
| 484 |
+
Figure 15: Scatter plots of Q2 (horizontal axis) vs. Q3 (vertical axis) scores for Architecture images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 485 |
+
|
| 486 |
+

|
| 487 |
+
Figure 16: Scatter plots of Q2 (horizontal axis) vs. Q3 (vertical axis) scores for Clothing images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
| 488 |
+
|
| 489 |
+

|
| 490 |
+
Figure 17: Scatter plots of Q2 (horizontal axis) vs. Q3 (vertical axis) scores for Food images, categorized by country. Each subplot displays the country name and corresponding Pearson correlation coefficient $r$ .
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95f39d39e46a4dcc72a49c9772bfcf105c71b66cb2c02303de061150fef7ac09
|
| 3 |
+
size 1295604
|
2025/Diffusion Models Through a Global Lens_ Are They Culturally Inclusive_/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2025/Digest the Knowledge_ Large Language Models empowered Message Passing for Knowledge Graph Question Answering/4cf3650c-9543-44fe-9d09-6f2d898d2799_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|