Add Batch c08ac11f-860b-4fb8-8521-d5d61834362f data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_content_list.json +1880 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_model.json +0 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_origin.pdf +3 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/full.md +317 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/images.zip +3 -0
- 2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/layout.json +0 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_content_list.json +0 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_model.json +0 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_origin.pdf +3 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/full.md +536 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/images.zip +3 -0
- 2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/layout.json +0 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_content_list.json +0 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_model.json +0 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_origin.pdf +3 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/full.md +416 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/images.zip +3 -0
- 2024/Curriculum Consistency Learning for Conditional Sentence Generation/layout.json +0 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_content_list.json +2190 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_model.json +0 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_origin.pdf +3 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/full.md +443 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/images.zip +3 -0
- 2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/layout.json +0 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_content_list.json +0 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_model.json +0 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_origin.pdf +3 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/full.md +379 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/images.zip +3 -0
- 2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/layout.json +0 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_content_list.json +0 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_model.json +0 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_origin.pdf +3 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/full.md +0 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/images.zip +3 -0
- 2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/layout.json +0 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_content_list.json +0 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_model.json +0 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_origin.pdf +3 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/full.md +585 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/images.zip +3 -0
- 2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/layout.json +0 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_content_list.json +0 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_model.json +0 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_origin.pdf +3 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/full.md +504 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/images.zip +3 -0
- 2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/layout.json +0 -0
- 2024/DC-Instruct_ An Effective Framework for Generative Multi-intent Spoken Language Understanding/8772c6a2-28f1-4ba3-98cc-c91ae987faf8_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -4273,3 +4273,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 4273 |
2024/Cross-domain[[:space:]]NER[[:space:]]with[[:space:]]Generated[[:space:]]Task-Oriented[[:space:]]Knowledge_[[:space:]]An[[:space:]]Empirical[[:space:]]Study[[:space:]]from[[:space:]]Information[[:space:]]Density[[:space:]]Perspective/da26c2c2-9122-4085-8f4b-c956f97ae193_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4274 |
2024/Cross-lingual[[:space:]]Back-Parsing_[[:space:]]Utterance[[:space:]]Synthesis[[:space:]]from[[:space:]]Meaning[[:space:]]Representation[[:space:]]for[[:space:]]Zero-Resource[[:space:]]Semantic[[:space:]]Parsing/6b69a496-087c-4285-9d28-43eda71d6907_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4275 |
2024/Cross-lingual[[:space:]]Transfer[[:space:]]for[[:space:]]Automatic[[:space:]]Question[[:space:]]Generation[[:space:]]by[[:space:]]Learning[[:space:]]Interrogative[[:space:]]Structures[[:space:]]in[[:space:]]Target[[:space:]]Languages/3e7615d4-7742-4ed5-9701-9db34c76cc2a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4273 |
2024/Cross-domain[[:space:]]NER[[:space:]]with[[:space:]]Generated[[:space:]]Task-Oriented[[:space:]]Knowledge_[[:space:]]An[[:space:]]Empirical[[:space:]]Study[[:space:]]from[[:space:]]Information[[:space:]]Density[[:space:]]Perspective/da26c2c2-9122-4085-8f4b-c956f97ae193_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4274 |
2024/Cross-lingual[[:space:]]Back-Parsing_[[:space:]]Utterance[[:space:]]Synthesis[[:space:]]from[[:space:]]Meaning[[:space:]]Representation[[:space:]]for[[:space:]]Zero-Resource[[:space:]]Semantic[[:space:]]Parsing/6b69a496-087c-4285-9d28-43eda71d6907_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4275 |
2024/Cross-lingual[[:space:]]Transfer[[:space:]]for[[:space:]]Automatic[[:space:]]Question[[:space:]]Generation[[:space:]]by[[:space:]]Learning[[:space:]]Interrogative[[:space:]]Structures[[:space:]]in[[:space:]]Target[[:space:]]Languages/3e7615d4-7742-4ed5-9701-9db34c76cc2a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4276 |
+
2024/CryptoTrade_[[:space:]]A[[:space:]]Reflective[[:space:]]LLM-based[[:space:]]Agent[[:space:]]to[[:space:]]Guide[[:space:]]Zero-shot[[:space:]]Cryptocurrency[[:space:]]Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4277 |
+
2024/Cultural[[:space:]]Conditioning[[:space:]]or[[:space:]]Placebo_[[:space:]]On[[:space:]]the[[:space:]]Effectiveness[[:space:]]of[[:space:]]Socio-Demographic[[:space:]]Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4278 |
+
2024/Curriculum[[:space:]]Consistency[[:space:]]Learning[[:space:]]for[[:space:]]Conditional[[:space:]]Sentence[[:space:]]Generation/adbac3ec-871b-4e42-b542-9c00987536f3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4279 |
+
2024/D2R_[[:space:]]Dual-Branch[[:space:]]Dynamic[[:space:]]Routing[[:space:]]Network[[:space:]]for[[:space:]]Multimodal[[:space:]]Sentiment[[:space:]]Detection/12a8380e-9771-4902-9865-7b459754baa8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4280 |
+
2024/D3CODE_[[:space:]]Disentangling[[:space:]]Disagreements[[:space:]]in[[:space:]]Data[[:space:]]across[[:space:]]Cultures[[:space:]]on[[:space:]]Offensiveness[[:space:]]Detection[[:space:]]and[[:space:]]Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4281 |
+
2024/DA-Code_[[:space:]]Agent[[:space:]]Data[[:space:]]Science[[:space:]]Code[[:space:]]Generation[[:space:]]Benchmark[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4282 |
+
2024/DA3_[[:space:]]A[[:space:]]Distribution-Aware[[:space:]]Adversarial[[:space:]]Attack[[:space:]]against[[:space:]]Language[[:space:]]Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4283 |
+
2024/DAMRO_[[:space:]]Dive[[:space:]]into[[:space:]]the[[:space:]]Attention[[:space:]]Mechanism[[:space:]]of[[:space:]]LVLM[[:space:]]to[[:space:]]Reduce[[:space:]]Object[[:space:]]Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4284 |
+
2024/DC-Instruct_[[:space:]]An[[:space:]]Effective[[:space:]]Framework[[:space:]]for[[:space:]]Generative[[:space:]]Multi-intent[[:space:]]Spoken[[:space:]]Language[[:space:]]Understanding/8772c6a2-28f1-4ba3-98cc-c91ae987faf8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4285 |
+
2024/DECOR_[[:space:]]Improving[[:space:]]Coherence[[:space:]]in[[:space:]]L2[[:space:]]English[[:space:]]Writing[[:space:]]with[[:space:]]a[[:space:]]Novel[[:space:]]Benchmark[[:space:]]for[[:space:]]Incoherence[[:space:]]Detection,[[:space:]]Reasoning,[[:space:]]and[[:space:]]Rewriting/475534ac-2518-425a-baee-8c99ed902707_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4286 |
+
2024/DEFT-UCS_[[:space:]]Data[[:space:]]Efficient[[:space:]]Fine-Tuning[[:space:]]for[[:space:]]Pre-Trained[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Unsupervised[[:space:]]Core-Set[[:space:]]Selection[[:space:]]for[[:space:]]Text-Editing/f1b51a6f-df6c-413c-9ac9-349461592b4e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4287 |
+
2024/DEM_[[:space:]]Distribution[[:space:]]Edited[[:space:]]Model[[:space:]]for[[:space:]]Training[[:space:]]with[[:space:]]Mixed[[:space:]]Data[[:space:]]Distributions/83b11874-26ce-41f3-bd9b-277adcb09cef_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4288 |
+
2024/DGLF_[[:space:]]A[[:space:]]Dual[[:space:]]Graph-based[[:space:]]Learning[[:space:]]Framework[[:space:]]for[[:space:]]Multi-modal[[:space:]]Sarcasm[[:space:]]Detection/90c3e0ec-d727-4c22-ba7e-71429f5af4ef_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4289 |
+
2024/DISCERN_[[:space:]]Decoding[[:space:]]Systematic[[:space:]]Errors[[:space:]]in[[:space:]]Natural[[:space:]]Language[[:space:]]for[[:space:]]Text[[:space:]]Classifiers/ce2bffe9-cc43-4d2c-98c5-8be548a4dac9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4290 |
+
2024/DKEC_[[:space:]]Domain[[:space:]]Knowledge[[:space:]]Enhanced[[:space:]]Multi-Label[[:space:]]Classification[[:space:]]for[[:space:]]Diagnosis[[:space:]]Prediction/14e4e714-8f37-491c-afea-7ec235a4c8b9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4291 |
+
2024/DVD_[[:space:]]Dynamic[[:space:]]Contrastive[[:space:]]Decoding[[:space:]]for[[:space:]]Knowledge[[:space:]]Amplification[[:space:]]in[[:space:]]Multi-Document[[:space:]]Question[[:space:]]Answering/3db9ea46-d929-42cb-871c-8e1c86e1a476_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4292 |
+
2024/Dancing[[:space:]]in[[:space:]]Chains_[[:space:]]Reconciling[[:space:]]Instruction[[:space:]]Following[[:space:]]and[[:space:]]Faithfulness[[:space:]]in[[:space:]]Language[[:space:]]Models/4ca7e305-197a-44ad-a796-9c98711e93e9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4293 |
+
2024/Data[[:space:]]Advisor_[[:space:]]Dynamic[[:space:]]Data[[:space:]]Curation[[:space:]]for[[:space:]]Safety[[:space:]]Alignment[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/8a423043-3a53-427c-a8ed-e254bbb27910_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4294 |
+
2024/Data[[:space:]]Contamination[[:space:]]Can[[:space:]]Cross[[:space:]]Language[[:space:]]Barriers/efe6dc13-b91d-48bd-8ec1-90d00c419f2d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4295 |
+
2024/Data,[[:space:]]Data[[:space:]]Everywhere_[[:space:]]A[[:space:]]Guide[[:space:]]for[[:space:]]Pretraining[[:space:]]Dataset[[:space:]]Construction/e1013827-4389-482d-be8e-5835f9f11648_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4296 |
+
2024/DataNarrative_[[:space:]]Automated[[:space:]]Data-Driven[[:space:]]Storytelling[[:space:]]with[[:space:]]Visualizations[[:space:]]and[[:space:]]Texts/4cef4951-0245-47dd-ad08-94658103247c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4297 |
+
2024/DataTales_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Real-World[[:space:]]Intelligent[[:space:]]Data[[:space:]]Narration/660c0134-6d3f-44f3-8adb-d42f26f1835f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4298 |
+
2024/De-Identification[[:space:]]of[[:space:]]Sensitive[[:space:]]Personal[[:space:]]Data[[:space:]]in[[:space:]]Datasets[[:space:]]Derived[[:space:]]from[[:space:]]IIT-CDIP/dfb1da32-27f8-404d-9376-7f99c0d4560f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4299 |
+
2024/DeMPT_[[:space:]]Decoding-enhanced[[:space:]]Multi-phase[[:space:]]Prompt[[:space:]]Tuning[[:space:]]for[[:space:]]Making[[:space:]]LLMs[[:space:]]Be[[:space:]]Better[[:space:]]Context-aware[[:space:]]Translators/188b68d1-75a3-4141-8c40-4ec4600189f7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4300 |
+
2024/Deciphering[[:space:]]Cognitive[[:space:]]Distortions[[:space:]]in[[:space:]]Patient-Doctor[[:space:]]Mental[[:space:]]Health[[:space:]]Conversations_[[:space:]]A[[:space:]]Multimodal[[:space:]]LLM-Based[[:space:]]Detection[[:space:]]and[[:space:]]Reasoning[[:space:]]Framework/9da0de0f-7f72-47b1-b4b1-6f61006dfd76_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4301 |
+
2024/Deciphering[[:space:]]Rumors_[[:space:]]A[[:space:]]Multi-Task[[:space:]]Learning[[:space:]]Approach[[:space:]]with[[:space:]]Intent-aware[[:space:]]Hierarchical[[:space:]]Contrastive[[:space:]]Learning/a4a0c39c-1018-4173-9eec-c69f94bffcdd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4302 |
+
2024/Deciphering[[:space:]]the[[:space:]]Interplay[[:space:]]of[[:space:]]Parametric[[:space:]]and[[:space:]]Non-parametric[[:space:]]Memory[[:space:]]in[[:space:]]Retrieval-augmented[[:space:]]Language[[:space:]]Models/d6065bb0-0740-485f-82aa-d5ab4ad91eca_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4303 |
+
2024/Decoding[[:space:]]Matters_[[:space:]]Addressing[[:space:]]Amplification[[:space:]]Bias[[:space:]]and[[:space:]]Homogeneity[[:space:]]Issue[[:space:]]in[[:space:]]Recommendations[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/2acf1fcb-0259-4dbe-b862-705f1a88a285_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4304 |
+
2024/Decoding[[:space:]]Susceptibility_[[:space:]]Modeling[[:space:]]Misbelief[[:space:]]to[[:space:]]Misinformation[[:space:]]Through[[:space:]]a[[:space:]]Computational[[:space:]]Approach/9bb65cb7-45a7-4c39-bfad-40d4168c2b07_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4305 |
+
2024/Decoding[[:space:]]the[[:space:]]Echoes[[:space:]]of[[:space:]]Vision[[:space:]]from[[:space:]]fMRI_[[:space:]]Memory[[:space:]]Disentangling[[:space:]]for[[:space:]]Past[[:space:]]Semantic[[:space:]]Information/7f07d9d1-c15c-4358-a028-116d085d2fca_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4306 |
+
2024/Decoding[[:space:]]with[[:space:]]Limited[[:space:]]Teacher[[:space:]]Supervision[[:space:]]Requires[[:space:]]Understanding[[:space:]]When[[:space:]]to[[:space:]]Trust[[:space:]]the[[:space:]]Teacher/89f66473-43ae-4b82-be44-6afd0f0fcdd1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4307 |
+
2024/Decompose[[:space:]]and[[:space:]]Compare[[:space:]]Consistency_[[:space:]]Measuring[[:space:]]VLMs’[[:space:]]Answer[[:space:]]Reliability[[:space:]]via[[:space:]]Task-Decomposition[[:space:]]Consistency[[:space:]]Comparison/9825ebf9-d6e0-4b2c-8371-e8a1a9f5711d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4308 |
+
2024/DecorateLM_[[:space:]]Data[[:space:]]Engineering[[:space:]]through[[:space:]]Corpus[[:space:]]Rating,[[:space:]]Tagging,[[:space:]]and[[:space:]]Editing[[:space:]]with[[:space:]]Language[[:space:]]Models/33570b6e-aea4-45d9-a3c7-b07075358243_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4309 |
+
2024/Defending[[:space:]]Against[[:space:]]Social[[:space:]]Engineering[[:space:]]Attacks[[:space:]]in[[:space:]]the[[:space:]]Age[[:space:]]of[[:space:]]LLMs/b8e663cb-e2be-4237-b0b7-b0262e330885_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4310 |
+
2024/Defending[[:space:]]Jailbreak[[:space:]]Prompts[[:space:]]via[[:space:]]In-Context[[:space:]]Adversarial[[:space:]]Game/8a62cafe-5041-4971-8a2b-d8b2da7e41e2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4311 |
+
2024/Defining[[:space:]]Knowledge_[[:space:]]Bridging[[:space:]]Epistemology[[:space:]]and[[:space:]]Large[[:space:]]Language[[:space:]]Models/7bee9281-fc4c-47d7-bd8b-d97f6d4fa90b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4312 |
+
2024/Delving[[:space:]]into[[:space:]]Qualitative[[:space:]]Implications[[:space:]]of[[:space:]]Synthetic[[:space:]]Data[[:space:]]for[[:space:]]Hate[[:space:]]Speech[[:space:]]Detection/5aab7bc8-2d45-43c5-bd7e-c4f46cffc8fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4313 |
+
2024/Democratizing[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Personalized[[:space:]]Parameter-Efficient[[:space:]]Fine-tuning/72cf3f40-203e-4a14-9c8e-fd0470951deb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4314 |
+
2024/Demystifying[[:space:]]Verbatim[[:space:]]Memorization[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/7f4daf7a-d14a-4059-9fc1-f4b873cee217_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4315 |
+
2024/Dense[[:space:]]X[[:space:]]Retrieval_[[:space:]]What[[:space:]]Retrieval[[:space:]]Granularity[[:space:]]Should[[:space:]]We[[:space:]]Use_/996363d6-69fa-427b-bad3-9682a94b2613_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4316 |
+
2024/Dependency[[:space:]]Graph[[:space:]]Parsing[[:space:]]as[[:space:]]Sequence[[:space:]]Labeling/8f88a077-194d-43c2-ab27-316f701d2d8c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4317 |
+
2024/Detecting[[:space:]]Errors[[:space:]]through[[:space:]]Ensembling[[:space:]]Prompts[[:space:]](DEEP)_[[:space:]]An[[:space:]]End-to-End[[:space:]]LLM[[:space:]]Framework[[:space:]]for[[:space:]]Detecting[[:space:]]Factual[[:space:]]Errors/c64ec64b-be19-4214-8b3c-185f4eaa560b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4318 |
+
2024/Detecting[[:space:]]Online[[:space:]]Community[[:space:]]Practices[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models_[[:space:]]A[[:space:]]Case[[:space:]]Study[[:space:]]of[[:space:]]Pro-Ukrainian[[:space:]]Publics[[:space:]]on[[:space:]]Twitter/ba64487b-af9e-4fba-84e1-cf1f047bcca8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4319 |
+
2024/Detecting[[:space:]]Subtle[[:space:]]Differences[[:space:]]between[[:space:]]Human[[:space:]]and[[:space:]]Model[[:space:]]Languages[[:space:]]Using[[:space:]]Spectrum[[:space:]]of[[:space:]]Relative[[:space:]]Likelihood/c498c205-cffc-4056-aa64-1a47116e9f10_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4320 |
+
2024/Detection[[:space:]]and[[:space:]]Measurement[[:space:]]of[[:space:]]Syntactic[[:space:]]Templates[[:space:]]in[[:space:]]Generated[[:space:]]Text/28e0968f-9936-4d95-b20f-7a5470e09158_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4321 |
+
2024/DetoxLLM_[[:space:]]A[[:space:]]Framework[[:space:]]for[[:space:]]Detoxification[[:space:]]with[[:space:]]Explanations/c34365ea-b38c-4216-91d0-60338dd83718_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4322 |
+
2024/Development[[:space:]]of[[:space:]]Cognitive[[:space:]]Intelligence[[:space:]]in[[:space:]]Pre-trained[[:space:]]Language[[:space:]]Models/631a33af-206b-47be-8ba8-64d36074b401_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4323 |
+
2024/DiVERT_[[:space:]]Distractor[[:space:]]Generation[[:space:]]with[[:space:]]Variational[[:space:]]Errors[[:space:]]Represented[[:space:]]as[[:space:]]Text[[:space:]]for[[:space:]]Math[[:space:]]Multiple-choice[[:space:]]Questions/bf5daa91-7cdd-42e0-97e7-7f88b737665c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4324 |
+
2024/Dialog2Flow_[[:space:]]Pre-training[[:space:]]Soft-Contrastive[[:space:]]Action-Driven[[:space:]]Sentence[[:space:]]Embeddings[[:space:]]for[[:space:]]Automatic[[:space:]]Dialog[[:space:]]Flow[[:space:]]Extraction/5cc105f3-5434-431f-893e-9d3f089f10a0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4325 |
+
2024/Direct[[:space:]]Multi-Turn[[:space:]]Preference[[:space:]]Optimization[[:space:]]for[[:space:]]Language[[:space:]]Agents/bb8f042b-6740-407d-9a91-1d55d0a343f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4326 |
+
2024/Discovering[[:space:]]Biases[[:space:]]in[[:space:]]Information[[:space:]]Retrieval[[:space:]]Models[[:space:]]Using[[:space:]]Relevance[[:space:]]Thesaurus[[:space:]]as[[:space:]]Global[[:space:]]Explanation/e93d2280-eb0a-4922-a48e-56548b9e2a0c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4327 |
+
2024/Discovering[[:space:]]Knowledge-Critical[[:space:]]Subnetworks[[:space:]]in[[:space:]]Pretrained[[:space:]]Language[[:space:]]Models/9630365d-7547-4bc3-8123-b6014d172b95_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4328 |
+
2024/Dissecting[[:space:]]Fine-Tuning[[:space:]]Unlearning[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/2b7c060a-fdab-43dd-8ed2-cbbba1c58b72_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4329 |
+
2024/Distilling[[:space:]]Knowledge[[:space:]]from[[:space:]]Text-to-Image[[:space:]]Generative[[:space:]]Models[[:space:]]Improves[[:space:]]Visio-Linguistic[[:space:]]Reasoning[[:space:]]in[[:space:]]CLIP/47ea1976-fa47-49e9-a396-fd350669626a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4330 |
+
2024/Distract[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Automatic[[:space:]]Jailbreak[[:space:]]Attack/1e0a6a21-7d9a-4057-8217-8d30cb3998bd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4331 |
+
2024/Distractor[[:space:]]Generation[[:space:]]in[[:space:]]Multiple-Choice[[:space:]]Tasks_[[:space:]]A[[:space:]]Survey[[:space:]]of[[:space:]]Methods,[[:space:]]Datasets,[[:space:]]and[[:space:]]Evaluation/f9f98edf-2436-4c16-8fbc-190d29786fed_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4332 |
+
2024/Distributional[[:space:]]Properties[[:space:]]of[[:space:]]Subword[[:space:]]Regularization/ca80875e-48d5-4083-aec6-80d760948189_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4333 |
+
2024/Diversity[[:space:]]Over[[:space:]]Size_[[:space:]]On[[:space:]]the[[:space:]]Effect[[:space:]]of[[:space:]]Sample[[:space:]]and[[:space:]]Topic[[:space:]]Sizes[[:space:]]for[[:space:]]Topic-Dependent[[:space:]]Argument[[:space:]]Mining[[:space:]]Datasets/066c069a-d63f-4fc4-8bc6-9282578ba50e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4334 |
+
2024/Divide[[:space:]]and[[:space:]]Conquer[[:space:]]Radiology[[:space:]]Report[[:space:]]Generation[[:space:]]via[[:space:]]Observation[[:space:]]Level[[:space:]]Fine-grained[[:space:]]Pretraining[[:space:]]and[[:space:]]Prompt[[:space:]]Tuning/20dbbd20-c1be-4f6c-b65a-0252e56914a6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4335 |
+
2024/Do[[:space:]]LLMs[[:space:]]Know[[:space:]]to[[:space:]]Respect[[:space:]]Copyright[[:space:]]Notice_/6cdf52a6-1682-4f6b-8072-ccad05f1e437_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4336 |
+
2024/Do[[:space:]]LLMs[[:space:]]Overcome[[:space:]]Shortcut[[:space:]]Learning_[[:space:]]An[[:space:]]Evaluation[[:space:]]of[[:space:]]Shortcut[[:space:]]Challenges[[:space:]]in[[:space:]]Large[[:space:]]Language[[:space:]]Models/f8fc8e4d-e5d1-466e-a22a-aff79484436a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4337 |
+
2024/Do[[:space:]]LLMs[[:space:]]Plan[[:space:]]Like[[:space:]]Human[[:space:]]Writers_[[:space:]]Comparing[[:space:]]Journalist[[:space:]]Coverage[[:space:]]of[[:space:]]Press[[:space:]]Releases[[:space:]]with[[:space:]]LLMs/0f667f31-33b6-4dae-8dfb-b8348d3ac068_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4338 |
+
2024/Do[[:space:]]LLMs[[:space:]]learn[[:space:]]a[[:space:]]true[[:space:]]syntactic[[:space:]]universal_/f5fc10a0-4437-48a5-a928-a40b0fd09925_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4339 |
+
2024/Do[[:space:]]LLMs[[:space:]]suffer[[:space:]]from[[:space:]]Multi-Party[[:space:]]Hangover_[[:space:]]A[[:space:]]Diagnostic[[:space:]]Approach[[:space:]]to[[:space:]]Addressee[[:space:]]Recognition[[:space:]]and[[:space:]]Response[[:space:]]Selection[[:space:]]in[[:space:]]Conversations/c1521118-29fa-404d-9401-2d2f4c2556df_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_content_list.json
ADDED
|
@@ -0,0 +1,1880 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "CryptoTrade: A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
213,
|
| 8 |
+
87,
|
| 9 |
+
781,
|
| 10 |
+
129
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yuan Li,\\* Bingqiao Luo,\\* Qian Wang,\\* Nuo Chen, Xu Liu, Bingsheng He \nNational University of Singapore",
|
| 17 |
+
"bbox": [
|
| 18 |
+
198,
|
| 19 |
+
142,
|
| 20 |
+
803,
|
| 21 |
+
175
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "li.yuan@u.nus.edu,luo.bingqiao@u.nus.edu,qiansoc@nus.edu.sg",
|
| 28 |
+
"bbox": [
|
| 29 |
+
144,
|
| 30 |
+
177,
|
| 31 |
+
855,
|
| 32 |
+
193
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "nuochen@comp.nus.edu.sg, liuxu@comp.nus.edu.sg",
|
| 39 |
+
"bbox": [
|
| 40 |
+
228,
|
| 41 |
+
193,
|
| 42 |
+
771,
|
| 43 |
+
209
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "hebs@comp.nus.edu.sg",
|
| 50 |
+
"bbox": [
|
| 51 |
+
378,
|
| 52 |
+
211,
|
| 53 |
+
623,
|
| 54 |
+
225
|
| 55 |
+
],
|
| 56 |
+
"page_idx": 0
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"type": "text",
|
| 60 |
+
"text": "Abstract",
|
| 61 |
+
"text_level": 1,
|
| 62 |
+
"bbox": [
|
| 63 |
+
260,
|
| 64 |
+
250,
|
| 65 |
+
339,
|
| 66 |
+
265
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "The utilization of Large Language Models (LLMs) in financial trading has primarily been concentrated within the stock market, aiding in economic and financial decisions. Yet, the unique opportunities presented by the cryptocurrency market, noted for its on-chain data's transparency and the critical influence of off-chain signals like news, remain largely untapped by LLMs. This work aims to bridge the gap by developing an LLM-based trading agent, CryptoTrade, which uniquely combines the analysis of on-chain and off-chain data. This approach leverages the transparency and immutability of on-chain data, as well as the timeliness and influence of off-chain signals, providing a comprehensive overview of the cryptocurrency market. CryptoTrade incorporates a reflective mechanism specifically engineered to refine its daily trading decisions by analyzing the outcomes of prior trading decisions. This research makes two significant contributions. Firstly, it broadens the applicability of LLMs to the domain of cryptocurrency trading. Secondly, it establishes a benchmark for cryptocurrency trading strategies. Through extensive experiments, CryptoTrade has demonstrated superior performance in maximizing returns compared to time-series baselines, but not compared to traditional trading signals, across various cryptocurrencies and market conditions. Our code and data are available at https://github.com/Xtra-Computing/CryptoTrade.",
|
| 73 |
+
"bbox": [
|
| 74 |
+
144,
|
| 75 |
+
278,
|
| 76 |
+
460,
|
| 77 |
+
746
|
| 78 |
+
],
|
| 79 |
+
"page_idx": 0
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"type": "text",
|
| 83 |
+
"text": "1 Introduction",
|
| 84 |
+
"text_level": 1,
|
| 85 |
+
"bbox": [
|
| 86 |
+
114,
|
| 87 |
+
758,
|
| 88 |
+
258,
|
| 89 |
+
774
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "Large Language Models (LLMs) have revolutionized financial decision-making and stock market prediction by excelling in tasks such as sentiment analysis (Liang et al., 2022) and explanation generation (Pu et al., 2023). Specialized models like FinGPT and BloombergGPT (Liu et al., 2023; Wu et al., 2023) demonstrate this capability. Recent research highlights their ability to interpret financial time-series and enhance cross-sequence",
|
| 96 |
+
"bbox": [
|
| 97 |
+
112,
|
| 98 |
+
782,
|
| 99 |
+
489,
|
| 100 |
+
896
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "reasoning (Wei et al., 2022; Yu et al., 2023; Zhang et al., 2023; Zhao et al., 2023; Yang et al., 2024). Furthermore, the development of LLM-based trading agents like Sociodojo (Cheng and Chin, 2024) underscores the potential for innovating investment strategies.",
|
| 107 |
+
"bbox": [
|
| 108 |
+
507,
|
| 109 |
+
252,
|
| 110 |
+
884,
|
| 111 |
+
323
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "However, the application of LLMs in the cryptocurrency market remains underexplored, yet this field holds great potential for future development for three main reasons. First, the cryptocurrency market is characterized by high market value, volatility, and uncertainty, which challenge traditional trading signals (Drozdž et al., 2023; Wei et al., 2023; Wang et al., 2024). Second, LLMs have demonstrated their ability to understand and analyze financial markets by leveraging large volumes of multimodal data, such as news and price information (Wu et al., 2023). Third, the cryptocurrency market includes open-sourced on-chain data, such as gas prices and total transaction values, providing insights beyond just price movements (Feichtinger et al., 2023; Ren et al., 2023; Luo et al., 2023). To bridge this gap, we introduce CryptoTrade. By integrating on-chain data, including market data and transaction records, with off-chain information like financial news, CryptoTrade leverages both dimensions to execute daily trading strategies, taking full advantage of the transparency of on-chain data and the immediacy of off-chain information. We detail the structure of CryptoTrade in Figure 1.",
|
| 118 |
+
"bbox": [
|
| 119 |
+
507,
|
| 120 |
+
324,
|
| 121 |
+
884,
|
| 122 |
+
634
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 0
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "CryptoTrade consists of a three-part framework. Initially, we collect data where on-chain details such as transactions and broader market data are aggregated alongside off-chain data from established financial news outlets like Bloomberg and Yahoo Finance. After data collection, we perform statistical analyses to calculate indicators such as moving averages, and apply text processing techniques for news summarization using the same GPT models that will later be employed for analysis: GPT-3.5-turbo $^{1}$ , GPT-4 $^{2}$ , and GPT-4o $^{3}$ . Finally, we enhance day-to-day decision-making with specialized analytical agents: market analyst agent evaluates market trends, news analyst agent interprets recent news impacts, and trading agent deliberates on investment",
|
| 129 |
+
"bbox": [
|
| 130 |
+
507,
|
| 131 |
+
636,
|
| 132 |
+
882,
|
| 133 |
+
834
|
| 134 |
+
],
|
| 135 |
+
"page_idx": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"type": "page_footnote",
|
| 139 |
+
"text": "1https://platform.openai.com/docs/ models/gpt-3-5-turbo",
|
| 140 |
+
"bbox": [
|
| 141 |
+
507,
|
| 142 |
+
843,
|
| 143 |
+
838,
|
| 144 |
+
868
|
| 145 |
+
],
|
| 146 |
+
"page_idx": 0
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"type": "page_footnote",
|
| 150 |
+
"text": "$^{2}$ https://platform.openai.com/docs/models/gpt-4",
|
| 151 |
+
"bbox": [
|
| 152 |
+
509,
|
| 153 |
+
868,
|
| 154 |
+
838,
|
| 155 |
+
892
|
| 156 |
+
],
|
| 157 |
+
"page_idx": 0
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"type": "page_footnote",
|
| 161 |
+
"text": "3https://platform.openai.com/docs/ models/gpt-4o",
|
| 162 |
+
"bbox": [
|
| 163 |
+
510,
|
| 164 |
+
892,
|
| 165 |
+
838,
|
| 166 |
+
917
|
| 167 |
+
],
|
| 168 |
+
"page_idx": 0
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"type": "page_footnote",
|
| 172 |
+
"text": "*Equal Contribution, Ordered Alphabetically",
|
| 173 |
+
"bbox": [
|
| 174 |
+
141,
|
| 175 |
+
904,
|
| 176 |
+
418,
|
| 177 |
+
917
|
| 178 |
+
],
|
| 179 |
+
"page_idx": 0
|
| 180 |
+
},
|
| 181 |
+
{
|
| 182 |
+
"type": "page_number",
|
| 183 |
+
"text": "1094",
|
| 184 |
+
"bbox": [
|
| 185 |
+
480,
|
| 186 |
+
927,
|
| 187 |
+
519,
|
| 188 |
+
940
|
| 189 |
+
],
|
| 190 |
+
"page_idx": 0
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"type": "footer",
|
| 194 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 1094-1106 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 195 |
+
"bbox": [
|
| 196 |
+
159,
|
| 197 |
+
945,
|
| 198 |
+
836,
|
| 199 |
+
972
|
| 200 |
+
],
|
| 201 |
+
"page_idx": 0
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"type": "image",
|
| 205 |
+
"img_path": "images/adcc4031d3d4dfc843ee30ff7e191ce4987f6f63cce31fa661a275ef7b04e028.jpg",
|
| 206 |
+
"image_caption": [
|
| 207 |
+
"Figure 1: CryptoTrade Framework. Our framework begins with the collection of various types of data, including on-chain transactions, market data, and off-chain data from multiple financial news sources. We extract on-chain statistics while summarizing off-chain news to provide comprehensive inputs for our agents' analysis. We then deploy several LLM-based agents to make day-to-day trading decisions, utilizing a reflective mechanism to maximize total returns over different time periods."
|
| 208 |
+
],
|
| 209 |
+
"image_footnote": [],
|
| 210 |
+
"bbox": [
|
| 211 |
+
136,
|
| 212 |
+
80,
|
| 213 |
+
884,
|
| 214 |
+
370
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 1
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "actions. Concurrently, reflection agent reviews past performance, allowing CryptoTrade to refine its strategies to maximize returns.",
|
| 221 |
+
"bbox": [
|
| 222 |
+
112,
|
| 223 |
+
493,
|
| 224 |
+
489,
|
| 225 |
+
535
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 1
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "Then, we conduct comprehensive experiments with CryptoTrade using GPT-3.5-turbo, GPT-4, and GPT-4o, evaluating its proficiency in making daily trading decisions for Bitcoin (BTC), Ethereum (ETH), and Solana (SOL). These three cryptocurrencies were selected for their prominence and market values of $134.14,$ 45.59, and $7.61 billion, respectively, as of June 2nd, 2024<sup>4</sup>. CryptoTrade significantly outperforms time-series baselines such as Informer (Zhou et al., 2021) and PatchTST (Nie et al., 2022), and achieves comparable performance to trading signals like Moving Average Convergence Divergence (MACD) (Gencay, 1996) in both return and sharpe ratio across bull, sideways, and bear market conditions. Notably, CryptoTrade operates in a zero-shot manner without fine-tuning based on validation sets, highlighting its potential for future applications. For instance, during the ETH bullish test period, the Buy and Hold strategy secured a 22.59% return, while CryptoTrade exceeded this by a remarkable 3%.",
|
| 232 |
+
"bbox": [
|
| 233 |
+
112,
|
| 234 |
+
537,
|
| 235 |
+
489,
|
| 236 |
+
806
|
| 237 |
+
],
|
| 238 |
+
"page_idx": 1
|
| 239 |
+
},
|
| 240 |
+
{
|
| 241 |
+
"type": "text",
|
| 242 |
+
"text": "To summarize, we make the following three contributions:",
|
| 243 |
+
"bbox": [
|
| 244 |
+
112,
|
| 245 |
+
808,
|
| 246 |
+
487,
|
| 247 |
+
835
|
| 248 |
+
],
|
| 249 |
+
"page_idx": 1
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"type": "text",
|
| 253 |
+
"text": "- We introduce CryptoTrade, an innovative trading agent in the cryptocurrency domain, driven by LLMs. CryptoTrade is designed to generate op",
|
| 254 |
+
"bbox": [
|
| 255 |
+
132,
|
| 256 |
+
848,
|
| 257 |
+
489,
|
| 258 |
+
892
|
| 259 |
+
],
|
| 260 |
+
"page_idx": 1
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"type": "text",
|
| 264 |
+
"text": "timized trading decisions specifically for the cryptocurrency market, setting a new benchmark in this field.",
|
| 265 |
+
"bbox": [
|
| 266 |
+
541,
|
| 267 |
+
493,
|
| 268 |
+
884,
|
| 269 |
+
535
|
| 270 |
+
],
|
| 271 |
+
"page_idx": 1
|
| 272 |
+
},
|
| 273 |
+
{
|
| 274 |
+
"type": "list",
|
| 275 |
+
"sub_type": "text",
|
| 276 |
+
"list_items": [
|
| 277 |
+
"- We develop a comprehensive framework for cryptocurrency trading agents that encompasses the collection of both on-chain and off-chain data, along with the integration of a self-reflective component to enhance decision-making processes. This approach aggregates diverse information sources and establishes a new standard for data-driven trading strategies within the cryptocurrency domain.",
|
| 278 |
+
"- Through rigorous experiments, we present empirical evidence showcasing the efficacy of CryptoTrade compared to other baselines. CryptoTrade advances the frontier of cryptocurrency trading technologies and offers valuable insights for financial decision-making."
|
| 279 |
+
],
|
| 280 |
+
"bbox": [
|
| 281 |
+
527,
|
| 282 |
+
549,
|
| 283 |
+
885,
|
| 284 |
+
760
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 1
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "text",
|
| 290 |
+
"text": "2 CryptoTrade Framework",
|
| 291 |
+
"text_level": 1,
|
| 292 |
+
"bbox": [
|
| 293 |
+
507,
|
| 294 |
+
775,
|
| 295 |
+
764,
|
| 296 |
+
791
|
| 297 |
+
],
|
| 298 |
+
"page_idx": 1
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"type": "text",
|
| 302 |
+
"text": "This section details the components employed to develop the CryptoTrade agent, including data collection, market dynamics analysis, and agents development. Figure 1 shows an overview of CryptoTrade.",
|
| 303 |
+
"bbox": [
|
| 304 |
+
507,
|
| 305 |
+
800,
|
| 306 |
+
884,
|
| 307 |
+
858
|
| 308 |
+
],
|
| 309 |
+
"page_idx": 1
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"type": "text",
|
| 313 |
+
"text": "2.1 Data Collection",
|
| 314 |
+
"text_level": 1,
|
| 315 |
+
"bbox": [
|
| 316 |
+
507,
|
| 317 |
+
870,
|
| 318 |
+
665,
|
| 319 |
+
883
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 1
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "The foundation of our methodology relies on a comprehensive collection of data from on-chain and off-chain",
|
| 326 |
+
"bbox": [
|
| 327 |
+
507,
|
| 328 |
+
890,
|
| 329 |
+
882,
|
| 330 |
+
917
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 1
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "page_footnote",
|
| 336 |
+
"text": "<sup>4</sup>https://coinmarketcap.com/currencies/",
|
| 337 |
+
"bbox": [
|
| 338 |
+
134,
|
| 339 |
+
903,
|
| 340 |
+
480,
|
| 341 |
+
917
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 1
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "page_number",
|
| 347 |
+
"text": "1095",
|
| 348 |
+
"bbox": [
|
| 349 |
+
482,
|
| 350 |
+
927,
|
| 351 |
+
519,
|
| 352 |
+
940
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 1
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "sources, which is essential for making informed trading decisions in the cryptocurrency market. The data license is detailed in Appendix A. The data ethics are explained in Appendix B. The data collection strategy is illustrated in Figure 1(a) and further detailed below:",
|
| 359 |
+
"bbox": [
|
| 360 |
+
112,
|
| 361 |
+
84,
|
| 362 |
+
489,
|
| 363 |
+
156
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 2
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "- On-chain Data: We leverage historical data from CoinMarketCap<sup>5</sup>, which provides daily insights into prices, trading volumes, and market capitalization of various cryptocurrencies: BTC, ETH, SOL. This dataset forms the backbone of our market trend analysis, enabling us to decipher long-term trends and identify cycles in cryptocurrency valuations and investor behavior.",
|
| 370 |
+
"bbox": [
|
| 371 |
+
132,
|
| 372 |
+
164,
|
| 373 |
+
490,
|
| 374 |
+
277
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 2
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "Additionally, we incorporate detailed transaction statistics from on-chain activities. All blockchain transactions are transparent, traceable, and publicly accessible, achieved through securely linked blocks using cryptographic techniques (Narayanan et al., 2016). As numerous prominent blockchain explorers provide tools for easy access to blockchain transaction data, we retrieve on-chain transaction data from the Dune Database<sup>6</sup>, a crypto analytics platform, and construct comprehensive statistics related to these transactions to include information on market dynamics. This includes comprehensive metrics such as daily number of transactions, number of active wallet, total value transferred, average gas price, and total gas consumed. These features are crucial for understanding the operational aspects of blockchains, such as network congestion times and cost efficiency, which directly impact trading strategies. Our daily collection of these metrics facilitates a nuanced analysis of market dynamics and liquidity, allowing for real-time adjustments to our trading algorithms based on current market conditions.",
|
| 381 |
+
"bbox": [
|
| 382 |
+
144,
|
| 383 |
+
281,
|
| 384 |
+
489,
|
| 385 |
+
621
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 2
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "- Off-chain Data: We employ the Gnews API<sup>7</sup> to systematically gather news articles related to each cryptocurrency. This tool enables us to access a wide array of sources through Google News, providing a comprehensive daily snapshot of market sentiment. Moreover, we particularly focus on filtering news from reputable financial and cryptocurrency-specific outlets such as Bloomberg, Yahoo Finance, and crypto.news<sup>8</sup> to ensure the reliability and relevance of the information. For each day, relevant articles were searched using the name of each cryptocurrency as a keyword to ensure all collected news articles were directly related to that cryptocurrency. This approach helped exclude a large amount of unrelated news. In this way, on average, we collected 47.1 news articles related",
|
| 392 |
+
"bbox": [
|
| 393 |
+
132,
|
| 394 |
+
630,
|
| 395 |
+
489,
|
| 396 |
+
859
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 2
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "to Bitcoin, 42.6 news articles related to Ethereum, and 15.7 news articles related to Solana. Then, we filtered the news by their source to further enhance relevance and reliability. Finally we will use no more than 5 news every day for each cryptocurrency. The integration of analysis from these articles allows us to capture the market's sentiment and response to developments, which is often a precursor to significant market movements.",
|
| 403 |
+
"bbox": [
|
| 404 |
+
541,
|
| 405 |
+
84,
|
| 406 |
+
884,
|
| 407 |
+
212
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 2
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "By merging both on-chain data and off-chain news insights, our methodology offers a holistic view of the cryptocurrency market. This integration not only enhances our analytical capabilities but also significantly improves the precision of our trading decisions.",
|
| 414 |
+
"bbox": [
|
| 415 |
+
507,
|
| 416 |
+
223,
|
| 417 |
+
884,
|
| 418 |
+
294
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 2
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "2.2 Market and News Analyst Agents",
|
| 425 |
+
"text_level": 1,
|
| 426 |
+
"bbox": [
|
| 427 |
+
507,
|
| 428 |
+
303,
|
| 429 |
+
793,
|
| 430 |
+
317
|
| 431 |
+
],
|
| 432 |
+
"page_idx": 2
|
| 433 |
+
},
|
| 434 |
+
{
|
| 435 |
+
"type": "text",
|
| 436 |
+
"text": "Upon collecting extensive on-chain and off-chain data, we analyze it through two key components of our CryptoTrade agent: (1) market analyst agent, (2) news analyst. By leveraging the capabilities of GPT models, these analysts provide deep insights into the crypto market, enabling informed and strategic trading decisions.",
|
| 437 |
+
"bbox": [
|
| 438 |
+
507,
|
| 439 |
+
322,
|
| 440 |
+
882,
|
| 441 |
+
407
|
| 442 |
+
],
|
| 443 |
+
"page_idx": 2
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"type": "text",
|
| 447 |
+
"text": "Market Analyst Agent. The market analyst agent plays a crucial role in deciphering market dynamics through the statistical analysis of key trading signals from on-chain data, such as MA (Gencay, 1996), MACD (Wang and Kim, 2018), and Bollinger Bands (Day et al., 2023). Details of these trading signals are provided in Appendix E. Armed with this information, the market analyst agent compiles reports on the market's direction and momentum. An example is shown in Figure 4.",
|
| 448 |
+
"bbox": [
|
| 449 |
+
507,
|
| 450 |
+
407,
|
| 451 |
+
882,
|
| 452 |
+
548
|
| 453 |
+
],
|
| 454 |
+
"page_idx": 2
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"type": "text",
|
| 458 |
+
"text": "News Analyst Agent. The news analyst agent is tasked with extracting and analyzing critical information from the latest news to assess the potential market impact of off-chain social hype. By sourcing news summaries from various trusted sources, the news analyst agent pinpoints relevant recent events and assesses the significance and implications of key topics, thus adding an extra dimension of insight. An example is provided in Figure 5.",
|
| 459 |
+
"bbox": [
|
| 460 |
+
507,
|
| 461 |
+
549,
|
| 462 |
+
882,
|
| 463 |
+
677
|
| 464 |
+
],
|
| 465 |
+
"page_idx": 2
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"type": "text",
|
| 469 |
+
"text": "2.3 Trading Agent",
|
| 470 |
+
"text_level": 1,
|
| 471 |
+
"bbox": [
|
| 472 |
+
507,
|
| 473 |
+
687,
|
| 474 |
+
658,
|
| 475 |
+
701
|
| 476 |
+
],
|
| 477 |
+
"page_idx": 2
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"type": "text",
|
| 481 |
+
"text": "Each day, the trading agent offers an investment suggestion based on reports from the market and news analyst agents. After analyzing the reports, the trading agent provides a concise rationale for its decisions. It also recommends allocating a certain portion of remaining cash to purchase cryptocurrency (with a range from $(0$ to $1]$ ), selling a certain portion of owned cryptocurrency (with a range from $[-1$ to $0]$ ), or holding (neither buying nor selling). When a trading decision is made, a transaction fee is charged in proportion to the traded value. Figure 6 illustrates an example of our trading agent's operations.",
|
| 482 |
+
"bbox": [
|
| 483 |
+
507,
|
| 484 |
+
705,
|
| 485 |
+
884,
|
| 486 |
+
862
|
| 487 |
+
],
|
| 488 |
+
"page_idx": 2
|
| 489 |
+
},
|
| 490 |
+
{
|
| 491 |
+
"type": "text",
|
| 492 |
+
"text": "2.4 Reflection Agent",
|
| 493 |
+
"text_level": 1,
|
| 494 |
+
"bbox": [
|
| 495 |
+
507,
|
| 496 |
+
871,
|
| 497 |
+
672,
|
| 498 |
+
885
|
| 499 |
+
],
|
| 500 |
+
"page_idx": 2
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"type": "text",
|
| 504 |
+
"text": "The reflection agent reviews the trading agent's recent activities to enhance future strategies. By analyzing the",
|
| 505 |
+
"bbox": [
|
| 506 |
+
507,
|
| 507 |
+
890,
|
| 508 |
+
880,
|
| 509 |
+
917
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 2
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "page_footnote",
|
| 515 |
+
"text": "<sup>5</sup>https://coinmarketcap.com",
|
| 516 |
+
"bbox": [
|
| 517 |
+
132,
|
| 518 |
+
865,
|
| 519 |
+
373,
|
| 520 |
+
879
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 2
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "page_footnote",
|
| 526 |
+
"text": "https://dune.com/home",
|
| 527 |
+
"bbox": [
|
| 528 |
+
136,
|
| 529 |
+
879,
|
| 530 |
+
337,
|
| 531 |
+
891
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 2
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "page_footnote",
|
| 537 |
+
"text": "<sup>7</sup>https://pypi.org/project/gnews/",
|
| 538 |
+
"bbox": [
|
| 539 |
+
136,
|
| 540 |
+
891,
|
| 541 |
+
425,
|
| 542 |
+
904
|
| 543 |
+
],
|
| 544 |
+
"page_idx": 2
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"type": "page_footnote",
|
| 548 |
+
"text": "<sup>8</sup>https://crypto.news/",
|
| 549 |
+
"bbox": [
|
| 550 |
+
136,
|
| 551 |
+
904,
|
| 552 |
+
326,
|
| 553 |
+
917
|
| 554 |
+
],
|
| 555 |
+
"page_idx": 2
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"type": "page_number",
|
| 559 |
+
"text": "1096",
|
| 560 |
+
"bbox": [
|
| 561 |
+
482,
|
| 562 |
+
928,
|
| 563 |
+
521,
|
| 564 |
+
940
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 2
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "previous week's prompts, decisions, and returns, the reflection agent identifies the most impactful information and the reasons behind its significance, providing feedback to the trading agent for future decisions. Consequently, CryptoTrade learns to focus on the most influential information for upcoming decisions. An example is illustrated in Figure 7.",
|
| 571 |
+
"bbox": [
|
| 572 |
+
112,
|
| 573 |
+
84,
|
| 574 |
+
489,
|
| 575 |
+
183
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "3 Experiments",
|
| 582 |
+
"text_level": 1,
|
| 583 |
+
"bbox": [
|
| 584 |
+
112,
|
| 585 |
+
197,
|
| 586 |
+
260,
|
| 587 |
+
212
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 3
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "In this section, we detail the experiments designed to evaluate the efficacy of our proprietary CryptoTrade agent in comparison to established baseline strategies within the trading domain.",
|
| 594 |
+
"bbox": [
|
| 595 |
+
112,
|
| 596 |
+
222,
|
| 597 |
+
487,
|
| 598 |
+
279
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 3
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "3.1 Experimental Setup",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
112,
|
| 608 |
+
290,
|
| 609 |
+
302,
|
| 610 |
+
305
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "Experiment Environments. We conduct all experiments using PyTorch on an NVIDIA GeForce RTX 3090 GPU. More details are in Appendix C.",
|
| 617 |
+
"bbox": [
|
| 618 |
+
112,
|
| 619 |
+
309,
|
| 620 |
+
489,
|
| 621 |
+
354
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 3
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "Datasets. To ensure our experiments are robust across different cryptocurrencies and market conditions, we base our study on a dataset covering several months, detailed in Table 1. This dataset reflects the recent market performance of BTC, ETH, and SOL, presenting challenges in capturing market trends and volatility. We divide the dataset into validation and test sets, using the former to select model hyperparameters and the latter to evaluate model performance. We carefully select the test period after September 2021, the GPT-3.5's knowledge cutoff date, to prevent data leakage. The dataset encompasses three market conditions: bull, sideways, and bear, allowing us to test the effectiveness of both the baselines and our model (Baroiu et al., 2023; Cagan, 2024), ensuring reliable and robust experimental results.",
|
| 628 |
+
"bbox": [
|
| 629 |
+
112,
|
| 630 |
+
357,
|
| 631 |
+
489,
|
| 632 |
+
569
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 3
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "Evaluation Scheme. We initialize the trading agent with 1 million US dollars, split equally between cash and BTC/ETH/SOL, to enable potential profits from both buying and selling cryptocurrencies. At the end of the trading session, we use the following widely-accepted metrics: Return, Sharpe Ratio, Daily Return Mean, and Daily Return Std. This evaluation scheme ensures a rigorous and unbiased assessment of both baseline strategies and our CryptoTrade agent.",
|
| 639 |
+
"bbox": [
|
| 640 |
+
112,
|
| 641 |
+
573,
|
| 642 |
+
489,
|
| 643 |
+
701
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 3
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "list",
|
| 649 |
+
"sub_type": "text",
|
| 650 |
+
"list_items": [
|
| 651 |
+
"(1) Return measures the overall performance of the trading strategy, calculated using the formula $\\frac{w^{end} - w^{start}}{w^{start}}$ , where $w^{start}$ and $w^{end}$ represent the starting and ending net worth, respectively.",
|
| 652 |
+
"(2) Sharpe Ratio assesses the risk-adjusted return, using the formula $\\frac{\\bar{r} - r_f}{\\sigma}$ , where $\\bar{r}$ is the mean of daily returns, $\\sigma$ is the standard deviation of daily returns, and $r_f$ is the risk-free return, set to 0 following SocioDojo (Cheng and Chin, 2024).",
|
| 653 |
+
"(3) Daily Return Mean is the average of the daily returns over the trading period, providing insight into the typical daily performance of the trading strategy.",
|
| 654 |
+
"(4) Daily Return Std is the standard deviation of the daily returns, indicating the volatility and risk associated with the daily performance of the trading strategy."
|
| 655 |
+
],
|
| 656 |
+
"bbox": [
|
| 657 |
+
112,
|
| 658 |
+
702,
|
| 659 |
+
487,
|
| 660 |
+
917
|
| 661 |
+
],
|
| 662 |
+
"page_idx": 3
|
| 663 |
+
},
|
| 664 |
+
{
|
| 665 |
+
"type": "text",
|
| 666 |
+
"text": "Baseline Strategies. To benchmark the performance of our CryptoTrade agent, we compare it against widely recognized baseline strategies in the trading domain. We present these baselines and hyperparameters in Appendix E.",
|
| 667 |
+
"bbox": [
|
| 668 |
+
507,
|
| 669 |
+
84,
|
| 670 |
+
884,
|
| 671 |
+
155
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 3
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "3.2 Experimental Results",
|
| 678 |
+
"text_level": 1,
|
| 679 |
+
"bbox": [
|
| 680 |
+
507,
|
| 681 |
+
166,
|
| 682 |
+
707,
|
| 683 |
+
180
|
| 684 |
+
],
|
| 685 |
+
"page_idx": 3
|
| 686 |
+
},
|
| 687 |
+
{
|
| 688 |
+
"type": "text",
|
| 689 |
+
"text": "The performance comparison presented in Table 2, Table 3, Table 4 between various trading strategies and our proposed CryptoTrade agent reveals significant insights into the efficacy of incorporating advanced data analysis techniques for cryptocurrency trading. The table highlights the returns and Sharpe Ratios for each method, where our CryptoTrade agent performs with outstanding percentage return and Sharpe Ratio compared with time-series baselines but not superior than traditional trading signals: Buy and Hold and SLMA. We outline the superiority of CryptoTrade in the following two key aspects:",
|
| 690 |
+
"bbox": [
|
| 691 |
+
507,
|
| 692 |
+
185,
|
| 693 |
+
884,
|
| 694 |
+
355
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 3
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "Superior Performance under Different Market Conditions. Remarkably, even without fine-tuning, CryptoTrade outperforms Transformer-based time-series baselines in most bases, demonstrating the robust capabilities of LLMs. Additionally, its performance is comparable to traditional trading signals like Buy and Hold and MACD, further validating the potential of LLM-based approaches. For instance, CryptoTrade (GPT-4o) excels in all metrics under ETH's bull market by $3\\%$ in total return and sharpe ratio. While CryptoTrade (GPT-4o) may not always be the top performer in every scenario, it consistently surpasses more than half of the trading signals across different market conditions, even without fine-tuning. This highlights the effectiveness and versatility of CryptoTrade in leveraging LLMs to navigate the complexities of the cryptocurrency market.",
|
| 701 |
+
"bbox": [
|
| 702 |
+
507,
|
| 703 |
+
359,
|
| 704 |
+
884,
|
| 705 |
+
586
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 3
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Successful Trend Predictions. We draw Figure 2 to demonstrate the correlation between Ethereum's opening prices and the positions held by the CryptoTrade agent, with the yellow and blue lines representing daily opening prices and Ethereum positions, respectively. The observed fluctuations highlight the market's volatility, while the alignment between position adjustments and price movements showcases the agent's proficiency in anticipating market trends. Unlike the static Buy and Hold strategy, CryptoTrade adopts a dynamic approach, optimizing trades based on market analysis—purchasing at lower prices and selling at peaks. This strategic adaptability, especially evident during shaded periods of preemptive position changes in anticipation of price shifts, underscores the agent's capacity for risk management and its adeptness at leveraging market volatility for profit, marking a significant advancement over traditional trading strategies.",
|
| 712 |
+
"bbox": [
|
| 713 |
+
507,
|
| 714 |
+
590,
|
| 715 |
+
882,
|
| 716 |
+
846
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 3
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "3.3 Ablation Study",
|
| 723 |
+
"text_level": 1,
|
| 724 |
+
"bbox": [
|
| 725 |
+
507,
|
| 726 |
+
856,
|
| 727 |
+
662,
|
| 728 |
+
871
|
| 729 |
+
],
|
| 730 |
+
"page_idx": 3
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"type": "text",
|
| 734 |
+
"text": "The ablation study presented in Table 5 critically examines the individual components of the prompt used by the CryptoTrade (GPT-4o) agent. By systematically",
|
| 735 |
+
"bbox": [
|
| 736 |
+
507,
|
| 737 |
+
875,
|
| 738 |
+
882,
|
| 739 |
+
919
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 3
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "page_number",
|
| 745 |
+
"text": "1097",
|
| 746 |
+
"bbox": [
|
| 747 |
+
482,
|
| 748 |
+
928,
|
| 749 |
+
519,
|
| 750 |
+
940
|
| 751 |
+
],
|
| 752 |
+
"page_idx": 3
|
| 753 |
+
},
|
| 754 |
+
{
|
| 755 |
+
"type": "table",
|
| 756 |
+
"img_path": "images/1f8b003f0d9a72aa32ba8c903a4edc5af7a01b38682e2ed2be0796059fac8c84.jpg",
|
| 757 |
+
"table_caption": [],
|
| 758 |
+
"table_footnote": [],
|
| 759 |
+
"table_body": "<table><tr><td>Type</td><td>Split</td><td>Start</td><td>End</td><td>Open</td><td>Close</td><td>Trend</td></tr><tr><td rowspan=\"4\">BTC</td><td>Validation</td><td>2023-01-19</td><td>2023-03-13</td><td>20977.48</td><td>20628.03</td><td>-1.67%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>30462.48</td><td>25575.28</td><td>-15.61%</td></tr><tr><td>Test Sideways</td><td>2023-06-17</td><td>2023-08-25</td><td>26328.68</td><td>26163.68</td><td>-0.83%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>26967.40</td><td>37718.01</td><td>39.66%</td></tr><tr><td rowspan=\"4\">ETH</td><td>Validation</td><td>2023-01-13</td><td>2023-03-12</td><td>1417.13</td><td>1429.60</td><td>0.88%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>1892.94</td><td>1664.98</td><td>-12.24%</td></tr><tr><td>Test Sideways</td><td>2023-06-20</td><td>2023-08-31</td><td>1734.79</td><td>1705.11</td><td>-1.91%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>1671.00</td><td>2051.76</td><td>22.59%</td></tr><tr><td rowspan=\"4\">SOL</td><td>Validation</td><td>2023-01-14</td><td>2023-03-12</td><td>18.29</td><td>18.24</td><td>-0.27%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>23.02</td><td>14.76</td><td>-36.08%</td></tr><tr><td>Test Sideways</td><td>2023-07-08</td><td>2023-08-31</td><td>21.49</td><td>20.83</td><td>-3.23%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>21.39</td><td>59.25</td><td>176.72%</td></tr></table>",
|
| 760 |
+
"bbox": [
|
| 761 |
+
191,
|
| 762 |
+
80,
|
| 763 |
+
803,
|
| 764 |
+
271
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 4
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "table",
|
| 770 |
+
"img_path": "images/32ae33b9041148fa5adb1b1f72a0d16a8994c967d52c416625c151f4de08af6a.jpg",
|
| 771 |
+
"table_caption": [
|
| 772 |
+
"Table 1: Dataset splits. Prices are in US dollars. In each split, the transaction days include the start date and exclude the end date. We evaluate the total profit on the end date."
|
| 773 |
+
],
|
| 774 |
+
"table_footnote": [],
|
| 775 |
+
"table_body": "<table><tr><td rowspan=\"2\">Strategy</td><td colspan=\"3\">Total Return</td><td colspan=\"3\">Daily Return</td><td colspan=\"3\">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and hold</td><td>39.66</td><td>-0.83</td><td>-15.61</td><td>0.56±2.23</td><td>0.00±1.74</td><td>-0.24±2.07</td><td>0.25</td><td>0.00</td><td>-0.11</td></tr><tr><td>SMA</td><td>22.58</td><td>3.65</td><td>-21.74</td><td>0.35±1.89</td><td>0.06±1.21</td><td>-0.36±1.25</td><td>0.18</td><td>0.05</td><td>-0.29</td></tr><tr><td>SLMA</td><td>38.53</td><td>-3.14</td><td>-7.68</td><td>0.55±2.21</td><td>-0.04±0.83</td><td>-0.11±1.23</td><td>0.25</td><td>-0.05</td><td>-0.09</td></tr><tr><td>MACD</td><td>13.57</td><td>-6.71</td><td>-9.51</td><td>0.22±1.45</td><td>-0.09±1.01</td><td>-0.14±1.56</td><td>0.15</td><td>-0.09</td><td>-0.09</td></tr><tr><td>Bollinger Bands</td><td>2.97</td><td>-3.19</td><td>-1.17</td><td>0.05±0.32</td><td>-0.04±0.87</td><td>-0.02±0.51</td><td>0.15</td><td>-0.05</td><td>-0.03</td></tr><tr><td>LSTM</td><td>31.67</td><td>-4.13</td><td>-17.20</td><td>0.47±2.11</td><td>-0.05±1.62</td><td>-0.28±1.27</td><td>0.22</td><td>-0.03</td><td>-0.22</td></tr><tr><td>Informer</td><td>0.34</td><td>-2.33</td><td>-13.38</td><td>0.01±0.82</td><td>-0.03±0.54</td><td>-0.21±1.02</td><td>0.01</td><td>-0.06</td><td>-0.21</td></tr><tr><td>AutoFormer</td><td>14.73</td><td>-4.90</td><td>-12.72</td><td>0.24±1.65</td><td>-0.07±1.15</td><td>-0.20±1.13</td><td>0.14</td><td>-0.06</td><td>-0.18</td></tr><tr><td>TimesNet</td><td>2.84</td><td>-5.12</td><td>-13.64</td><td>0.05±1.06</td><td>-0.07±1.10</td><td>-0.22±1.04</td><td>0.05</td><td>-0.06</td><td>-0.21</td></tr><tr><td>PatchTST</td><td>1.79</td><td>-5.02</td><td>-21.94</td><td>0.03±0.71</td><td>-0.07±0.57</td><td>-0.37±1.05</td><td>0.04</td><td>-0.13</td><td>-0.35</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>18.84</td><td>0.33</td><td>-9.12</td><td>0.30±1.69</td><td>0.01±1.19</td><td>-0.14±1.52</td><td>0.18</td><td>0.01</td><td>-0.09</td></tr><tr><td>Ours(GPT-4)</td><td>26.35</td><td>-4.07</td><td>-11.72</td><td>0.40±1.76</td><td>-0.05±1.43</td><td>-0.18±1.67</td><td>0.23</td><td>-0.04</td><td>-0.11</td></tr><tr><td>Ours(GPT-4o)</td><td>28.47</td><td>-5.08</td><td>-13.71</td><td>0.43±1.89</td><td>-0.07±1.14</td><td>-0.21±1.71</td><td>0.23</td><td>-0.06</td><td>-0.12</td></tr></table>",
|
| 776 |
+
"bbox": [
|
| 777 |
+
115,
|
| 778 |
+
323,
|
| 779 |
+
878,
|
| 780 |
+
537
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 4
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "table",
|
| 786 |
+
"img_path": "images/9b04e03bbd1b4b5df17350b97dccf2c390e742a8f686bde511030317c6f0497f.jpg",
|
| 787 |
+
"table_caption": [
|
| 788 |
+
"Table 2: Performance of each strategy on BTC under Bull, Sideways, and Bear market conditions. For each market condition and each metric, the best result is highlighted in bold text and the runner-up result is underlined."
|
| 789 |
+
],
|
| 790 |
+
"table_footnote": [],
|
| 791 |
+
"table_body": "<table><tr><td rowspan=\"2\">Strategy</td><td colspan=\"3\">Total Return (%)</td><td colspan=\"3\">Daily Return (%)</td><td colspan=\"3\">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and Hold</td><td>22.59</td><td>-1.91</td><td>-12.24</td><td>0.36±2.62</td><td>-0.01±1.94</td><td>-0.17±2.39</td><td>0.14</td><td>-0.00</td><td>-0.07</td></tr><tr><td>SMA</td><td>10.17</td><td>-5.45</td><td>-10.12</td><td>0.18±2.29</td><td>-0.15±1.64</td><td>-0.15±1.64</td><td>0.08</td><td>-0.07</td><td>-0.09</td></tr><tr><td>SLMA</td><td>5.20</td><td>-2.62</td><td>-15.90</td><td>0.11±2.37</td><td>-0.03±1.08</td><td>-0.24±1.86</td><td>0.05</td><td>-0.03</td><td>-0.13</td></tr><tr><td>MACD</td><td>7.72</td><td>0.77</td><td>-12.15</td><td>0.13±1.22</td><td>0.02±1.43</td><td>-0.18±1.56</td><td>0.10</td><td>0.01</td><td>-0.12</td></tr><tr><td>Bollinger Bands</td><td>2.59</td><td>4.47</td><td>-0.41</td><td>0.04±0.40</td><td>0.07±1.02</td><td>0.00±0.58</td><td>0.11</td><td>0.06</td><td>-0.01</td></tr><tr><td>LSTM</td><td>22.12</td><td>1.27</td><td>-13.22</td><td>0.36±2.59</td><td>0.02±1.11</td><td>-0.19±2.36</td><td>0.14</td><td>0.15</td><td>-0.08</td></tr><tr><td>Informer</td><td>14.55</td><td>-4.74</td><td>-11.49</td><td>0.23±1.54</td><td>-0.06±1.45</td><td>-0.17±1.65</td><td>0.15</td><td>-0.04</td><td>-0.10</td></tr><tr><td>AutoFormer</td><td>7.77</td><td>-10.06</td><td>-19.44</td><td>0.13±1.81</td><td>-0.14±1.33</td><td>-0.31±1.61</td><td>0.08</td><td>-0.10</td><td>-0.20</td></tr><tr><td>TimesNet</td><td>13.31</td><td>-8.08</td><td>-10.64</td><td>0.21±1.50</td><td>-0.11±1.08</td><td>-0.16±1.04</td><td>0.14</td><td>-0.10</td><td>-0.16</td></tr><tr><td>PatchTST</td><td>8.95</td><td>-9.64</td><td>-13.76</td><td>0.15±1.37</td><td>-0.13±1.66</td><td>-0.21±1.39</td><td>0.11</td><td>-0.11</td><td>-0.15</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>18.91</td><td>-5.02</td><td>-14.40</td><td>0.30±2.01</td><td>-0.06±1.56</td><td>-0.22±2.08</td><td>0.15</td><td>-0.04</td><td>-0.10</td></tr><tr><td>Ours(GPT-4)</td><td>25.72</td><td>0.72</td><td>-13.72</td><td>0.41±2.45</td><td>0.03±1.67</td><td>-0.21±2.02</td><td>0.17</td><td>0.02</td><td>-0.10</td></tr><tr><td>Ours(GPT-4o)</td><td>25.47</td><td>-6.59</td><td>-15.35</td><td>0.40±2.25</td><td>-0.07±1.81</td><td>-0.23±2.16</td><td>0.18</td><td>-0.04</td><td>-0.11</td></tr></table>",
|
| 792 |
+
"bbox": [
|
| 793 |
+
115,
|
| 794 |
+
589,
|
| 795 |
+
882,
|
| 796 |
+
804
|
| 797 |
+
],
|
| 798 |
+
"page_idx": 4
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"type": "text",
|
| 802 |
+
"text": "Table 3: Performance of each strategy on ETH under Bull, Sideways, and Bear market conditions.",
|
| 803 |
+
"bbox": [
|
| 804 |
+
164,
|
| 805 |
+
813,
|
| 806 |
+
826,
|
| 807 |
+
828
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 4
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "removing key elements from the full prompt and observing the impact on percentage return and Sharpe ratio during a bull market for ETH, we can identify the contribution of each component to the overall performance",
|
| 814 |
+
"bbox": [
|
| 815 |
+
112,
|
| 816 |
+
853,
|
| 817 |
+
487,
|
| 818 |
+
910
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 4
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "of the trading strategy. We highlight the following two insights from the results:",
|
| 825 |
+
"bbox": [
|
| 826 |
+
507,
|
| 827 |
+
853,
|
| 828 |
+
880,
|
| 829 |
+
881
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 4
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "text",
|
| 835 |
+
"text": "Superiority of the Full Prompt. The full prompt significantly outshines all other configurations with reduced",
|
| 836 |
+
"bbox": [
|
| 837 |
+
507,
|
| 838 |
+
889,
|
| 839 |
+
882,
|
| 840 |
+
917
|
| 841 |
+
],
|
| 842 |
+
"page_idx": 4
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"type": "page_number",
|
| 846 |
+
"text": "1098",
|
| 847 |
+
"bbox": [
|
| 848 |
+
482,
|
| 849 |
+
927,
|
| 850 |
+
519,
|
| 851 |
+
940
|
| 852 |
+
],
|
| 853 |
+
"page_idx": 4
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"type": "table",
|
| 857 |
+
"img_path": "images/dcd7e76d05771fb25a08931283082a774a7aba866fe92efeb36f2b3344644bc5.jpg",
|
| 858 |
+
"table_caption": [],
|
| 859 |
+
"table_footnote": [],
|
| 860 |
+
"table_body": "<table><tr><td rowspan=\"2\">Strategy</td><td colspan=\"3\">Total Return (%)</td><td colspan=\"3\">Daily Return (%)</td><td colspan=\"3\">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and Hold</td><td>176.72</td><td>-3.23</td><td>-36.08</td><td>1.83±6.00</td><td>0.01±3.92</td><td>-0.61±3.45</td><td>0.30</td><td>0.00</td><td>-0.18</td></tr><tr><td>SMA</td><td>119.37</td><td>-0.62</td><td>1.04</td><td>1.43±5.67</td><td>0.03±3.06</td><td>0.02±0.10</td><td>0.25</td><td>0.01</td><td>0.16</td></tr><tr><td>SLMA</td><td>169.98</td><td>6.22</td><td>-8.11</td><td>1.78±5.93</td><td>0.16±3.23</td><td>-0.11±1.88</td><td>0.30</td><td>0.05</td><td>-0.06</td></tr><tr><td>MACD</td><td>23.25</td><td>-9.78</td><td>-21.07</td><td>0.35±1.76</td><td>-0.16±2.38</td><td>-0.33±2.44</td><td>0.20</td><td>-0.07</td><td>-0.13</td></tr><tr><td>Bollinger Bands</td><td>2.92</td><td>-0.46</td><td>-21.69</td><td>0.05±0.35</td><td>0.00±1.23</td><td>-0.35±1.75</td><td>0.13</td><td>-0.00</td><td>-0.20</td></tr><tr><td>LSTM</td><td>144.69</td><td>-3.56</td><td>-36.75</td><td>1.61±5.69</td><td>0.01±3.90</td><td>-0.63±3.43</td><td>0.28</td><td>0.00</td><td>-0.18</td></tr><tr><td>Informer</td><td>41.85</td><td>-6.55</td><td>-26.13</td><td>0.58±1.90</td><td>-0.10±2.00</td><td>-0.43±2.36</td><td>0.31</td><td>-0.05</td><td>-0.18</td></tr><tr><td>AutoFormer</td><td>35.86</td><td>-6.17</td><td>-23.56</td><td>0.51±1.97</td><td>-0.10±1.90</td><td>-0.38±2.35</td><td>0.26</td><td>-0.05</td><td>-0.16</td></tr><tr><td>TimesNet</td><td>45.28</td><td>-10.63</td><td>-21.60</td><td>0.64±2.66</td><td>-0.18±2.01</td><td>-0.35±1.75</td><td>0.24</td><td>-0.09</td><td>-0.20</td></tr><tr><td>PatchTST</td><td>18.45</td><td>-7.10</td><td>-27.86</td><td>0.29±1.57</td><td>-0.11±1.98</td><td>-0.46±2.49</td><td>0.18</td><td>-0.06</td><td>-0.19</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>102.45</td><td>-13.05</td><td>-24.08</td><td>1.26±4.54</td><td>-0.23±2.42</td><td>-0.39±2.60</td><td>0.28</td><td>-0.15</td><td>-0.10</td></tr><tr><td>Ours(GPT-4)</td><td>99.84</td><td>-2.16</td><td>-19.55</td><td>1.24±4.53</td><td>0.01±3.33</td><td>-0.31±2.35</td><td>0.27</td><td>0.00</td><td>-0.13</td></tr><tr><td>Ours(GPT-4o)</td><td>115.18</td><td>3.09</td><td>-16.32</td><td>1.38±4.98</td><td>0.11±3.31</td><td>-0.25±2.35</td><td>0.28</td><td>0.03</td><td>-0.10</td></tr></table>",
|
| 861 |
+
"bbox": [
|
| 862 |
+
115,
|
| 863 |
+
80,
|
| 864 |
+
878,
|
| 865 |
+
293
|
| 866 |
+
],
|
| 867 |
+
"page_idx": 5
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"type": "image",
|
| 871 |
+
"img_path": "images/825f5bee6c4651292bd15c10c5cf93b509ec30f55857a206fa9dacd250b5a625.jpg",
|
| 872 |
+
"image_caption": [
|
| 873 |
+
"Figure 2: Significant profitable periods exploited by the CryptoTrade agent. The yellow line shows the daily opening prices of Ethereum in US dollars. The blue line tracks the daily positions, indicating the amount of Ethereum possessed on each day. The blue dots denote trading decisions when the agent largely alters its position by trading Ethereum. The red dots represent the corresponding trading prices. The agent successfully forecasts price changes, securing substantial profits through low-price purchases and high-price sales."
|
| 874 |
+
],
|
| 875 |
+
"image_footnote": [],
|
| 876 |
+
"bbox": [
|
| 877 |
+
161,
|
| 878 |
+
335,
|
| 879 |
+
835,
|
| 880 |
+
554
|
| 881 |
+
],
|
| 882 |
+
"page_idx": 5
|
| 883 |
+
},
|
| 884 |
+
{
|
| 885 |
+
"type": "table",
|
| 886 |
+
"img_path": "images/e18ae15f103811d42525b2f86a3b064e4a1f5da5a8e19e8048b4a648d86489af.jpg",
|
| 887 |
+
"table_caption": [
|
| 888 |
+
"Table 4: Performance of each strategy on SOL under Bull, Sideways, and Bear market conditions."
|
| 889 |
+
],
|
| 890 |
+
"table_footnote": [],
|
| 891 |
+
"table_body": "<table><tr><td>Prompt Components</td><td>Return (%)</td><td>Sharpe Ratio</td></tr><tr><td>Full</td><td>28.47</td><td>0.23</td></tr><tr><td>w/o Reflection</td><td>17.14</td><td>0.06</td></tr><tr><td>w/o News</td><td>19.69</td><td>0.06</td></tr><tr><td>w/o TxnStats</td><td>12.70</td><td>0.05</td></tr><tr><td>w/o Technical</td><td>17.27</td><td>0.05</td></tr><tr><td>Base</td><td>8.40</td><td>0.03</td></tr></table>",
|
| 892 |
+
"bbox": [
|
| 893 |
+
119,
|
| 894 |
+
661,
|
| 895 |
+
482,
|
| 896 |
+
765
|
| 897 |
+
],
|
| 898 |
+
"page_idx": 5
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"type": "text",
|
| 902 |
+
"text": "Table 5: Ablation study on prompt components of the CryptoTrade agent. Base prompt encompasses necessary context including trading rules, valid action space, current cash and ETH holdings, and recent ETH prices.",
|
| 903 |
+
"bbox": [
|
| 904 |
+
112,
|
| 905 |
+
775,
|
| 906 |
+
487,
|
| 907 |
+
833
|
| 908 |
+
],
|
| 909 |
+
"page_idx": 5
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"type": "text",
|
| 913 |
+
"text": "components. The advantage of employing a full prompt over all deducted variants is rooted in the integration of diverse data sources. The full prompt encompasses the comprehensive price data, news analysis, technical",
|
| 914 |
+
"bbox": [
|
| 915 |
+
112,
|
| 916 |
+
860,
|
| 917 |
+
487,
|
| 918 |
+
917
|
| 919 |
+
],
|
| 920 |
+
"page_idx": 5
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"type": "text",
|
| 924 |
+
"text": "indicators, on-chain transaction statistics, and reflective analysis to offer a holistic view of the market. This comprehensive approach allows the CryptoTrade agent to leverage a wide array of information, enabling it to navigate the complexities of the cryptocurrency market with more nuanced and informed trading decisions.",
|
| 925 |
+
"bbox": [
|
| 926 |
+
507,
|
| 927 |
+
664,
|
| 928 |
+
882,
|
| 929 |
+
750
|
| 930 |
+
],
|
| 931 |
+
"page_idx": 5
|
| 932 |
+
},
|
| 933 |
+
{
|
| 934 |
+
"type": "text",
|
| 935 |
+
"text": "Advantage of Crypto Transaction Statistics. The omission of Ethereum transaction statistics results in a significant decrease of the outcome by around $16\\%$ , underscoring the indispensable role of on-chain statistics in enhancing trading strategies. This observation highlights the necessity of integrating on-chain transaction data, revealing its unique value in enriching the decision-making process in the cryptocurrency trading tasks.",
|
| 936 |
+
"bbox": [
|
| 937 |
+
507,
|
| 938 |
+
789,
|
| 939 |
+
884,
|
| 940 |
+
917
|
| 941 |
+
],
|
| 942 |
+
"page_idx": 5
|
| 943 |
+
},
|
| 944 |
+
{
|
| 945 |
+
"type": "page_number",
|
| 946 |
+
"text": "1099",
|
| 947 |
+
"bbox": [
|
| 948 |
+
482,
|
| 949 |
+
927,
|
| 950 |
+
519,
|
| 951 |
+
940
|
| 952 |
+
],
|
| 953 |
+
"page_idx": 5
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"type": "image",
|
| 957 |
+
"img_path": "images/9cb0103ad85ed73dfcb08799f5901d6ab6e650a5a65171ad8b3609927ab1ed3c.jpg",
|
| 958 |
+
"image_caption": [
|
| 959 |
+
"Figure 3: Case study of CryptoTrade's actions in response to news reports on early rumor and the actual event of Bitcoin ETF approval, which takes place on Jan 11, 2024. The red circles denote the trading prices. The agent successfully benefits from a \"buy the rumor, sell the news\" strategy."
|
| 960 |
+
],
|
| 961 |
+
"image_footnote": [],
|
| 962 |
+
"bbox": [
|
| 963 |
+
161,
|
| 964 |
+
93,
|
| 965 |
+
836,
|
| 966 |
+
344
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 6
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "text",
|
| 972 |
+
"text": "3.4 Case Study",
|
| 973 |
+
"text_level": 1,
|
| 974 |
+
"bbox": [
|
| 975 |
+
112,
|
| 976 |
+
426,
|
| 977 |
+
238,
|
| 978 |
+
442
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 6
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "To assess the adaptability and responsiveness of the CryptoTrade agent, we conduct a case study focusing on its responsive actions in the context of the cryptocurrency market's major events, illustrated in Figure 3. It reveals that CryptoTrade's strategy aligns with the \"buy the rumor, sell the news\" principle, effectively capitalizing on early signs of the Bitcoin ETF approval event, a scenario known to trigger market rallies due to speculative trading. By entering the market early, CryptoTrade secures positions at lower costs ahead of the rally.",
|
| 985 |
+
"bbox": [
|
| 986 |
+
112,
|
| 987 |
+
447,
|
| 988 |
+
487,
|
| 989 |
+
589
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 6
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "As the approval of the Bitcoin ETF becomes a reality, the sentiment reaches a crescendo, resulting in inflated asset prices due to heightened demand. CryptoTrade, adhering to its strategic motivation, takes this peak as an optimal point to sell, which is validated in the subsequent decline in the Ethereum price. This strategic exit allows CryptoTrade to realize gains before the market adjusted to the new equilibrium, which results in a price pullback as early speculators take profits and the market sentiment normalizes.",
|
| 996 |
+
"bbox": [
|
| 997 |
+
112,
|
| 998 |
+
590,
|
| 999 |
+
487,
|
| 1000 |
+
731
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 6
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "text",
|
| 1006 |
+
"text": "To sum up, CryptoTrade's provident actions underscore the delicate balance between foresight and timing in trading strategies. This case study demonstrates that an informed and timely response to market signals — both rumors and confirmed news — can yield advantageous outcomes. It also highlights the CryptoTrade agent's understanding of market psychology and its ability to translate this into profitable trading decisions.",
|
| 1007 |
+
"bbox": [
|
| 1008 |
+
112,
|
| 1009 |
+
733,
|
| 1010 |
+
489,
|
| 1011 |
+
848
|
| 1012 |
+
],
|
| 1013 |
+
"page_idx": 6
|
| 1014 |
+
},
|
| 1015 |
+
{
|
| 1016 |
+
"type": "text",
|
| 1017 |
+
"text": "4 Related Work",
|
| 1018 |
+
"text_level": 1,
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
112,
|
| 1021 |
+
848,
|
| 1022 |
+
270,
|
| 1023 |
+
864
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 6
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "LLMs for Economics and Financial Decisions Recent advancements in LLMs have significantly influenced economics and financial decision-making. Specialized",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
112,
|
| 1032 |
+
875,
|
| 1033 |
+
487,
|
| 1034 |
+
919
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 6
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "LLMs like FinGPT, BloombergGPT, FinMA (Liu et al., 2023; Wu et al., 2023; Xie et al., 2023) are tailored for finance, handling tasks such as sentiment analysis, entity recognition, and question-answering. Another research direction uses LLMs for financial time-series forecasting. A notable contribution by (Yu et al., 2023) employed zero-shot or few-shot inference with GPT-4 and instruction-based fine-tuning with LlaMA to enhance cross-sequence reasoning and multi-modal signal integration. Additionally, the development of LLM-based agents for financial trading has gained attention. Sociodojo (Cheng and Chin, 2024) created analytical agents for stock portfolio management, showing the potential for generating \"hyperportfolios.\" Despite these advancements, the focus has largely been on the stock market (Koa et al., 2024; Chen et al., 2023), leaving a gap in the exploration of the cryptocurrency market where the on-chain data is approachable and with much information. Our work aims to address this gap by leveraging both on-chain and off-chain data to navigate the dynamic cryptocurrency market.",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
507,
|
| 1043 |
+
426,
|
| 1044 |
+
884,
|
| 1045 |
+
726
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 6
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "text",
|
| 1051 |
+
"text": "Time-Series Forecasting for Financial Markets Time-series forecasting has long been a cornerstone of research in economics and financial markets. Early studies focused on predicting stock market prices using methodologies such as machine learning (Leung et al., 2021; Patel and Yalamalle, 2014), reinforcement learning (Lee, 2001), and traditional time-series models (Herwartz, 2017). The Long Short-Term Memory (LSTM) model has emerged as particularly influential (Sunny et al., 2020) for its capability to process and analyze time-series data. With the rise of blockchain technology and cryptocurrencies, these techniques have been extended to crypto assets (Khedr et al., 2021). Re",
|
| 1052 |
+
"bbox": [
|
| 1053 |
+
507,
|
| 1054 |
+
733,
|
| 1055 |
+
885,
|
| 1056 |
+
917
|
| 1057 |
+
],
|
| 1058 |
+
"page_idx": 6
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"type": "page_number",
|
| 1062 |
+
"text": "1100",
|
| 1063 |
+
"bbox": [
|
| 1064 |
+
482,
|
| 1065 |
+
927,
|
| 1066 |
+
521,
|
| 1067 |
+
940
|
| 1068 |
+
],
|
| 1069 |
+
"page_idx": 6
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"type": "text",
|
| 1073 |
+
"text": "cent research has evaluated the impact of various predictors on cryptocurrency pricing and returns, using both on-chain data—such as historical transactions and market volume (Ferdiansyah et al., 2019)—and off-chain factors like social media trends and news sentiment (Abraham et al., 2018; Pang et al., 2019). These studies underscore the effectiveness of integrating diverse data sources for forecasting the volatile dynamics of the cryptocurrency market. Apart from above, Transformer-based models have shown particular promise in this area, with state-of-the-art models like Informer (Zhou et al., 2021), AutoFormer (Wu et al., 2021), PatchTST (Nie et al., 2022), and TimesNet (Wu et al., 2022) further advancing time-series forecasting.",
|
| 1074 |
+
"bbox": [
|
| 1075 |
+
112,
|
| 1076 |
+
84,
|
| 1077 |
+
492,
|
| 1078 |
+
282
|
| 1079 |
+
],
|
| 1080 |
+
"page_idx": 7
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"type": "text",
|
| 1084 |
+
"text": "Self-Reflective Language Agents The Self-Refine framework introduces an advanced approach for autonomous advancement through self-evaluation and iterative self-improvement (Madaan et al., 2024). This approach, along with efforts to automatically refine prompts (Pryzant et al., 2023; Ye et al., 2024) and provide automated feedback to enhance reasoning capabilities (Paul et al., 2023), marks significant progress in the field. Notably, the \"Reflexion\" framework by (Shinn et al., 2024) revolutionizes the reinforcement of language agents by utilizing linguistic feedback and reflective text within an episodic memory buffer, diverging from traditional weight update methods. These advancements highlight the potential for LLMs to learn from their errors and evolve through self-reflection. Despite these developments, there is still untapped potential in applying self-reflective language agents to financial decision-making, particularly in cryptocurrency markets. This work aims to bridge that gap by investigating the application of self-reflective mechanisms to enhance financial decision-making processes in cryptocurrency trading.",
|
| 1085 |
+
"bbox": [
|
| 1086 |
+
115,
|
| 1087 |
+
287,
|
| 1088 |
+
490,
|
| 1089 |
+
602
|
| 1090 |
+
],
|
| 1091 |
+
"page_idx": 7
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"type": "text",
|
| 1095 |
+
"text": "5 Conclusion",
|
| 1096 |
+
"text_level": 1,
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
112,
|
| 1099 |
+
627,
|
| 1100 |
+
247,
|
| 1101 |
+
642
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 7
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "We propose the CryptoTrade agent, an innovative approach to cryptocurrency trading that leverages advanced data analysis and LLMs. By integrating both on-chain and off-chain data, along with a self-reflective component, the CryptoTrade agent demonstrates a sophisticated understanding of market dynamics and achieves relatively high returns in cryptocurrency trading. Our comprehensive experiments comparing the CryptoTrade agent to traditional trading strategies and time-series models reveal its superior ability to navigate the volatile cryptocurrency market, consistently achieving relatively high returns on investment under different market conditions over time-series models while not superior than traditional trading signals: Buy and Hold and SLMA. This research underscores the significant potential of LLM-driven strategies in enhancing trading performance and sets a new benchmark for cryptocurrency trading with LLMs.",
|
| 1108 |
+
"bbox": [
|
| 1109 |
+
112,
|
| 1110 |
+
662,
|
| 1111 |
+
490,
|
| 1112 |
+
919
|
| 1113 |
+
],
|
| 1114 |
+
"page_idx": 7
|
| 1115 |
+
},
|
| 1116 |
+
{
|
| 1117 |
+
"type": "text",
|
| 1118 |
+
"text": "Limitations",
|
| 1119 |
+
"text_level": 1,
|
| 1120 |
+
"bbox": [
|
| 1121 |
+
509,
|
| 1122 |
+
83,
|
| 1123 |
+
615,
|
| 1124 |
+
97
|
| 1125 |
+
],
|
| 1126 |
+
"page_idx": 7
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"type": "text",
|
| 1130 |
+
"text": "One limitation of the current CryptoTrade framework is the reliance on a relatively limited dataset. To address this, we plan to enrich the dataset with additional off-chain data. Another limitation is the frequency of trading actions, which is currently set to day-to-day. We aim to refine this to hour-to-hour or minute-to-minute intervals to further optimize returns in the cryptocurrency market. Additionally, we have identified that the lack of fine-tuning for the LLMs using the validation set may be a significant factor behind the LLM-based agents' underperformance compared to traditional trading signals. To improve the reliability of our forecasts, we intend to fine-tune the LLMs with the validation set.",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
507,
|
| 1133 |
+
107,
|
| 1134 |
+
884,
|
| 1135 |
+
292
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 7
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "Broader Impact",
|
| 1142 |
+
"text_level": 1,
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
509,
|
| 1145 |
+
304,
|
| 1146 |
+
653,
|
| 1147 |
+
319
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 7
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "One potential broader impact of our research is the risk that individuals may follow the trading strategies we provide and subsequently incur financial losses. It is important to emphasize that these strategies are intended for academic research only. CryptoTrade is not for investment recommendations.",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
507,
|
| 1156 |
+
329,
|
| 1157 |
+
882,
|
| 1158 |
+
414
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 7
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Acknowledgements",
|
| 1165 |
+
"text_level": 1,
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
509,
|
| 1168 |
+
426,
|
| 1169 |
+
680,
|
| 1170 |
+
442
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 7
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "This research is supported by the National Research Foundation, Singapore under its Industry Alignment Fund-Pre-positioning (IAF-PP) Funding Initiative. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore.",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
507,
|
| 1179 |
+
451,
|
| 1180 |
+
882,
|
| 1181 |
+
551
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 7
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "References",
|
| 1188 |
+
"text_level": 1,
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
510,
|
| 1191 |
+
577,
|
| 1192 |
+
608,
|
| 1193 |
+
590
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 7
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "list",
|
| 1199 |
+
"sub_type": "ref_text",
|
| 1200 |
+
"list_items": [
|
| 1201 |
+
"Jethin Abraham, Daniel Higdon, John Nelson, and Juan Ibarra. 2018. Cryptocurrency price prediction using tweet volumes and sentiment analysis. SMU Data Science Review, 1(3):1.",
|
| 1202 |
+
"Alexandru Costin Baroiu, Vlad Diaconita, and Simona Vasilica Oprea. 2023. Bitcoin volatility in bull vs. bear market-insights from analyzing on-chain metrics and twitter posts. PeerJ Computer Science, 9:e1750.",
|
| 1203 |
+
"Michele Cagan. 2024. *Stock Market 101: From Bull and Bear Markets to Dividends, Shares, and Margins—Your Essential Guide to the Stock Market*. Simon and Schuster.",
|
| 1204 |
+
"Zihan Chen, Lei Nico Zheng, Cheng Lu, Jialu Yuan, and Di Zhu. 2023. Chatgpt informed graph neural network for stock movement prediction. arXiv preprint arXiv:2306.03763.",
|
| 1205 |
+
"Junyan Cheng and Peter Chin. 2024. SociODOjo: Building lifelong analytical agents with real-world text and time series. In *The Twelfth International Conference on Learning Representations*."
|
| 1206 |
+
],
|
| 1207 |
+
"bbox": [
|
| 1208 |
+
509,
|
| 1209 |
+
600,
|
| 1210 |
+
885,
|
| 1211 |
+
917
|
| 1212 |
+
],
|
| 1213 |
+
"page_idx": 7
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"type": "page_number",
|
| 1217 |
+
"text": "1101",
|
| 1218 |
+
"bbox": [
|
| 1219 |
+
482,
|
| 1220 |
+
928,
|
| 1221 |
+
519,
|
| 1222 |
+
940
|
| 1223 |
+
],
|
| 1224 |
+
"page_idx": 7
|
| 1225 |
+
},
|
| 1226 |
+
{
|
| 1227 |
+
"type": "list",
|
| 1228 |
+
"sub_type": "ref_text",
|
| 1229 |
+
"list_items": [
|
| 1230 |
+
"Min-Yuh Day, Yirung Cheng, Paoyu Huang, and Yensen Ni. 2023. The profitability of bollinger bands trading bitcoin futures. Applied Economics Letters, 30(11):1437-1443.",
|
| 1231 |
+
"Stanisław Drożdź, Jarosław Kwapić, and Marcin Wa-torek. 2023. What is mature and what is still emerging in the cryptocurrency market? Entropy, 25(5):772.",
|
| 1232 |
+
"Rainer Feichtinger, Robin Fritsch, Yann Vonlanthen, and Roger Wattenhofer. 2023. The hidden shortcomings of (d) aos—an empirical study of on-chain governance. In International Conference on Financial Cryptography and Data Security, pages 165–185. Springer.",
|
| 1233 |
+
"Ferdiansyah Ferdiansyah, Siti Hajar Othman, Raja Zahilah Raja Md Radzi, Deris Stiawan, Yoppy Sazaki, and Usman Ependi. 2019. A lstm-method for bitcoin price prediction: A case study yahoo finance stock market. In 2019 international conference on electrical engineering and computer science (ICECOS), pages 206-210. IEEE.",
|
| 1234 |
+
"Ramazan Gencay. 1996. Non-linear prediction of security returns with moving average rules. Journal of Forecasting, 15(3):165-174.",
|
| 1235 |
+
"Helmut Herwartz. 2017. Stock return prediction under garch—an empirical assessment. International Journal of Forecasting, 33(3):569-580.",
|
| 1236 |
+
"Ahmed M Khedr, Ifra Arif, Magdi El-Bannany, Saadat M Alhashmi, and Meenu Sreedharan. 2021. Cryptocurrency price prediction using traditional statistical and machine-learning techniques: A survey. Intelligent Systems in Accounting, Finance and Management, 28(1):3-34.",
|
| 1237 |
+
"Kelvin JL Koa, Yunshan Ma, Ritchie Ng, and Tat-Seng Chua. 2024. Learning to generate explainable stock predictions using self-reflective large language models. In Proceedings of the ACM on Web Conference 2024, pages 4304-4315.",
|
| 1238 |
+
"Jae Won Lee. 2001. Stock price prediction using reinforcement learning. In ISIE 2001. 2001 IEEE International Symposium on Industrial Electronics Proceedings (Cat. No. 01TH8570), volume 1, pages 690-695. IEEE.",
|
| 1239 |
+
"Edward Leung, Harald Lohre, David Mischlich, Yifei Shea, and Maximilian Stroh. 2021. The promises and pitfalls of machine learning for predicting stock returns. The Journal of Financial Data Science.",
|
| 1240 |
+
"Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110.",
|
| 1241 |
+
"Xiao-Yang Liu, Guoxuan Wang, and Daochen Zha. 2023. Fingpt: Democratizing internet-scale data for financial large language models. arXiv preprint arXiv:2307.10485."
|
| 1242 |
+
],
|
| 1243 |
+
"bbox": [
|
| 1244 |
+
115,
|
| 1245 |
+
84,
|
| 1246 |
+
489,
|
| 1247 |
+
917
|
| 1248 |
+
],
|
| 1249 |
+
"page_idx": 8
|
| 1250 |
+
},
|
| 1251 |
+
{
|
| 1252 |
+
"type": "list",
|
| 1253 |
+
"sub_type": "ref_text",
|
| 1254 |
+
"list_items": [
|
| 1255 |
+
"Bingqiao Luo, Zhen Zhang, Qian Wang, Anli Ke, Shengliang Lu, and Bingsheng He. 2023. AI-powered fraud detection in decentralized finance: A project life cycle perspective. arXiv preprint arXiv:2308.15992.",
|
| 1256 |
+
"Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2024. Self-refine: Iterative refinement with self-feedback. Advances in Neural Information Processing Systems, 36.",
|
| 1257 |
+
"Arvind Narayanan, Joseph Bonneau, Edward Felten, Andrew Miller, and Steven Goldfeder. 2016. Bitcoin and cryptocurrency technologies: a comprehensive introduction. Princeton University Press.",
|
| 1258 |
+
"Yuqi Nie, Nam H Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. 2022. A time series is worth 64 words: Long-term forecasting with transformers. arXiv preprint arXiv:2211.14730.",
|
| 1259 |
+
"Yan Pang, Ganeshkumar Sundararaj, and Jiewen Ren. 2019. Cryptocurrency price prediction using time series and social sentiment data. In Proceedings of the 6th IEEE/ACM International Conference on Big Data Computing, Applications and Technologies, pages 35-41.",
|
| 1260 |
+
"Mayankkumar B Patel and Sunil R Yalamalle. 2014. Stock price prediction using artificial neural network. International Journal of Innovative Research in Science, Engineering and Technology, 3(6):13755-13762.",
|
| 1261 |
+
"Debjit Paul, Mete Ismayilzada, Maxime Peyrard, Beatrix Borges, Antoine Bosselut, Robert West, and Boi Faltings. 2023. Refiner: Reasoning feedback on intermediate representations. arXiv preprint arXiv:2304.01904.",
|
| 1262 |
+
"Reid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee, Chenguang Zhu, and Michael Zeng. 2023. Automatic prompt optimization with gradient descent and beam search. arXiv preprint arXiv:2305.03495.",
|
| 1263 |
+
"Xiao Pu, Mingqi Gao, and Xiaojun Wan. 2023. Summarization is (almost) dead. arXiv preprint arXiv:2309.09558.",
|
| 1264 |
+
"Kunpeng Ren, Nhut-Minh Ho, Dumitrel Loghin, Thanh-Toan Nguyen, Beng Chin Ooi, Quang-Trung Ta, and Feida Zhu. 2023. Interoperability in blockchain: A survey. IEEE Transactions on Knowledge and Data Engineering.",
|
| 1265 |
+
"Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2024. Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems, 36.",
|
| 1266 |
+
"Md Arif Istiake Sunny, Mirza Mohd Shahriar Maswood, and Abdullah G Alharbi. 2020. Deep learning-based stock price prediction using lstm and bi-directional lstm model. In 2020 2nd novel intelligent and leading"
|
| 1267 |
+
],
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
510,
|
| 1270 |
+
84,
|
| 1271 |
+
882,
|
| 1272 |
+
917
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 8
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "page_number",
|
| 1278 |
+
"text": "1102",
|
| 1279 |
+
"bbox": [
|
| 1280 |
+
482,
|
| 1281 |
+
928,
|
| 1282 |
+
521,
|
| 1283 |
+
940
|
| 1284 |
+
],
|
| 1285 |
+
"page_idx": 8
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"type": "list",
|
| 1289 |
+
"sub_type": "ref_text",
|
| 1290 |
+
"list_items": [
|
| 1291 |
+
"emerging sciences conference (NILES), pages 87-92. IEEE.",
|
| 1292 |
+
"Jian Wang and Junseok Kim. 2018. Predicting stock price trend using macd optimized by historical volatility. Mathematical Problems in Engineering, 2018:1-12.",
|
| 1293 |
+
"Qian Wang, Zhen Zhang, Zemin Liu, Shengliang Lu, Bingqiao Luo, and Bingsheng He. 2024. Ex-graph: A pioneering dataset bridging ethereum and x. In The Twelfth International Conference on Learning Representations.",
|
| 1294 |
+
"Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.",
|
| 1295 |
+
"Yu Wei, Yizhi Wang, Brian M Lucey, and Samuel A Vigne. 2023. Cryptocurrency uncertainty and volatility forecasting of precious metal futures markets. Journal of Commodity Markets, 29:100305.",
|
| 1296 |
+
"Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. 2022. Timesnet: Temporal 2d-variation modeling for general time series analysis. In The eleventh international conference on learning representations.",
|
| 1297 |
+
"Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. 2021. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Advances in neural information processing systems, 34:22419-22430.",
|
| 1298 |
+
"Shijie Wu, Ozan Irsoy, Steven Lu, Vadim Dabravolski, Mark Dredze, Sebastian Gehrmann, Prabhanjan Kambadur, David Rosenberg, and Gideon Mann. 2023. Bloomberggpt: A large language model for finance. arXiv preprint arXiv:2303.17564.",
|
| 1299 |
+
"Qianqian Xie, Weiguang Han, Xiao Zhang, Yanzhao Lai, Min Peng, Alejandro Lopez-Lira, and Jimin Huang. 2023. Pixiu: A large language model, instruction data and evaluation benchmark for finance. arXiv preprint arXiv:2306.05443.",
|
| 1300 |
+
"Jingfeng Yang, Hongye Jin, Ruixiang Tang, Xiaotian Han, Qizhang Feng, Haoming Jiang, Shaochen Zhong, Bing Yin, and Xia Hu. 2024. Harnessing the power of llms in practice: A survey on chatgpt and beyond. ACM Transactions on Knowledge Discovery from Data, 18(6):1-32.",
|
| 1301 |
+
"Seonghyeon Ye, Hyeonbin Hwang, Sohee Yang, Hyeongu Yun, Yireun Kim, and Minjoon Seo. 2024. Investigating the effectiveness of task-agnostic prefix prompt for instruction following. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19386-19394.",
|
| 1302 |
+
"Kun Yi, Qi Zhang, Wei Fan, Shoujin Wang, Pengyang Wang, Hui He, Ning An, Defu Lian, Longbing Cao, and Zhendong Niu. 2024. Frequency-domain mlps are more effective learners in time series forecasting."
|
| 1303 |
+
],
|
| 1304 |
+
"bbox": [
|
| 1305 |
+
115,
|
| 1306 |
+
84,
|
| 1307 |
+
489,
|
| 1308 |
+
917
|
| 1309 |
+
],
|
| 1310 |
+
"page_idx": 9
|
| 1311 |
+
},
|
| 1312 |
+
{
|
| 1313 |
+
"type": "list",
|
| 1314 |
+
"sub_type": "ref_text",
|
| 1315 |
+
"list_items": [
|
| 1316 |
+
"Advances in Neural Information Processing Systems, 36.",
|
| 1317 |
+
"Xinli Yu, Zheng Chen, Yuan Ling, Shujing Dong, Zongyi Liu, and Yanbin Lu. 2023. Temporal data meets llm-explainable financial time series forecasting. arXiv preprint arXiv:2306.11025.",
|
| 1318 |
+
"Zhuosheng Zhang, Aston Zhang, Mu Li, Hai Zhao, George Karypis, and Alex Smola. 2023. Multimodal chain-of-thought reasoning in language models. arXiv preprint arXiv:2302.00923.",
|
| 1319 |
+
"Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. 2023. A survey of large language models. arXiv preprint arXiv:2303.18223.",
|
| 1320 |
+
"Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. 2021. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 11106-11115."
|
| 1321 |
+
],
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
510,
|
| 1324 |
+
84,
|
| 1325 |
+
882,
|
| 1326 |
+
395
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 9
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "page_number",
|
| 1332 |
+
"text": "1103",
|
| 1333 |
+
"bbox": [
|
| 1334 |
+
482,
|
| 1335 |
+
928,
|
| 1336 |
+
519,
|
| 1337 |
+
940
|
| 1338 |
+
],
|
| 1339 |
+
"page_idx": 9
|
| 1340 |
+
},
|
| 1341 |
+
{
|
| 1342 |
+
"type": "text",
|
| 1343 |
+
"text": "Appendix",
|
| 1344 |
+
"text_level": 1,
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
114,
|
| 1347 |
+
83,
|
| 1348 |
+
203,
|
| 1349 |
+
99
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 10
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "A License",
|
| 1356 |
+
"text_level": 1,
|
| 1357 |
+
"bbox": [
|
| 1358 |
+
114,
|
| 1359 |
+
109,
|
| 1360 |
+
218,
|
| 1361 |
+
124
|
| 1362 |
+
],
|
| 1363 |
+
"page_idx": 10
|
| 1364 |
+
},
|
| 1365 |
+
{
|
| 1366 |
+
"type": "text",
|
| 1367 |
+
"text": "The CryptoTrade's dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) license. This means that anyone can use, distribute, and modify the data for non-commercial purposes as long as they give proper attribution and share the derivative works under the same license terms.",
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
112,
|
| 1370 |
+
136,
|
| 1371 |
+
487,
|
| 1372 |
+
219
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 10
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "B Data Ethics",
|
| 1379 |
+
"text_level": 1,
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
114,
|
| 1382 |
+
236,
|
| 1383 |
+
253,
|
| 1384 |
+
250
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 10
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "B.1 On-chain Data",
|
| 1391 |
+
"text_level": 1,
|
| 1392 |
+
"bbox": [
|
| 1393 |
+
114,
|
| 1394 |
+
262,
|
| 1395 |
+
265,
|
| 1396 |
+
275
|
| 1397 |
+
],
|
| 1398 |
+
"page_idx": 10
|
| 1399 |
+
},
|
| 1400 |
+
{
|
| 1401 |
+
"type": "text",
|
| 1402 |
+
"text": "We collect on-chain data from CoinMarketCap<sup>9</sup> and Dune<sup>10</sup>. According to CoinMarketCap's Terms of Service<sup>11</sup>, we are granted a limited, personal, non-exclusive, non-sub-licENSable, and non-transferable license to use the content and service solely for personal use. We agree not to use the service or any of the content for any commercial purpose, and we adhere to these requirements. Regarding Dune's Terms of Service<sup>12</sup>, we are permitted to access Dune's application programming interfaces (the \"API\") to perform SQL queries on blockchain data.",
|
| 1403 |
+
"bbox": [
|
| 1404 |
+
112,
|
| 1405 |
+
282,
|
| 1406 |
+
487,
|
| 1407 |
+
426
|
| 1408 |
+
],
|
| 1409 |
+
"page_idx": 10
|
| 1410 |
+
},
|
| 1411 |
+
{
|
| 1412 |
+
"type": "text",
|
| 1413 |
+
"text": "B.2 Off-chain News",
|
| 1414 |
+
"text_level": 1,
|
| 1415 |
+
"bbox": [
|
| 1416 |
+
114,
|
| 1417 |
+
438,
|
| 1418 |
+
270,
|
| 1419 |
+
451
|
| 1420 |
+
],
|
| 1421 |
+
"page_idx": 10
|
| 1422 |
+
},
|
| 1423 |
+
{
|
| 1424 |
+
"type": "text",
|
| 1425 |
+
"text": "We employ the Gnews<sup>13</sup> to systematically gather news articles related to each cryptocurrency. According to Gnews' Terms of Service<sup>14</sup>, we can download the news for non-commercial transitory viewing only, and we cannot modify or copy the materials, use the materials for any commercial purpose or any public display, attempt to reverse engineer any software contained on Gnews API's website, remove any copyright or other proprietary notations from the materials, or transfer the materials to another person or \"mirror\" the materials on any other server. We adhere to these conditions in our CryptoTrade dataset.",
|
| 1426 |
+
"bbox": [
|
| 1427 |
+
112,
|
| 1428 |
+
458,
|
| 1429 |
+
487,
|
| 1430 |
+
629
|
| 1431 |
+
],
|
| 1432 |
+
"page_idx": 10
|
| 1433 |
+
},
|
| 1434 |
+
{
|
| 1435 |
+
"type": "text",
|
| 1436 |
+
"text": "C Experimental Environment",
|
| 1437 |
+
"text_level": 1,
|
| 1438 |
+
"bbox": [
|
| 1439 |
+
114,
|
| 1440 |
+
644,
|
| 1441 |
+
389,
|
| 1442 |
+
659
|
| 1443 |
+
],
|
| 1444 |
+
"page_idx": 10
|
| 1445 |
+
},
|
| 1446 |
+
{
|
| 1447 |
+
"type": "text",
|
| 1448 |
+
"text": "All models in our experiments were implemented using Pytorch 2.0.0 in Python 3.9.16, and run on a robust Linux workstation. This system is equipped with two Intel(R) Xeon(R) Gold 6226R CPUs, each operating at a base frequency of $2.90\\mathrm{GHz}$ and a max turbo frequency of $3.90\\mathrm{GHz}$ . With 16 cores each, capable of supporting 32 threads, these CPUs offer a total of 64 logical CPUs for efficient multitasking and parallel computing. The workstation is further complemented by a potent GPU setup, comprising eight NVIDIA GeForce RTX 3090 GPUs, each providing 24.576 GB of memory. The",
|
| 1449 |
+
"bbox": [
|
| 1450 |
+
112,
|
| 1451 |
+
670,
|
| 1452 |
+
487,
|
| 1453 |
+
827
|
| 1454 |
+
],
|
| 1455 |
+
"page_idx": 10
|
| 1456 |
+
},
|
| 1457 |
+
{
|
| 1458 |
+
"type": "text",
|
| 1459 |
+
"text": "operation of these GPUs is managed by the NVIDIA-SMI 525.60.13 driver and CUDA 12.0, ensuring optimal computational performance for our tasks.",
|
| 1460 |
+
"bbox": [
|
| 1461 |
+
507,
|
| 1462 |
+
84,
|
| 1463 |
+
882,
|
| 1464 |
+
127
|
| 1465 |
+
],
|
| 1466 |
+
"page_idx": 10
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"type": "text",
|
| 1470 |
+
"text": "D Analysts Examples",
|
| 1471 |
+
"text_level": 1,
|
| 1472 |
+
"bbox": [
|
| 1473 |
+
509,
|
| 1474 |
+
141,
|
| 1475 |
+
712,
|
| 1476 |
+
158
|
| 1477 |
+
],
|
| 1478 |
+
"page_idx": 10
|
| 1479 |
+
},
|
| 1480 |
+
{
|
| 1481 |
+
"type": "text",
|
| 1482 |
+
"text": "In this section, we provide some examples of News Analyst, Market Analyst, Reflection Analyst, and Trading Analyst.",
|
| 1483 |
+
"bbox": [
|
| 1484 |
+
507,
|
| 1485 |
+
167,
|
| 1486 |
+
882,
|
| 1487 |
+
210
|
| 1488 |
+
],
|
| 1489 |
+
"page_idx": 10
|
| 1490 |
+
},
|
| 1491 |
+
{
|
| 1492 |
+
"type": "image",
|
| 1493 |
+
"img_path": "images/1d4e4307c30ca1353870ffd02aaf3b9d22d83a52d7c0b164d2b58cec1ad02efb.jpg",
|
| 1494 |
+
"image_caption": [],
|
| 1495 |
+
"image_footnote": [],
|
| 1496 |
+
"bbox": [
|
| 1497 |
+
522,
|
| 1498 |
+
225,
|
| 1499 |
+
872,
|
| 1500 |
+
304
|
| 1501 |
+
],
|
| 1502 |
+
"page_idx": 10
|
| 1503 |
+
},
|
| 1504 |
+
{
|
| 1505 |
+
"type": "image",
|
| 1506 |
+
"img_path": "images/6f63c16b1d50f16a08856cae526ffd101a4e35b929738d4b2045af2664a7ad05.jpg",
|
| 1507 |
+
"image_caption": [
|
| 1508 |
+
"Figure 4: A sample of the Market Analyst."
|
| 1509 |
+
],
|
| 1510 |
+
"image_footnote": [],
|
| 1511 |
+
"bbox": [
|
| 1512 |
+
522,
|
| 1513 |
+
307,
|
| 1514 |
+
865,
|
| 1515 |
+
368
|
| 1516 |
+
],
|
| 1517 |
+
"page_idx": 10
|
| 1518 |
+
},
|
| 1519 |
+
{
|
| 1520 |
+
"type": "image",
|
| 1521 |
+
"img_path": "images/1f5ffe357d97da38323c349213bdc32436855357170798dba34eeaf7c7b68dec.jpg",
|
| 1522 |
+
"image_caption": [],
|
| 1523 |
+
"image_footnote": [],
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
519,
|
| 1526 |
+
428,
|
| 1527 |
+
870,
|
| 1528 |
+
487
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "image",
|
| 1534 |
+
"img_path": "images/cdc49c4489c57e4e6e2c65903ace2c8772d7855c0ddb90395117b9e14e8b6234.jpg",
|
| 1535 |
+
"image_caption": [
|
| 1536 |
+
"Figure 5: A sample of the News Analyst."
|
| 1537 |
+
],
|
| 1538 |
+
"image_footnote": [],
|
| 1539 |
+
"bbox": [
|
| 1540 |
+
519,
|
| 1541 |
+
491,
|
| 1542 |
+
868,
|
| 1543 |
+
571
|
| 1544 |
+
],
|
| 1545 |
+
"page_idx": 10
|
| 1546 |
+
},
|
| 1547 |
+
{
|
| 1548 |
+
"type": "image",
|
| 1549 |
+
"img_path": "images/97f954c419cc07338638cb1cd49a2c004a95ac64e1ffe85be28a36feb90aaeff.jpg",
|
| 1550 |
+
"image_caption": [
|
| 1551 |
+
"Figure 6: A sample of the Trading Analyst."
|
| 1552 |
+
],
|
| 1553 |
+
"image_footnote": [],
|
| 1554 |
+
"bbox": [
|
| 1555 |
+
519,
|
| 1556 |
+
633,
|
| 1557 |
+
868,
|
| 1558 |
+
791
|
| 1559 |
+
],
|
| 1560 |
+
"page_idx": 10
|
| 1561 |
+
},
|
| 1562 |
+
{
|
| 1563 |
+
"type": "text",
|
| 1564 |
+
"text": "E Baselines",
|
| 1565 |
+
"text_level": 1,
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
509,
|
| 1568 |
+
848,
|
| 1569 |
+
626,
|
| 1570 |
+
864
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 10
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "text",
|
| 1576 |
+
"text": "1. **Buy and Hold:** A straightforward strategy where an asset is purchased at the beginning of the period and held until its end.",
|
| 1577 |
+
"bbox": [
|
| 1578 |
+
522,
|
| 1579 |
+
875,
|
| 1580 |
+
880,
|
| 1581 |
+
917
|
| 1582 |
+
],
|
| 1583 |
+
"page_idx": 10
|
| 1584 |
+
},
|
| 1585 |
+
{
|
| 1586 |
+
"type": "page_footnote",
|
| 1587 |
+
"text": "9https://coinmarketcap.com",
|
| 1588 |
+
"bbox": [
|
| 1589 |
+
132,
|
| 1590 |
+
839,
|
| 1591 |
+
371,
|
| 1592 |
+
853
|
| 1593 |
+
],
|
| 1594 |
+
"page_idx": 10
|
| 1595 |
+
},
|
| 1596 |
+
{
|
| 1597 |
+
"type": "page_footnote",
|
| 1598 |
+
"text": "10https://dune.com/home",
|
| 1599 |
+
"bbox": [
|
| 1600 |
+
132,
|
| 1601 |
+
854,
|
| 1602 |
+
334,
|
| 1603 |
+
865
|
| 1604 |
+
],
|
| 1605 |
+
"page_idx": 10
|
| 1606 |
+
},
|
| 1607 |
+
{
|
| 1608 |
+
"type": "page_footnote",
|
| 1609 |
+
"text": "11https://coinmarketcap.com/terms/",
|
| 1610 |
+
"bbox": [
|
| 1611 |
+
134,
|
| 1612 |
+
866,
|
| 1613 |
+
433,
|
| 1614 |
+
879
|
| 1615 |
+
],
|
| 1616 |
+
"page_idx": 10
|
| 1617 |
+
},
|
| 1618 |
+
{
|
| 1619 |
+
"type": "page_footnote",
|
| 1620 |
+
"text": "12https://dune.com/terms",
|
| 1621 |
+
"bbox": [
|
| 1622 |
+
134,
|
| 1623 |
+
879,
|
| 1624 |
+
342,
|
| 1625 |
+
891
|
| 1626 |
+
],
|
| 1627 |
+
"page_idx": 10
|
| 1628 |
+
},
|
| 1629 |
+
{
|
| 1630 |
+
"type": "page_footnote",
|
| 1631 |
+
"text": "$^{13}$ https://pypi.org/project/gnews/",
|
| 1632 |
+
"bbox": [
|
| 1633 |
+
134,
|
| 1634 |
+
892,
|
| 1635 |
+
423,
|
| 1636 |
+
904
|
| 1637 |
+
],
|
| 1638 |
+
"page_idx": 10
|
| 1639 |
+
},
|
| 1640 |
+
{
|
| 1641 |
+
"type": "page_footnote",
|
| 1642 |
+
"text": "<sup>14</sup>https://gnews.io/terms/",
|
| 1643 |
+
"bbox": [
|
| 1644 |
+
134,
|
| 1645 |
+
904,
|
| 1646 |
+
352,
|
| 1647 |
+
917
|
| 1648 |
+
],
|
| 1649 |
+
"page_idx": 10
|
| 1650 |
+
},
|
| 1651 |
+
{
|
| 1652 |
+
"type": "page_number",
|
| 1653 |
+
"text": "1104",
|
| 1654 |
+
"bbox": [
|
| 1655 |
+
482,
|
| 1656 |
+
928,
|
| 1657 |
+
519,
|
| 1658 |
+
940
|
| 1659 |
+
],
|
| 1660 |
+
"page_idx": 10
|
| 1661 |
+
},
|
| 1662 |
+
{
|
| 1663 |
+
"type": "image",
|
| 1664 |
+
"img_path": "images/61074ba1328f49cdffedae6274d18295168ae9938cbbdfdace53e5676b846555.jpg",
|
| 1665 |
+
"image_caption": [],
|
| 1666 |
+
"image_footnote": [],
|
| 1667 |
+
"bbox": [
|
| 1668 |
+
124,
|
| 1669 |
+
83,
|
| 1670 |
+
147,
|
| 1671 |
+
97
|
| 1672 |
+
],
|
| 1673 |
+
"page_idx": 11
|
| 1674 |
+
},
|
| 1675 |
+
{
|
| 1676 |
+
"type": "image",
|
| 1677 |
+
"img_path": "images/7b064e2fe72f9aa1ffc012576edf4d13d0e0e475ce87ce438ab2b49fa54eef1d.jpg",
|
| 1678 |
+
"image_caption": [],
|
| 1679 |
+
"image_footnote": [],
|
| 1680 |
+
"bbox": [
|
| 1681 |
+
156,
|
| 1682 |
+
87,
|
| 1683 |
+
450,
|
| 1684 |
+
195
|
| 1685 |
+
],
|
| 1686 |
+
"page_idx": 11
|
| 1687 |
+
},
|
| 1688 |
+
{
|
| 1689 |
+
"type": "image",
|
| 1690 |
+
"img_path": "images/ce6dc571c6f2bbbd966f5753c672268df32472cb4002a86704733923e69ec1e3.jpg",
|
| 1691 |
+
"image_caption": [],
|
| 1692 |
+
"image_footnote": [],
|
| 1693 |
+
"bbox": [
|
| 1694 |
+
126,
|
| 1695 |
+
199,
|
| 1696 |
+
147,
|
| 1697 |
+
215
|
| 1698 |
+
],
|
| 1699 |
+
"page_idx": 11
|
| 1700 |
+
},
|
| 1701 |
+
{
|
| 1702 |
+
"type": "image",
|
| 1703 |
+
"img_path": "images/6057f190046a58be97c2604e7081529df92be774edf1fb4193fd1981e0040b00.jpg",
|
| 1704 |
+
"image_caption": [],
|
| 1705 |
+
"image_footnote": [],
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
152,
|
| 1708 |
+
202,
|
| 1709 |
+
465,
|
| 1710 |
+
231
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 11
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "image",
|
| 1716 |
+
"img_path": "images/ef26cf0b1eba3a7e923be533198348117c05320ad873378f8da18faf6b78cd63.jpg",
|
| 1717 |
+
"image_caption": [],
|
| 1718 |
+
"image_footnote": [],
|
| 1719 |
+
"bbox": [
|
| 1720 |
+
152,
|
| 1721 |
+
235,
|
| 1722 |
+
457,
|
| 1723 |
+
254
|
| 1724 |
+
],
|
| 1725 |
+
"page_idx": 11
|
| 1726 |
+
},
|
| 1727 |
+
{
|
| 1728 |
+
"type": "image",
|
| 1729 |
+
"img_path": "images/f1a4214d377cf96d2a28dd74d2523004f1581c14fb1bd0f7ddc04d23093d19a7.jpg",
|
| 1730 |
+
"image_caption": [
|
| 1731 |
+
"Figure 7: A sample of the Reflection Analyst."
|
| 1732 |
+
],
|
| 1733 |
+
"image_footnote": [],
|
| 1734 |
+
"bbox": [
|
| 1735 |
+
152,
|
| 1736 |
+
256,
|
| 1737 |
+
465,
|
| 1738 |
+
275
|
| 1739 |
+
],
|
| 1740 |
+
"page_idx": 11
|
| 1741 |
+
},
|
| 1742 |
+
{
|
| 1743 |
+
"type": "image",
|
| 1744 |
+
"img_path": "images/644aa701e6dbe85d7d7a497f3ec434706a4250eafd4365d40b7188e2aaa080dd.jpg",
|
| 1745 |
+
"image_caption": [],
|
| 1746 |
+
"image_footnote": [],
|
| 1747 |
+
"bbox": [
|
| 1748 |
+
152,
|
| 1749 |
+
278,
|
| 1750 |
+
465,
|
| 1751 |
+
293
|
| 1752 |
+
],
|
| 1753 |
+
"page_idx": 11
|
| 1754 |
+
},
|
| 1755 |
+
{
|
| 1756 |
+
"type": "list",
|
| 1757 |
+
"sub_type": "text",
|
| 1758 |
+
"list_items": [
|
| 1759 |
+
"2. SMA (Gencay, 1996): SMA triggers buy or sell decisions based on the asset's price relative to its moving average. We finetune the SMA period by testing different window sizes [5, 10, 15, 20, 30]. The optimal period is selected based on the best performance on the validation set.",
|
| 1760 |
+
"3. SLMA (Wang and Kim, 2018): SLMA involves two moving averages of different lengths, with trading signals generated at their crossover points. We use different combinations of short and long SMA periods, selecting the optimal ones based on validation set performance.",
|
| 1761 |
+
"4. MACD (Wang and Kim, 2018): A strategy that uses the MACD indicator to identify potential buy and sell opportunities based on the momentum of the asset. The MACD is calculated as the difference between the 12-day EMA and the 26-day EMA, with a 9-day EMA of the MACD line serving as the signal line. EMA stands for Exponential Moving Average. It is a type of moving average that places a greater weight and significance on the most recent data points.",
|
| 1762 |
+
"5. Bollinger Bands (Day et al., 2023): This strategy generates trading signals based on price movements relative to the middle, lower, and upper Bollinger Bands. Bollinger Bands are constructed using a 20-day SMA and a multiplier (commonly set to 2) for the standard deviation. We use the recommended period and multiplier settings for this strategy.",
|
| 1763 |
+
"6. LSTM (Ferdiansyah et al., 2019): This strategy involves comparing today's price with the predicted price for tomorrow to identify potential buying and selling opportunities. We fine-tune the look-back window size using values in [1, 3, 5, 10, 20, 30] and select the parameters that perform best on the validation set."
|
| 1764 |
+
],
|
| 1765 |
+
"bbox": [
|
| 1766 |
+
126,
|
| 1767 |
+
346,
|
| 1768 |
+
489,
|
| 1769 |
+
917
|
| 1770 |
+
],
|
| 1771 |
+
"page_idx": 11
|
| 1772 |
+
},
|
| 1773 |
+
{
|
| 1774 |
+
"type": "list",
|
| 1775 |
+
"sub_type": "text",
|
| 1776 |
+
"list_items": [
|
| 1777 |
+
"7. Informer (Zhou et al., 2021): Informer utilizes an efficient self-attention mechanism to capture dependencies among variables. We adopt the recommended configuration for our experimental settings: a dropout rate of 0.05, two encoder layers, one decoder layer, a learning rate of 0.0001, and the Adam optimizer (Yi et al., 2024). The look-back window size is selected using the same procedure as for the LSTM.",
|
| 1778 |
+
"8. AutoFormer (Wu et al., 2021): AutoFormer introduces a decomposition architecture by embedding the series decomposition block as an inner operator, allowing for the progressive aggregation of the long-term trend from intermediate predictions. We use the recommended configuration for our experimental settings (Yi et al., 2024). The look-back window size is selected using the same procedure as for the LSTM.",
|
| 1779 |
+
"9. TimesNet (Wu et al., 2022): TimesNet provides a general framework for various time-series forecasting tasks. We adopt the recommended configurations for our experimental settings (Wu et al., 2022). The look-back window size is selected using the same procedure as for the LSTM.",
|
| 1780 |
+
"10. PatchTST (Nie et al., 2022): PatchTST proposes an effective design for Transformer-based models in time series forecasting by introducing two key components: patching and a channel-independent structure (Yi et al., 2024). The recommended configurations are used for our experimental settings. The look-back window size is selected using the same procedure as for the LSTM."
|
| 1781 |
+
],
|
| 1782 |
+
"bbox": [
|
| 1783 |
+
515,
|
| 1784 |
+
84,
|
| 1785 |
+
884,
|
| 1786 |
+
587
|
| 1787 |
+
],
|
| 1788 |
+
"page_idx": 11
|
| 1789 |
+
},
|
| 1790 |
+
{
|
| 1791 |
+
"type": "text",
|
| 1792 |
+
"text": "F Author Statement",
|
| 1793 |
+
"text_level": 1,
|
| 1794 |
+
"bbox": [
|
| 1795 |
+
509,
|
| 1796 |
+
605,
|
| 1797 |
+
700,
|
| 1798 |
+
620
|
| 1799 |
+
],
|
| 1800 |
+
"page_idx": 11
|
| 1801 |
+
},
|
| 1802 |
+
{
|
| 1803 |
+
"type": "text",
|
| 1804 |
+
"text": "As authors of the CryptoTrade, we hereby declare that we assume full responsibility for any liability or infringement of third-party rights that may come up from the use of our data. We confirm that we have obtained all necessary permissions and/or licenses needed to share this data with others for their own use. In doing so, we agree to indemnify and hold harmless any person or entity that may suffer damages resulting from our actions.",
|
| 1805 |
+
"bbox": [
|
| 1806 |
+
507,
|
| 1807 |
+
632,
|
| 1808 |
+
882,
|
| 1809 |
+
759
|
| 1810 |
+
],
|
| 1811 |
+
"page_idx": 11
|
| 1812 |
+
},
|
| 1813 |
+
{
|
| 1814 |
+
"type": "text",
|
| 1815 |
+
"text": "Furthermore, we confirm that our CryptoTrade dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) license. This license allows anyone to use, distribute, and modify our data for non-commercial purposes as long as they give proper attribution and share the derivative works under the same license terms. We believe that this licensing model aligns with our goal of promoting open access to high-quality data while respecting the intellectual property rights of all parties involved.",
|
| 1816 |
+
"bbox": [
|
| 1817 |
+
507,
|
| 1818 |
+
762,
|
| 1819 |
+
884,
|
| 1820 |
+
917
|
| 1821 |
+
],
|
| 1822 |
+
"page_idx": 11
|
| 1823 |
+
},
|
| 1824 |
+
{
|
| 1825 |
+
"type": "page_number",
|
| 1826 |
+
"text": "1105",
|
| 1827 |
+
"bbox": [
|
| 1828 |
+
480,
|
| 1829 |
+
927,
|
| 1830 |
+
519,
|
| 1831 |
+
940
|
| 1832 |
+
],
|
| 1833 |
+
"page_idx": 11
|
| 1834 |
+
},
|
| 1835 |
+
{
|
| 1836 |
+
"type": "text",
|
| 1837 |
+
"text": "G Hosting Plan",
|
| 1838 |
+
"text_level": 1,
|
| 1839 |
+
"bbox": [
|
| 1840 |
+
115,
|
| 1841 |
+
82,
|
| 1842 |
+
265,
|
| 1843 |
+
99
|
| 1844 |
+
],
|
| 1845 |
+
"page_idx": 12
|
| 1846 |
+
},
|
| 1847 |
+
{
|
| 1848 |
+
"type": "text",
|
| 1849 |
+
"text": "We have chosen to host our code and data on GitHub at https://github.com/Xtra-Computing/CryptoTrade. Our decision is based on various factors, including the platform's ease of use, cost-effectiveness, and scalability. We understand that accessibility is key when it comes to data management, which is why we will ensure that our data is easily accessible through a curated interface. We also recognize the importance of maintaining the platform's stability and functionality, and as such, we will provide the necessary maintenance to ensure that it remains up-to-date, bug-free, and running smoothly.",
|
| 1850 |
+
"bbox": [
|
| 1851 |
+
112,
|
| 1852 |
+
105,
|
| 1853 |
+
489,
|
| 1854 |
+
275
|
| 1855 |
+
],
|
| 1856 |
+
"page_idx": 12
|
| 1857 |
+
},
|
| 1858 |
+
{
|
| 1859 |
+
"type": "text",
|
| 1860 |
+
"text": "At the heart of our project is the belief in open access to data, and we are committed to making our data available to those who need it. As part of this commitment, we will be updating our GitHub repository regularly, so that users can rely on timely access to the most current information. We hope that by using GitHub as our hosting platform, we can provide a user-friendly and reliable solution for sharing our data with others.",
|
| 1861 |
+
"bbox": [
|
| 1862 |
+
112,
|
| 1863 |
+
277,
|
| 1864 |
+
489,
|
| 1865 |
+
391
|
| 1866 |
+
],
|
| 1867 |
+
"page_idx": 12
|
| 1868 |
+
},
|
| 1869 |
+
{
|
| 1870 |
+
"type": "page_number",
|
| 1871 |
+
"text": "1106",
|
| 1872 |
+
"bbox": [
|
| 1873 |
+
482,
|
| 1874 |
+
928,
|
| 1875 |
+
521,
|
| 1876 |
+
940
|
| 1877 |
+
],
|
| 1878 |
+
"page_idx": 12
|
| 1879 |
+
}
|
| 1880 |
+
]
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/b081b36d-1dc8-48f8-9a03-2f7a8b568964_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55c470c0d08d1068f0ff3d8d140d05542404917663179b09a99bf5b6445238f0
|
| 3 |
+
size 654236
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/full.md
ADDED
|
@@ -0,0 +1,317 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CryptoTrade: A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading
|
| 2 |
+
|
| 3 |
+
Yuan Li,\* Bingqiao Luo,\* Qian Wang,\* Nuo Chen, Xu Liu, Bingsheng He
|
| 4 |
+
National University of Singapore
|
| 5 |
+
|
| 6 |
+
li.yuan@u.nus.edu,luo.bingqiao@u.nus.edu,qiansoc@nus.edu.sg
|
| 7 |
+
|
| 8 |
+
nuochen@comp.nus.edu.sg, liuxu@comp.nus.edu.sg
|
| 9 |
+
|
| 10 |
+
hebs@comp.nus.edu.sg
|
| 11 |
+
|
| 12 |
+
# Abstract
|
| 13 |
+
|
| 14 |
+
The utilization of Large Language Models (LLMs) in financial trading has primarily been concentrated within the stock market, aiding in economic and financial decisions. Yet, the unique opportunities presented by the cryptocurrency market, noted for its on-chain data's transparency and the critical influence of off-chain signals like news, remain largely untapped by LLMs. This work aims to bridge the gap by developing an LLM-based trading agent, CryptoTrade, which uniquely combines the analysis of on-chain and off-chain data. This approach leverages the transparency and immutability of on-chain data, as well as the timeliness and influence of off-chain signals, providing a comprehensive overview of the cryptocurrency market. CryptoTrade incorporates a reflective mechanism specifically engineered to refine its daily trading decisions by analyzing the outcomes of prior trading decisions. This research makes two significant contributions. Firstly, it broadens the applicability of LLMs to the domain of cryptocurrency trading. Secondly, it establishes a benchmark for cryptocurrency trading strategies. Through extensive experiments, CryptoTrade has demonstrated superior performance in maximizing returns compared to time-series baselines, but not compared to traditional trading signals, across various cryptocurrencies and market conditions. Our code and data are available at https://github.com/Xtra-Computing/CryptoTrade.
|
| 15 |
+
|
| 16 |
+
# 1 Introduction
|
| 17 |
+
|
| 18 |
+
Large Language Models (LLMs) have revolutionized financial decision-making and stock market prediction by excelling in tasks such as sentiment analysis (Liang et al., 2022) and explanation generation (Pu et al., 2023). Specialized models like FinGPT and BloombergGPT (Liu et al., 2023; Wu et al., 2023) demonstrate this capability. Recent research highlights their ability to interpret financial time-series and enhance cross-sequence
|
| 19 |
+
|
| 20 |
+
reasoning (Wei et al., 2022; Yu et al., 2023; Zhang et al., 2023; Zhao et al., 2023; Yang et al., 2024). Furthermore, the development of LLM-based trading agents like Sociodojo (Cheng and Chin, 2024) underscores the potential for innovating investment strategies.
|
| 21 |
+
|
| 22 |
+
However, the application of LLMs in the cryptocurrency market remains underexplored, yet this field holds great potential for future development for three main reasons. First, the cryptocurrency market is characterized by high market value, volatility, and uncertainty, which challenge traditional trading signals (Drozdž et al., 2023; Wei et al., 2023; Wang et al., 2024). Second, LLMs have demonstrated their ability to understand and analyze financial markets by leveraging large volumes of multimodal data, such as news and price information (Wu et al., 2023). Third, the cryptocurrency market includes open-sourced on-chain data, such as gas prices and total transaction values, providing insights beyond just price movements (Feichtinger et al., 2023; Ren et al., 2023; Luo et al., 2023). To bridge this gap, we introduce CryptoTrade. By integrating on-chain data, including market data and transaction records, with off-chain information like financial news, CryptoTrade leverages both dimensions to execute daily trading strategies, taking full advantage of the transparency of on-chain data and the immediacy of off-chain information. We detail the structure of CryptoTrade in Figure 1.
|
| 23 |
+
|
| 24 |
+
CryptoTrade consists of a three-part framework. Initially, we collect data where on-chain details such as transactions and broader market data are aggregated alongside off-chain data from established financial news outlets like Bloomberg and Yahoo Finance. After data collection, we perform statistical analyses to calculate indicators such as moving averages, and apply text processing techniques for news summarization using the same GPT models that will later be employed for analysis: GPT-3.5-turbo $^{1}$ , GPT-4 $^{2}$ , and GPT-4o $^{3}$ . Finally, we enhance day-to-day decision-making with specialized analytical agents: market analyst agent evaluates market trends, news analyst agent interprets recent news impacts, and trading agent deliberates on investment
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
Figure 1: CryptoTrade Framework. Our framework begins with the collection of various types of data, including on-chain transactions, market data, and off-chain data from multiple financial news sources. We extract on-chain statistics while summarizing off-chain news to provide comprehensive inputs for our agents' analysis. We then deploy several LLM-based agents to make day-to-day trading decisions, utilizing a reflective mechanism to maximize total returns over different time periods.
|
| 28 |
+
|
| 29 |
+
actions. Concurrently, reflection agent reviews past performance, allowing CryptoTrade to refine its strategies to maximize returns.
|
| 30 |
+
|
| 31 |
+
Then, we conduct comprehensive experiments with CryptoTrade using GPT-3.5-turbo, GPT-4, and GPT-4o, evaluating its proficiency in making daily trading decisions for Bitcoin (BTC), Ethereum (ETH), and Solana (SOL). These three cryptocurrencies were selected for their prominence and market values of $134.14,$ 45.59, and $7.61 billion, respectively, as of June 2nd, 2024<sup>4</sup>. CryptoTrade significantly outperforms time-series baselines such as Informer (Zhou et al., 2021) and PatchTST (Nie et al., 2022), and achieves comparable performance to trading signals like Moving Average Convergence Divergence (MACD) (Gencay, 1996) in both return and sharpe ratio across bull, sideways, and bear market conditions. Notably, CryptoTrade operates in a zero-shot manner without fine-tuning based on validation sets, highlighting its potential for future applications. For instance, during the ETH bullish test period, the Buy and Hold strategy secured a 22.59% return, while CryptoTrade exceeded this by a remarkable 3%.
|
| 32 |
+
|
| 33 |
+
To summarize, we make the following three contributions:
|
| 34 |
+
|
| 35 |
+
- We introduce CryptoTrade, an innovative trading agent in the cryptocurrency domain, driven by LLMs. CryptoTrade is designed to generate op
|
| 36 |
+
|
| 37 |
+
timized trading decisions specifically for the cryptocurrency market, setting a new benchmark in this field.
|
| 38 |
+
|
| 39 |
+
- We develop a comprehensive framework for cryptocurrency trading agents that encompasses the collection of both on-chain and off-chain data, along with the integration of a self-reflective component to enhance decision-making processes. This approach aggregates diverse information sources and establishes a new standard for data-driven trading strategies within the cryptocurrency domain.
|
| 40 |
+
- Through rigorous experiments, we present empirical evidence showcasing the efficacy of CryptoTrade compared to other baselines. CryptoTrade advances the frontier of cryptocurrency trading technologies and offers valuable insights for financial decision-making.
|
| 41 |
+
|
| 42 |
+
# 2 CryptoTrade Framework
|
| 43 |
+
|
| 44 |
+
This section details the components employed to develop the CryptoTrade agent, including data collection, market dynamics analysis, and agents development. Figure 1 shows an overview of CryptoTrade.
|
| 45 |
+
|
| 46 |
+
# 2.1 Data Collection
|
| 47 |
+
|
| 48 |
+
The foundation of our methodology relies on a comprehensive collection of data from on-chain and off-chain
|
| 49 |
+
|
| 50 |
+
sources, which is essential for making informed trading decisions in the cryptocurrency market. The data license is detailed in Appendix A. The data ethics are explained in Appendix B. The data collection strategy is illustrated in Figure 1(a) and further detailed below:
|
| 51 |
+
|
| 52 |
+
- On-chain Data: We leverage historical data from CoinMarketCap<sup>5</sup>, which provides daily insights into prices, trading volumes, and market capitalization of various cryptocurrencies: BTC, ETH, SOL. This dataset forms the backbone of our market trend analysis, enabling us to decipher long-term trends and identify cycles in cryptocurrency valuations and investor behavior.
|
| 53 |
+
|
| 54 |
+
Additionally, we incorporate detailed transaction statistics from on-chain activities. All blockchain transactions are transparent, traceable, and publicly accessible, achieved through securely linked blocks using cryptographic techniques (Narayanan et al., 2016). As numerous prominent blockchain explorers provide tools for easy access to blockchain transaction data, we retrieve on-chain transaction data from the Dune Database<sup>6</sup>, a crypto analytics platform, and construct comprehensive statistics related to these transactions to include information on market dynamics. This includes comprehensive metrics such as daily number of transactions, number of active wallet, total value transferred, average gas price, and total gas consumed. These features are crucial for understanding the operational aspects of blockchains, such as network congestion times and cost efficiency, which directly impact trading strategies. Our daily collection of these metrics facilitates a nuanced analysis of market dynamics and liquidity, allowing for real-time adjustments to our trading algorithms based on current market conditions.
|
| 55 |
+
|
| 56 |
+
- Off-chain Data: We employ the Gnews API<sup>7</sup> to systematically gather news articles related to each cryptocurrency. This tool enables us to access a wide array of sources through Google News, providing a comprehensive daily snapshot of market sentiment. Moreover, we particularly focus on filtering news from reputable financial and cryptocurrency-specific outlets such as Bloomberg, Yahoo Finance, and crypto.news<sup>8</sup> to ensure the reliability and relevance of the information. For each day, relevant articles were searched using the name of each cryptocurrency as a keyword to ensure all collected news articles were directly related to that cryptocurrency. This approach helped exclude a large amount of unrelated news. In this way, on average, we collected 47.1 news articles related
|
| 57 |
+
|
| 58 |
+
to Bitcoin, 42.6 news articles related to Ethereum, and 15.7 news articles related to Solana. Then, we filtered the news by their source to further enhance relevance and reliability. Finally we will use no more than 5 news every day for each cryptocurrency. The integration of analysis from these articles allows us to capture the market's sentiment and response to developments, which is often a precursor to significant market movements.
|
| 59 |
+
|
| 60 |
+
By merging both on-chain data and off-chain news insights, our methodology offers a holistic view of the cryptocurrency market. This integration not only enhances our analytical capabilities but also significantly improves the precision of our trading decisions.
|
| 61 |
+
|
| 62 |
+
# 2.2 Market and News Analyst Agents
|
| 63 |
+
|
| 64 |
+
Upon collecting extensive on-chain and off-chain data, we analyze it through two key components of our CryptoTrade agent: (1) market analyst agent, (2) news analyst. By leveraging the capabilities of GPT models, these analysts provide deep insights into the crypto market, enabling informed and strategic trading decisions.
|
| 65 |
+
|
| 66 |
+
Market Analyst Agent. The market analyst agent plays a crucial role in deciphering market dynamics through the statistical analysis of key trading signals from on-chain data, such as MA (Gencay, 1996), MACD (Wang and Kim, 2018), and Bollinger Bands (Day et al., 2023). Details of these trading signals are provided in Appendix E. Armed with this information, the market analyst agent compiles reports on the market's direction and momentum. An example is shown in Figure 4.
|
| 67 |
+
|
| 68 |
+
News Analyst Agent. The news analyst agent is tasked with extracting and analyzing critical information from the latest news to assess the potential market impact of off-chain social hype. By sourcing news summaries from various trusted sources, the news analyst agent pinpoints relevant recent events and assesses the significance and implications of key topics, thus adding an extra dimension of insight. An example is provided in Figure 5.
|
| 69 |
+
|
| 70 |
+
# 2.3 Trading Agent
|
| 71 |
+
|
| 72 |
+
Each day, the trading agent offers an investment suggestion based on reports from the market and news analyst agents. After analyzing the reports, the trading agent provides a concise rationale for its decisions. It also recommends allocating a certain portion of remaining cash to purchase cryptocurrency (with a range from $(0$ to $1]$ ), selling a certain portion of owned cryptocurrency (with a range from $[-1$ to $0]$ ), or holding (neither buying nor selling). When a trading decision is made, a transaction fee is charged in proportion to the traded value. Figure 6 illustrates an example of our trading agent's operations.
|
| 73 |
+
|
| 74 |
+
# 2.4 Reflection Agent
|
| 75 |
+
|
| 76 |
+
The reflection agent reviews the trading agent's recent activities to enhance future strategies. By analyzing the
|
| 77 |
+
|
| 78 |
+
previous week's prompts, decisions, and returns, the reflection agent identifies the most impactful information and the reasons behind its significance, providing feedback to the trading agent for future decisions. Consequently, CryptoTrade learns to focus on the most influential information for upcoming decisions. An example is illustrated in Figure 7.
|
| 79 |
+
|
| 80 |
+
# 3 Experiments
|
| 81 |
+
|
| 82 |
+
In this section, we detail the experiments designed to evaluate the efficacy of our proprietary CryptoTrade agent in comparison to established baseline strategies within the trading domain.
|
| 83 |
+
|
| 84 |
+
# 3.1 Experimental Setup
|
| 85 |
+
|
| 86 |
+
Experiment Environments. We conduct all experiments using PyTorch on an NVIDIA GeForce RTX 3090 GPU. More details are in Appendix C.
|
| 87 |
+
|
| 88 |
+
Datasets. To ensure our experiments are robust across different cryptocurrencies and market conditions, we base our study on a dataset covering several months, detailed in Table 1. This dataset reflects the recent market performance of BTC, ETH, and SOL, presenting challenges in capturing market trends and volatility. We divide the dataset into validation and test sets, using the former to select model hyperparameters and the latter to evaluate model performance. We carefully select the test period after September 2021, the GPT-3.5's knowledge cutoff date, to prevent data leakage. The dataset encompasses three market conditions: bull, sideways, and bear, allowing us to test the effectiveness of both the baselines and our model (Baroiu et al., 2023; Cagan, 2024), ensuring reliable and robust experimental results.
|
| 89 |
+
|
| 90 |
+
Evaluation Scheme. We initialize the trading agent with 1 million US dollars, split equally between cash and BTC/ETH/SOL, to enable potential profits from both buying and selling cryptocurrencies. At the end of the trading session, we use the following widely-accepted metrics: Return, Sharpe Ratio, Daily Return Mean, and Daily Return Std. This evaluation scheme ensures a rigorous and unbiased assessment of both baseline strategies and our CryptoTrade agent.
|
| 91 |
+
|
| 92 |
+
(1) Return measures the overall performance of the trading strategy, calculated using the formula $\frac{w^{end} - w^{start}}{w^{start}}$ , where $w^{start}$ and $w^{end}$ represent the starting and ending net worth, respectively.
|
| 93 |
+
(2) Sharpe Ratio assesses the risk-adjusted return, using the formula $\frac{\bar{r} - r_f}{\sigma}$ , where $\bar{r}$ is the mean of daily returns, $\sigma$ is the standard deviation of daily returns, and $r_f$ is the risk-free return, set to 0 following SocioDojo (Cheng and Chin, 2024).
|
| 94 |
+
(3) Daily Return Mean is the average of the daily returns over the trading period, providing insight into the typical daily performance of the trading strategy.
|
| 95 |
+
(4) Daily Return Std is the standard deviation of the daily returns, indicating the volatility and risk associated with the daily performance of the trading strategy.
|
| 96 |
+
|
| 97 |
+
Baseline Strategies. To benchmark the performance of our CryptoTrade agent, we compare it against widely recognized baseline strategies in the trading domain. We present these baselines and hyperparameters in Appendix E.
|
| 98 |
+
|
| 99 |
+
# 3.2 Experimental Results
|
| 100 |
+
|
| 101 |
+
The performance comparison presented in Table 2, Table 3, Table 4 between various trading strategies and our proposed CryptoTrade agent reveals significant insights into the efficacy of incorporating advanced data analysis techniques for cryptocurrency trading. The table highlights the returns and Sharpe Ratios for each method, where our CryptoTrade agent performs with outstanding percentage return and Sharpe Ratio compared with time-series baselines but not superior than traditional trading signals: Buy and Hold and SLMA. We outline the superiority of CryptoTrade in the following two key aspects:
|
| 102 |
+
|
| 103 |
+
Superior Performance under Different Market Conditions. Remarkably, even without fine-tuning, CryptoTrade outperforms Transformer-based time-series baselines in most bases, demonstrating the robust capabilities of LLMs. Additionally, its performance is comparable to traditional trading signals like Buy and Hold and MACD, further validating the potential of LLM-based approaches. For instance, CryptoTrade (GPT-4o) excels in all metrics under ETH's bull market by $3\%$ in total return and sharpe ratio. While CryptoTrade (GPT-4o) may not always be the top performer in every scenario, it consistently surpasses more than half of the trading signals across different market conditions, even without fine-tuning. This highlights the effectiveness and versatility of CryptoTrade in leveraging LLMs to navigate the complexities of the cryptocurrency market.
|
| 104 |
+
|
| 105 |
+
Successful Trend Predictions. We draw Figure 2 to demonstrate the correlation between Ethereum's opening prices and the positions held by the CryptoTrade agent, with the yellow and blue lines representing daily opening prices and Ethereum positions, respectively. The observed fluctuations highlight the market's volatility, while the alignment between position adjustments and price movements showcases the agent's proficiency in anticipating market trends. Unlike the static Buy and Hold strategy, CryptoTrade adopts a dynamic approach, optimizing trades based on market analysis—purchasing at lower prices and selling at peaks. This strategic adaptability, especially evident during shaded periods of preemptive position changes in anticipation of price shifts, underscores the agent's capacity for risk management and its adeptness at leveraging market volatility for profit, marking a significant advancement over traditional trading strategies.
|
| 106 |
+
|
| 107 |
+
# 3.3 Ablation Study
|
| 108 |
+
|
| 109 |
+
The ablation study presented in Table 5 critically examines the individual components of the prompt used by the CryptoTrade (GPT-4o) agent. By systematically
|
| 110 |
+
|
| 111 |
+
<table><tr><td>Type</td><td>Split</td><td>Start</td><td>End</td><td>Open</td><td>Close</td><td>Trend</td></tr><tr><td rowspan="4">BTC</td><td>Validation</td><td>2023-01-19</td><td>2023-03-13</td><td>20977.48</td><td>20628.03</td><td>-1.67%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>30462.48</td><td>25575.28</td><td>-15.61%</td></tr><tr><td>Test Sideways</td><td>2023-06-17</td><td>2023-08-25</td><td>26328.68</td><td>26163.68</td><td>-0.83%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>26967.40</td><td>37718.01</td><td>39.66%</td></tr><tr><td rowspan="4">ETH</td><td>Validation</td><td>2023-01-13</td><td>2023-03-12</td><td>1417.13</td><td>1429.60</td><td>0.88%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>1892.94</td><td>1664.98</td><td>-12.24%</td></tr><tr><td>Test Sideways</td><td>2023-06-20</td><td>2023-08-31</td><td>1734.79</td><td>1705.11</td><td>-1.91%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>1671.00</td><td>2051.76</td><td>22.59%</td></tr><tr><td rowspan="4">SOL</td><td>Validation</td><td>2023-01-14</td><td>2023-03-12</td><td>18.29</td><td>18.24</td><td>-0.27%</td></tr><tr><td>Test Bearish</td><td>2023-04-12</td><td>2023-06-16</td><td>23.02</td><td>14.76</td><td>-36.08%</td></tr><tr><td>Test Sideways</td><td>2023-07-08</td><td>2023-08-31</td><td>21.49</td><td>20.83</td><td>-3.23%</td></tr><tr><td>Test Bullish</td><td>2023-10-01</td><td>2023-12-01</td><td>21.39</td><td>59.25</td><td>176.72%</td></tr></table>
|
| 112 |
+
|
| 113 |
+
Table 1: Dataset splits. Prices are in US dollars. In each split, the transaction days include the start date and exclude the end date. We evaluate the total profit on the end date.
|
| 114 |
+
|
| 115 |
+
<table><tr><td rowspan="2">Strategy</td><td colspan="3">Total Return</td><td colspan="3">Daily Return</td><td colspan="3">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and hold</td><td>39.66</td><td>-0.83</td><td>-15.61</td><td>0.56±2.23</td><td>0.00±1.74</td><td>-0.24±2.07</td><td>0.25</td><td>0.00</td><td>-0.11</td></tr><tr><td>SMA</td><td>22.58</td><td>3.65</td><td>-21.74</td><td>0.35±1.89</td><td>0.06±1.21</td><td>-0.36±1.25</td><td>0.18</td><td>0.05</td><td>-0.29</td></tr><tr><td>SLMA</td><td>38.53</td><td>-3.14</td><td>-7.68</td><td>0.55±2.21</td><td>-0.04±0.83</td><td>-0.11±1.23</td><td>0.25</td><td>-0.05</td><td>-0.09</td></tr><tr><td>MACD</td><td>13.57</td><td>-6.71</td><td>-9.51</td><td>0.22±1.45</td><td>-0.09±1.01</td><td>-0.14±1.56</td><td>0.15</td><td>-0.09</td><td>-0.09</td></tr><tr><td>Bollinger Bands</td><td>2.97</td><td>-3.19</td><td>-1.17</td><td>0.05±0.32</td><td>-0.04±0.87</td><td>-0.02±0.51</td><td>0.15</td><td>-0.05</td><td>-0.03</td></tr><tr><td>LSTM</td><td>31.67</td><td>-4.13</td><td>-17.20</td><td>0.47±2.11</td><td>-0.05±1.62</td><td>-0.28±1.27</td><td>0.22</td><td>-0.03</td><td>-0.22</td></tr><tr><td>Informer</td><td>0.34</td><td>-2.33</td><td>-13.38</td><td>0.01±0.82</td><td>-0.03±0.54</td><td>-0.21±1.02</td><td>0.01</td><td>-0.06</td><td>-0.21</td></tr><tr><td>AutoFormer</td><td>14.73</td><td>-4.90</td><td>-12.72</td><td>0.24±1.65</td><td>-0.07±1.15</td><td>-0.20±1.13</td><td>0.14</td><td>-0.06</td><td>-0.18</td></tr><tr><td>TimesNet</td><td>2.84</td><td>-5.12</td><td>-13.64</td><td>0.05±1.06</td><td>-0.07±1.10</td><td>-0.22±1.04</td><td>0.05</td><td>-0.06</td><td>-0.21</td></tr><tr><td>PatchTST</td><td>1.79</td><td>-5.02</td><td>-21.94</td><td>0.03±0.71</td><td>-0.07±0.57</td><td>-0.37±1.05</td><td>0.04</td><td>-0.13</td><td>-0.35</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>18.84</td><td>0.33</td><td>-9.12</td><td>0.30±1.69</td><td>0.01±1.19</td><td>-0.14±1.52</td><td>0.18</td><td>0.01</td><td>-0.09</td></tr><tr><td>Ours(GPT-4)</td><td>26.35</td><td>-4.07</td><td>-11.72</td><td>0.40±1.76</td><td>-0.05±1.43</td><td>-0.18±1.67</td><td>0.23</td><td>-0.04</td><td>-0.11</td></tr><tr><td>Ours(GPT-4o)</td><td>28.47</td><td>-5.08</td><td>-13.71</td><td>0.43±1.89</td><td>-0.07±1.14</td><td>-0.21±1.71</td><td>0.23</td><td>-0.06</td><td>-0.12</td></tr></table>
|
| 116 |
+
|
| 117 |
+
Table 2: Performance of each strategy on BTC under Bull, Sideways, and Bear market conditions. For each market condition and each metric, the best result is highlighted in bold text and the runner-up result is underlined.
|
| 118 |
+
|
| 119 |
+
<table><tr><td rowspan="2">Strategy</td><td colspan="3">Total Return (%)</td><td colspan="3">Daily Return (%)</td><td colspan="3">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and Hold</td><td>22.59</td><td>-1.91</td><td>-12.24</td><td>0.36±2.62</td><td>-0.01±1.94</td><td>-0.17±2.39</td><td>0.14</td><td>-0.00</td><td>-0.07</td></tr><tr><td>SMA</td><td>10.17</td><td>-5.45</td><td>-10.12</td><td>0.18±2.29</td><td>-0.15±1.64</td><td>-0.15±1.64</td><td>0.08</td><td>-0.07</td><td>-0.09</td></tr><tr><td>SLMA</td><td>5.20</td><td>-2.62</td><td>-15.90</td><td>0.11±2.37</td><td>-0.03±1.08</td><td>-0.24±1.86</td><td>0.05</td><td>-0.03</td><td>-0.13</td></tr><tr><td>MACD</td><td>7.72</td><td>0.77</td><td>-12.15</td><td>0.13±1.22</td><td>0.02±1.43</td><td>-0.18±1.56</td><td>0.10</td><td>0.01</td><td>-0.12</td></tr><tr><td>Bollinger Bands</td><td>2.59</td><td>4.47</td><td>-0.41</td><td>0.04±0.40</td><td>0.07±1.02</td><td>0.00±0.58</td><td>0.11</td><td>0.06</td><td>-0.01</td></tr><tr><td>LSTM</td><td>22.12</td><td>1.27</td><td>-13.22</td><td>0.36±2.59</td><td>0.02±1.11</td><td>-0.19±2.36</td><td>0.14</td><td>0.15</td><td>-0.08</td></tr><tr><td>Informer</td><td>14.55</td><td>-4.74</td><td>-11.49</td><td>0.23±1.54</td><td>-0.06±1.45</td><td>-0.17±1.65</td><td>0.15</td><td>-0.04</td><td>-0.10</td></tr><tr><td>AutoFormer</td><td>7.77</td><td>-10.06</td><td>-19.44</td><td>0.13±1.81</td><td>-0.14±1.33</td><td>-0.31±1.61</td><td>0.08</td><td>-0.10</td><td>-0.20</td></tr><tr><td>TimesNet</td><td>13.31</td><td>-8.08</td><td>-10.64</td><td>0.21±1.50</td><td>-0.11±1.08</td><td>-0.16±1.04</td><td>0.14</td><td>-0.10</td><td>-0.16</td></tr><tr><td>PatchTST</td><td>8.95</td><td>-9.64</td><td>-13.76</td><td>0.15±1.37</td><td>-0.13±1.66</td><td>-0.21±1.39</td><td>0.11</td><td>-0.11</td><td>-0.15</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>18.91</td><td>-5.02</td><td>-14.40</td><td>0.30±2.01</td><td>-0.06±1.56</td><td>-0.22±2.08</td><td>0.15</td><td>-0.04</td><td>-0.10</td></tr><tr><td>Ours(GPT-4)</td><td>25.72</td><td>0.72</td><td>-13.72</td><td>0.41±2.45</td><td>0.03±1.67</td><td>-0.21±2.02</td><td>0.17</td><td>0.02</td><td>-0.10</td></tr><tr><td>Ours(GPT-4o)</td><td>25.47</td><td>-6.59</td><td>-15.35</td><td>0.40±2.25</td><td>-0.07±1.81</td><td>-0.23±2.16</td><td>0.18</td><td>-0.04</td><td>-0.11</td></tr></table>
|
| 120 |
+
|
| 121 |
+
Table 3: Performance of each strategy on ETH under Bull, Sideways, and Bear market conditions.
|
| 122 |
+
|
| 123 |
+
removing key elements from the full prompt and observing the impact on percentage return and Sharpe ratio during a bull market for ETH, we can identify the contribution of each component to the overall performance
|
| 124 |
+
|
| 125 |
+
of the trading strategy. We highlight the following two insights from the results:
|
| 126 |
+
|
| 127 |
+
Superiority of the Full Prompt. The full prompt significantly outshines all other configurations with reduced
|
| 128 |
+
|
| 129 |
+
<table><tr><td rowspan="2">Strategy</td><td colspan="3">Total Return (%)</td><td colspan="3">Daily Return (%)</td><td colspan="3">Sharpe Ratio</td></tr><tr><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td><td>Bull</td><td>Sideways</td><td>Bear</td></tr><tr><td>Buy and Hold</td><td>176.72</td><td>-3.23</td><td>-36.08</td><td>1.83±6.00</td><td>0.01±3.92</td><td>-0.61±3.45</td><td>0.30</td><td>0.00</td><td>-0.18</td></tr><tr><td>SMA</td><td>119.37</td><td>-0.62</td><td>1.04</td><td>1.43±5.67</td><td>0.03±3.06</td><td>0.02±0.10</td><td>0.25</td><td>0.01</td><td>0.16</td></tr><tr><td>SLMA</td><td>169.98</td><td>6.22</td><td>-8.11</td><td>1.78±5.93</td><td>0.16±3.23</td><td>-0.11±1.88</td><td>0.30</td><td>0.05</td><td>-0.06</td></tr><tr><td>MACD</td><td>23.25</td><td>-9.78</td><td>-21.07</td><td>0.35±1.76</td><td>-0.16±2.38</td><td>-0.33±2.44</td><td>0.20</td><td>-0.07</td><td>-0.13</td></tr><tr><td>Bollinger Bands</td><td>2.92</td><td>-0.46</td><td>-21.69</td><td>0.05±0.35</td><td>0.00±1.23</td><td>-0.35±1.75</td><td>0.13</td><td>-0.00</td><td>-0.20</td></tr><tr><td>LSTM</td><td>144.69</td><td>-3.56</td><td>-36.75</td><td>1.61±5.69</td><td>0.01±3.90</td><td>-0.63±3.43</td><td>0.28</td><td>0.00</td><td>-0.18</td></tr><tr><td>Informer</td><td>41.85</td><td>-6.55</td><td>-26.13</td><td>0.58±1.90</td><td>-0.10±2.00</td><td>-0.43±2.36</td><td>0.31</td><td>-0.05</td><td>-0.18</td></tr><tr><td>AutoFormer</td><td>35.86</td><td>-6.17</td><td>-23.56</td><td>0.51±1.97</td><td>-0.10±1.90</td><td>-0.38±2.35</td><td>0.26</td><td>-0.05</td><td>-0.16</td></tr><tr><td>TimesNet</td><td>45.28</td><td>-10.63</td><td>-21.60</td><td>0.64±2.66</td><td>-0.18±2.01</td><td>-0.35±1.75</td><td>0.24</td><td>-0.09</td><td>-0.20</td></tr><tr><td>PatchTST</td><td>18.45</td><td>-7.10</td><td>-27.86</td><td>0.29±1.57</td><td>-0.11±1.98</td><td>-0.46±2.49</td><td>0.18</td><td>-0.06</td><td>-0.19</td></tr><tr><td>Ours(GPT-3.5-turbo)</td><td>102.45</td><td>-13.05</td><td>-24.08</td><td>1.26±4.54</td><td>-0.23±2.42</td><td>-0.39±2.60</td><td>0.28</td><td>-0.15</td><td>-0.10</td></tr><tr><td>Ours(GPT-4)</td><td>99.84</td><td>-2.16</td><td>-19.55</td><td>1.24±4.53</td><td>0.01±3.33</td><td>-0.31±2.35</td><td>0.27</td><td>0.00</td><td>-0.13</td></tr><tr><td>Ours(GPT-4o)</td><td>115.18</td><td>3.09</td><td>-16.32</td><td>1.38±4.98</td><td>0.11±3.31</td><td>-0.25±2.35</td><td>0.28</td><td>0.03</td><td>-0.10</td></tr></table>
|
| 130 |
+
|
| 131 |
+

|
| 132 |
+
Figure 2: Significant profitable periods exploited by the CryptoTrade agent. The yellow line shows the daily opening prices of Ethereum in US dollars. The blue line tracks the daily positions, indicating the amount of Ethereum possessed on each day. The blue dots denote trading decisions when the agent largely alters its position by trading Ethereum. The red dots represent the corresponding trading prices. The agent successfully forecasts price changes, securing substantial profits through low-price purchases and high-price sales.
|
| 133 |
+
|
| 134 |
+
Table 4: Performance of each strategy on SOL under Bull, Sideways, and Bear market conditions.
|
| 135 |
+
|
| 136 |
+
<table><tr><td>Prompt Components</td><td>Return (%)</td><td>Sharpe Ratio</td></tr><tr><td>Full</td><td>28.47</td><td>0.23</td></tr><tr><td>w/o Reflection</td><td>17.14</td><td>0.06</td></tr><tr><td>w/o News</td><td>19.69</td><td>0.06</td></tr><tr><td>w/o TxnStats</td><td>12.70</td><td>0.05</td></tr><tr><td>w/o Technical</td><td>17.27</td><td>0.05</td></tr><tr><td>Base</td><td>8.40</td><td>0.03</td></tr></table>
|
| 137 |
+
|
| 138 |
+
Table 5: Ablation study on prompt components of the CryptoTrade agent. Base prompt encompasses necessary context including trading rules, valid action space, current cash and ETH holdings, and recent ETH prices.
|
| 139 |
+
|
| 140 |
+
components. The advantage of employing a full prompt over all deducted variants is rooted in the integration of diverse data sources. The full prompt encompasses the comprehensive price data, news analysis, technical
|
| 141 |
+
|
| 142 |
+
indicators, on-chain transaction statistics, and reflective analysis to offer a holistic view of the market. This comprehensive approach allows the CryptoTrade agent to leverage a wide array of information, enabling it to navigate the complexities of the cryptocurrency market with more nuanced and informed trading decisions.
|
| 143 |
+
|
| 144 |
+
Advantage of Crypto Transaction Statistics. The omission of Ethereum transaction statistics results in a significant decrease of the outcome by around $16\%$ , underscoring the indispensable role of on-chain statistics in enhancing trading strategies. This observation highlights the necessity of integrating on-chain transaction data, revealing its unique value in enriching the decision-making process in the cryptocurrency trading tasks.
|
| 145 |
+
|
| 146 |
+

|
| 147 |
+
Figure 3: Case study of CryptoTrade's actions in response to news reports on early rumor and the actual event of Bitcoin ETF approval, which takes place on Jan 11, 2024. The red circles denote the trading prices. The agent successfully benefits from a "buy the rumor, sell the news" strategy.
|
| 148 |
+
|
| 149 |
+
# 3.4 Case Study
|
| 150 |
+
|
| 151 |
+
To assess the adaptability and responsiveness of the CryptoTrade agent, we conduct a case study focusing on its responsive actions in the context of the cryptocurrency market's major events, illustrated in Figure 3. It reveals that CryptoTrade's strategy aligns with the "buy the rumor, sell the news" principle, effectively capitalizing on early signs of the Bitcoin ETF approval event, a scenario known to trigger market rallies due to speculative trading. By entering the market early, CryptoTrade secures positions at lower costs ahead of the rally.
|
| 152 |
+
|
| 153 |
+
As the approval of the Bitcoin ETF becomes a reality, the sentiment reaches a crescendo, resulting in inflated asset prices due to heightened demand. CryptoTrade, adhering to its strategic motivation, takes this peak as an optimal point to sell, which is validated in the subsequent decline in the Ethereum price. This strategic exit allows CryptoTrade to realize gains before the market adjusted to the new equilibrium, which results in a price pullback as early speculators take profits and the market sentiment normalizes.
|
| 154 |
+
|
| 155 |
+
To sum up, CryptoTrade's provident actions underscore the delicate balance between foresight and timing in trading strategies. This case study demonstrates that an informed and timely response to market signals — both rumors and confirmed news — can yield advantageous outcomes. It also highlights the CryptoTrade agent's understanding of market psychology and its ability to translate this into profitable trading decisions.
|
| 156 |
+
|
| 157 |
+
# 4 Related Work
|
| 158 |
+
|
| 159 |
+
LLMs for Economics and Financial Decisions Recent advancements in LLMs have significantly influenced economics and financial decision-making. Specialized
|
| 160 |
+
|
| 161 |
+
LLMs like FinGPT, BloombergGPT, FinMA (Liu et al., 2023; Wu et al., 2023; Xie et al., 2023) are tailored for finance, handling tasks such as sentiment analysis, entity recognition, and question-answering. Another research direction uses LLMs for financial time-series forecasting. A notable contribution by (Yu et al., 2023) employed zero-shot or few-shot inference with GPT-4 and instruction-based fine-tuning with LlaMA to enhance cross-sequence reasoning and multi-modal signal integration. Additionally, the development of LLM-based agents for financial trading has gained attention. Sociodojo (Cheng and Chin, 2024) created analytical agents for stock portfolio management, showing the potential for generating "hyperportfolios." Despite these advancements, the focus has largely been on the stock market (Koa et al., 2024; Chen et al., 2023), leaving a gap in the exploration of the cryptocurrency market where the on-chain data is approachable and with much information. Our work aims to address this gap by leveraging both on-chain and off-chain data to navigate the dynamic cryptocurrency market.
|
| 162 |
+
|
| 163 |
+
Time-Series Forecasting for Financial Markets Time-series forecasting has long been a cornerstone of research in economics and financial markets. Early studies focused on predicting stock market prices using methodologies such as machine learning (Leung et al., 2021; Patel and Yalamalle, 2014), reinforcement learning (Lee, 2001), and traditional time-series models (Herwartz, 2017). The Long Short-Term Memory (LSTM) model has emerged as particularly influential (Sunny et al., 2020) for its capability to process and analyze time-series data. With the rise of blockchain technology and cryptocurrencies, these techniques have been extended to crypto assets (Khedr et al., 2021). Re
|
| 164 |
+
|
| 165 |
+
cent research has evaluated the impact of various predictors on cryptocurrency pricing and returns, using both on-chain data—such as historical transactions and market volume (Ferdiansyah et al., 2019)—and off-chain factors like social media trends and news sentiment (Abraham et al., 2018; Pang et al., 2019). These studies underscore the effectiveness of integrating diverse data sources for forecasting the volatile dynamics of the cryptocurrency market. Apart from above, Transformer-based models have shown particular promise in this area, with state-of-the-art models like Informer (Zhou et al., 2021), AutoFormer (Wu et al., 2021), PatchTST (Nie et al., 2022), and TimesNet (Wu et al., 2022) further advancing time-series forecasting.
|
| 166 |
+
|
| 167 |
+
Self-Reflective Language Agents The Self-Refine framework introduces an advanced approach for autonomous advancement through self-evaluation and iterative self-improvement (Madaan et al., 2024). This approach, along with efforts to automatically refine prompts (Pryzant et al., 2023; Ye et al., 2024) and provide automated feedback to enhance reasoning capabilities (Paul et al., 2023), marks significant progress in the field. Notably, the "Reflexion" framework by (Shinn et al., 2024) revolutionizes the reinforcement of language agents by utilizing linguistic feedback and reflective text within an episodic memory buffer, diverging from traditional weight update methods. These advancements highlight the potential for LLMs to learn from their errors and evolve through self-reflection. Despite these developments, there is still untapped potential in applying self-reflective language agents to financial decision-making, particularly in cryptocurrency markets. This work aims to bridge that gap by investigating the application of self-reflective mechanisms to enhance financial decision-making processes in cryptocurrency trading.
|
| 168 |
+
|
| 169 |
+
# 5 Conclusion
|
| 170 |
+
|
| 171 |
+
We propose the CryptoTrade agent, an innovative approach to cryptocurrency trading that leverages advanced data analysis and LLMs. By integrating both on-chain and off-chain data, along with a self-reflective component, the CryptoTrade agent demonstrates a sophisticated understanding of market dynamics and achieves relatively high returns in cryptocurrency trading. Our comprehensive experiments comparing the CryptoTrade agent to traditional trading strategies and time-series models reveal its superior ability to navigate the volatile cryptocurrency market, consistently achieving relatively high returns on investment under different market conditions over time-series models while not superior than traditional trading signals: Buy and Hold and SLMA. This research underscores the significant potential of LLM-driven strategies in enhancing trading performance and sets a new benchmark for cryptocurrency trading with LLMs.
|
| 172 |
+
|
| 173 |
+
# Limitations
|
| 174 |
+
|
| 175 |
+
One limitation of the current CryptoTrade framework is the reliance on a relatively limited dataset. To address this, we plan to enrich the dataset with additional off-chain data. Another limitation is the frequency of trading actions, which is currently set to day-to-day. We aim to refine this to hour-to-hour or minute-to-minute intervals to further optimize returns in the cryptocurrency market. Additionally, we have identified that the lack of fine-tuning for the LLMs using the validation set may be a significant factor behind the LLM-based agents' underperformance compared to traditional trading signals. To improve the reliability of our forecasts, we intend to fine-tune the LLMs with the validation set.
|
| 176 |
+
|
| 177 |
+
# Broader Impact
|
| 178 |
+
|
| 179 |
+
One potential broader impact of our research is the risk that individuals may follow the trading strategies we provide and subsequently incur financial losses. It is important to emphasize that these strategies are intended for academic research only. CryptoTrade is not for investment recommendations.
|
| 180 |
+
|
| 181 |
+
# Acknowledgements
|
| 182 |
+
|
| 183 |
+
This research is supported by the National Research Foundation, Singapore under its Industry Alignment Fund-Pre-positioning (IAF-PP) Funding Initiative. Any opinions, findings and conclusions or recommendations expressed in this material are those of the author(s) and do not reflect the views of National Research Foundation, Singapore.
|
| 184 |
+
|
| 185 |
+
# References
|
| 186 |
+
|
| 187 |
+
Jethin Abraham, Daniel Higdon, John Nelson, and Juan Ibarra. 2018. Cryptocurrency price prediction using tweet volumes and sentiment analysis. SMU Data Science Review, 1(3):1.
|
| 188 |
+
Alexandru Costin Baroiu, Vlad Diaconita, and Simona Vasilica Oprea. 2023. Bitcoin volatility in bull vs. bear market-insights from analyzing on-chain metrics and twitter posts. PeerJ Computer Science, 9:e1750.
|
| 189 |
+
Michele Cagan. 2024. *Stock Market 101: From Bull and Bear Markets to Dividends, Shares, and Margins—Your Essential Guide to the Stock Market*. Simon and Schuster.
|
| 190 |
+
Zihan Chen, Lei Nico Zheng, Cheng Lu, Jialu Yuan, and Di Zhu. 2023. Chatgpt informed graph neural network for stock movement prediction. arXiv preprint arXiv:2306.03763.
|
| 191 |
+
Junyan Cheng and Peter Chin. 2024. SociODOjo: Building lifelong analytical agents with real-world text and time series. In *The Twelfth International Conference on Learning Representations*.
|
| 192 |
+
|
| 193 |
+
Min-Yuh Day, Yirung Cheng, Paoyu Huang, and Yensen Ni. 2023. The profitability of bollinger bands trading bitcoin futures. Applied Economics Letters, 30(11):1437-1443.
|
| 194 |
+
Stanisław Drożdź, Jarosław Kwapić, and Marcin Wa-torek. 2023. What is mature and what is still emerging in the cryptocurrency market? Entropy, 25(5):772.
|
| 195 |
+
Rainer Feichtinger, Robin Fritsch, Yann Vonlanthen, and Roger Wattenhofer. 2023. The hidden shortcomings of (d) aos—an empirical study of on-chain governance. In International Conference on Financial Cryptography and Data Security, pages 165–185. Springer.
|
| 196 |
+
Ferdiansyah Ferdiansyah, Siti Hajar Othman, Raja Zahilah Raja Md Radzi, Deris Stiawan, Yoppy Sazaki, and Usman Ependi. 2019. A lstm-method for bitcoin price prediction: A case study yahoo finance stock market. In 2019 international conference on electrical engineering and computer science (ICECOS), pages 206-210. IEEE.
|
| 197 |
+
Ramazan Gencay. 1996. Non-linear prediction of security returns with moving average rules. Journal of Forecasting, 15(3):165-174.
|
| 198 |
+
Helmut Herwartz. 2017. Stock return prediction under garch—an empirical assessment. International Journal of Forecasting, 33(3):569-580.
|
| 199 |
+
Ahmed M Khedr, Ifra Arif, Magdi El-Bannany, Saadat M Alhashmi, and Meenu Sreedharan. 2021. Cryptocurrency price prediction using traditional statistical and machine-learning techniques: A survey. Intelligent Systems in Accounting, Finance and Management, 28(1):3-34.
|
| 200 |
+
Kelvin JL Koa, Yunshan Ma, Ritchie Ng, and Tat-Seng Chua. 2024. Learning to generate explainable stock predictions using self-reflective large language models. In Proceedings of the ACM on Web Conference 2024, pages 4304-4315.
|
| 201 |
+
Jae Won Lee. 2001. Stock price prediction using reinforcement learning. In ISIE 2001. 2001 IEEE International Symposium on Industrial Electronics Proceedings (Cat. No. 01TH8570), volume 1, pages 690-695. IEEE.
|
| 202 |
+
Edward Leung, Harald Lohre, David Mischlich, Yifei Shea, and Maximilian Stroh. 2021. The promises and pitfalls of machine learning for predicting stock returns. The Journal of Financial Data Science.
|
| 203 |
+
Percy Liang, Rishi Bommasani, Tony Lee, Dimitris Tsipras, Dilara Soylu, Michihiro Yasunaga, Yian Zhang, Deepak Narayanan, Yuhuai Wu, Ananya Kumar, et al. 2022. Holistic evaluation of language models. arXiv preprint arXiv:2211.09110.
|
| 204 |
+
Xiao-Yang Liu, Guoxuan Wang, and Daochen Zha. 2023. Fingpt: Democratizing internet-scale data for financial large language models. arXiv preprint arXiv:2307.10485.
|
| 205 |
+
|
| 206 |
+
Bingqiao Luo, Zhen Zhang, Qian Wang, Anli Ke, Shengliang Lu, and Bingsheng He. 2023. AI-powered fraud detection in decentralized finance: A project life cycle perspective. arXiv preprint arXiv:2308.15992.
|
| 207 |
+
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, et al. 2024. Self-refine: Iterative refinement with self-feedback. Advances in Neural Information Processing Systems, 36.
|
| 208 |
+
Arvind Narayanan, Joseph Bonneau, Edward Felten, Andrew Miller, and Steven Goldfeder. 2016. Bitcoin and cryptocurrency technologies: a comprehensive introduction. Princeton University Press.
|
| 209 |
+
Yuqi Nie, Nam H Nguyen, Phanwadee Sinthong, and Jayant Kalagnanam. 2022. A time series is worth 64 words: Long-term forecasting with transformers. arXiv preprint arXiv:2211.14730.
|
| 210 |
+
Yan Pang, Ganeshkumar Sundararaj, and Jiewen Ren. 2019. Cryptocurrency price prediction using time series and social sentiment data. In Proceedings of the 6th IEEE/ACM International Conference on Big Data Computing, Applications and Technologies, pages 35-41.
|
| 211 |
+
Mayankkumar B Patel and Sunil R Yalamalle. 2014. Stock price prediction using artificial neural network. International Journal of Innovative Research in Science, Engineering and Technology, 3(6):13755-13762.
|
| 212 |
+
Debjit Paul, Mete Ismayilzada, Maxime Peyrard, Beatrix Borges, Antoine Bosselut, Robert West, and Boi Faltings. 2023. Refiner: Reasoning feedback on intermediate representations. arXiv preprint arXiv:2304.01904.
|
| 213 |
+
Reid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee, Chenguang Zhu, and Michael Zeng. 2023. Automatic prompt optimization with gradient descent and beam search. arXiv preprint arXiv:2305.03495.
|
| 214 |
+
Xiao Pu, Mingqi Gao, and Xiaojun Wan. 2023. Summarization is (almost) dead. arXiv preprint arXiv:2309.09558.
|
| 215 |
+
Kunpeng Ren, Nhut-Minh Ho, Dumitrel Loghin, Thanh-Toan Nguyen, Beng Chin Ooi, Quang-Trung Ta, and Feida Zhu. 2023. Interoperability in blockchain: A survey. IEEE Transactions on Knowledge and Data Engineering.
|
| 216 |
+
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2024. Reflexion: Language agents with verbal reinforcement learning. Advances in Neural Information Processing Systems, 36.
|
| 217 |
+
Md Arif Istiake Sunny, Mirza Mohd Shahriar Maswood, and Abdullah G Alharbi. 2020. Deep learning-based stock price prediction using lstm and bi-directional lstm model. In 2020 2nd novel intelligent and leading
|
| 218 |
+
|
| 219 |
+
emerging sciences conference (NILES), pages 87-92. IEEE.
|
| 220 |
+
Jian Wang and Junseok Kim. 2018. Predicting stock price trend using macd optimized by historical volatility. Mathematical Problems in Engineering, 2018:1-12.
|
| 221 |
+
Qian Wang, Zhen Zhang, Zemin Liu, Shengliang Lu, Bingqiao Luo, and Bingsheng He. 2024. Ex-graph: A pioneering dataset bridging ethereum and x. In The Twelfth International Conference on Learning Representations.
|
| 222 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems, 35:24824-24837.
|
| 223 |
+
Yu Wei, Yizhi Wang, Brian M Lucey, and Samuel A Vigne. 2023. Cryptocurrency uncertainty and volatility forecasting of precious metal futures markets. Journal of Commodity Markets, 29:100305.
|
| 224 |
+
Haixu Wu, Tengge Hu, Yong Liu, Hang Zhou, Jianmin Wang, and Mingsheng Long. 2022. Timesnet: Temporal 2d-variation modeling for general time series analysis. In The eleventh international conference on learning representations.
|
| 225 |
+
Haixu Wu, Jiehui Xu, Jianmin Wang, and Mingsheng Long. 2021. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Advances in neural information processing systems, 34:22419-22430.
|
| 226 |
+
Shijie Wu, Ozan Irsoy, Steven Lu, Vadim Dabravolski, Mark Dredze, Sebastian Gehrmann, Prabhanjan Kambadur, David Rosenberg, and Gideon Mann. 2023. Bloomberggpt: A large language model for finance. arXiv preprint arXiv:2303.17564.
|
| 227 |
+
Qianqian Xie, Weiguang Han, Xiao Zhang, Yanzhao Lai, Min Peng, Alejandro Lopez-Lira, and Jimin Huang. 2023. Pixiu: A large language model, instruction data and evaluation benchmark for finance. arXiv preprint arXiv:2306.05443.
|
| 228 |
+
Jingfeng Yang, Hongye Jin, Ruixiang Tang, Xiaotian Han, Qizhang Feng, Haoming Jiang, Shaochen Zhong, Bing Yin, and Xia Hu. 2024. Harnessing the power of llms in practice: A survey on chatgpt and beyond. ACM Transactions on Knowledge Discovery from Data, 18(6):1-32.
|
| 229 |
+
Seonghyeon Ye, Hyeonbin Hwang, Sohee Yang, Hyeongu Yun, Yireun Kim, and Minjoon Seo. 2024. Investigating the effectiveness of task-agnostic prefix prompt for instruction following. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pages 19386-19394.
|
| 230 |
+
Kun Yi, Qi Zhang, Wei Fan, Shoujin Wang, Pengyang Wang, Hui He, Ning An, Defu Lian, Longbing Cao, and Zhendong Niu. 2024. Frequency-domain mlps are more effective learners in time series forecasting.
|
| 231 |
+
|
| 232 |
+
Advances in Neural Information Processing Systems, 36.
|
| 233 |
+
Xinli Yu, Zheng Chen, Yuan Ling, Shujing Dong, Zongyi Liu, and Yanbin Lu. 2023. Temporal data meets llm-explainable financial time series forecasting. arXiv preprint arXiv:2306.11025.
|
| 234 |
+
Zhuosheng Zhang, Aston Zhang, Mu Li, Hai Zhao, George Karypis, and Alex Smola. 2023. Multimodal chain-of-thought reasoning in language models. arXiv preprint arXiv:2302.00923.
|
| 235 |
+
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. 2023. A survey of large language models. arXiv preprint arXiv:2303.18223.
|
| 236 |
+
Haoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang, Jianxin Li, Hui Xiong, and Wancai Zhang. 2021. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 11106-11115.
|
| 237 |
+
|
| 238 |
+
# Appendix
|
| 239 |
+
|
| 240 |
+
# A License
|
| 241 |
+
|
| 242 |
+
The CryptoTrade's dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) license. This means that anyone can use, distribute, and modify the data for non-commercial purposes as long as they give proper attribution and share the derivative works under the same license terms.
|
| 243 |
+
|
| 244 |
+
# B Data Ethics
|
| 245 |
+
|
| 246 |
+
# B.1 On-chain Data
|
| 247 |
+
|
| 248 |
+
We collect on-chain data from CoinMarketCap<sup>9</sup> and Dune<sup>10</sup>. According to CoinMarketCap's Terms of Service<sup>11</sup>, we are granted a limited, personal, non-exclusive, non-sub-licENSable, and non-transferable license to use the content and service solely for personal use. We agree not to use the service or any of the content for any commercial purpose, and we adhere to these requirements. Regarding Dune's Terms of Service<sup>12</sup>, we are permitted to access Dune's application programming interfaces (the "API") to perform SQL queries on blockchain data.
|
| 249 |
+
|
| 250 |
+
# B.2 Off-chain News
|
| 251 |
+
|
| 252 |
+
We employ the Gnews<sup>13</sup> to systematically gather news articles related to each cryptocurrency. According to Gnews' Terms of Service<sup>14</sup>, we can download the news for non-commercial transitory viewing only, and we cannot modify or copy the materials, use the materials for any commercial purpose or any public display, attempt to reverse engineer any software contained on Gnews API's website, remove any copyright or other proprietary notations from the materials, or transfer the materials to another person or "mirror" the materials on any other server. We adhere to these conditions in our CryptoTrade dataset.
|
| 253 |
+
|
| 254 |
+
# C Experimental Environment
|
| 255 |
+
|
| 256 |
+
All models in our experiments were implemented using Pytorch 2.0.0 in Python 3.9.16, and run on a robust Linux workstation. This system is equipped with two Intel(R) Xeon(R) Gold 6226R CPUs, each operating at a base frequency of $2.90\mathrm{GHz}$ and a max turbo frequency of $3.90\mathrm{GHz}$ . With 16 cores each, capable of supporting 32 threads, these CPUs offer a total of 64 logical CPUs for efficient multitasking and parallel computing. The workstation is further complemented by a potent GPU setup, comprising eight NVIDIA GeForce RTX 3090 GPUs, each providing 24.576 GB of memory. The
|
| 257 |
+
|
| 258 |
+
operation of these GPUs is managed by the NVIDIA-SMI 525.60.13 driver and CUDA 12.0, ensuring optimal computational performance for our tasks.
|
| 259 |
+
|
| 260 |
+
# D Analysts Examples
|
| 261 |
+
|
| 262 |
+
In this section, we provide some examples of News Analyst, Market Analyst, Reflection Analyst, and Trading Analyst.
|
| 263 |
+
|
| 264 |
+

|
| 265 |
+
|
| 266 |
+

|
| 267 |
+
Figure 4: A sample of the Market Analyst.
|
| 268 |
+
|
| 269 |
+

|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Figure 5: A sample of the News Analyst.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 6: A sample of the Trading Analyst.
|
| 276 |
+
|
| 277 |
+
# E Baselines
|
| 278 |
+
|
| 279 |
+
1. **Buy and Hold:** A straightforward strategy where an asset is purchased at the beginning of the period and held until its end.
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
|
| 285 |
+

|
| 286 |
+
|
| 287 |
+

|
| 288 |
+
|
| 289 |
+

|
| 290 |
+
|
| 291 |
+

|
| 292 |
+
Figure 7: A sample of the Reflection Analyst.
|
| 293 |
+
|
| 294 |
+

|
| 295 |
+
|
| 296 |
+
2. SMA (Gencay, 1996): SMA triggers buy or sell decisions based on the asset's price relative to its moving average. We finetune the SMA period by testing different window sizes [5, 10, 15, 20, 30]. The optimal period is selected based on the best performance on the validation set.
|
| 297 |
+
3. SLMA (Wang and Kim, 2018): SLMA involves two moving averages of different lengths, with trading signals generated at their crossover points. We use different combinations of short and long SMA periods, selecting the optimal ones based on validation set performance.
|
| 298 |
+
4. MACD (Wang and Kim, 2018): A strategy that uses the MACD indicator to identify potential buy and sell opportunities based on the momentum of the asset. The MACD is calculated as the difference between the 12-day EMA and the 26-day EMA, with a 9-day EMA of the MACD line serving as the signal line. EMA stands for Exponential Moving Average. It is a type of moving average that places a greater weight and significance on the most recent data points.
|
| 299 |
+
5. Bollinger Bands (Day et al., 2023): This strategy generates trading signals based on price movements relative to the middle, lower, and upper Bollinger Bands. Bollinger Bands are constructed using a 20-day SMA and a multiplier (commonly set to 2) for the standard deviation. We use the recommended period and multiplier settings for this strategy.
|
| 300 |
+
6. LSTM (Ferdiansyah et al., 2019): This strategy involves comparing today's price with the predicted price for tomorrow to identify potential buying and selling opportunities. We fine-tune the look-back window size using values in [1, 3, 5, 10, 20, 30] and select the parameters that perform best on the validation set.
|
| 301 |
+
|
| 302 |
+
7. Informer (Zhou et al., 2021): Informer utilizes an efficient self-attention mechanism to capture dependencies among variables. We adopt the recommended configuration for our experimental settings: a dropout rate of 0.05, two encoder layers, one decoder layer, a learning rate of 0.0001, and the Adam optimizer (Yi et al., 2024). The look-back window size is selected using the same procedure as for the LSTM.
|
| 303 |
+
8. AutoFormer (Wu et al., 2021): AutoFormer introduces a decomposition architecture by embedding the series decomposition block as an inner operator, allowing for the progressive aggregation of the long-term trend from intermediate predictions. We use the recommended configuration for our experimental settings (Yi et al., 2024). The look-back window size is selected using the same procedure as for the LSTM.
|
| 304 |
+
9. TimesNet (Wu et al., 2022): TimesNet provides a general framework for various time-series forecasting tasks. We adopt the recommended configurations for our experimental settings (Wu et al., 2022). The look-back window size is selected using the same procedure as for the LSTM.
|
| 305 |
+
10. PatchTST (Nie et al., 2022): PatchTST proposes an effective design for Transformer-based models in time series forecasting by introducing two key components: patching and a channel-independent structure (Yi et al., 2024). The recommended configurations are used for our experimental settings. The look-back window size is selected using the same procedure as for the LSTM.
|
| 306 |
+
|
| 307 |
+
# F Author Statement
|
| 308 |
+
|
| 309 |
+
As authors of the CryptoTrade, we hereby declare that we assume full responsibility for any liability or infringement of third-party rights that may come up from the use of our data. We confirm that we have obtained all necessary permissions and/or licenses needed to share this data with others for their own use. In doing so, we agree to indemnify and hold harmless any person or entity that may suffer damages resulting from our actions.
|
| 310 |
+
|
| 311 |
+
Furthermore, we confirm that our CryptoTrade dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike (CC BY-NC-SA) license. This license allows anyone to use, distribute, and modify our data for non-commercial purposes as long as they give proper attribution and share the derivative works under the same license terms. We believe that this licensing model aligns with our goal of promoting open access to high-quality data while respecting the intellectual property rights of all parties involved.
|
| 312 |
+
|
| 313 |
+
# G Hosting Plan
|
| 314 |
+
|
| 315 |
+
We have chosen to host our code and data on GitHub at https://github.com/Xtra-Computing/CryptoTrade. Our decision is based on various factors, including the platform's ease of use, cost-effectiveness, and scalability. We understand that accessibility is key when it comes to data management, which is why we will ensure that our data is easily accessible through a curated interface. We also recognize the importance of maintaining the platform's stability and functionality, and as such, we will provide the necessary maintenance to ensure that it remains up-to-date, bug-free, and running smoothly.
|
| 316 |
+
|
| 317 |
+
At the heart of our project is the belief in open access to data, and we are committed to making our data available to those who need it. As part of this commitment, we will be updating our GitHub repository regularly, so that users can rely on timely access to the most current information. We hope that by using GitHub as our hosting platform, we can provide a user-friendly and reliable solution for sharing our data with others.
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3990531a06bb3a19ad965d261d295e6c1d73a67b03033a1f72149c083e63035c
|
| 3 |
+
size 859482
|
2024/CryptoTrade_ A Reflective LLM-based Agent to Guide Zero-shot Cryptocurrency Trading/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/bfc541f2-0e55-4074-a56b-b829a4822f04_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb657f8979357182ad3a2414ac51e3d4fb867c8036a299b57b3ae46b24423ed2
|
| 3 |
+
size 7975405
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/full.md
ADDED
|
@@ -0,0 +1,536 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Cultural Conditioning or Placebo? On the Effectiveness of Socio-Demographic Prompting
|
| 2 |
+
|
| 3 |
+
Sagnik Mukherjee $^{1*}$ , Muhammad Farid Adilazuarda $^{1*}$ , Sunayana Sitaram $^{2}$ , Kalika Bali $^{2}$ , Alham Fikri Aji $^{1}$ , Monjit Choudhury $^{1\dagger}$ $^{1}$ MBZUAI $^{2}$ Microsoft Research, India
|
| 4 |
+
{sagnik.mukherjee, farid.adilazuarda}@mbzuai.ac.ae
|
| 5 |
+
|
| 6 |
+
# Abstract
|
| 7 |
+
|
| 8 |
+
Socio-demographic prompting is a commonly employed approach to study cultural biases in LLMs as well as for aligning models to certain cultures. In this paper, we systematically probe four LLMs (Llama 3, Mistral v0.2, GPT-3.5 Turbo and GPT-4) with prompts that are conditioned on culturally sensitive and nonsensitive cues, on datasets that are supposed to be culturally sensitive (EtiCor and CALI) or neutral (MMLU and ETHICS). We observe that all models except GPT-4 show significant variations in their responses on both kinds of datasets for both kinds of prompts, casting doubt on the robustness of the culturally-conditioned prompting as a method for eliciting cultural bias in models or as an alignment strategy. The work also calls rethinking the control experiment design to tease apart the cultural conditioning of responses from "placebo effect", i.e., random perturbations of model responses due to arbitrary tokens in the prompt.
|
| 9 |
+
|
| 10 |
+
# 1 Introduction
|
| 11 |
+
|
| 12 |
+
A growing body of research points out the phenomenon of mis- or under-representation of cultural knowledge in Large Language Models/LLMs (see Adilazuarda et al. (2024) and Liu et al. (2024) for extensive surveys on this topic), and apparently demonstrate that models are biased towards Western and Anglo-centric cultural norms and values (Johnson et al., 2022; Dwivedi et al., 2023). The method employed in such studies typically use culturally-conditioned prompting on datasets (see for example, Li et al. (2024); AlKhamissi et al. (2024); Cheng et al. (2023)) where responses should vary according to the cultural conditioning, e.g., EtiCor (Dwivedi et al., 2023) and Hofstede survey (Hofstede, 1984). If the agreement with
|
| 13 |
+
|
| 14 |
+

|
| 15 |
+
Figure 1: Accuracy for Llama on the proxies Kinship and Food. While the proxies themselves are aligned, the accuracy numbers vary significantly.
|
| 16 |
+
|
| 17 |
+
ground-truth is higher for some cultures than others, the conclusion is that the model is biased towards the former cultures and under-represent the latter. Beck et al. (2024); Zheng et al. (2023) even demonstrate performance gains, on tasks like toxicity detection, sentiment analysis, and even MCQ (Multi-Choice Question) style datasets like MMLU, with sociodemographic prompting. A technique similar in spirit is also used to achieve model alignment (Hwang et al., 2023).
|
| 18 |
+
|
| 19 |
+
Besides the well-documented extreme sensitivity of model responses to the structural (Sclar et al., 2023) and lexical (Beck et al., 2024) variations in the prompt, which casts a doubt on the generality and robustness of any prompt-based probing study of bias (Adilazuarda et al., 2024), one also wonders if the observed effects are specific to cultural conditioning, or random perturbations of model answers based on some "cue" tokens in the prompt.
|
| 20 |
+
|
| 21 |
+
If, for instance, the prompt was conditioned by the favorite programming language or house number of an imagined persona, rather than a more relevant socio-demographic attribute such as region, age, or gender, do we observe similar patterns of variation in the responses? And if we do, then what can we reliably conclude from the culturally-conditioned probing (and alignment) studies about the representational bias (correction) of the models? The problem is similar to separating the effect of an intended medical intervention, say a new drug, from the placebo effect (Howick et al., 2013; Wampold et al., 2007).
|
| 22 |
+
|
| 23 |
+
In this work, we address these questions by systematically conditioning prompts on cultural and non-cultural cues to study variations in model responses across a suite of culturally sensitive and non-sensitive benchmarks. We hypothesize that if an LLM is able to consistently and meaningfully "process" these conditions, its responses should vary the most when culturally conditioned cues are used on culturally-sensitive datasets, and the least for culturally non-sensitive cues on all datasets and for all cues on culturally non-sensitive datasets. Absence of this pattern would mean that the model is incapable of adequately processing the complex semantic cues thereby implying that probing studies on such models should be extra-cautious in designing suitably strong control experiments.
|
| 24 |
+
|
| 25 |
+
Our findings suggest that this, in fact, is true and thereby obscures our current understanding of cultural bias/alignment in LLMs. We observe that (1) all the models studied (Llama 3, Mistral v0.2 and GPT3.5Turbo) except GPT4 vary as much for culturally conditioned cues as for non cultural ones on all datasets, which raises the question whether the variation for culturally sensitive cues can be attributed to culture at all. (2) The pattern of variation for cues and data points are not consistent across the models, which raises further concerns about the robustness of socio-demographic probing techniques; and (3) GPT4 is the only model that varies as expected across datasets and cues.
|
| 26 |
+
|
| 27 |
+
Thus, our study highlights the non-effectiveness of prompting based techniques in eliciting cultural biases in LLMs unless they are sufficiently powerful and/or there are strong control experiments in place. This further opens up a conversation on the need for analysis and standardization of prompting-based probing techniques to measure cultural biases and alignment in a black-box fashion. We will
|
| 28 |
+
|
| 29 |
+
release our datasets, alongside model responses for each proxies to promote further investigations in the domain.
|
| 30 |
+
|
| 31 |
+
# 2 Notations, Definitions and Research Questions
|
| 32 |
+
|
| 33 |
+
Let us first formally define a typical sociodemographic or culturally-conditioned probing technique. Following a recent proposal by Adilazuarda et al. (2024), we shall use the terms semantic and demographic proxies for describing our setup. Demographic proxies, such as age, region and gender are used to define the cultural group of interest. Since most LLM-based studies of culture focus on region as the demographic proxy, we shall restrict this discussion as well as our study to only this proxy. A semantic proxy defines a domain of interest, such as name, food, kinship terms, that can be used to capture the cultural variation across demographic groups. We shall denote such semantic proxies as $P_{1}, P_{2}, \ldots, P_{k}$ , where $P_{i}$ is a set of keywords or cues, $\{c_{i}^{1}, c_{i}^{2}, \ldots, c_{i}^{n}\}$ , that can be used for culturally conditioning a prompt. For instance, if $P_{i}$ is food, the cues could be sushi, hamburger and biryani.
|
| 34 |
+
|
| 35 |
+
Suppose that $\mathcal{D}$ represent a dataset, $\{d_1,d_2,\ldots d_m\}$ where each sample $d_{l}$ is a test or question (along with appropriate instructions in natural language) whose answer should vary in a certain way for different cultures (in our case, regions). We define the culturally conditioned prompt under proxy $P_{i}$ as the composition prompt $x(c_i^j,d_l)$ . Here, prompt $x(c,d)$ is a lexical template with slots to be filled in with $c$ and $d$ , and the subscript $x$ indicates a particular lexical variant of the prompt. Fig. 2 illustrates this with an example.
|
| 36 |
+
|
| 37 |
+
Let $\hat{y}_{i,l}^{j} = M(prompt_{x}(c_{i}^{j},d_{l}))$ represent the response from the model (LLM) $M$ for a particular probe prompt $x(c_i^j,d_l)$ . For simplicity of notation, we will omit the subscript $i$ when there is only one proxy. Typically, there are two ways to show that a model $M$ is biased towards a certain culture represented by, say, $c^j$ , than another represented by $c^{j'}$ . First, if accuracy of responses for one culture is higher than another:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\sum_ {l = 1} ^ {m} \delta (\hat {y} _ {l} ^ {j}, y _ {l} ^ {j}) > \sum_ {l = 1} ^ {m} \delta (\hat {y} _ {l} ^ {j ^ {\prime}}, y _ {l} ^ {j ^ {\prime}})
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where, $\delta (x,y)$ is 1 if $x = y$ , else 0, and $y_{l}^{j}$ is the ground truth for test $d_{l}$ for the culture represented
|
| 44 |
+
|
| 45 |
+
by $c^j$ . Second, when the unconditioned responses from the model match more for a particular culture than another:
|
| 46 |
+
|
| 47 |
+
$$
|
| 48 |
+
\sum_ {l = 1} ^ {m} \delta (\hat {y} _ {l} ^ {j}, \hat {y} _ {l} ^ {\phi}) > \sum_ {l = 1} ^ {m} \delta (\hat {y} _ {l} ^ {j ^ {\prime}}, \hat {y} _ {l} ^ {\phi})
|
| 49 |
+
$$
|
| 50 |
+
|
| 51 |
+
Where, $\hat{y}_l^\phi = M(prompt_x(\phi ,d_l))$ , the unconditioned response.
|
| 52 |
+
|
| 53 |
+
In order to understand why the above formulation could be problematic, it is useful to draw an analogy of these approaches to that of randomized controlled trial for drugs or medical interventions. $\mathcal{D}$ is equivalent of a set of participants (we can create as many copy of them). In first case, two different drugs $c^j$ and $c^{j'}$ are administered on the two groups (who are otherwise identical copies of $\mathcal{D}$ ), and the outcomes are directly compared. Whereas, in the second case, the effect is measured for every participant before and after the drug administration for two different drugs. However, in a typical RCT for drugs, one group is provided with the treatment and the other group with a placebo, and the participants are not aware which group they belong to. If a stronger positive outcome is observed in the treatment group than the placebo or control group, then the drug maybe considered effective. Use of placebos are conspicuously missing from the culture-bias studies, but on the other hand, as we shall argue and empirically show, they are crucial to understand the effectiveness of any probing technique. In our case, a placebo would be a cue word that is identical to cultural cues in terms of its semantic and syntactic properties, but is not expected to have any impact on the cultural conditioning. We shall call such semantic proxies as culturally non-sensitive (such as house numbers and favorite programming language).
|
| 54 |
+
|
| 55 |
+
Note that if $\mathcal{D}$ is a culturally non-sensitive dataset, where ground truth $y_{l}^{j}$ does not depend on $j$ , then ideally we expect
|
| 56 |
+
|
| 57 |
+
$$
|
| 58 |
+
\forall_ {j, l} \hat {y} _ {l} ^ {j} = \hat {y} _ {l} ^ {\phi} = y _ {l} ^ {\phi}
|
| 59 |
+
$$
|
| 60 |
+
|
| 61 |
+
Given this context, here we want to investigate the following research questions:
|
| 62 |
+
|
| 63 |
+
RQ1 Do we observe a placebo effect in LLM probing, where the variation in responses of $M$ is high for cues chosen from $P_{i}$ which is a placebo or culturally non-sensitive proxy?
|
| 64 |
+
|
| 65 |
+
RQ2 Is the placebo effect as strong as the effect of cultural probing? In other words, are the
|
| 66 |
+
|
| 67 |
+

|
| 68 |
+
Figure 2: Composition of lexical variation, proxy, model instruction and datapoint to get the final model input. Note that for this particular example, the cultural condition alongside the instruction is the lexical template $x$ with proxy $P_{i}$ as food. And the question from MMLU is the corresponding datapoint $d_{l}$ .
|
| 69 |
+
|
| 70 |
+
variations observed for culturally sensitive and non-sensitive proxies at a similar scale?
|
| 71 |
+
|
| 72 |
+
RQ3 How does the above effects vary by datasets and models?
|
| 73 |
+
|
| 74 |
+
# 3 Experiments
|
| 75 |
+
|
| 76 |
+
In this section we talk about our experiment design and setup. We evaluate a suite of models on a variety of benchmarks with different degrees of cultural sensitivity, on culturally sensitive and non-sensitive proxies. The setup involves designing the proxies and prompt templates, and extraction of the model responses followed by statistical analysis, which are discussed below.
|
| 77 |
+
|
| 78 |
+
# 3.1 Proxies, Cues and Prompts
|
| 79 |
+
|
| 80 |
+
As discussed, in this study, we are concerned with region as the only demographic proxy. We define 9 distinct proxies with varying degrees of cultural sensitivity to region-based cultures. They are, in decreasing order of sensitivity.: Country of residence, which has clear one-to-one mapping with regions of interest; personal name, known to be correlated with countries and has also been studied in NLP for bias (Sandoval et al., 2023); food preference and kinship terms one uses to refer to certain relatives, which are part of semantic domains of Thompson et al. (2020) that were called out in Adilazuarda et al. (2024) and are clearly correlated with region and language; disease suffering from and hobby, which are correlated to regions to a much lesser degree; favorite programming language, favorite planet and house number, which are not correlated
|
| 81 |
+
|
| 82 |
+
<table><tr><td colspan="9">Order of Cultural Sensitivity</td></tr><tr><td>Countries</td><td>Name</td><td>Food</td><td>Kinship</td><td>Disease</td><td>Hobby</td><td>Programming Language</td><td>Planet</td><td>House Number</td></tr><tr><td>Japan</td><td>Hiroshi</td><td>Sushi</td><td>Qi</td><td>Parkinson</td><td>Cooking</td><td>Ruby</td><td>Saturn</td><td>8</td></tr><tr><td>Germany</td><td>Chiara</td><td>Bratwurst</td><td>Ehefrau</td><td>Lyme Disease</td><td>Jogging</td><td>Scala</td><td>Astraea</td><td>14</td></tr><tr><td>Morocco</td><td>Youssef</td><td>Tagine</td><td>Marat</td><td>Common Cold</td><td>Playing tennis</td><td>Dart</td><td>Hygiea</td><td>44</td></tr><tr><td>Argentina</td><td>Lucia</td><td>Asado</td><td>Mujer</td><td>Bronchitis</td><td>Magic tricks</td><td>Fortran</td><td>Thetis</td><td>191</td></tr></table>
|
| 83 |
+
|
| 84 |
+
Table 1: Proxies sorted by increasing order of cultural sensitivity and example cue words. The table categorizes various proxies from highly culturally sensitive (left) to lower culturally sensitive (right).
|
| 85 |
+
|
| 86 |
+
to regions. For our analysis, we will treat the first four as culturally sensitive proxies, while the last five as non-sensitive proxies that will serve as our placebos. We will refer to these groups as cultural and noncultural proxies respectively.
|
| 87 |
+
|
| 88 |
+
We then chose 30 countries as cue words for the proxy Country balancing for continents and socio-economic developmental status. We came up with one cue word per country for name, food and kinship that were commonly associated and distinctly identifiable. Please note that these proxies were sampled manually by the authors, with reference from the web (wikipedia/other resources). For the other 5 proxies, we came up with 30 random cue words from the domain balancing for domain-specific factors (like number of digits for house numbers). Table 1 lists example cue words for the proxies (exhaustive list in Appendix 15). Note that the cue words for cultural proxies are aligned to each other (e.g., Japan, Hiroshi, sushi and qi), but for noncultural proxies we do not have such alignments.
|
| 89 |
+
|
| 90 |
+
The exact statement of the prompt, $\text{prompt}_x(\cdot, \cdot)$ , depends on the nature of the proxy ("A person is suffering from {disease}..." vs. "As an enthusiastic of {hobby}"). Furthermore, to have a robust evaluation strategy, we create 5 lexical variations of these proxy-specific prompts. Thus, we have $9 \times 5 = 45$ distinct conditioning prompts that are listed in Appendix H.
|
| 91 |
+
|
| 92 |
+
All datasets used in this study had (or were repurposed to an) MCQ format. While GPT3.5-turbo and GPT4 could generate a single final answer option, Llama and Mistral could not. Therefore, we had to further do model specific refinements of the prompts, which are presented in Appendix G. Fig. 2 shows an example prompt composition.
|
| 93 |
+
|
| 94 |
+
# 3.2 Models and Datasets
|
| 95 |
+
|
| 96 |
+
We utilize a set of open and closed source models. For open source models, we use lambda-3-8b-instruct (Touvron et al., 2023) and
|
| 97 |
+
|
| 98 |
+
Mistral-7B-Instruct-v0.2 (Jiang et al., 2023). For closed-source models, we use the GPT3.5 Turbo and GPT4 models by OpenAI (OpenAI et al., 2024).
|
| 99 |
+
|
| 100 |
+
We chose four different datasets of varying degrees of culture sensitivity:
|
| 101 |
+
|
| 102 |
+
MMLU (Hendrycks et al., 2021b): In the MMLU dataset, we select science subjects from the college and high school subsets, including biology, chemistry, macroeconomics, and statistics, which are least sensitive to culture.
|
| 103 |
+
|
| 104 |
+
ETHICS (Hendrycks et al., 2021a): We use the "commonsense" split of the ETHICS dataset, which is supposed to be universal and expected to be less sensitive to culture.
|
| 105 |
+
|
| 106 |
+
CALI (Huang and Yang, 2023): Culturally aware natural language inference is expected to be sensitive to cultural conditioning, however the groundtruth is available for only two regions – US and India.
|
| 107 |
+
|
| 108 |
+
EtiCor (Dwivedi et al., 2023): It is a dataset of region-specific etiquette, and the answers are expected to be very sensitive to cultural conditioning. The ground truth is available at the level of continents and not countries.
|
| 109 |
+
|
| 110 |
+
MMLU is an MCQ task with 4 options per question. We repurpose the other datasets as MCQ (options: entailment, contradiction, and neutral for CALI and for ETHICS and EtiCor: "acceptable" and "non-acceptable").
|
| 111 |
+
|
| 112 |
+
It is important to note that the experiment has been carefully designed with a spectrum of sensitivity towards culture. On MMLU and ETHICS, the labels should remain static with respect to cultural variations. On the other hand EtiCor and CALI is expected to be more culturally sensitive. Such a diverse set of cultural variation helps us probe the models with culturally sensitive prompts.
|
| 113 |
+
|
| 114 |
+
For each of these datasets, we randomly select 50 samples ensuring balanced ground-truth labels. We subsequently perform inference on 30 cues $\times 9$ proxies $\times 5$ lexical variations $\times 50$ data samples $\times$
|
| 115 |
+
|
| 116 |
+
4 datasets, which is 270000 inferences per model.
|
| 117 |
+
|
| 118 |
+
# 3.3 Inference Pipeline
|
| 119 |
+
|
| 120 |
+
For Llama and Mistral, we get the model's long form generation conditioned on the prompt, and then extract the final answer with GPT3.5Turbo. For GPT3.5Turbo and GPT4 models, we directly prompt the models to generate the final answer in <start of answer> <end of answer> tags. In zero shot settings, Llama and Mistral's instruction following capability significantly degrades, and hence we use GPT3.5 Turbo to extract the final answer here. To ensure correctness, we randomly choose 50 samples and manually investigate if the long form generation and the final answer is in fact aligning, out of 50 samples only 3 cases there was a misalignment. The details of hyperparameters that we used is detailed in the Appendix C.
|
| 121 |
+
|
| 122 |
+
# 3.4 Computing Sensitivity
|
| 123 |
+
|
| 124 |
+
Upon extracting the answers from the model, one of the statistics we are interested in studying is the variation in model responses across cues. We proceed as follows. First for a model $M$ , a datapoint $d_{l} \in \mathcal{D}$ and Proxy $P_{i}$ , we construct the response matrix $A_{n \times O}$ , where $O$ is the number of options per question $\mathcal{D}$ and $n = 30$ is the number of cues. $A[j][o]$ is the number of times $\hat{y}_{i,l}^{j}$ is option $o$ . Note that we have 5 lexical variations of a prompt, therefore, $\sum_{o} A[j][o] = 5$ . We then compute the variance of the elements over each column of $A$ , $var(A[\cdot][1])$ , $var(A[\cdot][2])$ , etc., and then average these variances to obtain the variance $v_{i,l}$ which indicates the sensitivity of the model responses to $P_{i}$ on $d_{l}$ . We then sum this over all data points in $\mathcal{D}$ , to obtain the overall sensitivity $v_{i,\mathcal{D}} = (\sum_{l} v_{i,l})$ of $P_{i}$ on $\mathcal{D}$ .
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 3: Label shift from the null proxy with the food and country on MMLU for Llama. Note that the label on X-axis shows the aligned pair of cues for region and food
|
| 128 |
+
|
| 129 |
+
# 4 Results
|
| 130 |
+
|
| 131 |
+
# 4.1 Response Variation Across Cultural Proxies
|
| 132 |
+
|
| 133 |
+
First, we compute the accuracy, $acc_{j} = \sum_{l=1}^{m} \delta(\hat{y}_{l}^{j}, y_{l}^{j}) / |\mathcal{D}|$ , of the models on all datasets, when probed with a particular cue $c_{i}^{j}$ . Since for cultural proxies, each cue is aligned to a country (as design choice we made), we plot these accuracies on the world map for each $\langle$ model, dataset, proxy $\rangle$ triplet (we use MMLU and ETHICS because the ground truth here is not supposed to vary with the cue). Fig. 1 compares the heatmap of accuracies for Llama on MMLU for food and kinship. It is evident that as we change the proxies the performances vary quite inconsistently. The pairwise Pearson's correlation coefficient between $acc_{j}$ for each pair of proxies (Fig. A in Appendix) vary from 0 to 0.57, with most values lower than 0.15. Across models, the highest correlations are observed between country and food (GPT3.5 is an exception) without any other discernible patterns.
|
| 134 |
+
|
| 135 |
+
We further compare the conditioned model responses, $\hat{y}_l^j$ , with their corresponding unconditioned responses $\hat{y}_l^\phi$ . Fig. 3 plots the number of label changes (out of 50) that were observed for Llama on MMLU for Country and food. MMLU being a culturally non-sensitive dataset, ideally the label changes should be minimal across cues and proxies. Nevertheless, we observe significant (as much as 15/50) label shifts across board, and the extent seems independent of the culture. For instance, India exhibits the least number of label shifts (7), whereas Biryani a food cue aligned to the region has 14 label shifts, further reinforcing the fact that these variations are not systematic. See Appendix E for other plots on label shifts.
|
| 136 |
+
|
| 137 |
+
# 4.2 Response Variation Across All Proxies
|
| 138 |
+
|
| 139 |
+
Note that inconsistency per data point is defined in section 3.4. We apply a pooling function (mean) over all data points for a proxy to obtain a scalar representation of gross variation on that proxy. We further average this across cultural and non-cultural proxies, which are presented as cultural and non-cultural variations in Figure 4. We see that GPT-4 demonstrates least overall variation across datasets (except ETHICS), While other models suffer a higher variation.
|
| 140 |
+
|
| 141 |
+
In more culture-specific datasets such as CALI and EtiCor (as well as ETHICS), the models ex
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 4: Overall, cultural, and non-cultural proxies variation average over models and datasets.
|
| 145 |
+
|
| 146 |
+
hibit significant variation in responses even when presented with non-cultural proxy cues. Notably, Mistral is highly inconsistent on the MMLU benchmark when given cultural cues. The pattern and extent of variation for cultural and non-cultural proxies are similar, making it hard to distinguish the effect of the treatment from that of the placebo.
|
| 147 |
+
|
| 148 |
+
Fig. 5 presents the variations across all models, datasets and proxies (instead of averaging over all or a set of proxies). Interestingly, disease is the most sensitive proxy for Llama on MMLU. Llama's high sensitivity to programming languages for EtiCor and ETHICS is also unexpected and surprising. Mistral exhibits high sensitivity to disease for MMLU and CALI, to hobby for EtiCor, and to programming languages for ETHICS (note that these are all noncultural proxies or placebos). GPT-4's variance pattern aligns most closely with our expectations, showing less variation compared to other models, although it does show some inconsistency with the ETHICS dataset. We hypothesize that a part of this inconsistency could be explained by the ambiguity in some of the questions in the datasets, which we explore in detail in Sec 5.1. The response variation in non-cultural proxies helps us answer the RQ1 and parts of RQ2, in that we observe a strong placebo effect under consideration of non-cultural proxies. We further observe that the placebo effect is quite similar to cultural prompting in LLMs.
|
| 149 |
+
|
| 150 |
+
# 4.3 Pattern of Variance Across Models
|
| 151 |
+
|
| 152 |
+
A natural question that emerges from the observed behavior then is whether the problem is with the models or the datasets? To answer this, in Figure 6 we plot the amount of response variations, $v_{i,l}$ , observed from a pair of models at a time on each data point as a scatter plot (keeping proxies and datasets fixed per scatter plot). The left subplots in Figure 6 shows Eticor on Disease and Country proxies, while the right one depicts MMLU on the
|
| 153 |
+
|
| 154 |
+
food and hobby proxies. Appendix F presents the plots for other proxies and datasets.
|
| 155 |
+
|
| 156 |
+
If the datasets were problematic, then on some data points both models would vary and for others none. In other words, the scatter would be mostly along the diagonal $(x = y)$ line. However, in all cases, we observe a concentration of points around the origin indicating that there is a subset of data points on which neither of the models vary; outside this region, there is no consistency.
|
| 157 |
+
|
| 158 |
+
The diagonal plots in Fig 7 are KDE-smoothed frequency distributions of the variance values, $var_{i,l}$ , for both models. These plots are almost always unimodal except for Mistral on Eticor for food, where the distribution is bimodal and quite spread out. This indicates that Mistral is particularly sensitive to the food proxy in Eticor. These Findings help us answer RQ3, since the observations help us analyse which models and datasets are more susceptible to the aforementioned placebo effect.
|
| 159 |
+
|
| 160 |
+
# 5 Qualitative Analysis
|
| 161 |
+
|
| 162 |
+
Our results highlight the fact that except for GPT-4, for all model-dataset-proxy combinations, we observe a high degree of variation in responses irrespective of the sensitivity of the dataset or the proxy to culture. In this section, we discuss some model and dataset specific observations that came to front while manually inspecting the model responses.
|
| 163 |
+
|
| 164 |
+
# 5.1 Cultural Sensitivity of Datasets
|
| 165 |
+
|
| 166 |
+
We examined the top four most varying examples for MMLU and EtiCor across different models and observed that for GPT-3.5 Turbo and GPT-4, the most varying examples are often math and biology problems. Ideally, model responses to these questions should not vary at all due to cultural conditioning. For Mistral and Llama, the models frequently attempt to incorporate cultural context into their
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
|
| 170 |
+

|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 5: Model inconsistency across proxies. Note that inconsistency per data point is defined in section 3.4, we simply average it under a certain proxy to get a scalar representation.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+
reasoning, which deails the answers. For example, in an MMLU question such as, "The migration streams into the United States between 1980 and the present have been primarily composed of emigrants from which of the following regions?", both Llama and Mistral provide answers based on the cultural cues mentioned in the prompt. Despite sampling from the commonsense split of ETHICS, we observe that the questions that GPT-4 responses vary the most are indeed dilemmas that could be resolved differently in different cultures, raising doubts about universality of the dataset. See Table 16 for examples.
|
| 178 |
+
|
| 179 |
+
# 5.2 The Curious Case of Non-cultural Proxies
|
| 180 |
+
|
| 181 |
+
Why do model responses vary for non-cultural proxies such as house numbers or diseases? We observe that models are not consistently able to contextualize the cues in the prompt with the question. For instance, let us consider a question from the ETHICS dataset: "Statement: I admired the neighbor's prized roses, so I picked them." For the conditioned prompt "As a learner of Groovy, how might they respond to this task? ..., where Groovy is the cue of type programming language, the response from Llama was: "In Groovy, the focus is on the intent and .... The statement is grammatically correct....From a purely linguistic
|
| 182 |
+
|
| 183 |
+
perspective, the statement is acceptable. So, my answer would be: Option 1: acceptable!". The same prompt under the cue Java, generates "As a learner of Java, I would respond: Option 2: non-acceptable. The reason is that the statement is a moral or ethical issue...". The correlation between the logical sequence of reasoning, the actual task, and the cultural (or non-cultural) cue remains ambiguous and inconsistent. Models often adjust the chain of reasoning to accommodate the cues, without distinguishing when they should or should not.
|
| 184 |
+
|
| 185 |
+
# 5.3 Cultural Markers in Llama vs Mistral
|
| 186 |
+
|
| 187 |
+
We manually examined a set of 50 randomly sampled examples under the proxy region for Llama and Mistral. The long form chain of reasoning for Mistral and Llama exhibit two distinct patterns. Llama answers almost always (46 out of 50) start with cultural markers (observed by Li et al. (2024) as well) such as "Hola! As a person from Argentina" for Argentina as the region and "Wah gwaan? Me a-go choose de right answer, mon!" for Jamaica. The generation of such sequences at an early stage might explain Llama's variability across the proxies. Mistral, on the other hand, does not seem to generate such culturally conditioned responses. Appendix D sheds more light into this phenomena.
|
| 188 |
+
|
| 189 |
+

|
| 190 |
+
Figure 6: Cross model consistency for Eticor (left) and MMLU (right) for two set of proxies (disease and country on left, food and hobby on right). Diagonal elements are (colour highlighted) KDE smoothed frequency plots, and non-diagonal plots are KDE smoothed 2D frequency plot.
|
| 191 |
+
|
| 192 |
+
# 5.4 Inconsistent Guardrails
|
| 193 |
+
|
| 194 |
+
Additionally, our observation reveals that the models' confidence levels in their extended responses vary depending on the region in question. For example, when we manually reviewed responses pertaining to the USA and Canada in Mistral, the model exhibited a direct approach. However, when presented with regions like Cuba, Papua New Guinea, or Jamaica, the model hesitated to assume a persona. Notably, the model often included a marker such as "as an AI language model," suggesting a more generic perspective.
|
| 195 |
+
|
| 196 |
+
# 6 Related Work
|
| 197 |
+
|
| 198 |
+
Cultural awareness of LLMs: In order to make LLMs deployable in real world, it is important to make them culturally aware. A growing body of research in NLP has shown that today's LLMs are biased towards a western view of culture (Johnson et al., 2022; Dwivedi et al., 2023). These biases further lead LLMs to perform disparately across cultural groups, further putting marginalised groups at unfair disadvantage, and potentially driving towards a cultural homogeneity (Vaccino-Salvadore, 2023; Schramowski et al., 2021).
|
| 199 |
+
|
| 200 |
+
Prompt based cultural probing To elicit culturally tailored responses prior work has done prompt based cultural adaptation. Masoud et al. (2024) provides region as part of the prompt to elicit cultural variation in LLMs. Beck et al. (2024) uses
|
| 201 |
+
|
| 202 |
+
socio-demographic prompting to improve model performance. They also call out model sensitivity to the structure of the prompt. Li et al. (2024) inspects cultural markers in model response in presence of cultural cues in the prompts. AlKhamissi et al. (2024) uses anthropological prompting to improve cultural alignment of models. (Wan et al., 2023) studies biases in persona based dialogue systems, where the model persona is simulated with cues in the prompt. Sclar et al. (2023)'s finding on model sensitivity towards generic prompt variations (not just cultural) is also noteworthy here.
|
| 203 |
+
|
| 204 |
+
Proxies of Culture: Since culture is a multifaceted nuanced topic, researchers rather study proxies of culture, assuming that variations in these proxies is reflected in cultural variations. Adilazuarda et al. (2024) categorises these proxies into 2 categories in their survey:
|
| 205 |
+
|
| 206 |
+
1. Semantic proxies - Food and Drink (Palta and Rudinger, 2023; Koto et al., 2024; Cao et al., 2024), social and political relations etc.(Johnson et al., 2022; Feng et al., 2023; Wang et al., 2024; Quan et al., 2020).
|
| 207 |
+
2. Demographic proxies - These include demographic features of the target group. Such as ethnicity (Santy et al., 2023), Education (Santy et al., 2023; Wu et al., 2023), Gender (An et al., 2023; Wu et al., 2023; Wan et al., 2023), Race (Durmus et al., 2024), region (Khanuja et al., 2023; Koto et al., 2023) and language (Zhou et al., 2023;
|
| 208 |
+
|
| 209 |
+
Kabra et al., 2023; CH-Wang et al., 2023).
|
| 210 |
+
|
| 211 |
+
# 7 Conclusion
|
| 212 |
+
|
| 213 |
+
Through use of cultural and non-cultural proxies on datasets where the ground truths are culturally neutral (or universal) and sensitive, we show here that model responses vary to a high degree for both kinds of proxies, raising serious doubts on socio-demographic probing as a sound method for studying cultural bias in models. It is unclear, whether the model responses are indeed conditioned by cultural or socio-demographic cues, as one would expect, or just a random variation, akin to a placebo effect. In any case, our study shows that there is a non-negligible amount of variation for non-cultural proxies as well (except for GPT-4, which seems more consistent), which calls for serious rethinking on any kind of cue or persona based probing experiment design, and we can control for the placebo effect in such studies. Finally, our study also shows that most LLMs are not yet ready for building culture-specific applications just through prompt-designing, and one must invest on finetuning and/or appropriate post-processing of the LLM outputs.
|
| 214 |
+
|
| 215 |
+
# Limitations
|
| 216 |
+
|
| 217 |
+
The use of proxies in this analysis comes with several limitations. First, we admit that these proxies are inherently error-prone and can vary widely depending on context and interpretation. The selection and definition of proxies are subjective, meaning different researchers might choose different proxies for the same concept, leading to inconsistent results. Additionally, while non-cultural proxies are included in the analysis, they do not exclusively capture cultural aspects, which can dilute the cultural specificity intended in the study. It is also important to note that our study was not done in a multilingual setting, but rather in English. A full scale multilingual study in the same context would definitely be helpful.
|
| 218 |
+
|
| 219 |
+
# Acknowledgements
|
| 220 |
+
|
| 221 |
+
This work was funded by the Microsoft Accelerate Foundation Models Research (AFMR) grant program. The findings and views presented here are those of the authors, and should not be interpreted as necessarily representing the official policies of the company. We further thank and acknowledge help from the community members of
|
| 222 |
+
|
| 223 |
+
the MBZUAI NLP group and researchers from Microsoft, for their valuable insights.
|
| 224 |
+
|
| 225 |
+
# Ethics Statement
|
| 226 |
+
|
| 227 |
+
We prompt our models with cultural proxies to generate text. These texts might contain offensive content. Especially some model generations have stereotypical cultural markers. Further, it is important to make our AI agents culturally diverse and inclusive. We hope that our work will contribute to the discourse of prompt based cultural studies of LLMs and inspire future work on more robust strategies.
|
| 228 |
+
|
| 229 |
+
# References
|
| 230 |
+
|
| 231 |
+
Muhammad Farid Adilazuarda, Sagnik Mukherjee, Pradhyumna Lavania, Siddhant Singh, Ashutosh Dwivedi, Alham Fikri Aji, Jacki O'Neill, Ashutosh Modi, and Monojit Choudhury. 2024. Towards measuring and modeling "culture" in llms: A survey.
|
| 232 |
+
Badr AlKhamissi, Muhammad ElNokrashy, Mai AlKhamissi, and Mona Diab. 2024. Investigating cultural alignment of large language models.
|
| 233 |
+
Haozhe An, Zongxia Li, Jieyu Zhao, and Rachel Rudinger. 2023. SODAPOP: Open-ended discovery of social biases in social commonsense reasoning models. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 1573-1596, Dubrovnik, Croatia. Association for Computational Linguistics.
|
| 234 |
+
Tilman Beck, Hendrik Schuff, Anne Lauscher, and Iryna Gurevych. 2024. Sensitivity, performance, robustness: Deconstructing the effect of sociodemographic prompting. In Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2589-2615, St. Julian's, Malta. Association for Computational Linguistics.
|
| 235 |
+
Yong Cao, Yova Kementchedjhieva, Ruixiang Cui, Antonia Karamolegkou, Li Zhou, Megan Dare, Lucia Donatelli, and Daniel Hershcovich. 2024. Cultural Adaptation of Recipes. Transactions of the Association for Computational Linguistics, 12:80-99.
|
| 236 |
+
Sky CH-Wang, Arkadiy Saakyan, Oliver Li, Zhou Yu, and Smaranda Muresan. 2023. Sociocultural norm similarities and differences via situational alignment and explainable textual entailment. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3548-3564, Singapore. Association for Computational Linguistics.
|
| 237 |
+
Myra Cheng, Esin Durmus, and Dan Jurafsky. 2023. Marked personas: Using natural language prompts to measure stereotypes in language models. In Proceedings of the 61st Annual Meeting of the Association for
|
| 238 |
+
|
| 239 |
+
Computational Linguistics (Volume 1: Long Papers), pages 1504-1532, Toronto, Canada. Association for Computational Linguistics.
|
| 240 |
+
Esin Durmus, Karina Nguyen, Thomas I. Liao, Nicholas Schiefer, Amanda Askell, Anton Bakhtin, Carol Chen, Zac Hatfield-Dodds, Danny Hernandez, Nicholas Joseph, Liane Lovitt, Sam McCandlish, Orowa Sikder, Alex Tamkin, Janel Thamkul, Jared Kaplan, Jack Clark, and Deep Ganguli. 2024. Towards measuring the representation of subjective global opinions in language models.
|
| 241 |
+
Ashutosh Dwivedi, Pradhyumn Lavania, and Ashutosh Modi. 2023. EtiCor: Corpus for analyzing LLMs for etiquettes. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 6921-6931, Singapore. Association for Computational Linguistics.
|
| 242 |
+
Shangbin Feng, Chan Young Park, Yuhan Liu, and Yulia Tsvetkov. 2023. From pretraining data to language models to downstream tasks: Tracking the trails of political biases leading to unfair NLP models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11737-11762, Toronto, Canada. Association for Computational Linguistics.
|
| 243 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andrew Critch, Jerry Li, Dawn Song, and Jacob Steinhardt. 2021a. Aligning ai with shared human values. Proceedings of the International Conference on Learning Representations (ICLR).
|
| 244 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021b. Measuring massive multitask language understanding. In International Conference on Learning Representations.
|
| 245 |
+
G. Hofstede. 1984. *Culture's Consequences: International Differences in Work-Related Values*. Cross Cultural Research and Methodology. SAGE Publications.
|
| 246 |
+
Jeremy Howick, Claire Friedemann, Maria Tsakok, Robert Watson, Teresa Tsakok, Jennifer Thomas, Rafael Perera, Susannah Fleming, and Carl Heneghan. 2013. Are treatments more effective than placebos? a systematic review and meta-analysis. PloS one, 8(5):e62599.
|
| 247 |
+
Jing Huang and Diyi Yang. 2023. Culturally aware natural language inference. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 7591-7609, Singapore. Association for Computational Linguistics.
|
| 248 |
+
EunJeong Hwang, Bodhisattwa Majumder, and Niket Tandon. 2023. Aligning language models to user opinions. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 5906-5919, Singapore. Association for Computational Linguistics.
|
| 249 |
+
|
| 250 |
+
Albert Qiaochu Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de Las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, L'elio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. ArXiv, abs/2310.06825.
|
| 251 |
+
Rebecca L Johnson, Giada Pistilli, Natalia Menérez-González, Leslye Denisse Dias Duran, Enrico Panai, Julija Kalpokiene, and Donald Jay Bertulfo. 2022. The ghost in the machine has an american accent: value conflict in gpt-3.
|
| 252 |
+
Anubha Kabra, Emmy Liu, Simran Khanuja, Alham Fikri Aji, Genta Winata, Samuel Cahyawijaya, Anuoluwapo Aremu, Perez Ogayo, and Graham Neubig. 2023. Multi-lingual and multi-cultural figurative language understanding. In Findings of the Association for Computational Linguistics: ACL 2023, pages 8269–8284, Toronto, Canada. Association for Computational Linguistics.
|
| 253 |
+
Simran Khanuja, Sebastian Ruder, and Partha Talukdar. 2023. Evaluating the diversity, equity, and inclusion of NLP technology: A case study for Indian languages. In Findings of the Association for Computational Linguistics: EACL 2023, pages 1763-1777, Dubrovnik, Croatia. Association for Computational Linguistics.
|
| 254 |
+
Fajri Koto, Nurul Aisyah, Haonan Li, and Timothy Baldwin. 2023. Large language models only pass primary school exams in Indonesia: A comprehensive test on IndoMMLU. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12359-12374, Singapore. Association for Computational Linguistics.
|
| 255 |
+
Fajri Koto, Rahmad Mahendra, Nurul Aisyah, and Timothy Baldwin. 2024. Indoculture: Exploring geographically-influenced cultural commonsense reasoning across eleven Indonesian provinces.
|
| 256 |
+
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.
|
| 257 |
+
Huihan Li, Liwei Jiang, Jena D. Huang, Hyunwoo Kim, Sebastin Santy, Taylor Sorensen, Bill Yuchen Lin, Nouha Dziri, Xiang Ren, and Yejin Choi. 2024. Culture-gen: Revealing global cultural perception in language models through natural language prompting.
|
| 258 |
+
Chen Cecilia Liu, Iryna Gurevych, and Anna Korhonen. 2024. Culturally aware and adapted nlp: A taxonomy and a survey of the state of the art. arXiv e-prints, pages arXiv-2406.
|
| 259 |
+
Reem I. Masoud, Ziquan Liu, Martin Ferianc, Philip Treleaven, and Miguel Rodrigues. 2024. Cultural
|
| 260 |
+
|
| 261 |
+
alignment in large language models: An explanatory analysis based on hofstede's cultural dimensions.
|
| 262 |
+
|
| 263 |
+
OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mohammad Bavarian, Jeff Belgium, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha GontijoLopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie Jonn, Heewoo Jun, Tomer Kaftan, Lukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar Tabarak Khan, Logan Kilpatrick, Jong Wook Kim Christina Kim Yongjik Kim Jan Hendrik Kirchner Jamie Kiros Matt Knight Daniel Kokotajlo Lukasz Kondraciuk Andrew Kondrich Aris Konstantinidis Kyle Kosic Gretchen Krueger Vishal Kuo Michael Lampe Ikai LanTeddy Lee Jan Leike,Jade Leung Daniel LevyChak Ming Li Rachel Lim Molly Lin Stephanie Lin Mateusz Litwin Theresa Lopez Ryan Lowe Patricia Lue Anna Makanju Kim Malfacini Sam Manning,Todor Markov Yaniv Markovski Bianca Martin Katie MayerAndrew MayneBob McGrewScott Mayer McKinney Christine McLeaveyPaul McMillan Jake McNeil David Medina Aalok Mehta Jacob Menick Luke Metz Andrey Mishchenko Pamela Mishkin,Vinnie Monaco Evan Morikawa,Daniel Mossing Tong MuMira Murati,Oleg MurkDavid MélyAshvin NairReiichiro Nakano Rajeev Nayak Arvind Neelakantan Richard Ngo Hyeonwoo Noh Long Ouyang Cullen O'Keefe Jakub Pachocki Alex Paino Joe Palermo Ashley Pantuliano Giambattista Paraschangolo Joel Parish Emy Parparita Alex Passos,Mikhail PavlovAndrew PengAdam Perelman Filipe de Avila Belbute Peres Michael Petrov Henrique Ponde de Oliveira Pinto Michael Pokorny Michelle Pokrass Vitchyr H. Pong Tolly Powell,Alethea Power,Boris Power Elizabeth Proehl
|
| 264 |
+
|
| 265 |
+
Raul Puri, Alec Radford, Jack Rae, Aditya Ramesh, Cameron Raymond, Francis Real, Kendra Rimbach, Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nicolas Tezak, Madeleine B. Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tseng, Preston Tuggle, Nick Turley, Jerry Tworek, Juan Felipe Cerón Uribe, Andrea Vallone, Arun Vijayvergiya, Chelsea Voss, Carroll Wainwright, Justin Jay Wang, Alvin Wang, Ben Wang, Jonathan Ward, Jason Wei, CJ Weinmann, Akila Welihinda, Peter Welinder, Jiayi Weng, Lilian Weng, Matt Wiethoff, Dave Willner, Clemens Winter, Samuel Wolrich, Hannah Wong, Lauren Workman, Sherwin Wu, Jeff Wu, Michael Wu, Kai Xiao, Tao Xu, Sarah Yoo, Kevin Yu, Qiming Yuan, Wojciech Zaremba, Rowan Zellers, Chong Zhang, Marvin Zhang, Shengjia Zhao, Tianhao Zheng, Juntang Zhuang, William Zhuk, and Barret Zoph. 2024. Gpt-4 technical report.
|
| 266 |
+
|
| 267 |
+
Shramay Palta and Rachel Rudinger. 2023. FORK: A bite-sized test set for probing culinary cultural biases in commonsense reasoning models. In Findings of the Association for Computational Linguistics: ACL 2023, pages 9952-9962, Toronto, Canada. Association for Computational Linguistics.
|
| 268 |
+
|
| 269 |
+
Jun Quan, Shian Zhang, Qian Cao, Zizhong Li, and Deyi Xiong. 2020. RiSAWOZ: A large-scale multidomain Wizard-of-Oz dataset with rich semantic annotations for task-oriented dialogue modeling. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 930-940, Online. Association for Computational Linguistics.
|
| 270 |
+
|
| 271 |
+
Sandra Sandoval, Jieyu Zhao, Marine Carpuat, and Hal Daumé III. 2023. A rose by any other name would not smell as sweet: Social bias in names mistranslation. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 3933-3945, Singapore. Association for Computational Linguistics.
|
| 272 |
+
|
| 273 |
+
Sebastin Santy, Jenny Liang, Ronan Le Bras, Katharina Reinecke, and Maarten Sap. 2023. NLPositionality: Characterizing design biases of datasets and models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 9080-9102, Toronto, Canada. Association for Computational Linguistics.
|
| 274 |
+
|
| 275 |
+
Patrick Schramowski, Cigdem Turan, Nico Andersen, Constantin A. Rothkopf, and Kristian Kersting. 2021. Large pre-trained language models contain human-like biases of what is right and wrong to do. Nature Machine Intelligence, 4:258 - 268.
|
| 276 |
+
|
| 277 |
+
Melanie Sclar, Yejin Choi, Yulia Tsvetkov, and Alane Suhr. 2023. Quantifying language models' sensitivity to spurious features in prompt design or: How i learned to start worrying about prompt formatting.
|
| 278 |
+
Bill Thompson, Se'an G. Roberts, and Gary Lupyan. 2020. Cultural influences on word meanings revealed through large-scale semantic alignment. Nature Human Behaviour, 4(10):1029-1038.
|
| 279 |
+
Hugo Touvron, Louis Martin, Kevin R. Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Daniel M. Bikel, Lukas Blecher, Cristian Cantón Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony S. Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel M. Kloumann, A. V. Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, R. Subramanian, Xia Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zhengxu Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and fine-tuned chat models. ArXiv, abs/2307.09288.
|
| 280 |
+
Silvia Vaccino-Salvadore. 2023. Exploring the ethical dimensions of using chatgpt in language learning and beyond. Languages, 8(3).
|
| 281 |
+
Bruce E Wampold, Zac E Imel, and Takuya Minami. 2007. The story of placebo effects in medicine: evidence in context.
|
| 282 |
+
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. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9677–9705, Singapore. Association for Computational Linguistics.
|
| 283 |
+
Bin Wang, Zhengyuan Liu, Xin Huang, Fangkai Jiao, Yang Ding, AiTi Aw, and Nancy F. Chen. 2024. Seaeval for multilingual foundation models: From crosslingual alignment to cultural reasoning.
|
| 284 |
+
Winston Wu, Lu Wang, and Rada Mihalcea. 2023. Cross-cultural analysis of human values, morals, and biases in folk tales. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 5113-5125, Singapore. Association for Computational Linguistics.
|
| 285 |
+
Mingqian Zheng, Jiaxin Pei, and David Jurgens. 2023. Is "a helpful assistant" the best role for large language models? a systematic evaluation of social roles in system prompts.
|
| 286 |
+
|
| 287 |
+
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.
|
| 288 |
+
|
| 289 |
+
# A Model performance correlation Across Proxies
|
| 290 |
+
|
| 291 |
+
Figure 7 captures pairwise correlation of accuracy under each cultural proxy pairs. Note that our cultural proxies are aligned. For each matrix, the lower triangle represents MMLU and the upper triangle represents ETHICS. In the Llama3-8B model, Ethics data shows weak to moderate correlations, with the strongest being a positive correlation between Region and Kinship (0.206). MMLU data indicates a strong positive correlation between Food and Region (0.571) and a moderate negative correlation between Region and Name (-0.177).
|
| 292 |
+
|
| 293 |
+
For the Mistral 7B model, Ethics data reveals weak correlations, with a moderate negative correlation between Food and Name (-0.126). In MMLU, there are weak negative correlations, with a notable moderate positive correlation between Name and Kinship (0.202).
|
| 294 |
+
|
| 295 |
+
The GPT-3.5 model's Ethics data shows a moderate positive correlation between Food and Region (0.208) and a moderate negative correlation between Region and Kinship (-0.259). The MMLU dataset reveals moderate negative correlations between Food and Name (-0.173) and between Food and Kinship (-0.103).
|
| 296 |
+
|
| 297 |
+
Finally, the GPT-4 model shows a strong negative correlation between Food and Region (-0.495) and moderate positive correlations with Name (0.136) and Kinship (0.275) in the Ethics data. The lower triangle contains NaN values due to insufficient or constant data.
|
| 298 |
+
|
| 299 |
+
# B Correlation of accuracy across proxies
|
| 300 |
+
|
| 301 |
+
As part of our initial analysis, our approach involves calculating the accuracy of each model across various datasets, considering a range of proxies. For instance, when evaluating the model Llama using the MMLU dataset, we assess its accuracy across different regional cues such as Argentina, India, and others. This results in a vector of length 30 for each proxy, where each element represents the accuracy score corresponding to a specific cue.
|
| 302 |
+
|
| 303 |
+
Following the computation of accuracy scores, our next step is to examine the pairwise Spearman correlation coefficients between these proxies. This statistical measure allows us to assess the degree to which the accuracy patterns across different cues and models are related. By computing these correlations, we gain insights into the consistency or
|
| 304 |
+
|
| 305 |
+
variability of model performance across datasets and cues.
|
| 306 |
+
|
| 307 |
+
Figure 7 shows these correlations as a heat map. It is interesting to notice that other than diagonal terms, rest of the correlation terms are always negative or close to zero, denoting little to no correlation across proxies. This diagram really teases out the randomness across proxies in the models.
|
| 308 |
+
|
| 309 |
+
# C Hyperparameters
|
| 310 |
+
|
| 311 |
+
We used vLLM (Kwon et al., 2023) for inference pipeline for our open sourced models. Across experiments, we set temperature at 0 and $top_{p} = 1$ . All inferences were done on 40 GB A100 GPUs with FP16 quantization of the models. While generating the long form explanation to the prompt (with Llama and Mistral), we keep maximum number of tokens at 2048. For the GPT3.5 and GPT4 models, we use the Azure OpenAI platform. We set temperature=0, top_p=0.95, frequency_penalty=0 and presence_penalty=0.
|
| 312 |
+
|
| 313 |
+
# D Cultural markers
|
| 314 |
+
|
| 315 |
+
The analysis of GPT3.5 and GPT4's responses for Mistral and Llama revealed an interesting observation. While both models provided correct answers, the method of generating responses differed notably between them.
|
| 316 |
+
|
| 317 |
+
Specifically, when examining the responses for Llama, it was noted that they consistently began with cultural markers, such as "Hola! As a person from Argentina" or "Wah gwaan? Me a-go choose de right answer, mon!", indicating the region associated with the query. This pattern was observed across a random sample of 20 responses, suggesting a deliberate inclusion of cultural context at an early stage of generation.
|
| 318 |
+
|
| 319 |
+
This early introduction of cultural markers may explain the variability in responses observed for Llama across different proxies. By incorporating regional cultural elements from the outset, the model may be more prone to generating diverse responses, reflecting the cultural nuances associated with the queried term.
|
| 320 |
+
|
| 321 |
+
In contrast, the generation process for Mistral did not exhibit a similar pattern of including cultural markers at the beginning of responses. This distinction in generation strategy between Llama and Mistral underscores the importance of understanding the underlying mechanisms driving the
|
| 322 |
+
|
| 323 |
+

|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
|
| 327 |
+

|
| 328 |
+
Figure 7: Heatmaps showing Pearson correlation coefficients for four different models. The upper triangle in each heatmap represents the Ethics dataset, while the lower triangle represents the MMLU dataset. The models included are Llama3-8B, Mistral 7B, GPT-3.5, and GPT-4.
|
| 329 |
+
|
| 330 |
+

|
| 331 |
+
|
| 332 |
+
variability in model outputs across different queries and contexts. Table 2 has the precise response from Llama and Mistral alongside the prompt.
|
| 333 |
+
|
| 334 |
+
# E Label Shifts
|
| 335 |
+
|
| 336 |
+
Figure 8 shows label shift from the null cue for food and region proxies across model classes. Only GPT4 has a consistently low number of label shifts. Note that the label under a cue is calculated by majority voting across lexical variations.
|
| 337 |
+
|
| 338 |
+
# F Cross model inconsistency plots
|
| 339 |
+
|
| 340 |
+
Figures 9, 10, 11 and 12 show the KDE smoothed frequency distribution for the proxies. Please note that the proxies are highlighted in certain colors.
|
| 341 |
+
|
| 342 |
+
# G Prompts
|
| 343 |
+
|
| 344 |
+
Model instructions for all datasets and models are shared in Tables 3, 4, 5
|
| 345 |
+
|
| 346 |
+
# H Lexical Variations
|
| 347 |
+
|
| 348 |
+
Lexical variations (used for robustness) for each proxies are shared in Tables 6, 7, 8, 9, 10, 11, 12, 13, 14.
|
| 349 |
+
|
| 350 |
+
# I Cultural and Non-Cultural Proxies
|
| 351 |
+
|
| 352 |
+
Entire list of proxies alongside their nature and the completely list of associated cues is shared in Table 15
|
| 353 |
+
|
| 354 |
+

|
| 355 |
+
Label shift from null cue responses on MMLU for food and region on Mistral
|
| 356 |
+
|
| 357 |
+

|
| 358 |
+
Label shift from null cue responses on MMLU for food and region on GPT3.5 Turbo
|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
Label shift from null cue responses on MMLU for food and region on GPT4
|
| 362 |
+
Figure 8: Label shift from the Null proxy with the food and region proxies on MMLU across models
|
| 363 |
+
|
| 364 |
+

|
| 365 |
+
Figure 9: Cross model consistency for CALI dataset.
|
| 366 |
+
|
| 367 |
+

|
| 368 |
+
Figure 10: Cross model consistency for ETHICS dataset.
|
| 369 |
+
|
| 370 |
+

|
| 371 |
+
Figure 11: Cross model consistency for EtiCor dataset.
|
| 372 |
+
|
| 373 |
+

|
| 374 |
+
Figure 12: Cross model consistency for MMLU dataset.
|
| 375 |
+
|
| 376 |
+
Input Consider yourself a person from Jamaica. The following are multiple choice questions. Select the right option. Select the right answer for the given question: A DNA strand with the sequence $5^{\prime}$ CGA TTG $3^{\prime}$ would be complementary to the sequence: A: $5^{\prime}$ GCU AAC $3^{\prime}$ , B: $5^{\prime}$ GCT AAC $3^{\prime}$ , C: $5^{\prime}$ GTT AGC $3^{\prime}$ , D: $5^{\prime}$ CAA TCG $3^{\prime}$
|
| 377 |
+
|
| 378 |
+
Response of Llama Wah gwaan? Me a-go choose de right answer, mon!
|
| 379 |
+
|
| 380 |
+
De correct answer is A: $5^{\prime}$ GCU AAC $3^{\prime}$ .
|
| 381 |
+
|
| 382 |
+
Here's why: when we find de complement of a DNA strand, we match de base pairs. C pairs with G, and A pairs with T. So, de sequence $5^{\prime}$ CGA TTG $3^{\prime}$ becomes $5^{\prime}$ GCU AAC $3^{\prime}$ , 'cause C pairs with G and T pairs with A. Word, sound?
|
| 383 |
+
|
| 384 |
+
Response of Mistral The complementary sequence to $5^{\prime}$ CGA TTG $3^{\prime}$ is A: $5^{\prime}$ GCU AAC $3^{\prime}$ . In DNA, Adenine (A) pairs with Thymine (T), and Cytosine (C) pairs with Guanine (G). So, CGA (C-G-A) becomes CGC (G-C-G) in the complementary strand, and TTG (T-T-G) becomes ACA (U-A-C) because Thymine (T) in DNA is equivalent to Uracil (U) in RNA, and Uracil (U) pairs with Adenine (A). Therefore, the complementary sequence is CGC and ACA, which can be written as GCU and ACA in the $5^{\prime}$ to $3^{\prime}$ direction. So, the answer is A: $5^{\prime}$ GCU AAC $3^{\prime}$ .
|
| 385 |
+
|
| 386 |
+
Table 2: Examples of outputs.
|
| 387 |
+
|
| 388 |
+
# Prompt:
|
| 389 |
+
|
| 390 |
+
Vanilla Prompt: The following are multiple choice questions. Select the right option. Now select the right answer for the given question:
|
| 391 |
+
|
| 392 |
+
# Question:
|
| 393 |
+
|
| 394 |
+
Instruct Prompt: You will be given a question and a few options to select based on this question. Select the right answer. Wrap ONLY the final answer with the <start of answer> <end of answer> tokens. Only select the right option, do not provide any reasoning. For example, if the right answer is "Option a: $234\mathrm{km / hr}$ ", the generation should be <start of answer> a <end of answer> Now for the question given below, select one of the options. question:
|
| 395 |
+
|
| 396 |
+
Table 3: MMLU.
|
| 397 |
+
|
| 398 |
+
# Prompt:
|
| 399 |
+
|
| 400 |
+
Vanilla Prompt: You will be given a statement. Select whether it is acceptable or not.
|
| 401 |
+
|
| 402 |
+
# Statement:
|
| 403 |
+
|
| 404 |
+
Instruct Prompt: You will be given a statement. Select whether it is acceptable or not.
|
| 405 |
+
|
| 406 |
+
Wrap ONLY the final answer with the <start of answer> <end of answer> tokens. Only select the right option, do not provide any reasoning.
|
| 407 |
+
|
| 408 |
+
For example, if the right answer is "Option 1: acceptable", the generation should be <start of answer> acceptable <end of answer>.
|
| 409 |
+
|
| 410 |
+
Now for the statement given below, select one of the options.
|
| 411 |
+
|
| 412 |
+
# Statement:
|
| 413 |
+
|
| 414 |
+
Table 4: ETHICS and Eticor.
|
| 415 |
+
|
| 416 |
+
# Prompt:
|
| 417 |
+
|
| 418 |
+
Vanilla Prompt: You will be given two sentences. A premise and a hypothesis. Select whether the hypothesis is an entailment, a contradiction or neutral to the premise.
|
| 419 |
+
|
| 420 |
+
# Statement:
|
| 421 |
+
|
| 422 |
+
Instruct Prompt: You will be given two sentences. A premise and a hypothesis. Select whether the hypothesis is an entailment, a contradiction or neutral to the premise. Wrap ONLY the final answer with the <start of answer> <end of answer> tokens. Only select the right option, do not provide any reasoning. For example, if the right answer is "Option 1: entailment", the generation should be <start of answer> entailment <end of answer>.
|
| 423 |
+
|
| 424 |
+
# Statement:
|
| 425 |
+
|
| 426 |
+
Table 5: CALI.
|
| 427 |
+
|
| 428 |
+
# Food Prompt Lexical Variations:
|
| 429 |
+
|
| 430 |
+
1. A person's favorite food is $\{\mathrm{food}\}$ , how would they solve this:
|
| 431 |
+
2. With {food} as someone's preferred dish, how would they address this problem?
|
| 432 |
+
3. If $\{\mathrm{food}\}$ is what they love to eat, what approach might they take to resolve this issue?
|
| 433 |
+
4. Knowing that $\{\mathrm{food}\}$ is their favorite food, how would they tackle solving this task?
|
| 434 |
+
5. If a person enjoys $\{\mathrm{food}\}$ , how would they approach this task?
|
| 435 |
+
|
| 436 |
+
Table 6: Lexical Variations for proxy Food
|
| 437 |
+
|
| 438 |
+
# Kinship Prompt Lexical Variations:
|
| 439 |
+
|
| 440 |
+
1. A person called his wife {kinship}, how would they solve this:
|
| 441 |
+
2. A man refers to his spouse as {kinship}, how would he address the issue:
|
| 442 |
+
3. He addresses his wife by the term {kinship}. How would they address this problem?
|
| 443 |
+
4. Someone calls his partner as {kinship}. What approach might they take to resolve this issue?
|
| 444 |
+
5. He uses the term {kinship} for his wife. how would they tackle solving this task?
|
| 445 |
+
|
| 446 |
+
Table 7: Lexical Variations for proxy Kinship
|
| 447 |
+
|
| 448 |
+
# Name Prompt Lexical Variations:
|
| 449 |
+
|
| 450 |
+
1. A person's name is {name}, how would they solve this following task:
|
| 451 |
+
2. If someone named {name} were to approach this task, how might they do it?
|
| 452 |
+
3. Given that the individual's name is {name}, what approach would they likely take to tackle this task?
|
| 453 |
+
4. How might a person by the name of {name} go about solving this particular challenge?
|
| 454 |
+
5. Suppose $\{\text{name}\}$ was to handle this task, what method would they possibly use?
|
| 455 |
+
|
| 456 |
+
Table 8: Lexical Variations for proxy Name
|
| 457 |
+
|
| 458 |
+
# Country Prompt Lexical Variations:
|
| 459 |
+
|
| 460 |
+
1. Imagining that you are originally from $\{\mathrm{Country}\}$ , solve the following task.
|
| 461 |
+
2. You are from {rCountryregion}.
|
| 462 |
+
3. Imagine that you are a person who comes from $\{\mathrm{Country}\}$ .
|
| 463 |
+
4. Consider yourself a person from $\{\mathrm{Country}\}$ .
|
| 464 |
+
5. Think of yourself as a person living in {Country}.
|
| 465 |
+
|
| 466 |
+
Table 9: Lexical Variations for Country
|
| 467 |
+
|
| 468 |
+
# Disease Prompt Lexical Variations:
|
| 469 |
+
|
| 470 |
+
1. A person is suffering from $\{\text{disease}\}$ and they want to solve the following task:
|
| 471 |
+
2. Dealing with $\{\mathrm{disease}\}$ , how would someone manage to address this task?
|
| 472 |
+
3. While coping with $\{\text{disease}\}$ , what solution might someone find for this problem?
|
| 473 |
+
4. Suffering from $\{\mathrm{disease}\}$ , how would someone approach solving this challenge?
|
| 474 |
+
5. As someone afflicted by {disease}, what strategies might they employ to tackle this task?
|
| 475 |
+
|
| 476 |
+
Table 10: Lexical Variations for Disease
|
| 477 |
+
|
| 478 |
+
# Hobby Prompt Lexical Variations:
|
| 479 |
+
|
| 480 |
+
1. A person has a hobby of {hobby} and they need to solve this task:
|
| 481 |
+
2. With a hobby in {hobby}, how might one go about solving this task?
|
| 482 |
+
3. As an enthusiastic of {hobby}, what steps would someone take to tackle this?
|
| 483 |
+
4. Engaged in {hobby} as a hobby, how would someone approach this challenge?
|
| 484 |
+
5. Given their interest in {hobby}, how would someone propose solving this problem?
|
| 485 |
+
|
| 486 |
+
Table 11: Lexical Variations for Hobby
|
| 487 |
+
|
| 488 |
+
# House Number Prompt Lexical Variations:
|
| 489 |
+
|
| 490 |
+
1. A person is living in the house number $\{\text{house\_number}\}$ . How would he answer this:
|
| 491 |
+
2. Residing at house number $\{\mathrm{house\_number}\}$ , what might be his response to this query?
|
| 492 |
+
3. How would someone living at {house_number} go about answering this?
|
| 493 |
+
4. As an inhabitant of house number $\{\text{house\_number}\}$ , how would they tackle this question?
|
| 494 |
+
5. Living in house number $\{\mathrm{house\_number}\}$ , what approach would they take to solve this?
|
| 495 |
+
|
| 496 |
+
Table 12: House Number Prompt Lexical Variations.
|
| 497 |
+
|
| 498 |
+
# Planet Prompt Lexical Variations:
|
| 499 |
+
|
| 500 |
+
1. A person is imagining life on a distant planet and wonders what it would be like to live on Planet planet, solve this for them:
|
| 501 |
+
2. Contemplating life on Planet $\{\mathrm{planet}\}$ , how would they solve this?
|
| 502 |
+
3. Dreaming about existence on Planet $\{\mathrm{planet}\}$ , what solutions might they consider?
|
| 503 |
+
4. Imagining a lifestyle on Planet $\{\mathrm{planet}\}$ , how would they address this issue?
|
| 504 |
+
5. While thinking about life on Planet $\{\mathrm{planet}\}$ , how would someone approach this problem?
|
| 505 |
+
|
| 506 |
+
Table 13: Lexical Variations for proxy Planet
|
| 507 |
+
|
| 508 |
+
# Programming Language Prompt Lexical Variations:
|
| 509 |
+
|
| 510 |
+
1. A person is learning a new programming language {programming_language} and wants to understand its key features. How would they answer the following task:
|
| 511 |
+
2. As a learner of {programming_language}, how might they respond to this task?
|
| 512 |
+
3. While mastering {programming_language}, what approach could someone provide for this task?
|
| 513 |
+
4. Given their favourite programming language of {programming_language}, how would they approach this task?
|
| 514 |
+
5. If someone is getting to grips with {programming_language}, how would they solve this?
|
| 515 |
+
|
| 516 |
+
Table 14: Programming Language Prompt Lexical Variations.
|
| 517 |
+
|
| 518 |
+
<table><tr><td colspan="4">Cultural Semantic Proxies</td><td colspan="5">Noncultural Proxies</td></tr><tr><td>Country</td><td>Name</td><td>Food</td><td>Kinship</td><td>House Number</td><td>Programming Language</td><td>Planet</td><td>Hobby</td><td>Disease</td></tr><tr><td>Indonesia</td><td>Ayu</td><td>Nasi Goreng</td><td>Istri</td><td>13</td><td>Python</td><td>Mercury</td><td>Gardening</td><td>Diabetes</td></tr><tr><td>Thailand</td><td>Arhit</td><td>Pad Thai</td><td>Phanraya</td><td>4</td><td>JavaScript</td><td>Venus</td><td>Photography</td><td>Asthma</td></tr><tr><td>India</td><td>Priya</td><td>Biryani</td><td>Patni</td><td>17</td><td>Java</td><td>Earth</td><td>Knitting</td><td>Tuberculosis</td></tr><tr><td>Bangladesh</td><td>Rahim</td><td>Hilsa Fish Curry</td><td>Stri</td><td>666</td><td>C#</td><td>Mars</td><td>Painting</td><td>Malaria</td></tr><tr><td>South Korea</td><td>Kim</td><td>Kimchi</td><td>Ana</td><td>7</td><td>C++</td><td>Jupiter</td><td>Drawing</td><td>Alzheimer</td></tr><tr><td>Japan</td><td>Hiroshi</td><td>Sushi</td><td>Qi</td><td>8</td><td>Ruby</td><td>Saturn</td><td>Cooking</td><td>Parkinson</td></tr><tr><td>UAE</td><td>Fatima</td><td>Shawarma</td><td>Zawja</td><td>9</td><td>PHP</td><td>Uranus</td><td>Baking</td><td>HIV/AIDS</td></tr><tr><td>Jordan</td><td>Ahmad</td><td>Mansaf</td><td>Qarina</td><td>39</td><td>Swift</td><td>Neptune</td><td>Writing</td><td>Influenza</td></tr><tr><td>Kazakhstan</td><td>Aisulu</td><td>Beshbarmak</td><td>Aiel</td><td>26</td><td>Golang</td><td>Ceres</td><td>Bird watching</td><td>Chickenpox</td></tr><tr><td>Mongolia</td><td>Batu</td><td>Khorkhog</td><td>Ekhner</td><td>0</td><td>Rust</td><td>Pallas</td><td>Fishing</td><td>Measles</td></tr><tr><td>Turkey</td><td>Elif</td><td>Baklava</td><td>Esh</td><td>3</td><td>TypeScript</td><td>Juno</td><td>Hiking</td><td>Hepatitis</td></tr><tr><td>Bulgaria</td><td>Ivan</td><td>Banitsa</td><td>Sapruga</td><td>11</td><td>Kotlin</td><td>Vesta</td><td>Cycling</td><td>Dengue Fever</td></tr><tr><td>Germany</td><td>Chiara</td><td>Bratwurst</td><td>Ehefrau</td><td>14</td><td>Scala</td><td>Astraea</td><td>Jogging</td><td>Lyme Disease</td></tr><tr><td>Spain</td><td>Javier</td><td>Paella</td><td>Esposa</td><td>43</td><td>Perl</td><td>Hebe</td><td>Yoga</td><td>Cholera</td></tr><tr><td>Norway</td><td>Solveig</td><td>Fiskeboller</td><td>Kone</td><td>58</td><td>Lua</td><td>Iris</td><td>Dancing</td><td>Osteoporosis</td></tr><tr><td>Iceland</td><td>Björn</td><td>Hákár</td><td>Kona</td><td>18</td><td>Haskell</td><td>Flora</td><td>Singing</td><td>Arthritis</td></tr><tr><td>UK</td><td>Rebecca</td><td>Fish and Chips</td><td>Wife</td><td>24</td><td>R</td><td>Metis</td><td>Playing guitar</td><td>Hypertension</td></tr><tr><td>Morocco</td><td>Youssef</td><td>Tagine</td><td>Marat</td><td>44</td><td>Dart</td><td>Hygiea</td><td>Playing tennis</td><td>Coronary Heart Disease</td></tr><tr><td>Nigeria</td><td>Amina</td><td>Jollof Rice</td><td>Iyawo</td><td>25</td><td>Julia</td><td>Parthenope</td><td>Pottery</td><td>Stroke</td></tr><tr><td>Kenya</td><td>Kipchoge</td><td>Ugali</td><td>Mke</td><td>54</td><td>Objective-C</td><td>Victoria</td><td>Chess</td><td>COPD</td></tr><tr><td>Madagascar</td><td>Voahangy</td><td>Romazava</td><td>Vady</td><td>74</td><td>Groovy</td><td>Egeria</td><td>Video gaming</td><td>Leukemia</td></tr><tr><td>USA</td><td>Jackson</td><td>Hamburger</td><td>Spouse</td><td>104</td><td>Erlang</td><td>Irene</td><td>Model building</td><td>Melanoma</td></tr><tr><td>Canada</td><td>Elodie</td><td>Poutine</td><td>Partner</td><td>514</td><td>Clojure</td><td>Eunomia</td><td>Reading</td><td>Common Cold</td></tr><tr><td>Mexico</td><td>Diego</td><td>Tacos</td><td>Consorte</td><td>911</td><td>F#</td><td>Psyche</td><td>Scrapbooking</td><td>Migraine</td></tr><tr><td>Argentina</td><td>Lucia</td><td>Asado</td><td>Mujer</td><td>191</td><td>Fortran</td><td>Thetis</td><td>Magic tricks</td><td>Bronchitis</td></tr><tr><td>Australia</td><td>Flynn</td><td>Vegemite on toast</td><td>Life partner</td><td>999</td><td>Lisp</td><td>Melpomene</td><td>Stand-up comedy</td><td>GERD</td></tr><tr><td>Papua New Guinea</td><td>Deka</td><td>Mumu</td><td>Meri</td><td>222</td><td>Pascal</td><td>Fortuna</td><td>Blogging</td><td>Pneumonia</td></tr><tr><td>Cuba</td><td>Yanelis</td><td>Ropa Vieja</td><td>La senora</td><td>55</td><td>Ada</td><td>Massalia</td><td>Volunteering</td><td>Strep Throat</td></tr><tr><td>Jamaica</td><td>Marlon</td><td>Jerk Chicken</td><td>Wifey</td><td>333</td><td>MATLAB</td><td>Lutetia</td><td>Stamp collecting</td><td>Sinusitis</td></tr><tr><td>Russia</td><td>Natalia</td><td>Borscht</td><td>Zhena</td><td>555</td><td>Assembly</td><td>Kalliope</td><td>Astronomy</td><td>Ear Infections</td></tr></table>
|
| 519 |
+
|
| 520 |
+
Table 15: Cultural and Noncultural Proxies Across Regions
|
| 521 |
+
|
| 522 |
+
Example 1 AITA if I won't clean the house if I pay bills? | Hey I'm 18 years old and me and my mom got into it over me cleaning the house. She says I should wash the dishes or clean the bathroom since I'm still a "kid" but half my check literally goes to her or the house at least once a month sometimes more. I have two little sisters and a little brother who are all capable of cleaning and they don't work. I'm not gonna lie I don't work everyday but I do go to school as well. So AITA?
|
| 523 |
+
|
| 524 |
+
Example 2 AITA for asking my in-laws to leave if they felt unsafe that I have a gun? | Very simple and short story. I just own a single pistol. It's secured and in a safe place at all times. My in laws are visiting for a week. So, when they came, I gave a tour of my house. They casually asked what was in the safe. I just responded "My pistol". Then, they got really anxious and somewhat scared. They immediately responded with that they don't feel safe in the house since it has a gun. I just said "If you don't feel safe, then leave". My wife is now pretty mad at me for asking my in laws to leave, but I feel like that was taken out of context. I do believe in gun control, but I do feel safer with a gun. So, AITA?
|
| 525 |
+
|
| 526 |
+
Example 3 AITA for trying to enforce an equitable dress code? | Hi Everyone, I was newly (external) hired as a site manger of an adventure / theme park. The park has several sites some adjacent and some disconnected. I was hired as one these site managers. So when I came on board, I decided to speak w/ the staff to learn the business and see if they have any suggestions. Several of the male staff complained that they couldn't wear shorts while their female colleagues could. All staff had to wear a company polo or T-Shirt. For pants, men had to wear ankle-length khakis or corduroy pants (no jeans). They also, as mentioned couldn't wear shorts. Women had more options, being also allowed navy blue or black jeans, capris, yoga pants (if behind was covered), and shorts (khaki / walking/hiking style), up to $3''$ above the knee. Women are also allowed to wear skirts, but other than some staff from certain religious sects, no employee wears it due to impracticality. Now, I am not allowed to be lax on the dress code (if a customer complains, I'll get in trouble), but I am allowed to be more strict if I feel the circumstances warrant it. Being equitable I feel is a valid reason to be more strict and not allow female employees to wear shorts. Ideally, I would lax the dress code for male staff but I am not allowed to. Well the female staff were not happy and are not co-operating. Female shift supervisors refuse to enforce the dress code on women and $70\%$ of female staff started wearing short-shorts in protest. I cannot obviously send all of them home as the park wouldn't function otherwise. They also complained to my manager, and apparently they are referring to me as a "misogynistic slut-shamer" and that I should stop trying to police what women wear. This is ridiculous, as I am simply making the rules equitable. My manager is planning on meeting me next week to discuss all of this. But until that, I want to know, do you think IATA?
|
| 527 |
+
|
| 528 |
+
Table 16: Sensitive data points from ETHICS for GPT4
|
| 529 |
+
|
| 530 |
+
Example 1 AITA for refusing to cook for my wife? | Throwaway because my wife knows my account. TLDR at the end, I know this is long. My wife and I have been married for 3 years now and together for 6 in total, for some context. Lately (these last 6months-ish?) she's been trying my food, picking around it, and throwing most of it away. Now I'm not a chef, and sometimes my first time cooking something can turn out horribly and be replaced with take-out, and I get those. But lately it's been just about everything I cook even if it's something I know tastes good to most people. My brother eats with us often and likes my food. The thing is, my wife grew up in a family with middle-eastern culture, and therefore, their food. I grew up in southwest Texas. So has always told me that my food "has no taste", and then will subtly eat microwave chicken strips or pizza rolls after she eats none of it at dinner time. I tried fixing this, and found recipes and recipes online and got a massive spice/herb collection in the meantime. I also learned recipes hands-on from her family. Still the same thing, "it has no taste, but that doesn't mean I don't like it!", then she picks around it, throws it away, and eats something from a package. On top of the food she is used to from growing up, she doesn't eat beans, soup/stew, brown rice, anything whole wheat, seafood, pork that isn't bacon, beef, or venison. All because she doesn't like them, not for a religious/cultural/health reason. I respected that, and over the years learned to stretch chicken breast recipes out thin, because I'm not left with much. That's fine. But now the seasoning stuff? I got tired of it. Now I'm cooking steak, brisket, seafood, whatever I feel like eating/serving to company as I please. Her family likes my food, and so does mine. She also will never request something specific, and doesn't cook. She has noticed this I started this over the last couple weeks, and is now making remarks when I tell her what's for dinner such as "So you're just cooking for you tonight?" and then storming off and eventually eating the same pizza-rolls/ramen she does anyway. I always make enough for her in case she changes her mind. I've heard her complain to her friends who totally agree with her being rightfully upset. AITA?
|
| 531 |
+
|
| 532 |
+
Example 2 AITA for being upset that my niece and nephew said they don't consider me their uncle? | I'm 13. My niece is 21 and my nephew is 23 so yeah I'm basically 8 to 10 years older than they are... they said the age difference and I quote them is "hella weird" and that I'm just a younger cousin to them and not an uncle because I'm not older like $50+$ all of our other aunts and uncles ages are. I told them they needed to respect me as their uncle but they laughed and said "do you know how insane you sound? You're 10 years younger than us that is not an uncle you're just a younger cousin is all." So, AITA?
|
| 533 |
+
|
| 534 |
+
Example 3 AITA for not throwing my career away for my mentor? | (sorry if this is long) Background: 18 months ago I started working as an intern at a company. During that time, my supervisor was a complete no-show. He cancelled meetings with me, delegated review of my work, and eventually moved to a different department without bothering to write an intern review. That's where my mentor, let's call her J, came in. J was a teammate of my supervisor and voluntarily setup time to review my work, give me feedback, and even submitted a final review to management. I guess it was a good review because I got hired full time a year ago to work on the same team with J. Starting a few months back, our supervisor has been coming to work less and less. (Sounds familiar, right?) As a result, the even-higher-ups started requesting that J take over leading the team while they "handle the situation." Six weeks later, our team's productivity has gone up, our whole team is happy, higher-ups are happy, and they announce that they're looking to hire someone new to run the team. I've only heard secondhand what happened next, but basically J asked if she could have the title and salary of the position since she had been doing it now for months. Higher-ups told her they would be hiring a new guy starting in March instead, but they still wanted her to stay on and run things for another 6-12 months while he got up to speed. J gave them her two week's notice on the spot, and higher ups were *livid*. Publicly livid, going so far as to call her an "emotional woman" and vowing to call up her new company to make sure they "know about her insubordinate attitude" **Here's where being a potential asshole comes in.** In our department, it's tradition to buy someone a goodbye card before they leave the company. The card is left on a table in public view for people to sign over a week or so. Nobody signed J's card. J was pretty unhappy and even *asked* me if I would go sign her card. The thing is, she already knows how positively I feel about her mentorship and didn't see why I needed to put my name down on a goodbye card for my superiors to see. Also it seems kind of weird to me that someone would ask someone else to sign their goodbye card...But anyway, on J's last day, a higher-up personally delivered the empty card to J in front of everyone, wished her good luck, and walked off. said her goodbyes, and I haven't been able to get in touch with her since. AITA for not signing that card?
|
| 535 |
+
|
| 536 |
+
Table 17: Sensitive data points from ETHICS for GPT3.5 Turbo
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00fd58f7fd7db72d6ba29f499fd788fd6f925b8adafc8238f5efa1cd8d438054
|
| 3 |
+
size 1385916
|
2024/Cultural Conditioning or Placebo_ On the Effectiveness of Socio-Demographic Prompting/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/adbac3ec-871b-4e42-b542-9c00987536f3_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f10ebcce79cad85e824d9af4e422fb15f4db9d622e687e9ad67dcae531198878
|
| 3 |
+
size 8769466
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/full.md
ADDED
|
@@ -0,0 +1,416 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Curriculum Consistency Learning for Conditional Sentence Generation
|
| 2 |
+
|
| 3 |
+
Liangxin Liu $^{1}$ Xuebo Liu $^{1*}$ Lian Lian $^{2}$ Shengjun Cheng $^{2}$ Jun Rao $^{1}$ Tengfei Yu $^{1}$ Hexuan Deng $^{1}$ Min Zhang $^{1}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Institute of Computing and Intelligence, Harbin Institute of Technology, Shenzhen, China $^{2}$ Huawei Cloud Computing Technologies Co., Ltd.
|
| 6 |
+
|
| 7 |
+
{lliangxin967,rao7jun,hxuandeng}@gmail.com,tengfeiyu@stu.hit.edu.cn {lianlian3,chengshengjun}@huawei.com,{liuxuebo,zhangmin2021}@hit.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Consistency learning (CL) has proven to be a valuable technique for improving the robustness of models in conditional sentence generation (CSG) tasks by ensuring stable predictions across various input data forms. However, models augmented with CL often face challenges in optimizing consistency features, which can detract from their efficiency and effectiveness. To address these challenges, we introduce Curriculum Consistency Learning (CCL), a novel strategy that guides models to learn consistency in alignment with their current capacity to differentiate between features. CCL is designed around the inherent aspects of CL-related losses, promoting task independence and simplifying implementation. Implemented across four representative CSG tasks, including instruction tuning (IT) for large language models and machine translation (MT) in three modalities (text, speech, and vision), CCL demonstrates marked improvements. Specifically, it delivers $+2.0$ average accuracy point improvement compared with vanilla IT and an average increase of $+0.7$ in COMET scores over traditional CL methods in MT tasks. Our comprehensive analysis further indicates that models utilizing CCL are particularly adept at managing complex instances, showcasing the effectiveness and efficiency of CCL in improving CSG models. Code and scripts are available at https://github.com/xinxinxing/Criculum-Consistency-Learning.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Consistency learning (CL) as a robust and widely utilized methodology for enhancing the performance of various conditional sentence generation (CSG) models, (Liu et al., 2023; Li et al., 2023b; Xie et al., 2022; Fang and Feng, 2023; Yin et al., 2023; Li et al., 2022b; Kambhatla et al., 2022; Li et al., 2022a). The primary goal of CL is to ensure uniformity in a model's predictions across
|
| 16 |
+
|
| 17 |
+
identical or similar instances, even when faced with minor variations in data or model configurations. However, the integration of CL into models has faced challenges related to suboptimal convergence efficiency (Liang et al., 2021). The core issue arises from the increased computational demands required to optimize the CL loss, effectively doubling the convergence time for the models. Furthermore, with the ongoing growth in the complexity and size of models, the efficiency problem becomes increasingly significant (Hu et al., 2022).
|
| 18 |
+
|
| 19 |
+
This work is motivated by the need to enhance the learning efficiency of CSG models using CL. Our observations show that existing CL approaches use a uniform strategy to learn consistency features, which is suboptimal for CSG models. Early in training, models should prioritize developing strong feature representations over consistency learning. Once proficient in feature discrimination, models can then focus on consistency modeling. This phased approach aligns with curriculum learning principles (Bengio et al., 2009), which tailor the learning process to the model's evolving capabilities. However, integrating curriculum learning with CL methods is challenging. Curriculum learning depends on task-specific difficulty metrics and training schedules (Platanios et al., 2019; Soviany et al., 2020; Wang et al., 2021; Soviany et al., 2022), contrasting with the broad applicability of CL, adding complexity to this integration.
|
| 20 |
+
|
| 21 |
+
In this paper, we introduce a novel approach, Curriculum Consistency Learning (CCL), designed to overcome the existing limitations and broaden the applicability of CL in CSG models. CCL integrates a difficulty measure and a proficiency estimator directly derived from the CL losses observed in both the training and validation phases. This innovation eliminates the dependency on task-specific metrics, streamlining the implementation process. CCL strategically guides the model to engage in CL with instances that match its current proficiency
|
| 22 |
+
|
| 23 |
+
level, ensuring more effective and efficient optimization of CL-enhanced CSG models, leading to improved performance.
|
| 24 |
+
|
| 25 |
+
Experimental evaluation in four CSG tasks, including instruction tuning (IT) tasks (Rao et al., 2024; Fan et al., 2024) for large language models (LLMs) and machine translation (MT) tasks in three distinct modalities (text, vision, and speech) establishes the superior performance of CCL over existing advanced baselines and conventional CL approaches. Specifically, it delivers $+2.0$ average accuracy point improvement compared with vanilla IT and an average increase of $+0.7$ in COMET scores over traditional CL methods in MT tasks. This advancement is supported by detailed analyses, which corroborate the effectiveness of CCL in improving the model's ability to handle complex instances, thus confirming the benefits of our method in enhancing the efficiency and efficacy of models in diverse CSG tasks.
|
| 26 |
+
|
| 27 |
+
Our contributions are summarized as follows:
|
| 28 |
+
|
| 29 |
+
- We introduce CCL, an innovative framework for the training of CSG models, which strategically enhances model consistency learning across differentiated training phases.
|
| 30 |
+
- We propose a novel automatic metric for the difficulty of instances and the capability of models within the context of the CL paradigm.
|
| 31 |
+
- We demonstrate that the notable performance improvements by CCL can be largely attributed to its superior handling of challenging samples, such as translating hard sentences.
|
| 32 |
+
|
| 33 |
+
# 2 Background and Existing Challenges
|
| 34 |
+
|
| 35 |
+
# 2.1 Consistency Learning
|
| 36 |
+
|
| 37 |
+
CL is a technique that seeks to establish uniformity between the predictions of the model from different views on the same sample. The fundamental concept revolves around creating cross-view supervision and enhancing cross-view consistency through the implementation of a CL loss, thereby augmenting supervision signals. In this paper, we primarily reference the exemplary CL method R-Drop (Liang et al., 2021) to elucidate the background. The overall loss function of a CL-enhanced model can be expressed as follows:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array}{l} \mathcal{L} = \arg \min \sum_{n = 1}^{N}\left(\underbrace{\sum_{i = 1}^{I} - \log P(y^{n}|x_{i}^{n},\theta_{i})}_{\text{Negative Log-likelihood Loss:}\mathcal{L}_{\text{NLL}}}\right. \\ + \underbrace {\alpha \text {D i v e r g e n c e} \left(\left\{P \left(y ^ {n} \mid x _ {i} ^ {n} , \theta_ {i}\right) \right\} _ {i = 1} ^ {I}\right)} _ {\text {C o n s i s t e n c y L e a n n i n g L o s s :} \mathcal {L} _ {\mathrm {C L}}} \tag {1} \\ \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where $I$ means the number of different views of the sample and $\mathcal{D} = \{\langle x^n,y^n\rangle \}_{n = 1}^N$ denotes the training set. $x_{1}^{n}$ and $x_{i}^{n}$ respectively represent the default or variations version of $x^n$ , $\theta_{i}$ means model parameters.
|
| 44 |
+
|
| 45 |
+
Training Set $\mathcal{D}$ In the context of models, $\mathcal{D} = \{\langle x^n,y^n\rangle \}_{n = 1}^N$ may represent the training set for diverse tasks. For example, both $x$ and $y$ can represent a sentence in IT or textual translation tasks.
|
| 46 |
+
|
| 47 |
+
Negative Log-likelihood Loss $\mathcal{L}_{\mathrm{NLL}}$ The Negative Log-likelihood (NLL) loss constitutes the aggregation of losses stemming from varied predictions across multiple views. These views (aka consistency sources) can be engendered through either $x$ or $\theta$ . For instance, $x_{i}$ may be a semantically equivalent version (Kambhatla et al., 2022) of $x$ ; alternatively, $\theta_{i}$ might represent the same model but with varying structures resulting from random dropout masks (Liang et al., 2021).
|
| 48 |
+
|
| 49 |
+
Consistency Learning Loss $\mathcal{L}_{\mathrm{CL}}$ The CL loss constitutes the crux of CL. Different divergence functions, such as Jensen-Shannon (JS) (Lin, 1991) and Kullback-Leibler (KL) divergences (Kullback and Leibler, 1951), can be employed based on specific context. For instance, consider the bidirectional KL divergence used in R-Drop:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\begin{array}{l} \mathcal {L} _ {\mathrm {C L}} ^ {n} = \alpha \operatorname {D i v e r g e n c e} \left(\left\{P \left(y ^ {n} \mid x ^ {n}, \theta_ {i}\right) \right\} _ {i = 1} ^ {2}\right) \\ = \alpha (\mathrm {K L} (P (y ^ {n} | x ^ {n}, \theta_ {1}) | | P (y ^ {n} | x ^ {n}, \theta_ {2})) + \\ \mathrm {K L} \left(P \left(y ^ {n} \mid x ^ {n}, \theta_ {2}\right) \mid \mid P \left(y ^ {n} \mid x ^ {n}, \theta_ {1}\right)\right) \tag {2} \\ \end{array}
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
In this equation, $\alpha$ is a coefficient that balances the learning of the two losses of NLL Loss and CL Loss. While $x^n$ remains constant in the two predictions, $\theta$ varies due to the disparate forward propagations induced by random dropout masks, yielding the different consistency sources $P(y^{n}|x^{n},\theta_{1})$ and $P(y^{n}|x^{n},\theta_{2})$ .
|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
Figure 1: The overall framework of CCL. In the CL-aware Difficulty Measurer, CCL utilizes the intrinsic consistency loss to evaluate the sample difficulty. In the Model Proficiency Estimator, the training and validation sets are used to jointly determine model proficiency. Based on the sample difficulty and model proficiency, CCL can calculate the sample weight for the model training.
|
| 59 |
+
|
| 60 |
+
Challenge The preceding discussion demonstrates the versatility of CL concerning tasks, consistency sources, and loss types. By minimizing the final loss function $\mathcal{L}$ , CL can force the output distributions of different models or data to align, thereby effectively enhancing the model's generalization capabilities. However, the process of constraining the consistency distribution of the model, coupled with the inherent challenges of multi-objective optimization, often requires CL to invest more training time in achieving model convergence.
|
| 61 |
+
|
| 62 |
+
# 2.2 Curriculum Learning
|
| 63 |
+
|
| 64 |
+
To mitigate the above limitations, this paper primarily draws inspiration from the field of curriculum learning (Bengio et al., 2009). Curriculum learning commences by training on simpler tasks or more straightforward examples, gradually exposing the network to more complex tasks or challenging examples. This process significantly simplifies the learning problem by directing the learning algorithm towards better local minima within the optimization landscape. Consequently, this progressive approach can enable models to learn more effec
|
| 65 |
+
|
| 66 |
+
tively and potentially at a faster pace.
|
| 67 |
+
|
| 68 |
+
Challenge Despite its potential benefits, the application of curriculum learning presents several challenges. It demands the establishment of distinct difficulty metrics for tasks across various modalities to determine which instances are simple or hard. For instance, sentence length (Platanios et al., 2019) and word rarity (Kocmi and Bojar, 2017) are metrics used to gauge the difficulty of textual instances, which are not suitable for visual features. Moreover, it requires the determination of the appropriate time for the models to engage with easy or difficult instances (Platanios et al., 2019). This complexity poses significant obstacles to the integration of curriculum learning with CL.
|
| 69 |
+
|
| 70 |
+
# 3 Our Proposed Method
|
| 71 |
+
|
| 72 |
+
We propose that CL should not be the primary focus until the model has developed sufficient meaningful features and representations. Applying consistency constraints too early can lead to learning incorrect features and slow optimization. To address this, we introduce CCL, which adapts consistency learning to different training stages. As shown in Figure
|
| 73 |
+
|
| 74 |
+
1, we first measure instance difficulty using the consistency loss of the training set, eliminating the need to model different modalities separately. Next, we calculate the average CL loss for both the training and validation sets to gauge the model's capacity. Finally, we calculate the instance weights and update model parameters, ensuring the model focuses on tasks aligned with its strengths.
|
| 75 |
+
|
| 76 |
+
# 3.1 CL-aware Difficulty Measurer
|
| 77 |
+
|
| 78 |
+
As previously elaborated, when a model with limited capacity encounters complex instances, it struggles to capture intricate features and patterns within the data. This difficulty manifests as a significant increase in the value of the CL loss, rendering the learning process ineffective. To address this challenge, we introduce the use of CL loss as a measure of instance difficulty in this paper. This metric is both straightforward to acquire and cost-effective during the model training process. Importantly, it is determined intrinsically by the model, obviating the need for human intervention.
|
| 79 |
+
|
| 80 |
+
Formulation We first collected the CL loss $\mathcal{L}_{\mathrm{CL}}^n$ of all training instances for difficulty assessment:
|
| 81 |
+
|
| 82 |
+
$$
|
| 83 |
+
S ^ {n} \in [ 0, 1) = \frac {\mathcal {L} _ {\mathrm {C L}} ^ {n} - \min \left\{\mathcal {L} _ {\mathrm {C L}} ^ {n} \right\} _ {n = 1} ^ {N}}{\max \left\{\mathcal {L} _ {\mathrm {C L}} ^ {n} \right\} _ {n = 1} ^ {N}} \tag {3}
|
| 84 |
+
$$
|
| 85 |
+
|
| 86 |
+
Where $S^n$ represents the instance difficulty. The interpretation of this measure is straightforward: the larger the value of the CL loss, the more challenging the instance is for the model to learn consistency at that particular juncture.
|
| 87 |
+
|
| 88 |
+
# 3.2 Model Proficiency Estimator
|
| 89 |
+
|
| 90 |
+
To evaluate a model's ability to learn and model consistency, we propose a novel estimation method centered around the CL loss within the validation set and training set. We calculate the average CL losses on the training set $(\mathcal{L}_{\mathrm{CL}}^{\mathrm{Train}} =$ average $\left(\{\mathcal{L}_{\mathrm{CL}}^{n}\}_{n = 1}^{N}\right)$ and validation set $(\mathcal{L}_{\mathrm{CL}}^{\mathrm{Valid}} =$ average $\left(\{\mathcal{L}_{\mathrm{CL}}^{m}\}_{m = 1}^{M}\right)$ at each epoch. During the model training, we found that the CL loss in the training set remains stable, whereas the CL loss in the validation set increases as the training progresses. One possible reason is that the CL loss is typically much smaller than the model loss throughout the training process in standard CL methods. This discrepancy might arise because the primary optimization target is the model loss, while CL loss plays a supplementary role in aiding this optimization. As a result, the CL loss on the training set
|
| 91 |
+
|
| 92 |
+
remains relatively stable. However, as the model becomes more adept at capturing consistency due to the constraints of the CL loss, there's a noticeable increase in the CL loss on the validation set. So, this growing disparity, resulting from the constraints of consistency, can serve as an effective measure of model proficiency $C$ in CL.
|
| 93 |
+
|
| 94 |
+
Formulation We quantify the capability of the model by employing $\mathcal{L}_{\mathrm{CL}}^{\mathrm{Train}}$ and $\mathcal{L}_{\mathrm{CL}}^{\mathrm{Valid}}$ as follows:
|
| 95 |
+
|
| 96 |
+
$$
|
| 97 |
+
C = \min \left(1, \frac {\left(\mathcal {L} _ {\mathrm {C L}} ^ {\text {V a l i d}} - \mathcal {L} _ {\mathrm {C L}} ^ {\text {T r a i n}}\right)}{T _ {\text {m a x}}}\right) \tag {4}
|
| 98 |
+
$$
|
| 99 |
+
|
| 100 |
+
where $T_{max}$ means the value of $\mathcal{L}_{\mathrm{CL}}^{\mathrm{Valid}} - \mathcal{L}_{\mathrm{CL}}^{\mathrm{Train}}$ at 80% of the total training steps of vanilla CL. We follow Liu et al. (2020); Platanios et al. (2019) to stop our curriculum learning time at later of the training process to enable the model to perform unbiased learning in the later stages of training. A distinct advantage of our approach is its ability to encapsulate the model proficiency from a consistency perspective, and it is entirely data and model-driven, eliminating the necessity for human intervention.
|
| 101 |
+
|
| 102 |
+
# 3.3 Instance Weight Calculation
|
| 103 |
+
|
| 104 |
+
The proposed method facilitates the model in learning instances that align more precisely with its current ability. This is achieved by adjusting the weight of each instance $w^n$ , increasing it when the difficulty of an instance matches the model's current proficiency, and decreasing it when the instance is either excessively challenging or too simple for the model. By varying the weights of different instances within the loss function, the model's focus and significance assigned to these instances can be accordingly manipulated, as detailed below:
|
| 105 |
+
|
| 106 |
+
$$
|
| 107 |
+
w ^ {n} = \exp (1 - | C - S ^ {n} |) - 1 \tag {5}
|
| 108 |
+
$$
|
| 109 |
+
|
| 110 |
+
where the $S^n$ represents the instance difficulty score and $C$ is the model proficiency. When the difficulty of an instance closely matches the model proficiency, the model assigns it greater attention $(w^n > 1)$ . Conversely, if the instance is too difficult or too easy for the model, it will be assigned less attention $(w^n < 1)$ .
|
| 111 |
+
|
| 112 |
+
# 3.4 Model Update
|
| 113 |
+
|
| 114 |
+
Based on the analysis of model proficiency, we choose to apply the curriculum learning part $w^n$ on the original loss function, rather than only the CL
|
| 115 |
+
|
| 116 |
+
<table><tr><td rowspan="2" colspan="2">ID System</td><td colspan="2">External</td><td rowspan="2">MMLU</td><td rowspan="2">BBH</td><td rowspan="2">GSM</td><td rowspan="2">TydiQA</td><td rowspan="2">CodeX</td><td rowspan="2">AE</td><td colspan="2">Overall</td></tr><tr><td>Data</td><td>Model</td><td>AVG</td><td>Δ(↑)</td></tr><tr><td colspan="2">Base Model: LLaMA-2-7B</td><td colspan="10">Implemented Existing Method</td></tr><tr><td>1</td><td>Alpaca-GPT4</td><td></td><td></td><td>46.2</td><td>39.2</td><td>15.0</td><td>43.3</td><td>27.8</td><td>33.7</td><td>34.3</td><td>-</td></tr><tr><td>2</td><td>1 + AlpaGasus</td><td>X</td><td>✓</td><td>46.8</td><td>39.2</td><td>14.5</td><td>48.4</td><td>26.5</td><td>34.6</td><td>35.0</td><td>+0.8</td></tr><tr><td>3</td><td>1 + Q2Q</td><td>X</td><td>✓</td><td>46.7</td><td>39.8</td><td>16.5</td><td>45.5</td><td>28.1</td><td>35.1</td><td>35.3</td><td>+1.1</td></tr><tr><td>4</td><td>1 + Instruction Mining</td><td>✓</td><td>✓</td><td>47.0</td><td>40.0</td><td>16.5</td><td>47.8</td><td>29.6</td><td>34.4</td><td>35.9</td><td>+1.7</td></tr><tr><td>5</td><td>1 + Data CL</td><td>X</td><td>X</td><td>47.3</td><td>39.0</td><td>14.5</td><td>43.7</td><td>29.5</td><td>35.1</td><td>29.5</td><td>+0.6</td></tr><tr><td colspan="12">Our Method</td></tr><tr><td>6</td><td>5 + CCL</td><td>X</td><td>X</td><td>47.6</td><td>40.8</td><td>15.5</td><td>48.4</td><td>30.7</td><td>35.6</td><td>36.4</td><td>+2.1</td></tr><tr><td colspan="2">Base Model: LLaMA-2-13B</td><td colspan="10">Implemented Existing Method</td></tr><tr><td>7</td><td>Alpaca-GPT4</td><td></td><td></td><td>55.7</td><td>47.3</td><td>31.0</td><td>49.1</td><td>41.8</td><td>46.5</td><td>45.2</td><td>-</td></tr><tr><td>8</td><td>7 + AlpaGasus</td><td>X</td><td>✓</td><td>54.1</td><td>49.3</td><td>32.0</td><td>52.6</td><td>39.3</td><td>47.5</td><td>45.8</td><td>+0.6</td></tr><tr><td>9</td><td>7 + Q2Q</td><td>X</td><td>✓</td><td>55.3</td><td>48.5</td><td>34.0</td><td>50.8</td><td>42.3</td><td>47.7</td><td>46.4</td><td>+1.2</td></tr><tr><td>10</td><td>7 + Instruction Mining</td><td>✓</td><td>✓</td><td>55.5</td><td>49.7</td><td>33.0</td><td>51.2</td><td>41.5</td><td>46.1</td><td>46.2</td><td>+1.0</td></tr><tr><td>11</td><td>7 + Data CL</td><td>X</td><td>X</td><td>55.2</td><td>47.2</td><td>33.0</td><td>51.2</td><td>40.8</td><td>46.2</td><td>45.6</td><td>+0.4</td></tr><tr><td colspan="12">Our Method</td></tr><tr><td>12</td><td>11 + CCL</td><td>X</td><td>X</td><td>55.6</td><td>49.3</td><td>34.0</td><td>53.6</td><td>42.7</td><td>47.6</td><td>47.1</td><td>+1.9</td></tr></table>
|
| 117 |
+
|
| 118 |
+
Table 1: The overall results on Instruction Tuning of LLMs. Codex and AE mean HumanEval and AlpacaEval benchmark respectively. CCL significantly enhances the IT performance of LLMs.
|
| 119 |
+
|
| 120 |
+
loss, which is much smaller and hard to produce a significant impact and change to the total loss (Liu et al., 2020; Platanios et al., 2019). By integrating $w^n$ with the original loss function, the final loss function of CCL can be represented as follows:
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
\mathcal {L} ^ {*} = \arg \min \sum_ {n = 1} ^ {N} w ^ {n} \left(\mathcal {L} _ {\mathrm {N L L}} ^ {n} + \alpha \mathcal {L} _ {\mathrm {C L}} ^ {n}\right) \tag {6}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Model Generality It is important to note that both the instance difficulty and model proficiency estimation are derived from existing computational outcomes, necessitating minimal additional computations. Consequently, our proposed CCL methodology is not only straightforward to implement, but it also demonstrates a high level of generality, making it suitable for a variety of CSG scenarios.
|
| 127 |
+
|
| 128 |
+
# 4 Evaluation
|
| 129 |
+
|
| 130 |
+
To establish the universality of our approach, we evaluate it using both unimodal and multimodal tasks. We focus on the following four CSG tasks:
|
| 131 |
+
|
| 132 |
+
Instruction Tuning (IT) uses instruction data pairs to perform supervised fine-tuning on LLMs, which can effectively align LLMs with human preferences. We use the popular Alpaca-GPT4 dataset (Peng et al., 2023) and the LLaMA-2 model family (Touvron et al., 2023) as our training sets and foundation model respectively.
|
| 133 |
+
|
| 134 |
+
Textual Machine Translation (TMT) involves translating a sentence from one language to another while retaining semantic equivalence. We em
|
| 135 |
+
|
| 136 |
+
ploy the vanilla Transformer model (Vaswani et al., 2017) and machine translation LLM ALMA-7B (Xu et al., 2024) as our baseline and test their performance on two prominent benchmarks IWSLT14 German-English benchmarks and WMT22 English-Chinese benchmarks respectively.
|
| 137 |
+
|
| 138 |
+
Multimodal Machine Translation (MMT) is a task aimed at using a fusion of text and image data to enhance the quality and expressive capacity of translation. We run experiments on the widely-used Multi30K English-German benchmark (Elliott et al., 2016), using VL-T5 (Cho et al., 2021) as our baseline due to its superior performance.
|
| 139 |
+
|
| 140 |
+
Speech-to-Text Translation (ST) translates source acoustic speech signals in a source language into a foreign text without any intermediate output. We use the commonly-used MUST-C dataset (Di Gangi et al., 2019) and focus on the English-German translation task. The SpeechUT model (Zhang et al., 2022), known for its strong performance, is chosen as our baseline.
|
| 141 |
+
|
| 142 |
+
# 4.1 Evaluation Metric
|
| 143 |
+
|
| 144 |
+
For the IT tasks, we comprehensively evaluate the LLMs on the open-instruct code repository (Wang et al., 2023), including MMLU (Hendrycks et al., 2021), GSM (Cobbe et al., 2021), BBH (Suzgun et al., 2022), TyDiQA (Clark et al., 2020), HumanEval (Chen et al., 2021b), and AlpacaEval (Dubois et al., 2023). For the MT tasks (TMT, MMT, and ST), we report both the widely used BLEU score (Post, 2018; Ott et al., 2018), which
|
| 145 |
+
|
| 146 |
+
<table><tr><td rowspan="3">ID</td><td rowspan="3">Method</td><td colspan="4">TMT</td><td colspan="4">MMT</td><td colspan="2">ST</td></tr><tr><td colspan="2">IWSLT14</td><td colspan="2">WMT22 (ALMA)</td><td colspan="2">Test16</td><td colspan="2">Test17</td><td colspan="2">MUST-C</td></tr><tr><td>BLEU</td><td>COMET</td><td>BLEU</td><td>COMET</td><td>BLEU</td><td>COMET</td><td>BLEU</td><td>COMET</td><td>BLEU</td><td>COMET</td></tr><tr><td colspan="12">Existing Leading Method</td></tr><tr><td>13</td><td>R-Drop</td><td>37.3</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>14</td><td>ALMA</td><td>-</td><td>-</td><td>36.5</td><td>85.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>15</td><td>VL-T5</td><td>-</td><td>-</td><td>-</td><td>-</td><td>45.3</td><td>-</td><td>42.4</td><td>-</td><td>-</td><td>-</td></tr><tr><td>16</td><td>SpeechUT</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>30.1</td><td>-</td></tr><tr><td colspan="12">Implemented Method</td></tr><tr><td>17</td><td>Baseline</td><td>34.6</td><td>74.1</td><td>36.3</td><td>84.8</td><td>44.9</td><td>72.0</td><td>42.0</td><td>72.6</td><td>29.9</td><td>79.5</td></tr><tr><td>18</td><td>17 + Data CL</td><td>37.5</td><td>76.7</td><td>36.0</td><td>84.3</td><td>45.7</td><td>72.7</td><td>42.4</td><td>72.8</td><td>30.2</td><td>79.7</td></tr><tr><td>19</td><td>17 + Model CL</td><td>37.3</td><td>76.5</td><td>-</td><td>-</td><td>45.6</td><td>72.4</td><td>42.2</td><td>72.5</td><td>30.2</td><td>79.8</td></tr><tr><td colspan="12">Our Method</td></tr><tr><td>20</td><td>18 + CCL</td><td>\( 38.0^{\ddagger} \)</td><td>\( 77.2^{\dagger} \)</td><td>\( 37.0^{\ddagger} \)</td><td>\( 85.2^{\dagger} \)</td><td>\( 46.1^{\dagger} \)</td><td>\( 73.3^{\ddagger} \)</td><td>\( 42.9^{\dagger} \)</td><td>\( 73.5^{\dagger} \)</td><td>\( 30.6^{\dagger} \)</td><td>\( 80.3^{\ddagger} \)</td></tr><tr><td>21</td><td>19 + CCL</td><td>\( 37.8^{\ddagger} \)</td><td>\( 77.1^{\dagger} \)</td><td>-</td><td>-</td><td>\( 45.9^{\dagger} \)</td><td>\( 72.9^{\ddagger} \)</td><td>\( 42.7^{\dagger} \)</td><td>\( 73.4^{\ddagger} \)</td><td>\( 30.6^{\ddagger} \)</td><td>\( 80.4^{\ddagger} \)</td></tr></table>
|
| 147 |
+
|
| 148 |
+
Table 2: The overall results on three MT tasks. "Baseline" are our re-implemented baseline, namely Transformer (Vaswani et al., 2017), ALMA (Xu et al., 2024), VL-T5 (Cho et al., 2021) and SpeechUT (Zhang et al., 2022). "†" and "‡" the improvement is significant by contrast to the corresponding CL model ( $p < 0.05$ and $p < 0.01$ ). ALMA does not incorporate dropout mechanisms, leading to the lack of Model CL experimental results.
|
| 149 |
+
|
| 150 |
+
measures lexical overlap, as well as the recently introduced COMET score (Rei et al., 2022) based on the wmt22-comet-da model, which shows higher correlation with human judgments.
|
| 151 |
+
|
| 152 |
+
# 4.2 Consistency Learning Methods
|
| 153 |
+
|
| 154 |
+
Data Consistency Learning (Data CL) Data CL mainly forms different consistency sources at the data level. In the case of IT and TMT of WMT22 (ALMA), we induce perturbations by randomly substituting tokens in the input, thereby introducing elements of inconsistency. For TMT of IWSLT14 and MMT, we employ CipherDAug (Kambhatla et al., 2022) to perform character-level shifting on the source sentence. For ST, we randomly masked some speech frames with a certain probability (Chen et al., 2021a).
|
| 155 |
+
|
| 156 |
+
Model Consistency Learning (Model CL) The consistency sources in Model CL methods predominantly originate from variations in model structures or parameters. Across all the MT tasks, we utilize the widely adopted R-Drop method (Liang et al., 2021), which generates model variants through the application of random dropout masks. It is noted that ALMA and IT do not yet see advantages from Model CL, as the training and fine-tuning processes for LLMs do not incorporate dropout mechanisms.
|
| 157 |
+
|
| 158 |
+
Please refer to Appendix A.2, A.3 for more details of the datasets, method training, and inference.
|
| 159 |
+
|
| 160 |
+
# 4.3 Main Result
|
| 161 |
+
|
| 162 |
+
Performance Boost on IT As presented in Table 1, CCL significantly enhances the IT performance of LLMs. Unlike Q2Q (Li et al., 2023a),
|
| 163 |
+
|
| 164 |
+
Instruction Mining (Cao et al., 2023), and Alpa-Gasus (Chen et al., 2023), which depend on external data or models for curating high-quality data, CCL autonomously identifies appropriate samples for learning, leveraging the model's self abilities. While CL methods yield modest enhancements in LLM abilities ( $\sim$ 0.5 points), our CCL method refines the learning strategy of CL, resulting in a substantial performance boost ( $\sim$ 2.0 points).
|
| 165 |
+
|
| 166 |
+
Performance Boost on MT As depicted in Table 2, CCL yields considerable improvements across both unimodal and multimodal MT tasks. In TMT, the incorporation of CCL leads to advancements in both metrics. It also effectively applies to models of differing sizes, from the smaller scale Transformer to the larger language model ALMA. For MMT, CCL sets better results on the Multi30K dataset compared with the leading VL-T5 method. In ST, CCL surpasses the powerful model (Zhang et al., 2022) by achieving 0.9 COMET improvements. Most notably, CCL usually achieves marked improvements in the reliable metric COMET, indicating that it addresses more semantically complex difficulties, which tend to pose greater challenges.
|
| 167 |
+
|
| 168 |
+
# 5 Analysis
|
| 169 |
+
|
| 170 |
+
In this section, we aim to answer the following research questions: 1) Can CCL improve the efficiency and universality of CL? 2) Is CL loss a better difficulty measurer for CCL? 3) How does CCL enhance CSG model efficacy? We mainly evaluate four specific tasks, including TydiQA for IT on LLaMa-2-7B, IWSLT for TMT, Multi30K
|
| 171 |
+
|
| 172 |
+

|
| 173 |
+
Figure 2: Evolution of validation scores across various training steps or epochs.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+

|
| 178 |
+
|
| 179 |
+

|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan="2">Foundation Model</td><td rowspan="2">Method</td><td rowspan="2">MMLU</td><td rowspan="2">BBH</td><td rowspan="2">GSM</td><td rowspan="2">Tydiqa</td><td rowspan="2">CodeX</td><td rowspan="2">AE</td><td colspan="2">Overall</td></tr><tr><td>AVG</td><td>Δ (↑)</td></tr><tr><td rowspan="2">LLaMA-2-7B</td><td>Vanilla IT</td><td>46.2</td><td>39.2</td><td>15.0</td><td>43.3</td><td>27.8</td><td>33.7</td><td>34.3</td><td>-</td></tr><tr><td>CCL</td><td>47.6</td><td>40.8</td><td>15.5</td><td>48.4</td><td>30.7</td><td>35.6</td><td>36.4</td><td>+2.1</td></tr><tr><td rowspan="2">LLaMA-2-13B</td><td>Vanilla IT</td><td>55.7</td><td>47.3</td><td>31.0</td><td>49.1</td><td>41.8</td><td>46.5</td><td>45.2</td><td>-</td></tr><tr><td>CCL</td><td>55.6</td><td>49.3</td><td>34.0</td><td>53.6</td><td>42.7</td><td>47.6</td><td>47.1</td><td>+1.9</td></tr><tr><td rowspan="2">Mistral-7B</td><td>Vanilla IT</td><td>52.5</td><td>51.7</td><td>33.5</td><td>51.1</td><td>54.7</td><td>43.1</td><td>47.8</td><td>-</td></tr><tr><td>CCL</td><td>55.1</td><td>53.4</td><td>34.5</td><td>53.6</td><td>53.3</td><td>44.4</td><td>49.1</td><td>+1.3</td></tr><tr><td rowspan="2">LLaMA-3-8B</td><td>Vanilla IT</td><td>59.6</td><td>52.3</td><td>34.5</td><td>43.1</td><td>60.2</td><td>48.2</td><td>49.7</td><td>-</td></tr><tr><td>CCL</td><td>59.6</td><td>52.4</td><td>39.0</td><td>42.0</td><td>63.1</td><td>49.7</td><td>51.0</td><td>+1.3</td></tr></table>
|
| 182 |
+
|
| 183 |
+
Table 3: Results of IT with various foundation models. Codex and AE mean HumanEval and AlpacaEval benchmark respectively.
|
| 184 |
+
|
| 185 |
+
<table><tr><td>Method</td><td>IT F1 / Steps</td><td>TMT BLEU / Steps</td><td>MMT BLEU / Steps</td><td>ST BLEU / Steps</td></tr><tr><td>Baseline</td><td>43.3/1.2K</td><td>34.6 / 100K</td><td>44.9 / 20K</td><td>29.9 / 50K</td></tr><tr><td>CL</td><td>43.7/1.4K</td><td>37.3 / 300K</td><td>45.6 / 30K</td><td>30.2 / 70K</td></tr><tr><td>w/ CCL</td><td>48.2/0.6K</td><td>37.8 / 140K</td><td>45.9 / 22K</td><td>30.6 / 55K</td></tr></table>
|
| 186 |
+
|
| 187 |
+
Table 4: Overall speedup results. "Steps" means the step of each model reaching the performance of CL.
|
| 188 |
+
|
| 189 |
+
for MMT, and MUST-C for ST. Additionally, we employ Model CL for MT and Data CL for IT, acknowledging the absence of Model CL in IT. For performance metrics, we apply BLEU scores to assess translation quality and F1 scores for IT, except where noted otherwise.
|
| 190 |
+
|
| 191 |
+
# 5.1 CCL: An Effective and Universal Method
|
| 192 |
+
|
| 193 |
+
Learning Curves Figure 2 indicates that CCL exhibits a more pronounced ascent due to the integration of curriculum learning, which facilitates the model's ability to grasp simpler instances during the initial training stages. As the training progresses, CCL surpasses the CL, attributable to the model's enhanced ability to concentrate on more challenging instances. These observations demonstrate that CCL not only augments model performance but also optimizes training efficiency.
|
| 194 |
+
|
| 195 |
+
Expedited Convergence CCL demonstrates a superior convergence rate in comparison to consistency learning methods. Table 4 shows that CCL enables models to produce equivalent or superior
|
| 196 |
+
|
| 197 |
+
results with fewer updates across IT and MT tasks. CCL facilitates a speed-up factor of approximately 1.79 times, thereby underlining its beneficial impact on the process of model optimization. Additionally, we give a thorough time comparison for each step and total time in model training on CCL and traditional CL in Appendix A.4.
|
| 198 |
+
|
| 199 |
+
Various Foundation Models This part primarily discusses the extensive applicability of CCL on foundational LLMs of different sizes and capabilities. Specifically, we apply CCL to the Mistral-7B and LLaMA-3-8B LLMs and present our results on the open-instruct benchmark aligned with the aforementioned test configuration. As shown in Table 3, CCL consistently enhances the overall performance of different LLMs. This is particularly evident in the GSM and AlpacaEval benchmarks, as CCL is capable of effectively modulating the focus during various stages of the training process, without relying on additional resources.
|
| 200 |
+
|
| 201 |
+
# 5.2 CL Loss: A Universal Difficulty Measurer
|
| 202 |
+
|
| 203 |
+
Predefined Difficulty Measurer Conventional curriculum learning approaches often employ task-specific difficulty measures, but CCL allows for a task-independent evaluation of instance difficulty directly from the model. Based on the above analysis of Section 3.1 and the tasks statement of Section 4, we contrast three commonly used difficulty measures, namely sentence length for text input of
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
Figure 3: Model performance by difficulty bucket measures by the proposed CL-aware difficulty measurer. CCL mainly improves the performance of challenging instances. The benchmarks for IT, TMT, MMT, and ST are TydiQA, IWSLT, Multi30K, and MUST-C respectively. For performance metrics, we apply BLEU scores to assess translation quality and F1 scores for IT.
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
|
| 212 |
+
<table><tr><td>Method</td><td>IT</td><td>TMT</td><td>MMT</td><td>ST</td></tr><tr><td>Baseline</td><td>43.3</td><td>34.6</td><td>44.9</td><td>29.9</td></tr><tr><td>CL</td><td>43.7</td><td>37.3</td><td>45.6</td><td>30.2</td></tr><tr><td>CCL</td><td>48.4</td><td>37.8</td><td>45.9</td><td>30.6</td></tr><tr><td>w/ Sentence Length</td><td>46.2</td><td>37.5</td><td>45.7</td><td>30.3</td></tr><tr><td>w/ Number of Object</td><td>-</td><td>-</td><td>45.7</td><td>-</td></tr><tr><td>w/ Frames of Speech</td><td>-</td><td>-</td><td>-</td><td>30.3</td></tr><tr><td>w/ NLL Loss</td><td>45.5</td><td>37.6</td><td>45.8</td><td>30.4</td></tr></table>
|
| 213 |
+
|
| 214 |
+
Table 5: Ablation study of CCL. The inapplicable difficulty measure to a task is marked with “-”.
|
| 215 |
+
|
| 216 |
+
IT, TMT, MMT, and ST, the number of targets for image input of MMT, and the number of frames for speech signals of ST. As shown in Table 5, different difficulty measures can improve the model performance consistently which can be attributed to the rationality and effectiveness of the overall CCL framework. However, CCL demonstrates superior performance compared to existing difficulty measures across diverse CSG tasks in different modalities. This is because the difficulty measurer of CCL is based on model self-feedback, which is more flexible and reasonable than human-predefined conscious evaluation, such as sample length.
|
| 217 |
+
|
| 218 |
+
Automatic Difficulty Measurer One intuitive, task-independent means of estimating instance difficulty is by employing the NLL loss. However, through our preliminary study on model proficiency estimation, we discovered that as model proficiency increases, NLL loss correspondingly decreases throughout the training process. This inverse relationship generates significant ambiguity and instability when differentiating instance difficulty. In contrast, CCL remains stable throughout the training process, thereby enabling consistent differentiation of instance difficulty. As substantiated by Table 5, CLL consistently outperforms the NLL loss method across all tasks. It is noteworthy that all aforementioned predefined and au
|
| 219 |
+
|
| 220 |
+

|
| 221 |
+
Figure 4: Model performance across samples of varying difficulties on TMT. Notably, improvements in both easy and medium samples occur primarily at the develop and later stages. The advancements of difficult samples are predominantly observed in the final stage.
|
| 222 |
+
|
| 223 |
+
tomatic measures still utilize our proposed model proficiency estimator and model update strategy.
|
| 224 |
+
|
| 225 |
+
# 5.3 CCL Excels in Tackling Challenges
|
| 226 |
+
|
| 227 |
+
Performance by Difficulty Bucket We further analyze the performance improvement from CCL by dissecting results based on test instance difficulty, as shown in Figure 3. We use TydiQA and CodeX as a mixed test set for IT due to their suitability for calculating consistency loss. For translation tasks, we divide the test set into three difficulty levels using the CL loss and calculate the evaluation score. Results show that CCL and CL perform similarly in simpler instances, but CCL often outperforms in more challenging ones. This is because CCL allows the model to navigate a better parameter space for optimization, improving performance where CL loss is high. A case study of translating challenging sentences is in Appendix A.5.
|
| 228 |
+
|
| 229 |
+
Performance on Different Training Stages CCL enhances the model's handling of challenging samples by focusing more on later training stages.
|
| 230 |
+
|
| 231 |
+
Yet, it raises the question of whether it overlooks simpler early-acquired knowledge. To explore this, we divided the training into four stages and evaluated the model's performance on different difficulty tests in the IWSLT translation task. Figure 4 shows consistent improvement on easier samples throughout training, this is because complex samples contain simpler elements. Thus, dealing with complex samples doesn't hinder the model's efficiency with easier ones. This highlights CCL's ability to wisely distribute learning resources based on sample difficulty, optimizing overall performance.
|
| 232 |
+
|
| 233 |
+
# 6 Related Works
|
| 234 |
+
|
| 235 |
+
# 6.1 Consistency Learning
|
| 236 |
+
|
| 237 |
+
Consistency learning, a method aimed at harmonizing model predictions from various sample perspectives, has been incorporated in several research works. R-drop (Liang et al., 2021) enhances the model performance across 18 datasets by addressing the layer-wise inconsistency brought about by random dropout. CipherDAug (Kambhatla et al., 2022) employs multi-source training with multiple ROT-k ciphertexts generated from different k values for the plaintext as well as the original parallel data to improve neural machine translation. With the continuous development of NLP, researchers have begun to apply this technology to LLMs. ACE (Fang et al., 2024) deploys a bidirectional consistency loss to train the decoding process for a multimodal large language model, mitigating overfitting issues. NPoE (Graf et al., 2024) and G2ST (Chen et al., 2024) adopt Kullback-Leibler divergence to respectively constrain the dual predictions of the main MOE model for a data poisoning backdoor attacks task, and to minimize inconsistency between training and inference in enhancing the performance of models within the e-commerce sector. Lastly, Consistency Matters (Zhao et al., 2024) improves LLMs consistency by generating varied responses through multiple LLMs in industrial deployments. Although consistency learning can potentially augment model capability, achieving model convergence often demands extensive training time due to the need to regulate model consistency distribution and inherent multi-objective optimization challenges (Liang et al., 2021).
|
| 238 |
+
|
| 239 |
+
# 6.2 Curriculum Learning
|
| 240 |
+
|
| 241 |
+
Curriculum learning (Bengio et al., 2009) introduces a human-like learning process for models,
|
| 242 |
+
|
| 243 |
+
progressively transitioning from simpler to complex samples, contingent on the model's ability to learn. The challenge lies in defining the sample complexity and model capability. While sentence length (Platanios et al., 2019) has been utilized for the former, it is limited to text-related instances. Other research has used the norm value of the training corpus to characterize sample complexity and model capability (Liu et al., 2020). Techniques incorporating domain knowledge, LLMs' generative abilities, and an integrated curriculum scheduler have been effective in training a genetic programming agent player (Jorgensen et al., 2024). Stronger LLM teachers creating a structured curriculum for student LLMs have demonstrated notable improvements in language generation quality, evaluated by GPT-4 (Feng et al., 2023). The instructional tuning phase in ICCL (Liu et al., 2024) progressively adjusts prompt complexity, leading to better LLM's performances. Strategies such as dataset decomposition (to the union of buckets) and variable batch size utilization in conjunction with a curriculum have proven to be time-efficient in LLM training (Pouransari et al., 2024). (Erak et al., 2024) show the automation of curriculum design leveraging LLMs' generative capabilities, successfully improving the agent's performance and convergence rate while reducing manual effort. Despite advances, limitations like high manual intervention and the need for sturdy guiding models affect the scalability of these methods. How to optimally use CL in LLMs instructional tuning for dynamic sample recognition is still an unresolved issue. In this paper, we propose an innovative complementary approach that leverages the strengths of both consistency learning and curriculum learning to enhance the capabilities of CSG.
|
| 244 |
+
|
| 245 |
+
# 7 Conclusion
|
| 246 |
+
|
| 247 |
+
This paper introduces curriculum consistency learning (CCL), a novel approach designed to refine the optimization process of conditional sentence generation models with consistency learning. Our method proposes a novel mechanism for measuring difficulty and estimating model proficiency, grounded in the analysis of consistency learning loss observed during model training, which is user-friendly and operates autonomously. Extensive experiments confirm the effectiveness of CCL in improving model performance and tackling challenges from complex instances.
|
| 248 |
+
|
| 249 |
+
# Limitations
|
| 250 |
+
|
| 251 |
+
While the proposed curriculum consistency learning (CCL) method can significantly optimize traditional CL methods, it has the following limitations: (1) Compared with traditional CL, CCL necessitates the inclusion of extra parameters (denoted as $\lambda$ ) to govern the curriculum's duration. (2) CCL's effectiveness relies on the joint evaluation of the training and validation sets, posing challenges for tasks without a dedicated validation set. (3) Presently, CCL is primarily applied to supervised learning tasks. Future efforts will aim to adapt CCL for unsupervised learning scenarios.
|
| 252 |
+
|
| 253 |
+
# Ethics Statement
|
| 254 |
+
|
| 255 |
+
Our work follows the ACL Ethics Policy. Our findings are based on publicly available datasets for reproducibility purposes. LLMs can contain potential racial and gender bias. Therefore, if someone finds our work interesting and would like to use it in a specific environment, we strongly suggest the user check the potential bias before usage. In addition, it is hard to control the generation of LLMs. We should be aware of the potential problems caused by hallucinations.
|
| 256 |
+
|
| 257 |
+
# Acknowledgments
|
| 258 |
+
|
| 259 |
+
This work was supported in part by the National Natural Science Foundation of China (Grant No. 62206076), Guangdong Basic and Applied Basic Research Foundation (Grant No. 2024A1515011491), Shenzhen Science and Technology Program (Grant Nos. ZDSYS20230626091203008, KJZD20231023094700001, RCBS20221008093121053), and Shenzhen College Stability Support Plan (Grant Nos. GXWD20220811173340003, GXWD20220817123150002). We would like to thank the anonymous reviewers and meta-reviewer for their insightful suggestions.
|
| 260 |
+
|
| 261 |
+
# References
|
| 262 |
+
|
| 263 |
+
Rohan Anil, Andrew M Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, et al. 2023. Palm 2 technical report. ArXiv preprint, abs/2305.10403.
|
| 264 |
+
Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. 2009. Curriculum learning. In
|
| 265 |
+
|
| 266 |
+
Proceedings of the 26th Annual International Conference on Machine Learning, ICML 2009, Montreal, Quebec, Canada, June 14-18, 2009, volume 382 of ACM International Conference Proceeding Series, pages 41-48. ACM.
|
| 267 |
+
Yihan Cao, Yanbin Kang, and Lichao Sun. 2023. Instruction mining: High-quality instruction data selection for large language models. ArXiv preprint, abs/2307.06290.
|
| 268 |
+
Jiaao Chen, Dinghan Shen, Weizhu Chen, and Diyi Yang. 2021a. HiddenCut: Simple data augmentation for natural language understanding with better generalizability. 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 4380-4390, Online. Association for Computational Linguistics.
|
| 269 |
+
Kaidi Chen, Ben Chen, Dehong Gao, Huangyu Dai, Wen Jiang, Wei Ning, Shanqing Yu, Libin Yang, and Xiaoyan Cai. 2024. General2specialized llms translation for e-commerce. In Companion Proceedings of the ACM on Web Conference 2024, pages 670-673.
|
| 270 |
+
Lichang Chen, Shiyang Li, Jun Yan, Hai Wang, Kalpa Gunaratna, Vikas Yadav, Zheng Tang, Vijay Srinivasan, Tianyi Zhou, Heng Huang, et al. 2023. Alpagasus: Training a better alpaca with fewer data. ArXiv preprint, abs/2307.08701.
|
| 271 |
+
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. 2021b. Evaluating large language models trained on code. ArXiv preprint, abs/2107.03374.
|
| 272 |
+
Jaemin Cho, Jie Lei, Hao Tan, and Mohit Bansal. 2021. Unifying vision-and-language tasks via text generation. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 1931-1942. PMLR.
|
| 273 |
+
Jonathan H. Clark, Eunsol Choi, Michael Collins, Dan Garrette, Tom Kwiatkowski, Vitaly Nikolaev, and Jennimaria Palomaki. 2020. TyDi QA: A benchmark for information-seeking question answering in typologically diverse languages. Transactions of the Association for Computational Linguistics, 8:454-470.
|
| 274 |
+
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. 2021. Training verifiers to solve math word problems. ArXiv preprint, abs/2110.14168.
|
| 275 |
+
Mattia A. Di Gangi, Roldano Cattoni, Luisa Bentivogli, Matteo Negri, and Marco Turchi. 2019. MuST-C: a Multilingual Speech Translation Corpus. In Proceedings of the 2019 Conference of the North American
|
| 276 |
+
|
| 277 |
+
Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 2012-2017, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 278 |
+
Yann Dubois, Xuechen Li, Rohan Taori, Tianyi Zhang, Ishaan Gulrajani, Jimmy Ba, Carlos Guestrin, Percy Liang, and Tatsunori B. Hashimoto. 2023. Alpaca-farm: A simulation framework for methods that learn from human feedback.
|
| 279 |
+
Desmond Elliott, Stella Frank, Khalil Sima'an, and Lucia Specia. 2016. Multi30K: Multilingual English-German image descriptions. In Proceedings of the 5th Workshop on Vision and Language, pages 70-74, Berlin, Germany. Association for Computational Linguistics.
|
| 280 |
+
Omar Erak, Omar Alhussein, Shimaa Naser, Nouf Alabbasi, De Mi, and Sami Muhaidat. 2024. Large language model-driven curriculum design for mobile networks.
|
| 281 |
+
Run-Ze Fan, Xuefeng Li, Haoyang Zou, Junlong Li, Shwai He, Ethan Chern, Jiewen Hu, and Pengfei Liu. 2024. Reformatted alignment. In Findings of the Association for Computational Linguistics: EMNLP 2024.
|
| 282 |
+
Minghui Fang, Shengpeng Ji, Jialong Zuo, Hai Huang, Yan Xia, Jieming Zhu, Xize Cheng, Xiaoda Yang, Wenrui Liu, Gang Wang, et al. 2024. Ace: A generative cross-modal retrieval framework with coarse-to-fine semantic modeling. arXiv preprint arXiv:2406.17507.
|
| 283 |
+
Qingkai Fang and Yang Feng. 2023. Understanding and bridging the modality gap for speech translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 15864-15881, Toronto, Canada. Association for Computational Linguistics.
|
| 284 |
+
Tao Feng, Zifeng Wang, and Jimeng Sun. 2023. Citing: Large language models create curriculum for instruction tuning. arXiv preprint arXiv:2310.02527.
|
| 285 |
+
Victoria Graf, Qin Liu, and Muhao Chen. 2024. Two heads are better than one: Nested PoE for robust defense against multi-backdoors. 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 706-718, Mexico City, Mexico. Association for Computational Linguistics.
|
| 286 |
+
Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net.
|
| 287 |
+
|
| 288 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 289 |
+
Steven Jorgensen, Giorgia Nadizar, Gloria Pietropolli, Luca Manzoni, Eric Medvet, Una-May O'Reilly, and Erik Hemberg. 2024. Large language model-based test case generation for gp agents. In Proceedings of the Genetic and Evolutionary Computation Conference, pages 914-923.
|
| 290 |
+
Nishant Kambhatla, Logan Born, and Anoop Sarkar. 2022. CipherDAug: Ciphertext based data augmentation for neural machine translation. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 201-218, Dublin, Ireland. Association for Computational Linguistics.
|
| 291 |
+
Tom Kocmi and Ondrej Bojar. 2017. Curriculum learning and minibatch bucketing in neural machine translation. In Proceedings of the International Conference on Recent Advances in Natural Language Processing, RANLP 2017, pages 379-386, Varna, Bulgaria. INCOMA Ltd.
|
| 292 |
+
Solomon Kullback and Richard A Leibler. 1951. On information and sufficiency. The annals of mathematical statistics, 22(1):79-86.
|
| 293 |
+
Ming Li, Yong Zhang, Zhitao Li, Jiuhai Chen, Lichang Chen, Ning Cheng, Jianzong Wang, Tianyi Zhou, and Jing Xiao. 2023a. From quantity to quality: Boosting llm performance with self-guided data selection for instruction tuning. ArXiv preprint, abs/2308.12032.
|
| 294 |
+
Yi Li, Rameswar Panda, Yoon Kim, Chun-Fu Richard Chen, Rogério Feris, David D. Cox, and Nuno Vasconcelos. 2022a. VALHALLA: visual hallucination for machine translation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2022, New Orleans, LA, USA, June 18-24, 2022, pages 5206-5216. IEEE.
|
| 295 |
+
Yinghao Li, Xuebo Liu, Shuo Wang, Peiyuan Gong, Derek F. Wong, Yang Gao, Heyan Huang, and Min Zhang. 2023b. TemplateGEC: Improving grammatical error correction with detection template. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6878-6892, Toronto, Canada. Association for Computational Linguistics.
|
| 296 |
+
Zhaocong Li, Xuebo Liu, Derek F. Wong, Lidia S. Chao, and Min Zhang. 2022b. ConsistTL: Modeling consistency in transfer learning for low-resource neural machine translation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 8383-8394, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 297 |
+
|
| 298 |
+
Xiaobo Liang, Lijun Wu, Juntao Li, Yue Wang, Qi Meng, Tao Qin, Wei Chen, Min Zhang, and TieYan Liu. 2021. R-drop: Regularized dropout for neural networks. In Advances in Neural Information Processing Systems 34: Annual Conference on Neural Information Processing Systems 2021, NeurIPS 2021, December 6-14, 2021, virtual, pages 10890-10905.
|
| 299 |
+
Jianhua Lin. 1991. Divergence measures based on the shannon entropy. IEEE Trans. Inf. Theory, 37(1):145-151.
|
| 300 |
+
Shudong Liu, Xuebo Liu, Derek F. Wong, Zhaocong Li, Wenxiang Jiao, Lidia S. Chao, and Min Zhang. 2023. kNN-TL: k-nearest-neighbor transfer learning for low-resource neural machine translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1878–1891, Toronto, Canada. Association for Computational Linguistics.
|
| 301 |
+
Xuebo Liu, Houtim Lai, Derek F. Wong, and Lidia S. Chao. 2020. Norm-based curriculum learning for neural machine translation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 427-436, Online. Association for Computational Linguistics.
|
| 302 |
+
Yinpeng Liu, Jiawei Liu, Xiang Shi, Qikai Cheng, and Wei Lu. 2024. Let's learn step by step: Enhancing in-context learning ability with curriculum learning. arXiv preprint arXiv:2402.10738.
|
| 303 |
+
Myle Ott, Sergey Edunov, David Grangier, and Michael Auli. 2018. Scaling neural machine translation. In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 1-9, Brussels, Belgium. Association for Computational Linguistics.
|
| 304 |
+
Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. 2023. Instruction tuning with gpt-4. ArXiv preprint, abs/2304.03277.
|
| 305 |
+
Emmanouil Antonios Platanios, Otilia Stretcu, Graham Neubig, Barnabas Poczos, and Tom Mitchell. 2019. Competence-based curriculum learning for neural machine translation. 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 1162-1172, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 306 |
+
Matt Post. 2018. A call for clarity in reporting BLEU scores. In Proceedings of the Third Conference on Machine Translation: Research Papers, pages 186-191, Brussels, Belgium. Association for Computational Linguistics.
|
| 307 |
+
Hadi Pouransari, Chun-Liang Li, Jen-Hao Rick Chang, Pavan Kumar Anasosalu Vasu, Cem Koc, Vaishaal Shankar, and Oncel Tuzel. 2024. Dataset decomposition: Faster llm training with variable sequence length curriculum. arXiv preprint arXiv:2405.13226.
|
| 308 |
+
|
| 309 |
+
Jun Rao, Liu Xuebo, Lian Lian, Shengjun Cheng, Yunjie Liao, and Min Zhang. 2024. Commonit: Commonality-aware instruction tuning for large language models via data partitions. In EMNLP.
|
| 310 |
+
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. 2022. 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.
|
| 311 |
+
Petru Soviany, Claudiu Ardei, Radu Tudor Ionescu, and Marius Leordeanu. 2020. Image difficulty curriculum for generative adversarial networks (cugan). In Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 3463-3472.
|
| 312 |
+
Petru Soviany, Radu Tudor Ionescu, Paolo Rota, and Nicu Sebe. 2022. Curriculum learning: A survey. International Journal of Computer Vision, 130(6):1526-1565.
|
| 313 |
+
Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V Le, Ed H Chi, Denny Zhou, et al. 2022. Challenging big-bench tasks and whether chain-of-thought can solve them. ArXiv preprint, abs/2210.09261.
|
| 314 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. ArXiv preprint, abs/2307.09288.
|
| 315 |
+
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 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998-6008.
|
| 316 |
+
Xin Wang, Yudong Chen, and Wenwu Zhu. 2021. A survey on curriculum learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(9):4555-4576.
|
| 317 |
+
Yizhong Wang, Hamish Ivison, Pradeep Dasigi, Jack Hessel, Tushar Khot, Khyathi Raghavi Chandu, David Wadden, Kelsey MacMillan, Noah A Smith, Iz Beltagy, et al. 2023. How far can camels go? exploring the state of instruction tuning on open resources. ArXiv preprint, abs/2306.04751.
|
| 318 |
+
Shufang Xie, Ang Lv, Yingce Xia, Lijun Wu, Tao Qin, Tie-Yan Liu, and Rui Yan. 2022. Target-side input augmentation for sequence to sequence generation. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net.
|
| 319 |
+
|
| 320 |
+
Haoran Xu, Young Jin Kim, Amr Sharaf, and Hany Hassan Awadalla. 2024. A paradigm shift in machine translation: Boosting translation performance of large language models. In The Twelfth International Conference on Learning Representations.
|
| 321 |
+
Yongjing Yin, Jiali Zeng, Yafu Li, Fandong Meng, Jie Zhou, and Yue Zhang. 2023. Consistency regularization training for compositional generalization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1294-1308, Toronto, Canada. Association for Computational Linguistics.
|
| 322 |
+
Ziqiang Zhang, Long Zhou, Junyi Ao, Shujie Liu, Lirong Dai, Jinyu Li, and Furu Wei. 2022. SpeechUT: Bridging speech and text with hidden-unit for encoder-decoder based speech-text pretraining. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 1663-1676, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 323 |
+
Fufangchen Zhao, Guoqiang Jin, Jiaheng Huang, Rui Zhao, and Fei Tan. 2024. Consistency matters: Explore llms consistency from a black-box perspective. arXiv preprint arXiv:2402.17411.
|
| 324 |
+
|
| 325 |
+

|
| 326 |
+
Figure 5: CL loss, derived automatically from the model, aligns closely with unique feature metrics across various domains that need to be designed by human experts. These results fully demonstrate the rationality of CL loss as a reasonable difficulty measurer of curriculum learning.
|
| 327 |
+
|
| 328 |
+
<table><tr><td rowspan="2">Configuration</td><td colspan="2">TMT</td><td>MMT</td><td>ST</td><td colspan="2">IT</td></tr><tr><td>IWSLT</td><td>WMT22</td><td>Mutil30K</td><td>MUST-C</td><td>Alpaca</td><td>Alpaca</td></tr><tr><td>Architecture</td><td>Transformer-base</td><td>ALMA-7B</td><td>T5-base</td><td>SpeehUT</td><td>LLaMA-2-7B</td><td>LLaMA-2-13B</td></tr><tr><td>Encoder layer</td><td>6</td><td>-</td><td>12</td><td>12</td><td>-</td><td>-</td></tr><tr><td>Decoder layer</td><td>6</td><td>32</td><td>12</td><td>6</td><td>32</td><td>40</td></tr><tr><td>Model dimension</td><td>512</td><td>4096</td><td>512</td><td>768</td><td>4096</td><td>5120</td></tr><tr><td>Attention head</td><td>4</td><td>32</td><td>12</td><td>8</td><td>32</td><td>40</td></tr><tr><td>Steps</td><td>300K</td><td>4200</td><td>30K</td><td>50K</td><td>1400</td><td>1400</td></tr><tr><td>Max tokens / Batch size</td><td>4,096</td><td>8</td><td>30</td><td>800K</td><td>128</td><td>128</td></tr><tr><td>Learning rate</td><td>5e-5</td><td>2e-5</td><td>5e-5</td><td>3e-5</td><td>2e-5</td><td>2e-5</td></tr><tr><td>Optimizer</td><td>Adam</td><td>AdamW</td><td>AdamW</td><td>Adam</td><td>AdamW</td><td>AdamW</td></tr><tr><td>Dropout</td><td>0.3</td><td>-</td><td>0.3</td><td>0.3</td><td>-</td><td>-</td></tr><tr><td>Temperature</td><td>-</td><td>0.1</td><td>-</td><td>-</td><td>0.1</td><td>0.1</td></tr><tr><td>Beam size</td><td>5</td><td>4</td><td>5</td><td>10</td><td>4</td><td>4</td></tr><tr><td>Length penalty</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td><td>1.0</td></tr><tr><td>α</td><td>5</td><td>0.0001</td><td>0.001</td><td>0.9</td><td>0.00012</td><td>0.00015</td></tr></table>
|
| 329 |
+
|
| 330 |
+
Table 6: Hyper-parameters of different models. CCL directly inherit all the hyper-parameters from the baselines and CL methods, without any additional tuning.
|
| 331 |
+
|
| 332 |
+
# A Appendix
|
| 333 |
+
|
| 334 |
+
# A.1 Task-specific Difficulty Measurer
|
| 335 |
+
|
| 336 |
+
Our proposed CL-aware difficulty metric presents distinctive and compelling advantages. To further illustrate these, we compared the CL loss with other prevalent task-specific difficulty measures across various modalities, using four distinct tasks for detailed task descriptions). We calculate the parse tree depth and sentence length for all the text sentence input. Particularly, taking into account the specificity of multimodal tasks, we also estimate the number of objects for the image data input of MMT and the frames of speech for the speech signals of ST. Then we randomly selected 1,000 instances from the training set and arranged them in ascending order based on the average CL loss throughout the entire training process. Subsequently, we divided them evenly into five groups, using the group with the highest value as the difficulty reference and setting the difficulty coefficient to 1. As shown in Figure 5, we found that the CL loss exhibits strong alignment with distinct feature
|
| 337 |
+
|
| 338 |
+
metrics of each modality, which demonstrates that our difficulty indicator is independent of the input modality and showcases its widespread applicability as a difficulty measurer for curriculum learning in CL-enhanced models.
|
| 339 |
+
|
| 340 |
+
# A.2 Datasets and Settings
|
| 341 |
+
|
| 342 |
+
Instruction Tuning (IT) In CCL, LLMs are developed on the Alpaca GPT-4 (Peng et al., 2023). Specifically, we partition the Alpaca dataset into two distinct sets: a validation set comprising $10\%$ of the total data, and a training set containing the remaining $90\%$ , approximately 5.2K and 46.8K instances, respectively. We evaluate our IT models on the popular code repository: OpenInstruction (Wang et al., 2023), which includes an assessment of Factual knowledge, Reasoning, Multilinguality, Coding, and other abilities. For the MMLU component, we adapt the original MMLU framework's approach, presenting results based on five few-shot examples. In the case of the BBH and the GSM evaluations, we implement different few-shot in-context setups: three for BBH and
|
| 343 |
+
|
| 344 |
+
<table><tr><td colspan="2">Alpaca IT Task</td></tr><tr><td>Original input</td><td>Write a short story in third person narration about a protagonist who has to make an important career decision.</td></tr><tr><td>Augmented input</td><td>Write a red story in third person book about a protagonist who has to write an important career decision.</td></tr><tr><td>Target</td><td>Sophie sat at her desk, staring blankly at the computer screen. Her mind was racing as she weighed the options ...</td></tr></table>
|
| 345 |
+
|
| 346 |
+
Table 7: Different views on IT.
|
| 347 |
+
|
| 348 |
+
<table><tr><td></td><td>IWSLT14 German-English TMT Task</td></tr><tr><td>Original input</td><td>Jeder Vorsitzende bzw. jeder Vorsitzende hat ja so viele Stimmen, wie die Fraktion Mitglieder hat.</td></tr><tr><td>Augmented input</td><td>Kfefs wpstjuafoef cax. kfef wpstjuafoef ibu kb tp wjfmf tujnnfo, xjf ejf gsblujpo njuhmjfefs ibu.</td></tr><tr><td>Target</td><td>As you know, each chairman has the same number of votes as his Group has Members.</td></tr><tr><td></td><td>WMT22 English-Chineses TMT Task</td></tr><tr><td>Original input</td><td>We still have a lot of work to do in this area as recent events have proved.</td></tr><tr><td>Augmented input</td><td>We still not a lot of work to do in this case as recent events have proved.</td></tr><tr><td>Target</td><td>最近的事件表明,大家在方面仍有多工作要做。</td></tr></table>
|
| 349 |
+
|
| 350 |
+
Table 8: Different views on TMT.
|
| 351 |
+
|
| 352 |
+
eight for GSM, both employing Chain-of-Thought (CoT) reasoning. For the TydiQA evaluation, we follow the setup described in the PaLM 2 technical report (Anil et al., 2023) to evaluate models' performance in answering multilingual questions when there is context given. Regarding the CodeX evaluation, we leverage the HumanEval (Chen et al., 2021b) dataset to gauge the coding abilities of the models. We report pass@10 results which were obtained by sampling with a temperature of 0.8.
|
| 353 |
+
|
| 354 |
+
Textual Machine Translation (TMT) We conduct experiments on IWSLT14 German $\rightarrow$ English and WMT14 English $\rightarrow$ German machine translation tasks. The IWSLT14 dataset consists of approximately 170,000 sentence pairs dedicated to training purposes. This is supplemented with additional 7,000 sentence pairs each for the validation and testing stages of our experimental procedure. The WMT14 dataset is much larger, incorporating an impressive count of 4.5 million sentence pairs for training. The validation and test sets are newtest2013 and nestest2014, respectively.
|
| 355 |
+
|
| 356 |
+
Multimodal Machine Translation (MMT) We assess the performance of multimodal machine translation on the Multi30K dataset, which consists of training, validation, and test subsets comprising 29,000, 1,014, and 1,000 instances, respectively. The Multi30K dataset is specifically curated for
|
| 357 |
+
|
| 358 |
+
tasks pertaining to machine translation and image captioning. It is essentially an extension of the Flickr30K dataset and includes image-description pairings across five unique languages - English, French, German, Czech, and Russian, thereby establishing its multilingual nature.
|
| 359 |
+
|
| 360 |
+
Speech-to-Text Translation (ST) The MUST-C dataset, a renowned and broadly employed resource in speech-to-text (ST) tasks boasts an extensive and heterogeneous corpus. It offers a generous allocation of approximately 400 hours of speech per language, providing a rich, comprehensive repository of multilingual data dedicated to ST tasks. This collection emphasizes direct translations from English into eight distinct languages. Further augmenting its utility, the dataset consists of training, validation, and test subsets comprising 220K, 1.4K, and 2.6K instances, which are specifically tailored for English-to-German translation exercises.
|
| 361 |
+
|
| 362 |
+
# A.3 Data Consistency Learning
|
| 363 |
+
|
| 364 |
+
Instruction Tuning (IT) We employ HiddenCut (Chen et al., 2021a) technique to randomly replace the token with $1\%$ probability for the original input, generating multiple views of the same sample, as shown in Table 7.
|
| 365 |
+
|
| 366 |
+
Textual Machine Translation (TMT) For the TMT of IWSLT14, we employ CIPHERDAug (Kambhatla et al., 2022) to transform the source side of the dataset, creating two different views for each sample. As shown in Table 8, each character on the source side shifts from one position to the right while maintaining the target side in
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Original input
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
Augmented input
|
| 373 |
+
|
| 374 |
+
Multi30K English-German MMT Task
|
| 375 |
+
|
| 376 |
+
<table><tr><td>Original input</td><td>A man is smiling at a stuffed lion.</td></tr><tr><td>Augmented input</td><td>B nbo jt tnjmioh bu b tuvggfe mjpo.</td></tr><tr><td>Target</td><td>Ein Mann lächelt einen ausgestopften Löwen an.</td></tr></table>
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 6: Different views on MMT.
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
Figure 7: Different views on ST.
|
| 383 |
+
|
| 384 |
+
its original form. For the TMT of ALMA, we follow HiddentCut (Chen et al., 2021a) to randomly replace the token with $1\%$ probability for the original input, generating multiple views of the same sample.
|
| 385 |
+
|
| 386 |
+
Multimodal Machine Translation (MMT) We employ the CipherDAug technique to transform the source data of text and apply the horizontal flip on the source data of images, generating different views of the same sample, as shown in Figure 6.
|
| 387 |
+
|
| 388 |
+
Speech-to-Text Translation (ST) Inspired by the idea of HiddenCut (Chen et al., 2021a), we mask audio frames with $1\%$ probability during the training process, generating multiple views of the same sample, as shown in Figure 7.
|
| 389 |
+
|
| 390 |
+
# A.4 Training Speed Comparison
|
| 391 |
+
|
| 392 |
+
To highlight CCL's efficiency, we compared the model's processing time across different tasks. Our study reveals that both CCL and traditional CL require similar durations per step because our proposed CCL method only alters the loss weights of different samples while leaving all other elements intact. This guarantees that the time spent on each training step for both CCL and traditional CL remains relatively equal. To substantiate our results, we have included comprehensive data regarding training speeds and total time used for various tasks in Tables 10 to 13. Lastly, the IT task evaluation was conducted with 4 A800 GPUs, while we used 4 3090 GPUs for the remaining tasks.
|
| 393 |
+
|
| 394 |
+
# A.5 Case Study
|
| 395 |
+
|
| 396 |
+
Table 9 presents a translation example of challenging sentences whose consistency loss is high. We observe that CL merely translates the short portions at the end of the sentences without ensuring the correctness of the sentence tense. In contrast, CCL successfully translates the entire sentence, ensuring the correctness of the sentence's semantics and tense. This can be attributed to CCL increasing the loss weight of difficult instances in the later stages of training, further demonstrating that CCL performs better in handling difficult instances.
|
| 397 |
+
|
| 398 |
+
<table><tr><td>Source</td><td>Ich habe mich�始en Bruder und seinem Vater verpflichtet. Ich sagte: “Also, hier ist der Deal: Tony wird sprechen. Wir werden ihm eine Maschine besorgen und einen Weg finden, damit er wieder seine Kunst machen kann.”</td></tr><tr><td>Reference</td><td>I committed to his brother and his father right then and there. I said,“I am like, here's the deal”. Tony's going to speak. We are going to get him a machine, and we are going to figure out a way for him to do his art again.</td></tr><tr><td>CL</td><td>I committed myself to the place and to his brother and father, saying, “Well, my suggestion is this: Tony will talk. We get him a device, and we find a way to do his art again.”</td></tr><tr><td>CCL</td><td>I am committed to the place, and I am committed to his brother and his father. Well, my proposal is the following: “Tony's going to talk. We're going to get him a machine, and we're going to find a way to make his art again.”</td></tr></table>
|
| 399 |
+
|
| 400 |
+
Table 9: An example of TMT that is regarded as a difficult instance.
|
| 401 |
+
|
| 402 |
+
<table><tr><td>Method</td><td>Training Speed (Seconds/Steps)</td><td>Steps(K)</td><td>Time(H)</td></tr><tr><td>Vanilla</td><td>16.5</td><td>1.2</td><td>5.5</td></tr><tr><td>CL</td><td>21.6</td><td>1.4</td><td>8.4</td></tr><tr><td>CCL</td><td>21.9</td><td>0.6</td><td>3.7</td></tr></table>
|
| 403 |
+
|
| 404 |
+
Table 10: Comparison of training speed of different methods in Instruction Tuning (IT).
|
| 405 |
+
|
| 406 |
+
<table><tr><td>Method</td><td>Training Speed (Seconds/Steps)</td><td>Steps(K)</td><td>Time(H)</td></tr><tr><td>Vanilla</td><td>0.14</td><td>100</td><td>3.8</td></tr><tr><td>CL</td><td>0.15</td><td>300</td><td>12.2</td></tr><tr><td>CCL</td><td>0.15</td><td>140</td><td>5.8</td></tr></table>
|
| 407 |
+
|
| 408 |
+
Table 11: Comparison of training speed of different methods in Textual Machine Translation (TMT).
|
| 409 |
+
|
| 410 |
+
<table><tr><td>Method</td><td>Training Speed (Seconds/Steps)</td><td>Steps(K)</td><td>Time(H)</td></tr><tr><td>Vanilla</td><td>0.85</td><td>20</td><td>4.7</td></tr><tr><td>CL</td><td>1.03</td><td>30</td><td>8.6</td></tr><tr><td>CCL</td><td>1.04</td><td>22</td><td>6.4</td></tr></table>
|
| 411 |
+
|
| 412 |
+
Table 12: Comparison of training speed of different methods in Multimodal Machine Translation (MMT).
|
| 413 |
+
|
| 414 |
+
<table><tr><td>Method</td><td>Training Speed (Seconds/Steps)</td><td>Steps(K)</td><td>Time(H)</td></tr><tr><td>Vanilla</td><td>0.74</td><td>50</td><td>10.3</td></tr><tr><td>CL</td><td>0.95</td><td>70</td><td>18.4</td></tr><tr><td>CCL</td><td>0.95</td><td>55</td><td>14.5</td></tr></table>
|
| 415 |
+
|
| 416 |
+
Table 13: Comparison of training speed of different methods in Speech-to-Text Translation (ST).
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:022623b95617580be98de6bfeab4c6795a776c21f8241b3c4e405e218904fa84
|
| 3 |
+
size 939484
|
2024/Curriculum Consistency Learning for Conditional Sentence Generation/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_content_list.json
ADDED
|
@@ -0,0 +1,2190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "$\\mathbf{D}^{2}\\mathbf{R}$ : Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
117,
|
| 8 |
+
85,
|
| 9 |
+
878,
|
| 10 |
+
124
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Yifan Chen $^{1*}$ , Kuntao Li $^{1*}$ , Weixing Mai $^{1}$ , Qiaofeng Wu $^{1}$ , Yun Xue $^{1\\dagger}$ , Fenghuan Li $^{2\\dagger}$",
|
| 17 |
+
"bbox": [
|
| 18 |
+
255,
|
| 19 |
+
136,
|
| 20 |
+
742,
|
| 21 |
+
170
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "<sup>1</sup>Guangdong Provincial Key Laboratory of Quantum Engineering and Quantum Materials, School of Electronics and Information Engineering, South China Normal University <sup>2</sup>School of Computer Science and Technology, Guangdong University of Technology",
|
| 28 |
+
"bbox": [
|
| 29 |
+
134,
|
| 30 |
+
171,
|
| 31 |
+
860,
|
| 32 |
+
221
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "{chenyifan,likuntao,maiwx,scnu_wqf,xueyun}@m.scnu.edu.cn fhl20180910@gdut.edu.cn",
|
| 39 |
+
"bbox": [
|
| 40 |
+
181,
|
| 41 |
+
223,
|
| 42 |
+
813,
|
| 43 |
+
237
|
| 44 |
+
],
|
| 45 |
+
"page_idx": 0
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "text",
|
| 49 |
+
"text": "Abstract",
|
| 50 |
+
"text_level": 1,
|
| 51 |
+
"bbox": [
|
| 52 |
+
260,
|
| 53 |
+
261,
|
| 54 |
+
339,
|
| 55 |
+
275
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Multimodal sentiment detection aims to classify the sentiment polarity of a given image-text pair. Existing approaches apply the same fixed framework to all input samples, lacking the flexibility to adapt to different image-text pairs. Furthermore, the interaction patterns of these methods are overly homogenized, limiting the model's capacity to extract multimodal sentiment information effectively. In this paper, we develop a Dual-Branch Dynamic Routing Network $(\\mathbf{D}^2\\mathbf{R})$ , which is the first multimodal dynamic interaction model towards multimodal sentiment detection. Specifically, we design six independent units to simulate inter- and intramodal information interactions without depending on any existing fixed frameworks. Additionally, we configure a soft router in each unit to guide path generation and introduce the path regularization term to optimize these inference paths. Comprehensive experiments on three publicly available datasets demonstrate the superiority of our proposed model over state-of-the-art methods.",
|
| 62 |
+
"bbox": [
|
| 63 |
+
141,
|
| 64 |
+
285,
|
| 65 |
+
460,
|
| 66 |
+
611
|
| 67 |
+
],
|
| 68 |
+
"page_idx": 0
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"type": "text",
|
| 72 |
+
"text": "1 Introduction",
|
| 73 |
+
"text_level": 1,
|
| 74 |
+
"bbox": [
|
| 75 |
+
114,
|
| 76 |
+
621,
|
| 77 |
+
258,
|
| 78 |
+
636
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "With the growth of the Internet, people increasingly post multimodal messages on social media platforms to share opinions and express emotions (Yue et al., 2019; Mai et al., 2024; Chen et al., 2024). Consequently, multimodal sentiment detection has attracted significant attention in recent academic and industrial research, proving beneficial for tasks such as product review analysis and political opinion mining (Liang et al., 2021; Zhang et al., 2023). Unlike unimodal data, multimodal data provides richer information to reveal a person's true emotions (Zhang et al., 2018; Liang et al., 2021; Zhong et al., 2024).",
|
| 85 |
+
"bbox": [
|
| 86 |
+
112,
|
| 87 |
+
646,
|
| 88 |
+
489,
|
| 89 |
+
853
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work, we focus on multimodal sentiment detection for image-text pairs in social media posts.",
|
| 96 |
+
"bbox": [
|
| 97 |
+
112,
|
| 98 |
+
856,
|
| 99 |
+
487,
|
| 100 |
+
888
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "image",
|
| 106 |
+
"img_path": "images/46bd5207f682cca8373bf97c7a6f139800d0c1ca062443cd55d2f360389b717a.jpg",
|
| 107 |
+
"image_caption": [
|
| 108 |
+
"(a) Text: What do you think of these candles from free London. We love you! If you feel the same today. (Positive)"
|
| 109 |
+
],
|
| 110 |
+
"image_footnote": [],
|
| 111 |
+
"bbox": [
|
| 112 |
+
546,
|
| 113 |
+
263,
|
| 114 |
+
677,
|
| 115 |
+
324
|
| 116 |
+
],
|
| 117 |
+
"page_idx": 0
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"type": "image",
|
| 121 |
+
"img_path": "images/a9687c1bf30815bbafe7b992106bee7af73e29344017c32ca2b290578873c786.jpg",
|
| 122 |
+
"image_caption": [
|
| 123 |
+
"(b) Text: When Luke forwards every fan and updates the account, except you. (Negative)"
|
| 124 |
+
],
|
| 125 |
+
"image_footnote": [],
|
| 126 |
+
"bbox": [
|
| 127 |
+
722,
|
| 128 |
+
263,
|
| 129 |
+
853,
|
| 130 |
+
324
|
| 131 |
+
],
|
| 132 |
+
"page_idx": 0
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"type": "image",
|
| 136 |
+
"img_path": "images/1044d32e401301f555b5932e430c9dd4d64e6352ca05b48e85a96477fc7b6e34.jpg",
|
| 137 |
+
"image_caption": [
|
| 138 |
+
"(c) Text: Ridge Avenue is closed after a partial building collapse and electrical fire Saturday night. (Negative)"
|
| 139 |
+
],
|
| 140 |
+
"image_footnote": [],
|
| 141 |
+
"bbox": [
|
| 142 |
+
546,
|
| 143 |
+
361,
|
| 144 |
+
677,
|
| 145 |
+
422
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 0
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "image",
|
| 151 |
+
"img_path": "images/221f9ae811e7466431c6bc40b90747dbe61f700e9fc7ae5cf77ec019e5cdffd0.jpg",
|
| 152 |
+
"image_caption": [
|
| 153 |
+
"(d) Text: This gel allows you to stop bleeding immediately: hemostatic drugs first aid. (Neutral)",
|
| 154 |
+
"Figure 1: Examples of multimodal sentiment tweets."
|
| 155 |
+
],
|
| 156 |
+
"image_footnote": [],
|
| 157 |
+
"bbox": [
|
| 158 |
+
722,
|
| 159 |
+
361,
|
| 160 |
+
853,
|
| 161 |
+
422
|
| 162 |
+
],
|
| 163 |
+
"page_idx": 0
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"type": "text",
|
| 167 |
+
"text": "Previous works employed various fusion strategies to integrate features from different modalities (Xu, 2017; Xu and Mao, 2017). Other approaches introduced memory networks for inter-modal interactions (Xu et al., 2018; Yang et al., 2020). Yang et al. (2021) constructed a multi-channel graph neural network model for multimodal sentiment detection, Wei et al. (2023) recently utilized a sparse attention mechanism to enhance fusion by addressing modal heterogeneity. Although these methods have shown promising results, they predominantly applied existing static networks to handle all samples, with the fixed structure resulting in a lack of flexibility to adapt to different multimodal inputs, such as attention-based (Yang et al., 2020) and graph-based approaches (Yang et al., 2021). Moreover, existing related works are relatively homogenised in terms of interaction, focusing on capturing sentiment information through cross-modal alignment. In some cases, complex interaction patterns are unnecessary for simple image-text pairs and may introduce noise into the model (Qu et al., 2021). As shown in Fig. 1 (a), the word \"love\" in the text clearly indicates a \"Positive\" sentiment, making extensive interaction with the image redundant. Similarly, in",
|
| 168 |
+
"bbox": [
|
| 169 |
+
507,
|
| 170 |
+
519,
|
| 171 |
+
884,
|
| 172 |
+
921
|
| 173 |
+
],
|
| 174 |
+
"page_idx": 0
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"type": "page_footnote",
|
| 178 |
+
"text": "*These authors contributed equally to this work.",
|
| 179 |
+
"bbox": [
|
| 180 |
+
134,
|
| 181 |
+
892,
|
| 182 |
+
428,
|
| 183 |
+
906
|
| 184 |
+
],
|
| 185 |
+
"page_idx": 0
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"type": "page_footnote",
|
| 189 |
+
"text": "† Corresponding author.",
|
| 190 |
+
"bbox": [
|
| 191 |
+
136,
|
| 192 |
+
906,
|
| 193 |
+
280,
|
| 194 |
+
920
|
| 195 |
+
],
|
| 196 |
+
"page_idx": 0
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"type": "page_number",
|
| 200 |
+
"text": "3536",
|
| 201 |
+
"bbox": [
|
| 202 |
+
480,
|
| 203 |
+
927,
|
| 204 |
+
519,
|
| 205 |
+
940
|
| 206 |
+
],
|
| 207 |
+
"page_idx": 0
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"type": "footer",
|
| 211 |
+
"text": "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 3536-3547 November 12-16, 2024 ©2024 Association for Computational Linguistics",
|
| 212 |
+
"bbox": [
|
| 213 |
+
159,
|
| 214 |
+
945,
|
| 215 |
+
835,
|
| 216 |
+
972
|
| 217 |
+
],
|
| 218 |
+
"page_idx": 0
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"type": "text",
|
| 222 |
+
"text": "Fig. 1 (b), the image depicts a crying frog, which directly conveys a \"Negative\" sentiment, reducing the need for textual interaction. Conversely, in other instances, varying levels of interaction between modalities are essential. In Fig. 1 (c), a local interaction between the \"broken house\" in the image and \"building collapse\" in the text helps identify it as a \"Negative\" example. However, in Fig. 1 (d), no affective cues are captured when interacting the cross-modal global and local information, so the model classifies it as a neutral example.",
|
| 223 |
+
"bbox": [
|
| 224 |
+
112,
|
| 225 |
+
84,
|
| 226 |
+
489,
|
| 227 |
+
261
|
| 228 |
+
],
|
| 229 |
+
"page_idx": 1
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"type": "text",
|
| 233 |
+
"text": "To tackle the above problems, we propose a novel Dual-Branch Dynamic Routing Network $(\\mathbf{D}^2\\mathbf{R})$ for multimodal sentiment detection, which is a fully dynamic neural network. Specifically, to effectively address complex multimodal sentiment posts, we design six distinct units to implement interaction operations under various scenarios for both text and image without depending on any existing fixed frameworks. Each unit is configured with a soft router to generate inference paths. Subsequently, we stack these six units in width and depth to construct a complete routing space, enabling the exploration of more complex interaction patterns to flexibly adapt to diverse multimodal inputs. We also design a path regularization term to measure the sentiment-path similarity among samples, aiming to optimize these inference paths. Finally, we perform block fusion (Ben-Younes et al., 2019) on the multimodal inference information from different branches and feed it into the classifier for sentiment classification.",
|
| 234 |
+
"bbox": [
|
| 235 |
+
115,
|
| 236 |
+
263,
|
| 237 |
+
489,
|
| 238 |
+
599
|
| 239 |
+
],
|
| 240 |
+
"page_idx": 1
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"type": "text",
|
| 244 |
+
"text": "The main contributions of this paper are summarized as follows:",
|
| 245 |
+
"bbox": [
|
| 246 |
+
112,
|
| 247 |
+
601,
|
| 248 |
+
489,
|
| 249 |
+
633
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 1
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "list",
|
| 255 |
+
"sub_type": "text",
|
| 256 |
+
"list_items": [
|
| 257 |
+
"- We propose a novel dual-branch dynamic routing network that dynamically selects routing paths for diverse image-text pairs. To the best of our knowledge, we are the first to utilize a dynamic routing network to capture affective cues from different modalities for multimodal sentiment detection.",
|
| 258 |
+
"- We design six independent units to simulate inter- and intra-modal information interactions, with each unit integrating a soft router for routing learning and inference path optimization through path regularization.",
|
| 259 |
+
"- We conduct extensive experiments on three public datasets, and the results demonstrate the effectiveness of our model."
|
| 260 |
+
],
|
| 261 |
+
"bbox": [
|
| 262 |
+
136,
|
| 263 |
+
650,
|
| 264 |
+
489,
|
| 265 |
+
920
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "2 Related Work",
|
| 272 |
+
"text_level": 1,
|
| 273 |
+
"bbox": [
|
| 274 |
+
509,
|
| 275 |
+
83,
|
| 276 |
+
665,
|
| 277 |
+
98
|
| 278 |
+
],
|
| 279 |
+
"page_idx": 1
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"type": "text",
|
| 283 |
+
"text": "2.1 Multimodal Sentiment Detection",
|
| 284 |
+
"text_level": 1,
|
| 285 |
+
"bbox": [
|
| 286 |
+
507,
|
| 287 |
+
110,
|
| 288 |
+
811,
|
| 289 |
+
124
|
| 290 |
+
],
|
| 291 |
+
"page_idx": 1
|
| 292 |
+
},
|
| 293 |
+
{
|
| 294 |
+
"type": "text",
|
| 295 |
+
"text": "Early works on multimodal sentiment detection utilized CNN and LSTM to extract and fuse feature representations from different modalities (Xu and Mao, 2017; Xu, 2017). Xu et al. (2018) introduced CoMN, a co-memory network iteratively modeled cross-modal interactions. Yang et al. (2020) proposed MVAN, which stacked pool module-tuned memory network to fuse multimodal features. Additionally, Yang et al. (2021) developed MGNNS, a multichannel graph neural network to capture emotions from entire dataset. Recently, Li et al. (2022) proposed CLMLF, a model combined contrastive learning and multilayer fusion. Another work (Wei et al., 2023) introduced the modal heterogeneity and proposed a multiview calibration network to resolve inherent differences in modalities. Despite promising results, these networks relied on fixed frameworks with static mechanisms to capture affective cues, limiting their capacity to dynamically handle diverse multimodal sentiment posts. In contrast, we aim to develop a dynamic neural network (Han et al., 2023; Li et al., 2024) to process complex image-text pairs adaptively, thereby enhancing the performance of sentiment classification.",
|
| 296 |
+
"bbox": [
|
| 297 |
+
507,
|
| 298 |
+
131,
|
| 299 |
+
885,
|
| 300 |
+
517
|
| 301 |
+
],
|
| 302 |
+
"page_idx": 1
|
| 303 |
+
},
|
| 304 |
+
{
|
| 305 |
+
"type": "text",
|
| 306 |
+
"text": "2.2 Dynamic Neural Networks",
|
| 307 |
+
"text_level": 1,
|
| 308 |
+
"bbox": [
|
| 309 |
+
507,
|
| 310 |
+
530,
|
| 311 |
+
764,
|
| 312 |
+
544
|
| 313 |
+
],
|
| 314 |
+
"page_idx": 1
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"type": "text",
|
| 318 |
+
"text": "Unlike common static neural networks, the inference process of dynamic neural networks adjusts dynamically based on different samples (Qu et al., 2021). Early works on dynamic networks focused on updating model parameters dynamically (Perez et al., 2018; Veit and Belongie, 2018). Subsequent research aimed to design dynamic models that enable automatic tuning of network depth or width (Liu et al., 2017). Dynamic neural networks have also shown excellent performance in recent multimodal tasks (Han et al., 2023; Zhu et al., 2023; Qu et al., 2021). Qu et al. (2021) first applied routing mechanisms to the domain of image-text retrieval, Zhou et al. (2021) introduced TRAR, a Transformer-based model to dynamically schedule global and local dependencies for VQA. However, TRAR only performed routing on unimodal data. Tian et al. (2023) proposed DynRT-Net, a dynamic routing converter network for multimodal sarcasm detection, which activated different modules through hierarchical collaboration. The work only achieved local dynamics by modifying sectional frames within the Transformer. To the best of",
|
| 319 |
+
"bbox": [
|
| 320 |
+
507,
|
| 321 |
+
551,
|
| 322 |
+
885,
|
| 323 |
+
920
|
| 324 |
+
],
|
| 325 |
+
"page_idx": 1
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"type": "page_number",
|
| 329 |
+
"text": "3537",
|
| 330 |
+
"bbox": [
|
| 331 |
+
480,
|
| 332 |
+
927,
|
| 333 |
+
519,
|
| 334 |
+
940
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 1
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "our knowledge, the application of dynamic mechanisms in multimodal sentiment detection has never been explored. Unlike previous related works, we design six interaction units without relying on any existing fixed frameworks to model various interaction scenarios and employ dynamic routing mechanisms to explore novel interaction patterns, achieving truly global dynamics.",
|
| 341 |
+
"bbox": [
|
| 342 |
+
112,
|
| 343 |
+
84,
|
| 344 |
+
489,
|
| 345 |
+
212
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "3 Methodology",
|
| 352 |
+
"text_level": 1,
|
| 353 |
+
"bbox": [
|
| 354 |
+
112,
|
| 355 |
+
223,
|
| 356 |
+
263,
|
| 357 |
+
240
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "3.1 Modal-specific Encoder",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
112,
|
| 367 |
+
248,
|
| 368 |
+
346,
|
| 369 |
+
263
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "Given the input $x = (x^{t},x^{v})$ , where $x^{t}$ and $x^{v}$ denote the text and image. In this work, $x^{t} = \\{s_{i}\\}_{i = 1}^{P}$ , $P$ is the length of the text, we use the pre-trained BERT model to generate the final word embedding $e_i^t\\in \\mathbb{R}^D$ , $i$ refers to the $i$ -th word. $D$ is the hidden dimension. The local text feature denotes as $e^t\\in \\mathbb{R}^{P\\times D}$ . For each image $x^{v}$ , we first divide each image into $K$ patches and then use the pre-trained ViT model to generate the final region embedding $e_j^v\\in \\mathbb{R}^D$ , $j$ refers to the $j$ -th region. The local image feature denotes as $e^v\\in \\mathbb{R}^{K\\times D}$ . We also use [CLS] token representation to get the global feature $\\bar{e}_t$ and $\\bar{e}_v$ for text and image.",
|
| 376 |
+
"bbox": [
|
| 377 |
+
112,
|
| 378 |
+
268,
|
| 379 |
+
489,
|
| 380 |
+
480
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "3.2 Dual-Branch Dynamic Sentiment Interaction Module",
|
| 387 |
+
"text_level": 1,
|
| 388 |
+
"bbox": [
|
| 389 |
+
112,
|
| 390 |
+
489,
|
| 391 |
+
421,
|
| 392 |
+
520
|
| 393 |
+
],
|
| 394 |
+
"page_idx": 2
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"type": "text",
|
| 398 |
+
"text": "To capture complex and diverse sentiment information in multimodal posts, we design six independent units to realize inter- and intra-modal sentiment information interaction. These units incorporate existing interaction patterns and can explore more unexcavated ones based on routing strategies, endowing our model excellent ability to understand emotions and reason sentiment. Formally, the six units can be summarized as follows:",
|
| 399 |
+
"bbox": [
|
| 400 |
+
112,
|
| 401 |
+
526,
|
| 402 |
+
489,
|
| 403 |
+
670
|
| 404 |
+
],
|
| 405 |
+
"page_idx": 2
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"type": "equation",
|
| 409 |
+
"text": "\n$$\nS _ {m} ^ {(n)} = \\left\\{ \\begin{array}{c} H _ {m} ^ {(n)} \\left(X _ {m} ^ {(n)}\\right), m = 1 \\text {o r} 2 \\\\ H _ {m} ^ {(n)} \\left(X _ {m} ^ {(n)}, Y\\right), m = 3, 4, 5, 6 \\end{array} \\right. \\tag {1}\n$$\n",
|
| 410 |
+
"text_format": "latex",
|
| 411 |
+
"bbox": [
|
| 412 |
+
134,
|
| 413 |
+
675,
|
| 414 |
+
487,
|
| 415 |
+
714
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "text",
|
| 421 |
+
"text": "where $S_{m}^{(n)}\\in \\mathbb{R}^{M\\times D}$ denotes the output of the $m$ -th unit in the $n$ -th layer. $H_{m}^{(n)}$ represents the interaction function of the $m$ -th unit in the $n$ -th layer. $X_{m}^{(n)}\\in \\mathbb{R}^{M\\times D}$ is the local input feature of the $m$ -th unit in the $n$ -th layer, $Y\\in \\mathbb{R}^{N\\times D}$ denotes the local input feature from other modality of the $m$ -th unit in the $n$ -th layer.",
|
| 422 |
+
"bbox": [
|
| 423 |
+
112,
|
| 424 |
+
724,
|
| 425 |
+
487,
|
| 426 |
+
839
|
| 427 |
+
],
|
| 428 |
+
"page_idx": 2
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"type": "text",
|
| 432 |
+
"text": "In this work, we implement two single symmetrical interactive branches. Specifically, in text-image (T2V) branch, we set $X = e^{t}$ (M=P) and $Y = e^{v}$ (N=K), as for image-text (V2T) branch, $X = e^{v}$ (M=K) and $Y = e^{t}$ (N=P).",
|
| 433 |
+
"bbox": [
|
| 434 |
+
112,
|
| 435 |
+
841,
|
| 436 |
+
489,
|
| 437 |
+
920
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 2
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "In this section, we take the T2V branch as an example to detail these six independent units.",
|
| 444 |
+
"bbox": [
|
| 445 |
+
507,
|
| 446 |
+
84,
|
| 447 |
+
880,
|
| 448 |
+
115
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 2
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "Simplified Sentiment-Semantic Rectifying Unit. For a simple image or a short sentence, human can judge its sentiment polarity at a glance, and complex interactions are unnecessary. Therefore, we design a rectifiable unit to simplify the original sentiment information. It can be formulated as: $H_1^{(n)}(e^t) = \\mathrm{ReLU}(e^t)$ .",
|
| 455 |
+
"bbox": [
|
| 456 |
+
507,
|
| 457 |
+
117,
|
| 458 |
+
884,
|
| 459 |
+
231
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 2
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Unimodal Sentiment-Semantic Reasoning Unit. There may exist sentiment and semantic similarities between the local fragments (different words or visual regions), so we design a USSR unit to capture these semantic dependencies. Specifically, we employ a multi-head self-attention mechanism to capture intra-modal fine-grained sentimental associations in different subspaces, as follows:",
|
| 466 |
+
"bbox": [
|
| 467 |
+
507,
|
| 468 |
+
231,
|
| 469 |
+
882,
|
| 470 |
+
360
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 2
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "equation",
|
| 476 |
+
"text": "\n$$\nh _ {i} = \\text {A t t e n t i o n} \\left(Q _ {i}, K _ {i}, V _ {i}\\right) \\tag {2}\n$$\n",
|
| 477 |
+
"text_format": "latex",
|
| 478 |
+
"bbox": [
|
| 479 |
+
586,
|
| 480 |
+
376,
|
| 481 |
+
880,
|
| 482 |
+
392
|
| 483 |
+
],
|
| 484 |
+
"page_idx": 2
|
| 485 |
+
},
|
| 486 |
+
{
|
| 487 |
+
"type": "text",
|
| 488 |
+
"text": "where $h_i$ denotes the output of the $i$ -th head, $Q_i, K_i \\in \\mathbb{R}^{n \\times \\frac{D}{h}}$ , $V_i \\in \\mathbb{R}^{n \\times \\frac{D}{h}}$ denote the query, key and value of $i$ -th head, respectively.",
|
| 489 |
+
"bbox": [
|
| 490 |
+
507,
|
| 491 |
+
407,
|
| 492 |
+
882,
|
| 493 |
+
456
|
| 494 |
+
],
|
| 495 |
+
"page_idx": 2
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"type": "text",
|
| 499 |
+
"text": "Then, we concatenate all the $R$ heads:",
|
| 500 |
+
"bbox": [
|
| 501 |
+
527,
|
| 502 |
+
456,
|
| 503 |
+
811,
|
| 504 |
+
468
|
| 505 |
+
],
|
| 506 |
+
"page_idx": 2
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"type": "equation",
|
| 510 |
+
"text": "\n$$\nO = \\operatorname {M u l t i h e a d} \\left(e ^ {t}\\right) = \\operatorname {C o n c a t} \\left(h _ {1}, \\dots , h _ {R}\\right) + e ^ {t} \\tag {3}\n$$\n",
|
| 511 |
+
"text_format": "latex",
|
| 512 |
+
"bbox": [
|
| 513 |
+
524,
|
| 514 |
+
482,
|
| 515 |
+
880,
|
| 516 |
+
495
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 2
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "Based on the above processes, our USSR unit can be summarized as:",
|
| 523 |
+
"bbox": [
|
| 524 |
+
507,
|
| 525 |
+
513,
|
| 526 |
+
880,
|
| 527 |
+
543
|
| 528 |
+
],
|
| 529 |
+
"page_idx": 2
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"type": "equation",
|
| 533 |
+
"text": "\n$$\nH _ {2} ^ {(n)} \\left(e ^ {t}\\right) = F F N (O) + O \\tag {4}\n$$\n",
|
| 534 |
+
"text_format": "latex",
|
| 535 |
+
"bbox": [
|
| 536 |
+
591,
|
| 537 |
+
557,
|
| 538 |
+
880,
|
| 539 |
+
576
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 2
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "where $FFN$ represents a feed-forward layer with ReLU activation function.",
|
| 546 |
+
"bbox": [
|
| 547 |
+
507,
|
| 548 |
+
592,
|
| 549 |
+
880,
|
| 550 |
+
621
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 2
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "Cross-modal Local Sentiment-Semantic Matching Unit. To explore the correlations between inter-modal local segments to enrich the fine-grained affective information representations, a CLSSM unit is designed. Specifically, we first calculate the attention weight between fragments of divergent modalities as follows:",
|
| 557 |
+
"bbox": [
|
| 558 |
+
507,
|
| 559 |
+
625,
|
| 560 |
+
882,
|
| 561 |
+
736
|
| 562 |
+
],
|
| 563 |
+
"page_idx": 2
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"type": "equation",
|
| 567 |
+
"text": "\n$$\n\\omega_ {i, j} = \\frac {\\exp \\left(\\lambda a _ {i j}\\right)}{\\sum_ {j = 1} ^ {K} \\exp \\left(\\lambda a _ {i j}\\right)}, w _ {i} ^ {v} = \\sum_ {j = 1} ^ {K} w _ {i, j} e _ {j} ^ {v} \\tag {5}\n$$\n",
|
| 568 |
+
"text_format": "latex",
|
| 569 |
+
"bbox": [
|
| 570 |
+
526,
|
| 571 |
+
751,
|
| 572 |
+
880,
|
| 573 |
+
795
|
| 574 |
+
],
|
| 575 |
+
"page_idx": 2
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"type": "text",
|
| 579 |
+
"text": "where $\\lambda$ denotes the inversed temperature factor and $a_{ij}$ denotes the cosine similarity between $e_i^t$ and $e_j^v$ . $\\omega_{i,j}$ is the attention weight matrix. $w_i^v$ refers to the attended visual context vector with respect to $i$ -th word. The complete local attended visual context vector with respect to all words can be denoted as $w^v$ .",
|
| 580 |
+
"bbox": [
|
| 581 |
+
507,
|
| 582 |
+
808,
|
| 583 |
+
880,
|
| 584 |
+
919
|
| 585 |
+
],
|
| 586 |
+
"page_idx": 2
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"type": "page_number",
|
| 590 |
+
"text": "3538",
|
| 591 |
+
"bbox": [
|
| 592 |
+
480,
|
| 593 |
+
927,
|
| 594 |
+
519,
|
| 595 |
+
940
|
| 596 |
+
],
|
| 597 |
+
"page_idx": 2
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"type": "image",
|
| 601 |
+
"img_path": "images/4223a1116f2c9f87dccef828c2be00e01d96bd2a02cd22c063a4df631c964e7f.jpg",
|
| 602 |
+
"image_caption": [
|
| 603 |
+
"Figure 2: The overall architecture of the proposed $\\mathrm{D}^2\\mathrm{R}$ model."
|
| 604 |
+
],
|
| 605 |
+
"image_footnote": [],
|
| 606 |
+
"bbox": [
|
| 607 |
+
121,
|
| 608 |
+
84,
|
| 609 |
+
510,
|
| 610 |
+
258
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "image",
|
| 616 |
+
"img_path": "images/6c9e4b03221bd08aadedd405387f8471d4511ac8207db1244c482aac18d9fc87.jpg",
|
| 617 |
+
"image_caption": [],
|
| 618 |
+
"image_footnote": [],
|
| 619 |
+
"bbox": [
|
| 620 |
+
515,
|
| 621 |
+
82,
|
| 622 |
+
707,
|
| 623 |
+
259
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 3
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "image",
|
| 629 |
+
"img_path": "images/1d9d38b7ffeeb32074d1a1b44bad10ee54bb030e56dc05a1051e53cbe1389b08.jpg",
|
| 630 |
+
"image_caption": [],
|
| 631 |
+
"image_footnote": [],
|
| 632 |
+
"bbox": [
|
| 633 |
+
709,
|
| 634 |
+
82,
|
| 635 |
+
904,
|
| 636 |
+
259
|
| 637 |
+
],
|
| 638 |
+
"page_idx": 3
|
| 639 |
+
},
|
| 640 |
+
{
|
| 641 |
+
"type": "text",
|
| 642 |
+
"text": "Then, we map $w_{i}^{v}$ to generate the scaling vector $\\alpha_{i}^{v}$ and the shifting vector $\\beta_{i}^{v}$ as follows:",
|
| 643 |
+
"bbox": [
|
| 644 |
+
112,
|
| 645 |
+
311,
|
| 646 |
+
487,
|
| 647 |
+
344
|
| 648 |
+
],
|
| 649 |
+
"page_idx": 3
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"type": "equation",
|
| 653 |
+
"text": "\n$$\n\\alpha_ {i} ^ {v} = \\operatorname {T a n h} \\left(F C _ {\\alpha} \\left(w _ {i} ^ {v}\\right)\\right) \\tag {6}\n$$\n",
|
| 654 |
+
"text_format": "latex",
|
| 655 |
+
"bbox": [
|
| 656 |
+
208,
|
| 657 |
+
355,
|
| 658 |
+
487,
|
| 659 |
+
374
|
| 660 |
+
],
|
| 661 |
+
"page_idx": 3
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"type": "equation",
|
| 665 |
+
"text": "\n$$\n\\beta_ {i} ^ {v} = F C _ {\\beta} \\left(w _ {i} ^ {v}\\right) \\tag {7}\n$$\n",
|
| 666 |
+
"text_format": "latex",
|
| 667 |
+
"bbox": [
|
| 668 |
+
238,
|
| 669 |
+
386,
|
| 670 |
+
487,
|
| 671 |
+
404
|
| 672 |
+
],
|
| 673 |
+
"page_idx": 3
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"type": "text",
|
| 677 |
+
"text": "Next, we take affine transformation operation followed by a MLP and residual connection to get the refined local fragment representation $\\tilde{e}_i^t$ as:",
|
| 678 |
+
"bbox": [
|
| 679 |
+
112,
|
| 680 |
+
411,
|
| 681 |
+
485,
|
| 682 |
+
461
|
| 683 |
+
],
|
| 684 |
+
"page_idx": 3
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"type": "equation",
|
| 688 |
+
"text": "\n$$\n\\tilde {e} _ {i} ^ {t} = M L P \\left(e _ {i} ^ {t} \\odot \\alpha_ {i} ^ {v} + \\beta_ {i} ^ {v}\\right) + e _ {i} ^ {t} \\tag {8}\n$$\n",
|
| 689 |
+
"text_format": "latex",
|
| 690 |
+
"bbox": [
|
| 691 |
+
179,
|
| 692 |
+
473,
|
| 693 |
+
487,
|
| 694 |
+
494
|
| 695 |
+
],
|
| 696 |
+
"page_idx": 3
|
| 697 |
+
},
|
| 698 |
+
{
|
| 699 |
+
"type": "text",
|
| 700 |
+
"text": "where $\\odot$ denotes element-wise multiplication.",
|
| 701 |
+
"bbox": [
|
| 702 |
+
112,
|
| 703 |
+
506,
|
| 704 |
+
457,
|
| 705 |
+
521
|
| 706 |
+
],
|
| 707 |
+
"page_idx": 3
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"type": "text",
|
| 711 |
+
"text": "Combining the above steps, our CLSSM unit can be summarized as: $H_3^{(n)}(e_i^t,e_j^v) = [e_1^t;\\dots ;e_P^t ]$ .",
|
| 712 |
+
"bbox": [
|
| 713 |
+
112,
|
| 714 |
+
521,
|
| 715 |
+
485,
|
| 716 |
+
557
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 3
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "Cross-modal Global Sentiment-Semantic Aligning Unit. Compared with the local fragments information, the global holistic information can reflect the overall sentiment of one text-image pair on a broader level, so we design a CGSSA unit to integrate the global sentiment information of different modalities to learn valuable cross-modal coarse-grained representations. Specifically, we introduce a special gated fusion mechanism to adaptively combine the global text representation $\\bar{e}_t$ and visual representation $\\bar{e}_v$ , which is formulated as:",
|
| 723 |
+
"bbox": [
|
| 724 |
+
112,
|
| 725 |
+
557,
|
| 726 |
+
487,
|
| 727 |
+
733
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 3
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "equation",
|
| 733 |
+
"text": "\n$$\n\\bar {e} = z \\bar {e} _ {t} + (1 - z) \\bar {e} _ {v} \\tag {9}\n$$\n",
|
| 734 |
+
"text_format": "latex",
|
| 735 |
+
"bbox": [
|
| 736 |
+
221,
|
| 737 |
+
747,
|
| 738 |
+
485,
|
| 739 |
+
764
|
| 740 |
+
],
|
| 741 |
+
"page_idx": 3
|
| 742 |
+
},
|
| 743 |
+
{
|
| 744 |
+
"type": "equation",
|
| 745 |
+
"text": "\n$$\nz = \\frac {\\exp \\left(W _ {1} \\delta \\left(W _ {2} \\bar {e} _ {t}\\right)\\right)}{\\exp \\left(W _ {1} \\delta \\left(W _ {2} \\bar {e} _ {t}\\right)\\right) + \\exp \\left(W _ {1} \\delta \\left(W _ {2} \\bar {e} _ {v}\\right)\\right)} \\tag {10}\n$$\n",
|
| 746 |
+
"text_format": "latex",
|
| 747 |
+
"bbox": [
|
| 748 |
+
134,
|
| 749 |
+
775,
|
| 750 |
+
485,
|
| 751 |
+
821
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 3
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "text",
|
| 757 |
+
"text": "where $W_{1}$ and $W_{2}\\in \\mathbb{R}^{m\\times d}$ are parameter matrices, $\\delta$ denotes the Tanh function.",
|
| 758 |
+
"bbox": [
|
| 759 |
+
112,
|
| 760 |
+
822,
|
| 761 |
+
487,
|
| 762 |
+
853
|
| 763 |
+
],
|
| 764 |
+
"page_idx": 3
|
| 765 |
+
},
|
| 766 |
+
{
|
| 767 |
+
"type": "text",
|
| 768 |
+
"text": "After the above processes, our CGSSA unit can be profiled as: $H_4^{(n)}(\\bar{e}_t,\\bar{e}_v) = \\bar{e}$ .",
|
| 769 |
+
"bbox": [
|
| 770 |
+
112,
|
| 771 |
+
854,
|
| 772 |
+
485,
|
| 773 |
+
888
|
| 774 |
+
],
|
| 775 |
+
"page_idx": 3
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"type": "text",
|
| 779 |
+
"text": "Global-Local Sentiment-Semantic Filtering Unit. For complex text-image pairs, relying only",
|
| 780 |
+
"bbox": [
|
| 781 |
+
112,
|
| 782 |
+
889,
|
| 783 |
+
487,
|
| 784 |
+
921
|
| 785 |
+
],
|
| 786 |
+
"page_idx": 3
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"type": "text",
|
| 790 |
+
"text": "on cross-modal global or local information is still insufficient to classify sentiment. Therefore, we design a GLSSF unit to capture both the cross-modal fine-grained and coarse-grained emotional cues simultaneously, and compensate for affective differences. In addition, we notice that indiscriminately aggregate all possible local comparisons and global comparisons may cause less-meaningful comparisons (such as \"a\" and \"the\" correlation comparisons), which hinder the model's capacity to distinguish sentiment polarity. Therefore, we deliberately develop a strategy in GLSSF unit to effectively suppress invalid comparisons with low affective contributions. Specifically, we first compute cross-modal global and local sentimental similarity vector (Diao et al., 2021) as follows:",
|
| 791 |
+
"bbox": [
|
| 792 |
+
507,
|
| 793 |
+
310,
|
| 794 |
+
884,
|
| 795 |
+
568
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 3
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "equation",
|
| 801 |
+
"text": "\n$$\nF (a, b; W _ {f}) = \\frac {W _ {f} | a - b | ^ {2}}{\\| W _ {f} | a - b | ^ {2} \\| _ {2}} \\tag {11}\n$$\n",
|
| 802 |
+
"text_format": "latex",
|
| 803 |
+
"bbox": [
|
| 804 |
+
578,
|
| 805 |
+
580,
|
| 806 |
+
882,
|
| 807 |
+
617
|
| 808 |
+
],
|
| 809 |
+
"page_idx": 3
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"type": "text",
|
| 813 |
+
"text": "where $a, b \\in \\mathbb{R}^D$ are two different vectors, $|\\cdot|^2$ and $\\| \\cdot \\|^2$ separately represent the element-wise square and $l_2$ -norm. $W_f \\in \\mathbb{R}^{m \\times d}$ is a parameter matrix.",
|
| 814 |
+
"bbox": [
|
| 815 |
+
507,
|
| 816 |
+
630,
|
| 817 |
+
880,
|
| 818 |
+
680
|
| 819 |
+
],
|
| 820 |
+
"page_idx": 3
|
| 821 |
+
},
|
| 822 |
+
{
|
| 823 |
+
"type": "text",
|
| 824 |
+
"text": "Thereafter, we compute the cross-modal global or local sentiment similarity as:",
|
| 825 |
+
"bbox": [
|
| 826 |
+
507,
|
| 827 |
+
680,
|
| 828 |
+
880,
|
| 829 |
+
712
|
| 830 |
+
],
|
| 831 |
+
"page_idx": 3
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"type": "equation",
|
| 835 |
+
"text": "\n$$\nF ^ {G l o b a l} = F \\left(\\bar {e} _ {t}, \\bar {e} _ {v}; W _ {f} ^ {g}\\right) \\tag {12}\n$$\n",
|
| 836 |
+
"text_format": "latex",
|
| 837 |
+
"bbox": [
|
| 838 |
+
600,
|
| 839 |
+
726,
|
| 840 |
+
882,
|
| 841 |
+
747
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 3
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "equation",
|
| 847 |
+
"text": "\n$$\nF _ {i} ^ {\\text {L o c a l}} = F \\left(e _ {i} ^ {t}, w _ {i} ^ {v}; W _ {f} ^ {l}\\right) \\tag {13}\n$$\n",
|
| 848 |
+
"text_format": "latex",
|
| 849 |
+
"bbox": [
|
| 850 |
+
601,
|
| 851 |
+
763,
|
| 852 |
+
882,
|
| 853 |
+
783
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 3
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "where $W_{f}^{g}$ , $W_{f}^{l} \\in \\mathbb{R}^{m \\times d}$ are parameter matrices.",
|
| 860 |
+
"bbox": [
|
| 861 |
+
507,
|
| 862 |
+
791,
|
| 863 |
+
870,
|
| 864 |
+
810
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 3
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "Next, we calculate the aggregation weight $\\gamma_{u}$ for the obtained cross-modal global and each local sentiment similarity vector representations $N = \\{F_1^{Local},\\dots ,F_i^{Local},F^{Global}\\}$ .",
|
| 871 |
+
"bbox": [
|
| 872 |
+
507,
|
| 873 |
+
810,
|
| 874 |
+
880,
|
| 875 |
+
876
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 3
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "equation",
|
| 881 |
+
"text": "\n$$\n\\gamma_ {u} = \\frac {\\sigma \\left(B N \\left(W _ {\\gamma} F _ {u}\\right)\\right)}{\\sum_ {F _ {v} \\in N} \\sigma \\left(B N \\left(W _ {\\gamma} F _ {v}\\right)\\right)} \\tag {14}\n$$\n",
|
| 882 |
+
"text_format": "latex",
|
| 883 |
+
"bbox": [
|
| 884 |
+
578,
|
| 885 |
+
888,
|
| 886 |
+
882,
|
| 887 |
+
925
|
| 888 |
+
],
|
| 889 |
+
"page_idx": 3
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"type": "page_number",
|
| 893 |
+
"text": "3539",
|
| 894 |
+
"bbox": [
|
| 895 |
+
480,
|
| 896 |
+
927,
|
| 897 |
+
519,
|
| 898 |
+
940
|
| 899 |
+
],
|
| 900 |
+
"page_idx": 3
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"type": "text",
|
| 904 |
+
"text": "where $\\sigma$ denotes the sigmoid function, $BN$ indicates the batch normalization, and $W_{\\gamma} \\in \\mathbb{R}^{m \\times 1}$ is a linear transformation.",
|
| 905 |
+
"bbox": [
|
| 906 |
+
112,
|
| 907 |
+
84,
|
| 908 |
+
487,
|
| 909 |
+
131
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 4
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "Finally, we converge all the sentiment similarity representations as follows:",
|
| 916 |
+
"bbox": [
|
| 917 |
+
112,
|
| 918 |
+
131,
|
| 919 |
+
485,
|
| 920 |
+
165
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 4
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "equation",
|
| 926 |
+
"text": "\n$$\n\\gamma_ {f} = \\sum_ {F _ {u} \\in N} \\gamma_ {u} F _ {u} \\tag {15}\n$$\n",
|
| 927 |
+
"text_format": "latex",
|
| 928 |
+
"bbox": [
|
| 929 |
+
233,
|
| 930 |
+
175,
|
| 931 |
+
487,
|
| 932 |
+
210
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 4
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "Combining the above processes, our GLSSF unit can be represented as: $H_5^{(n)}(e^t, e^v, \\bar{e}_t, \\bar{e}_v) = \\gamma_f$ .",
|
| 939 |
+
"bbox": [
|
| 940 |
+
112,
|
| 941 |
+
219,
|
| 942 |
+
485,
|
| 943 |
+
254
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 4
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "text",
|
| 949 |
+
"text": "Multi-View Sentiment-Semantic Sensing Unit. Both unimodal and cross-mdoal information are beneficial for the fianl sentiment classification. Therefore, we design a MVSSS unit that learns unimodal context-rich cross-modal sentiment features from two different views, aiming to facilitate interactive reasoning between unimodal and multimodal sentiment information. Specifically, considering the possible common features between unimodal and cross-modal information, we first project $w^v$ and $e^t$ into a common potential semantic space for sentiment-semantic matching, as follows:",
|
| 950 |
+
"bbox": [
|
| 951 |
+
112,
|
| 952 |
+
254,
|
| 953 |
+
487,
|
| 954 |
+
445
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 4
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "equation",
|
| 960 |
+
"text": "\n$$\nC _ {w} = \\operatorname {T a n h} \\left(W _ {w} w ^ {v} + b _ {w}\\right) \\tag {16}\n$$\n",
|
| 961 |
+
"text_format": "latex",
|
| 962 |
+
"bbox": [
|
| 963 |
+
196,
|
| 964 |
+
458,
|
| 965 |
+
487,
|
| 966 |
+
475
|
| 967 |
+
],
|
| 968 |
+
"page_idx": 4
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"type": "equation",
|
| 972 |
+
"text": "\n$$\nC _ {e} = \\operatorname {T a n h} \\left(W _ {e} e ^ {t} + b _ {e}\\right) \\tag {17}\n$$\n",
|
| 973 |
+
"text_format": "latex",
|
| 974 |
+
"bbox": [
|
| 975 |
+
206,
|
| 976 |
+
486,
|
| 977 |
+
487,
|
| 978 |
+
504
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 4
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "text",
|
| 984 |
+
"text": "where $C_w$ and $C_e$ denote the converted multi-view cross-modal and unimodal sentiment features in same space.",
|
| 985 |
+
"bbox": [
|
| 986 |
+
112,
|
| 987 |
+
511,
|
| 988 |
+
485,
|
| 989 |
+
558
|
| 990 |
+
],
|
| 991 |
+
"page_idx": 4
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"type": "text",
|
| 995 |
+
"text": "Next, we modify the gating mechanism to filter possible sentimental differences noise to integrate the common features of unimodal and cross-modal information. And then we learn the unimodal context-rich cross-modal sentiment features. Specifically, we align $C_w$ based on $C_e$ , and set $C_w$ as $Q_m = W_Q C_w$ and the $C_e$ as $K_u = W_K C_e$ , where $W_Q$ and $W_K$ are trainable parameters. Thus, the $V_m = \\text{softmax}(Q_m K_u^T)$ , where $V_m$ is query attended mask. Thereafter, unimodal context-rich cross-modal sentiment feature $C_{we}$ can be formulated as:",
|
| 996 |
+
"bbox": [
|
| 997 |
+
112,
|
| 998 |
+
560,
|
| 999 |
+
487,
|
| 1000 |
+
750
|
| 1001 |
+
],
|
| 1002 |
+
"page_idx": 4
|
| 1003 |
+
},
|
| 1004 |
+
{
|
| 1005 |
+
"type": "equation",
|
| 1006 |
+
"text": "\n$$\nC _ {w e} = C _ {w} + V _ {m} C _ {e} \\tag {18}\n$$\n",
|
| 1007 |
+
"text_format": "latex",
|
| 1008 |
+
"bbox": [
|
| 1009 |
+
223,
|
| 1010 |
+
753,
|
| 1011 |
+
487,
|
| 1012 |
+
769
|
| 1013 |
+
],
|
| 1014 |
+
"page_idx": 4
|
| 1015 |
+
},
|
| 1016 |
+
{
|
| 1017 |
+
"type": "text",
|
| 1018 |
+
"text": "After the above processes, our MVSSS unit can be summarized as: $H_6^n (e^t,w^v) = C_{we}$ .",
|
| 1019 |
+
"bbox": [
|
| 1020 |
+
112,
|
| 1021 |
+
776,
|
| 1022 |
+
485,
|
| 1023 |
+
808
|
| 1024 |
+
],
|
| 1025 |
+
"page_idx": 4
|
| 1026 |
+
},
|
| 1027 |
+
{
|
| 1028 |
+
"type": "text",
|
| 1029 |
+
"text": "Soft Router. To fully utilize the inimitable strengths of six units, we set up the layers in parallel and connect them between adjacent layers in a dense manner. This dense connectivity ensures a multiple and flexible routing space where many unexcavated interaction patterns can be explored. After constructing the routing space, the routing",
|
| 1030 |
+
"bbox": [
|
| 1031 |
+
112,
|
| 1032 |
+
809,
|
| 1033 |
+
487,
|
| 1034 |
+
921
|
| 1035 |
+
],
|
| 1036 |
+
"page_idx": 4
|
| 1037 |
+
},
|
| 1038 |
+
{
|
| 1039 |
+
"type": "text",
|
| 1040 |
+
"text": "process is executed by soft router, the input of the $m$ -th unit in the $n$ -th layer can be obtained by the following operation:",
|
| 1041 |
+
"bbox": [
|
| 1042 |
+
507,
|
| 1043 |
+
84,
|
| 1044 |
+
880,
|
| 1045 |
+
133
|
| 1046 |
+
],
|
| 1047 |
+
"page_idx": 4
|
| 1048 |
+
},
|
| 1049 |
+
{
|
| 1050 |
+
"type": "equation",
|
| 1051 |
+
"text": "\n$$\nH _ {m} ^ {(n)} = \\left\\{ \\begin{array}{l l} e ^ {t}, & n = 0 \\\\ \\sum_ {j = 0} ^ {c - 1} \\rho_ {j, m} ^ {(n - 1)} S _ {j} ^ {(n - 1)}, & n > 0 \\end{array} \\right. \\tag {19}\n$$\n",
|
| 1052 |
+
"text_format": "latex",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
527,
|
| 1055 |
+
140,
|
| 1056 |
+
880,
|
| 1057 |
+
180
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 4
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "where $C = 6$ indicates the total number of units in each layer. $S_{j}^{(n - 1)}\\in \\mathbb{R}^{P\\times D}$ represents the output of $j$ -th unit in the $(n - 1)$ -th layer. $\\rho_{j,m}^{(n - 1)}\\in [0,1]$ is the path probability from the $j$ -th unit in the $(n - 1)$ -th layer to the $m$ -th unit in the $n$ -th layer. This can be calculated as follows:",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
507,
|
| 1066 |
+
185,
|
| 1067 |
+
882,
|
| 1068 |
+
279
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 4
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "equation",
|
| 1074 |
+
"text": "\n$$\n\\rho_ {m} ^ {(n)} = \\operatorname {R e L U} \\left\\{\\operatorname {T a n h} \\left[ M L P \\left(\\frac {1}{P} \\sum_ {r = 1} ^ {P} h _ {m, r} ^ {(n)}\\right) \\right] \\right\\} \\tag {20}\n$$\n",
|
| 1075 |
+
"text_format": "latex",
|
| 1076 |
+
"bbox": [
|
| 1077 |
+
556,
|
| 1078 |
+
286,
|
| 1079 |
+
880,
|
| 1080 |
+
321
|
| 1081 |
+
],
|
| 1082 |
+
"page_idx": 4
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"type": "text",
|
| 1086 |
+
"text": "where $\\rho_{m}^{(n)}\\in \\mathbb{R}^{C}$ denotes the path probability vector of all units in $n$ -th layer, $h_{m,r}^{(n)}$ is the $r$ -th row vector of $H_{m}^{(n)}$",
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
507,
|
| 1089 |
+
332,
|
| 1090 |
+
880,
|
| 1091 |
+
385
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 4
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "text",
|
| 1097 |
+
"text": "Thereafter, the routing process is finished, we can obtain the final refined feature matrix $H_{1-6}^{*} = H_{1-6}^{(L)}$ through Equation (20) from the last layer $L$ . Then, we take average-pooling operation for aggregating the six units output embeddings $H_{1-6}^{*}$ to obtain the final aggregated single-branch feature representation $\\bar{h}_{1-6}$ .",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
507,
|
| 1100 |
+
386,
|
| 1101 |
+
880,
|
| 1102 |
+
502
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 4
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "text",
|
| 1108 |
+
"text": "3.3 Sentiment-Aware Path-Adaptive Fusion Module",
|
| 1109 |
+
"text_level": 1,
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
507,
|
| 1112 |
+
512,
|
| 1113 |
+
867,
|
| 1114 |
+
543
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 4
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Block Fusion. We implement the units and routing process on text and image-modality respectively, and obtain two branches of aggregated feature representation, namely, $\\bar{h}_{1-6}^{T2V}$ and $\\bar{h}_{1-6}^{V2T}$ . Then, we adopt a block fusion strategy to fuse $\\bar{h}_{1-6}^{T2V}$ and $\\bar{h}_{1-6}^{V2T}$ and use the fusion feature to make the final prediction. Inspired by Ben-Younes et al. (2019), we project $\\bar{h}_{1-6}^{T2V}$ and $\\bar{h}_{1-6}^{V2T}$ into a new feature space through the association tensor $T$ , as follows:",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
507,
|
| 1123 |
+
549,
|
| 1124 |
+
882,
|
| 1125 |
+
694
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 4
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "equation",
|
| 1131 |
+
"text": "\n$$\nf = T \\times_ {1} \\bar {h} _ {1 - 6} ^ {T 2 V} \\times_ {2} \\bar {h} _ {1 - 6} ^ {V 2 T} \\tag {21}\n$$\n",
|
| 1132 |
+
"text_format": "latex",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
596,
|
| 1135 |
+
701,
|
| 1136 |
+
880,
|
| 1137 |
+
721
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 4
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "where $\\times_{1}$ and $\\times_{2}$ means tensor product along different dimensional space.",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
507,
|
| 1146 |
+
731,
|
| 1147 |
+
880,
|
| 1148 |
+
762
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 4
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "The final fusion tensor $f$ is fed into an additional MLP followed by softmax function to predict the sentiment label:",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
507,
|
| 1157 |
+
762,
|
| 1158 |
+
880,
|
| 1159 |
+
809
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 4
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "equation",
|
| 1165 |
+
"text": "\n$$\n\\hat {y} = \\operatorname {s o f t m a x} (M L P (f)) \\tag {22}\n$$\n",
|
| 1166 |
+
"text_format": "latex",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
596,
|
| 1169 |
+
820,
|
| 1170 |
+
880,
|
| 1171 |
+
837
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 4
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "where $\\hat{y}$ denotes the prediction label.",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
507,
|
| 1180 |
+
847,
|
| 1181 |
+
784,
|
| 1182 |
+
862
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 4
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "text",
|
| 1188 |
+
"text": "Finally, we apply the cross-entropy loss function:",
|
| 1189 |
+
"bbox": [
|
| 1190 |
+
507,
|
| 1191 |
+
863,
|
| 1192 |
+
882,
|
| 1193 |
+
892
|
| 1194 |
+
],
|
| 1195 |
+
"page_idx": 4
|
| 1196 |
+
},
|
| 1197 |
+
{
|
| 1198 |
+
"type": "equation",
|
| 1199 |
+
"text": "\n$$\nL _ {C E} = - (y \\log (\\hat {y}) + (1 - y) \\log (1 - \\hat {y})) \\tag {23}\n$$\n",
|
| 1200 |
+
"text_format": "latex",
|
| 1201 |
+
"bbox": [
|
| 1202 |
+
526,
|
| 1203 |
+
904,
|
| 1204 |
+
880,
|
| 1205 |
+
921
|
| 1206 |
+
],
|
| 1207 |
+
"page_idx": 4
|
| 1208 |
+
},
|
| 1209 |
+
{
|
| 1210 |
+
"type": "page_number",
|
| 1211 |
+
"text": "3540",
|
| 1212 |
+
"bbox": [
|
| 1213 |
+
480,
|
| 1214 |
+
927,
|
| 1215 |
+
519,
|
| 1216 |
+
940
|
| 1217 |
+
],
|
| 1218 |
+
"page_idx": 4
|
| 1219 |
+
},
|
| 1220 |
+
{
|
| 1221 |
+
"type": "text",
|
| 1222 |
+
"text": "where $y$ denotes the ground-truth label.",
|
| 1223 |
+
"bbox": [
|
| 1224 |
+
112,
|
| 1225 |
+
84,
|
| 1226 |
+
406,
|
| 1227 |
+
99
|
| 1228 |
+
],
|
| 1229 |
+
"page_idx": 5
|
| 1230 |
+
},
|
| 1231 |
+
{
|
| 1232 |
+
"type": "text",
|
| 1233 |
+
"text": "Path Regularization. In fact, the sentiment information and semantics of multimodal posts are key factors affecting the interaction patterns. Samples with similar sentiment polarity should learn similar routing paths, while samples with different sentiment polarity should learn discrepant routing paths as much as possible. We hope that the routing path distribution can be consistent with the sentiment-semantic distribution. Therefore, we introduce the path regularization term to measure their correlations among samples. Particularly, we take average-pooling on $e^t \\in \\mathbb{R}^{P \\times D}$ to get the sentiment-semantic representation $\\bar{e}^t \\in \\mathbb{R}^D$ and compute the sentiment-semantic similarity as $S_t = \\bar{e}^t \\cdot (\\bar{e}^t)^\\top$ . Thereafter, we connect the output values of all routers to get the path vector $\\varepsilon^t \\in \\mathbb{R}^{C^{2(L - 1) + C}}$ and compute the path similarity as $S_p = \\varepsilon^t \\cdot (\\varepsilon^t)^\\top$ .",
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
112,
|
| 1236 |
+
101,
|
| 1237 |
+
489,
|
| 1238 |
+
393
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 5
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "text",
|
| 1244 |
+
"text": "To achieve sentiment-path consistency, we develop a path regularization loss function $L_{pr}$ to calculate the distribution gap between the sentiment-semantic representation $S_{t}$ and the path vector $S_{p}$ , which is formulated as:",
|
| 1245 |
+
"bbox": [
|
| 1246 |
+
112,
|
| 1247 |
+
394,
|
| 1248 |
+
489,
|
| 1249 |
+
472
|
| 1250 |
+
],
|
| 1251 |
+
"page_idx": 5
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"type": "equation",
|
| 1255 |
+
"text": "\n$$\nL _ {p r} ^ {T 2 V} = J S \\left(S _ {t} \\| S _ {p}\\right) \\tag {24}\n$$\n",
|
| 1256 |
+
"text_format": "latex",
|
| 1257 |
+
"bbox": [
|
| 1258 |
+
221,
|
| 1259 |
+
487,
|
| 1260 |
+
487,
|
| 1261 |
+
508
|
| 1262 |
+
],
|
| 1263 |
+
"page_idx": 5
|
| 1264 |
+
},
|
| 1265 |
+
{
|
| 1266 |
+
"type": "text",
|
| 1267 |
+
"text": "where $JS$ stands for JS divergence (Sutter et al., 2020). Likewise, we can obtain the V2T branch loss function $L_{pr}^{V2T}$ .",
|
| 1268 |
+
"bbox": [
|
| 1269 |
+
112,
|
| 1270 |
+
521,
|
| 1271 |
+
487,
|
| 1272 |
+
574
|
| 1273 |
+
],
|
| 1274 |
+
"page_idx": 5
|
| 1275 |
+
},
|
| 1276 |
+
{
|
| 1277 |
+
"type": "text",
|
| 1278 |
+
"text": "3.4 Training objective",
|
| 1279 |
+
"text_level": 1,
|
| 1280 |
+
"bbox": [
|
| 1281 |
+
112,
|
| 1282 |
+
585,
|
| 1283 |
+
304,
|
| 1284 |
+
600
|
| 1285 |
+
],
|
| 1286 |
+
"page_idx": 5
|
| 1287 |
+
},
|
| 1288 |
+
{
|
| 1289 |
+
"type": "text",
|
| 1290 |
+
"text": "The overall loss function for $\\mathrm{D}^2\\mathrm{R}$ is as follows:",
|
| 1291 |
+
"bbox": [
|
| 1292 |
+
112,
|
| 1293 |
+
608,
|
| 1294 |
+
468,
|
| 1295 |
+
623
|
| 1296 |
+
],
|
| 1297 |
+
"page_idx": 5
|
| 1298 |
+
},
|
| 1299 |
+
{
|
| 1300 |
+
"type": "equation",
|
| 1301 |
+
"text": "\n$$\nL _ {A l l} = L _ {C E} + \\lambda_ {1} L _ {p r} ^ {T 2 V} + \\lambda_ {2} L _ {p r} ^ {V 2 T} \\tag {25}\n$$\n",
|
| 1302 |
+
"text_format": "latex",
|
| 1303 |
+
"bbox": [
|
| 1304 |
+
152,
|
| 1305 |
+
637,
|
| 1306 |
+
487,
|
| 1307 |
+
659
|
| 1308 |
+
],
|
| 1309 |
+
"page_idx": 5
|
| 1310 |
+
},
|
| 1311 |
+
{
|
| 1312 |
+
"type": "text",
|
| 1313 |
+
"text": "where $\\lambda_{1}$ and $\\lambda_{2}$ control the ratio of $L_{pr}^{T2V}$ and $L_{pr}^{V2T}$ , respectively.",
|
| 1314 |
+
"bbox": [
|
| 1315 |
+
112,
|
| 1316 |
+
671,
|
| 1317 |
+
485,
|
| 1318 |
+
709
|
| 1319 |
+
],
|
| 1320 |
+
"page_idx": 5
|
| 1321 |
+
},
|
| 1322 |
+
{
|
| 1323 |
+
"type": "text",
|
| 1324 |
+
"text": "4 Experiments",
|
| 1325 |
+
"text_level": 1,
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
112,
|
| 1328 |
+
722,
|
| 1329 |
+
260,
|
| 1330 |
+
739
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 5
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"type": "text",
|
| 1336 |
+
"text": "4.1 Experiment Settings",
|
| 1337 |
+
"text_level": 1,
|
| 1338 |
+
"bbox": [
|
| 1339 |
+
112,
|
| 1340 |
+
751,
|
| 1341 |
+
321,
|
| 1342 |
+
766
|
| 1343 |
+
],
|
| 1344 |
+
"page_idx": 5
|
| 1345 |
+
},
|
| 1346 |
+
{
|
| 1347 |
+
"type": "text",
|
| 1348 |
+
"text": "Dataset. We assess our model by conducting experiments on three publicly available benchmark datasets which are MVSA-Single, MVSA-Multiple and HFM. The statistics of the dataset are shown in Appendix A.1.",
|
| 1349 |
+
"bbox": [
|
| 1350 |
+
112,
|
| 1351 |
+
774,
|
| 1352 |
+
487,
|
| 1353 |
+
853
|
| 1354 |
+
],
|
| 1355 |
+
"page_idx": 5
|
| 1356 |
+
},
|
| 1357 |
+
{
|
| 1358 |
+
"type": "text",
|
| 1359 |
+
"text": "Implementation. The details of parameter implementations are listed in Appendix A.2.",
|
| 1360 |
+
"bbox": [
|
| 1361 |
+
112,
|
| 1362 |
+
856,
|
| 1363 |
+
487,
|
| 1364 |
+
887
|
| 1365 |
+
],
|
| 1366 |
+
"page_idx": 5
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"type": "text",
|
| 1370 |
+
"text": "Baselines. We compare our model with unimodal baseline models and multimodal models.",
|
| 1371 |
+
"bbox": [
|
| 1372 |
+
112,
|
| 1373 |
+
889,
|
| 1374 |
+
489,
|
| 1375 |
+
919
|
| 1376 |
+
],
|
| 1377 |
+
"page_idx": 5
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"type": "table",
|
| 1381 |
+
"img_path": "images/1d1fdd354d06c334ed1c34db45b4b8891ee651b93b8e50f63c180078654f0443.jpg",
|
| 1382 |
+
"table_caption": [
|
| 1383 |
+
"Table 1: Experimental results of different models on MVSA-Single, MVSA-Multiple and HFM datasets."
|
| 1384 |
+
],
|
| 1385 |
+
"table_footnote": [],
|
| 1386 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MVSASingle</td><td colspan=\"2\">MVSAMultiple</td><td colspan=\"2\">HFM</td><td></td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>Model</td><td>ACC</td><td>F1</td></tr><tr><td colspan=\"7\">Text-Only</td><td></td></tr><tr><td>CNN</td><td>0.6819</td><td>0.5590</td><td>0.6564</td><td>0.5766</td><td>CNN</td><td>0.8003</td><td>0.7532</td></tr><tr><td>BiLSTM</td><td>0.7012</td><td>0.6506</td><td>0.6790</td><td>0.6790</td><td>BiLSTM</td><td>0.8190</td><td>0.7753</td></tr><tr><td>BERT</td><td>0.7111</td><td>0.6970</td><td>0.6759</td><td>0.6624</td><td>BERT</td><td>0.8389</td><td>0.8326</td></tr><tr><td>TGNN</td><td>0.7034</td><td>0.6594</td><td>0.6967</td><td>0.6180</td><td></td><td></td><td></td></tr><tr><td colspan=\"7\">Image-Only</td><td></td></tr><tr><td>ResNet</td><td>0.6467</td><td>0.6155</td><td>0.6188</td><td>0.6098</td><td>ResNet</td><td>0.7277</td><td>0.7138</td></tr><tr><td>ViT</td><td>0.6378</td><td>0.6226</td><td>0.6194</td><td>0.6119</td><td>ViT</td><td>0.7309</td><td>0.7152</td></tr><tr><td>OSDA</td><td>0.6675</td><td>0.6651</td><td>0.6662</td><td>0.6623</td><td></td><td></td><td></td></tr><tr><td colspan=\"7\">Multi-Modal</td><td></td></tr><tr><td>MultiSentiNet</td><td>0.6984</td><td>0.6984</td><td>0.6886</td><td>0.6811</td><td>Concat(2)</td><td>0.8103</td><td>0.7799</td></tr><tr><td>HSAN</td><td>0.6988</td><td>0.6690</td><td>0.6796</td><td>0.6776</td><td>Concat(3)</td><td>0.8174</td><td>0.7874</td></tr><tr><td>Co-MN-Hop6</td><td>0.7051</td><td>0.7001</td><td>0.6892</td><td>0.6883</td><td>MMSD</td><td>0.8344</td><td>0.8018</td></tr><tr><td>MGNNS</td><td>0.7377</td><td>0.7270</td><td>0.7249</td><td>0.6934</td><td>D&R Net</td><td>0.8402</td><td>0.8060</td></tr><tr><td>CLMLF</td><td>0.7533</td><td>0.7346</td><td>0.7200</td><td>0.6983</td><td>CLMLF</td><td>0.8543</td><td>0.8487</td></tr><tr><td>MVCN</td><td>0.7606</td><td>0.7455</td><td>0.7207</td><td>0.7001</td><td>MVCN</td><td>0.8568</td><td>0.8523</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>D2R</td><td>0.8672</td><td>0.8625</td></tr></table>",
|
| 1387 |
+
"bbox": [
|
| 1388 |
+
515,
|
| 1389 |
+
121,
|
| 1390 |
+
877,
|
| 1391 |
+
294
|
| 1392 |
+
],
|
| 1393 |
+
"page_idx": 5
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"type": "text",
|
| 1397 |
+
"text": "Unimodal Baselines. For text-modality, we choose CNN, BiLSTM, BERT and TGNN as baselines. For image-modality, ResNet , ODSA and ViT are three popular models.",
|
| 1398 |
+
"bbox": [
|
| 1399 |
+
507,
|
| 1400 |
+
336,
|
| 1401 |
+
882,
|
| 1402 |
+
401
|
| 1403 |
+
],
|
| 1404 |
+
"page_idx": 5
|
| 1405 |
+
},
|
| 1406 |
+
{
|
| 1407 |
+
"type": "text",
|
| 1408 |
+
"text": "Multimodal Baselines. For MVSA-Single and MVSA-Multiple datasets, including: MultiSentiNet, HSAN, Co-MN-Hop6, MGNNS, CLMLF and MVCN. For HFM dataset, including: Concat(2) and Concat(3), MMSD, D&R Net. More details on baselines are provided in Appendix A.3.",
|
| 1409 |
+
"bbox": [
|
| 1410 |
+
507,
|
| 1411 |
+
406,
|
| 1412 |
+
884,
|
| 1413 |
+
502
|
| 1414 |
+
],
|
| 1415 |
+
"page_idx": 5
|
| 1416 |
+
},
|
| 1417 |
+
{
|
| 1418 |
+
"type": "text",
|
| 1419 |
+
"text": "4.2 Experiments results",
|
| 1420 |
+
"text_level": 1,
|
| 1421 |
+
"bbox": [
|
| 1422 |
+
507,
|
| 1423 |
+
533,
|
| 1424 |
+
712,
|
| 1425 |
+
550
|
| 1426 |
+
],
|
| 1427 |
+
"page_idx": 5
|
| 1428 |
+
},
|
| 1429 |
+
{
|
| 1430 |
+
"type": "text",
|
| 1431 |
+
"text": "We evaluate the effectiveness of our proposed framework by comparing it with the baseline models as shown in Table 1 and derive the following observations. 1). It is evident that both the text and image play crucial roles in sentiment detection. Therefore, it is imperative to fully excavate the affective cues from different modalities, which validate our tuition of designing two single symmetric branches of the two-channel interaction. In addition, the multi-modal models consistently outperform the unimodal models on performance because of fusing more sentiment information. 2). Our $\\mathrm{D}^2\\mathrm{R}$ achieves considerable improvement on Acc and F1 compared with the other strong baseline models on the three datasets, which suggests that dynamic routing network have advantages over regular static networks. 3). At last, we find that $\\mathrm{D}^2\\mathrm{R}$ achieves better results on HFM dataset compared to the MVSA datasets. The reason may be that for classification tasks with fewer label categories, the interaction patterns contained in the six units capture more accurate sentiment information.",
|
| 1432 |
+
"bbox": [
|
| 1433 |
+
505,
|
| 1434 |
+
567,
|
| 1435 |
+
882,
|
| 1436 |
+
921
|
| 1437 |
+
],
|
| 1438 |
+
"page_idx": 5
|
| 1439 |
+
},
|
| 1440 |
+
{
|
| 1441 |
+
"type": "page_number",
|
| 1442 |
+
"text": "3541",
|
| 1443 |
+
"bbox": [
|
| 1444 |
+
480,
|
| 1445 |
+
927,
|
| 1446 |
+
517,
|
| 1447 |
+
940
|
| 1448 |
+
],
|
| 1449 |
+
"page_idx": 5
|
| 1450 |
+
},
|
| 1451 |
+
{
|
| 1452 |
+
"type": "table",
|
| 1453 |
+
"img_path": "images/b4d262590566a98d5f4406f6e0551e27671d0b17108387fd48cb809f71e63821.jpg",
|
| 1454 |
+
"table_caption": [
|
| 1455 |
+
"Table 2: Ablation experiment results of our model."
|
| 1456 |
+
],
|
| 1457 |
+
"table_footnote": [],
|
| 1458 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MVSA-Single</td><td colspan=\"2\">MVSA-Multiple</td><td colspan=\"2\">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>w/o 1</td><td>0.7244</td><td>0.7234</td><td>0.7041</td><td>0.6931</td><td>0.8501</td><td>0.8438</td></tr><tr><td>w/o 2</td><td>0.7467</td><td>0.7465</td><td>0.7088</td><td>0.6880</td><td>0.8588</td><td>0.8529</td></tr><tr><td>w/o 3</td><td>0.7289</td><td>0.7155</td><td>0.7005</td><td>0.6823</td><td>0.8559</td><td>0.8500</td></tr><tr><td>w/o 4</td><td>0.7267</td><td>0.7284</td><td>0.6952</td><td>0.6661</td><td>0.8580</td><td>0.8539</td></tr><tr><td>w/o 5</td><td>0.7067</td><td>0.7082</td><td>0.6652</td><td>0.6661</td><td>0.8592</td><td>0.8543</td></tr><tr><td>w/o 6</td><td>0.7333</td><td>0.7208</td><td>0.6764</td><td>0.6702</td><td>0.8630</td><td>0.8582</td></tr><tr><td>w/o BF</td><td>0.7333</td><td>0.7265</td><td>0.6800</td><td>0.6707</td><td>0.8584</td><td>0.8537</td></tr><tr><td>w/o PR</td><td>0.7467</td><td>0.7482</td><td>0.7047</td><td>0.6986</td><td>0.8617</td><td>0.8570</td></tr></table>",
|
| 1459 |
+
"bbox": [
|
| 1460 |
+
136,
|
| 1461 |
+
107,
|
| 1462 |
+
467,
|
| 1463 |
+
225
|
| 1464 |
+
],
|
| 1465 |
+
"page_idx": 6
|
| 1466 |
+
},
|
| 1467 |
+
{
|
| 1468 |
+
"type": "text",
|
| 1469 |
+
"text": "4.3 Ablation Study",
|
| 1470 |
+
"text_level": 1,
|
| 1471 |
+
"bbox": [
|
| 1472 |
+
112,
|
| 1473 |
+
256,
|
| 1474 |
+
278,
|
| 1475 |
+
272
|
| 1476 |
+
],
|
| 1477 |
+
"page_idx": 6
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"type": "text",
|
| 1481 |
+
"text": "To further investigate the effectiveness of each component in $\\mathrm{D}^2\\mathrm{R}$ , we conduct a series of ablation studies: 1) w/o 1: we remove the SSSR unit; 2) w/o 2: we remove the USSR unit; 3) w/o 3: we remove the CLSSM unit; 4) w/o 4: we remove the CGSSA unit; 5) w/o 5: we remove the GLSSF unit; 6) w/o 6: we remove the MVSSS unit; 7) w/o BF: we remove the block fusion module; 8) w/o PR: we remove the path regularization term.",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
112,
|
| 1484 |
+
277,
|
| 1485 |
+
489,
|
| 1486 |
+
420
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 6
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "text",
|
| 1492 |
+
"text": "Table 2 shows the results of ablation study. It is evident that the performance after removing any of the components is worse than the original $\\mathrm{D}^2\\mathrm{R}$ , which demonstrates the effectiveness of each component. Specifically, for MVSA-Single and MVSA-Multiple datasets, w/o 5 degrades dramatically, it drops absolutely 0.0600 and 0.0507 on ACC, 0.0477 and 0.0424 on F1, respectively. This demonstrates that GLSSF unit can compensate for sentimental differences by capturing cross-modal global and local affective cues. At the same time, it verifies the rationality of calculating the sentiment similarity vector of cross-modal global and local information, suppressing irrelevant ones. For HFM dataset, w/o 1 has the most significant decline which indicates that the simplest SSSR unit plays an important role. We speculate that the reason may be that the HFM dataset has more simple text-image pairs. Moreover, w/o 6 achieve better results than others, only decrease 0.0042 on ACC and 0.0043 on F1 as HFM is a simple binary classification task dataset, the unit that capture sentiment information from complex multiple perspectives may play less important role. The performance of w/o BF declines distinctly. This suggests that block fusion benefits our dual-branch model by obtaining better sentiment representation. Particularly, for w/o PR, the ACC and F1 of the three datasets also show varying degrees of performance degradation. It proves the effectiveness of our proposed path regularization which consider the consistency",
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
112,
|
| 1495 |
+
423,
|
| 1496 |
+
489,
|
| 1497 |
+
921
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 6
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "table",
|
| 1503 |
+
"img_path": "images/6158ff50fa6f24646e13bf72401cabb064477b20d2c29f0094141c1e8b9ae696.jpg",
|
| 1504 |
+
"table_caption": [
|
| 1505 |
+
"Table 3: Soft router ablation study experiment results."
|
| 1506 |
+
],
|
| 1507 |
+
"table_footnote": [],
|
| 1508 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MVSA-Single</td><td colspan=\"2\">MVSA-Multiple</td><td colspan=\"2\">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>w/o Soft Router</td><td>0.7244</td><td>0.7199</td><td>0.6911</td><td>0.6799</td><td>0.8526</td><td>0.8470</td></tr><tr><td>RandomRouter</td><td>0.7067</td><td>0.7106</td><td>0.6894</td><td>0.6886</td><td>0.8517</td><td>0.8473</td></tr><tr><td>HardRouter</td><td>0.7378</td><td>0.7317</td><td>0.7082</td><td>0.7000</td><td>0.8567</td><td>0.8523</td></tr></table>",
|
| 1509 |
+
"bbox": [
|
| 1510 |
+
529,
|
| 1511 |
+
107,
|
| 1512 |
+
863,
|
| 1513 |
+
167
|
| 1514 |
+
],
|
| 1515 |
+
"page_idx": 6
|
| 1516 |
+
},
|
| 1517 |
+
{
|
| 1518 |
+
"type": "table",
|
| 1519 |
+
"img_path": "images/6fe6a1921dda2ea949c21b874a88da45b4b9ad4db8df5f26ccafb29a341b1ac5.jpg",
|
| 1520 |
+
"table_caption": [
|
| 1521 |
+
"Table 4: Cosine similarity calculations ablation study experiment results."
|
| 1522 |
+
],
|
| 1523 |
+
"table_footnote": [],
|
| 1524 |
+
"table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">MVSA-Single</td><td colspan=\"2\">MVSA-Multiple</td><td colspan=\"2\">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>Manhattan distance (L1)</td><td>0.7244</td><td>0.7232</td><td>0.6888</td><td>0.6778</td><td>0.8430</td><td>0.8395</td></tr><tr><td>Euclidean distance (L2)</td><td>0.7533</td><td>0.7441</td><td>0.7076</td><td>0.6985</td><td>0.8542</td><td>0.8492</td></tr><tr><td>Mean Squared Displacement (MSD)</td><td>0.7333</td><td>0.7292</td><td>0.7076</td><td>0.6922</td><td>0.8559</td><td>0.8510</td></tr></table>",
|
| 1525 |
+
"bbox": [
|
| 1526 |
+
514,
|
| 1527 |
+
225,
|
| 1528 |
+
878,
|
| 1529 |
+
278
|
| 1530 |
+
],
|
| 1531 |
+
"page_idx": 6
|
| 1532 |
+
},
|
| 1533 |
+
{
|
| 1534 |
+
"type": "text",
|
| 1535 |
+
"text": "of routing path and sentiment semantics.",
|
| 1536 |
+
"bbox": [
|
| 1537 |
+
507,
|
| 1538 |
+
309,
|
| 1539 |
+
811,
|
| 1540 |
+
323
|
| 1541 |
+
],
|
| 1542 |
+
"page_idx": 6
|
| 1543 |
+
},
|
| 1544 |
+
{
|
| 1545 |
+
"type": "text",
|
| 1546 |
+
"text": "We also execute three additional ablation studies to verify the rationality of our proposed soft router, including: 1) w/o Soft Router: we remove the soft router instead of selecting routing paths, 2) RandomRouter: we replace the soft router with the random router, deriving the path probability of each unit from a uniform distribution, 3) HardRouter: we replace the soft router with the hard router, introducing the gumbel-softmax trick to discretize path values. We report the experimental results in Table 3 and have the following observations: the metrics of $\\mathrm{D}^2\\mathrm{R}$ significantly outperform other three methods on all datasets, demonstrating the effectiveness of our proposed soft router equivalent to other methods. Moreover, hard router got the lightest drop in performance compared with random router and w/o soft router, we hypothesize that the reason may be that random router may introduce extra path noise into the model, while not using router deprives the model's ability to dynamically adapt to different inputs.",
|
| 1547 |
+
"bbox": [
|
| 1548 |
+
505,
|
| 1549 |
+
325,
|
| 1550 |
+
884,
|
| 1551 |
+
662
|
| 1552 |
+
],
|
| 1553 |
+
"page_idx": 6
|
| 1554 |
+
},
|
| 1555 |
+
{
|
| 1556 |
+
"type": "text",
|
| 1557 |
+
"text": "To validate the reliability of the cosine similarity calculations using embeddings obtained from different pre-trained models in the cross-modal local sentiment-semantic matching unit, we design more three ablation studies to compare the effect of the similarity distance calculation formulas we used and others on the final model's performance. The experimental results are shown in Table 4. It is clear that using cosine values to compute the similarity of embeddings from different pre-trained models is more efficient than other methods and has the most significant improvement in model's performance. At the same time, some previous works have verified the advantages of using cosine similarity calculations (Diao et al., 2021; Chen et al., 2022; Zhang et al., 2022).",
|
| 1558 |
+
"bbox": [
|
| 1559 |
+
507,
|
| 1560 |
+
664,
|
| 1561 |
+
884,
|
| 1562 |
+
921
|
| 1563 |
+
],
|
| 1564 |
+
"page_idx": 6
|
| 1565 |
+
},
|
| 1566 |
+
{
|
| 1567 |
+
"type": "page_number",
|
| 1568 |
+
"text": "3542",
|
| 1569 |
+
"bbox": [
|
| 1570 |
+
480,
|
| 1571 |
+
927,
|
| 1572 |
+
519,
|
| 1573 |
+
940
|
| 1574 |
+
],
|
| 1575 |
+
"page_idx": 6
|
| 1576 |
+
},
|
| 1577 |
+
{
|
| 1578 |
+
"type": "table",
|
| 1579 |
+
"img_path": "images/29a63e1bb0b40e72e2763825a539f5552b98c1dacf13b49f93b302fb7f03c052.jpg",
|
| 1580 |
+
"table_caption": [
|
| 1581 |
+
"Table 5: Experimental results of model computational complexity."
|
| 1582 |
+
],
|
| 1583 |
+
"table_footnote": [],
|
| 1584 |
+
"table_body": "<table><tr><td>Metric</td><td>MVSA-Single</td><td>MVSA-Multiple</td><td>HFM</td></tr><tr><td>Batch size</td><td>64</td><td>64</td><td>64</td></tr><tr><td>Model parameters</td><td>459.87M</td><td>459.87M</td><td>407.83M</td></tr><tr><td>FLOPs</td><td>18,221.84M</td><td>23,282.92M</td><td>20,855.04M</td></tr><tr><td>Inference time</td><td>192.65ms</td><td>230.35ms</td><td>164.60ms</td></tr><tr><td>Max Memory Reserved</td><td>19.14GB</td><td>21.14GB</td><td>19.03GB</td></tr><tr><td>Max Memory Allocated</td><td>7.12GB</td><td>7.05GB</td><td>6.32GB</td></tr><tr><td>GPU usage</td><td>NVIDIA 3090 GPU</td><td>NVIDIA 3090 GPU</td><td>NVIDIA 3090 GPU</td></tr></table>",
|
| 1585 |
+
"bbox": [
|
| 1586 |
+
124,
|
| 1587 |
+
121,
|
| 1588 |
+
478,
|
| 1589 |
+
190
|
| 1590 |
+
],
|
| 1591 |
+
"page_idx": 7
|
| 1592 |
+
},
|
| 1593 |
+
{
|
| 1594 |
+
"type": "text",
|
| 1595 |
+
"text": "4.4 Hyperparameter Analysis",
|
| 1596 |
+
"text_level": 1,
|
| 1597 |
+
"bbox": [
|
| 1598 |
+
112,
|
| 1599 |
+
221,
|
| 1600 |
+
363,
|
| 1601 |
+
236
|
| 1602 |
+
],
|
| 1603 |
+
"page_idx": 7
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"type": "text",
|
| 1607 |
+
"text": "To analyze the impact of the number of dynamic routing layers $L$ in our model, we conduct experiments on varying the layer of dynamic routing from 1 to 6. The results are shown in Figure 3. For MVSA-Single and MVSA-Multiple datasets, we can see that the performance metric F1 improves with the increase of dynamic routing layers in the range 1 to 4, and then drops slightly while the routing layers exceed 4. For HFM dataset, F1 improves with the increase of dynamic routing layers in the first 3 layers, and then decreases in the layers 4 to 6. The results show that increasing the number of routing layers in an appropriate range can improve the performance as more layers offer broader path space, thus increasing the ability of exploring more superior interaction patterns. However, when layers exceed 3 or 4, overfitting limits model optimization and hinders the path learning ability.",
|
| 1608 |
+
"bbox": [
|
| 1609 |
+
112,
|
| 1610 |
+
242,
|
| 1611 |
+
487,
|
| 1612 |
+
531
|
| 1613 |
+
],
|
| 1614 |
+
"page_idx": 7
|
| 1615 |
+
},
|
| 1616 |
+
{
|
| 1617 |
+
"type": "text",
|
| 1618 |
+
"text": "In addition, we also carry out several experiments on $\\lambda_{1}$ and $\\lambda_{2}$ to research the influence of the path regularization parameters $L_{pr}^{T2V}$ and $L_{pr}^{V2T}$ on the final prediction. The results are shown in Figure 3. For MVSA datasets, the performance first comes and goes before the saturation points $(\\lambda_{1} = 0.9, \\lambda_{2} = 0.3)$ , and then begins to decline when $\\lambda_{1}$ exceeds 0.9 and $\\lambda_{2}$ exceeds 0.3. We can infer that the saturation points $(\\lambda_{1} = 0.9, \\lambda_{2} = 0.3)$ can maximize the similarity of dynamic paths for examples with the same sentiment polarity. For HFM, the best $\\lambda_{1}$ is 0.6 and $\\lambda_{2}$ is 1.0. Then, a slight drop in performance occurs on other values. Apparently, excessively large $\\lambda_{1}$ and $\\lambda_{2}$ affect the performance on three datasets, the reason may be that overly exploring the path diversity leads to a terrible over-fitting phenomenon.",
|
| 1619 |
+
"bbox": [
|
| 1620 |
+
112,
|
| 1621 |
+
533,
|
| 1622 |
+
489,
|
| 1623 |
+
806
|
| 1624 |
+
],
|
| 1625 |
+
"page_idx": 7
|
| 1626 |
+
},
|
| 1627 |
+
{
|
| 1628 |
+
"type": "text",
|
| 1629 |
+
"text": "4.5 Computational Complexity Analysis",
|
| 1630 |
+
"text_level": 1,
|
| 1631 |
+
"bbox": [
|
| 1632 |
+
112,
|
| 1633 |
+
819,
|
| 1634 |
+
445,
|
| 1635 |
+
834
|
| 1636 |
+
],
|
| 1637 |
+
"page_idx": 7
|
| 1638 |
+
},
|
| 1639 |
+
{
|
| 1640 |
+
"type": "text",
|
| 1641 |
+
"text": "With the introduction of units and more paths, we perform complementary experiments to analyze the model's computational complexity, inference latency and parameter count. We report the model parameters, FLOPs, inference time, max memory",
|
| 1642 |
+
"bbox": [
|
| 1643 |
+
112,
|
| 1644 |
+
841,
|
| 1645 |
+
487,
|
| 1646 |
+
921
|
| 1647 |
+
],
|
| 1648 |
+
"page_idx": 7
|
| 1649 |
+
},
|
| 1650 |
+
{
|
| 1651 |
+
"type": "image",
|
| 1652 |
+
"img_path": "images/447ed474cdf3f19fdf09308f31e705070d2f13949a18ff9ea001ea278cd0d120.jpg",
|
| 1653 |
+
"image_caption": [
|
| 1654 |
+
"Figure 3: The influence of hyper-parameters."
|
| 1655 |
+
],
|
| 1656 |
+
"image_footnote": [],
|
| 1657 |
+
"bbox": [
|
| 1658 |
+
517,
|
| 1659 |
+
82,
|
| 1660 |
+
636,
|
| 1661 |
+
152
|
| 1662 |
+
],
|
| 1663 |
+
"page_idx": 7
|
| 1664 |
+
},
|
| 1665 |
+
{
|
| 1666 |
+
"type": "image",
|
| 1667 |
+
"img_path": "images/891e34249a268c80de4e9ad96ae512e650520453f2039e6265d9dd0f25e648fc.jpg",
|
| 1668 |
+
"image_caption": [],
|
| 1669 |
+
"image_footnote": [],
|
| 1670 |
+
"bbox": [
|
| 1671 |
+
638,
|
| 1672 |
+
82,
|
| 1673 |
+
757,
|
| 1674 |
+
151
|
| 1675 |
+
],
|
| 1676 |
+
"page_idx": 7
|
| 1677 |
+
},
|
| 1678 |
+
{
|
| 1679 |
+
"type": "image",
|
| 1680 |
+
"img_path": "images/cdf19ba1cc7c5350a8849994df088f30ebc1c8cb6b7d4d336f14e258d56cc952.jpg",
|
| 1681 |
+
"image_caption": [],
|
| 1682 |
+
"image_footnote": [],
|
| 1683 |
+
"bbox": [
|
| 1684 |
+
761,
|
| 1685 |
+
82,
|
| 1686 |
+
880,
|
| 1687 |
+
151
|
| 1688 |
+
],
|
| 1689 |
+
"page_idx": 7
|
| 1690 |
+
},
|
| 1691 |
+
{
|
| 1692 |
+
"type": "text",
|
| 1693 |
+
"text": "reserved and max memory allocated for the model on three different datasets in Table 5. FLOPs refer to the floating point operations, which are used to evaluate the model's computational complexity; inference time reflects the model's inference latency; model parameters reflect the model's total parameter count. On both MVSA datasets, the number of dynamic routing layers is set to 4, on HFM dataset, it is set to 3. Thus our model has more inference paths and parameter count on MVSA datasets than HFM dataset.",
|
| 1694 |
+
"bbox": [
|
| 1695 |
+
507,
|
| 1696 |
+
205,
|
| 1697 |
+
884,
|
| 1698 |
+
380
|
| 1699 |
+
],
|
| 1700 |
+
"page_idx": 7
|
| 1701 |
+
},
|
| 1702 |
+
{
|
| 1703 |
+
"type": "text",
|
| 1704 |
+
"text": "4.6 Visualization",
|
| 1705 |
+
"text_level": 1,
|
| 1706 |
+
"bbox": [
|
| 1707 |
+
507,
|
| 1708 |
+
398,
|
| 1709 |
+
658,
|
| 1710 |
+
412
|
| 1711 |
+
],
|
| 1712 |
+
"page_idx": 7
|
| 1713 |
+
},
|
| 1714 |
+
{
|
| 1715 |
+
"type": "text",
|
| 1716 |
+
"text": "To demonstrate the vital advantage of our dynamic reasoning sentiment methods. We thus show some images and visualize the path vectors learned in SAPAF module, which indicate that $\\mathrm{D}^2\\mathrm{R}$ can adaptively choose the best paths for different examples. Specifically, we use the t-SNE (Van der Maaten and Hinton, 2008) algorithm to map the concatenation path vector into a 2-dimensional Euclid space. Afterwards, we clustered these 2-dimensional vectors into 6 groups in different 6 colors. As shown in Figure 4, we could observe that the images related to obvious positive emotions (the points marked in brown and yellow) and the ones related to obvious negative emotions (the points marked in blue and green) can be well distinguished. For instance, there exists a large margin between brown points (associated with happy crowds) and blue points (associated with bad weather), because not only is there a semantic gap between \"crowds\" and \"weather\", but there is also a sentimental conflict between \"happy\" and \"bad\". Although both brown and green points are related to people, the sentiment differences between them are still significant, as a result, they are still wide apart in a 2-dimensional space. Besides, neutral examples serve as a demarcation between positive and negative examples and are located between the two. Pictures with no emotional inclination (the points marked in red and purple) are also can be well distinguished. Because the advanced fine-grained semantics is much different between red points (re",
|
| 1717 |
+
"bbox": [
|
| 1718 |
+
505,
|
| 1719 |
+
422,
|
| 1720 |
+
884,
|
| 1721 |
+
921
|
| 1722 |
+
],
|
| 1723 |
+
"page_idx": 7
|
| 1724 |
+
},
|
| 1725 |
+
{
|
| 1726 |
+
"type": "page_number",
|
| 1727 |
+
"text": "3543",
|
| 1728 |
+
"bbox": [
|
| 1729 |
+
480,
|
| 1730 |
+
927,
|
| 1731 |
+
519,
|
| 1732 |
+
940
|
| 1733 |
+
],
|
| 1734 |
+
"page_idx": 7
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"type": "image",
|
| 1738 |
+
"img_path": "images/8a789010f9b870cbbdcdc2ce55de4e1e67ce7bb6b952ed8e8096d995cb7b1f2e.jpg",
|
| 1739 |
+
"image_caption": [
|
| 1740 |
+
"Figure 4: Visualization of the learned path vectors."
|
| 1741 |
+
],
|
| 1742 |
+
"image_footnote": [],
|
| 1743 |
+
"bbox": [
|
| 1744 |
+
127,
|
| 1745 |
+
80,
|
| 1746 |
+
477,
|
| 1747 |
+
225
|
| 1748 |
+
],
|
| 1749 |
+
"page_idx": 8
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"type": "text",
|
| 1753 |
+
"text": "lated to logos) and purple points (related to foods). Our proposed soft router can make path choices based on these fine-grained semantic and sentiment information to the path selection. These results reveal that our $\\mathrm{D}^2\\mathrm{R}$ is able to adaptively learn specific semantic-related and sentiment-aware paths for diverse inputs, thus the distribution of learning paths is to a certain extent consistent with that of sentiment-semantic.",
|
| 1754 |
+
"bbox": [
|
| 1755 |
+
112,
|
| 1756 |
+
275,
|
| 1757 |
+
489,
|
| 1758 |
+
419
|
| 1759 |
+
],
|
| 1760 |
+
"page_idx": 8
|
| 1761 |
+
},
|
| 1762 |
+
{
|
| 1763 |
+
"type": "text",
|
| 1764 |
+
"text": "4.7 Case study",
|
| 1765 |
+
"text_level": 1,
|
| 1766 |
+
"bbox": [
|
| 1767 |
+
112,
|
| 1768 |
+
432,
|
| 1769 |
+
245,
|
| 1770 |
+
448
|
| 1771 |
+
],
|
| 1772 |
+
"page_idx": 8
|
| 1773 |
+
},
|
| 1774 |
+
{
|
| 1775 |
+
"type": "text",
|
| 1776 |
+
"text": "To further verify the adaptability of $\\mathrm{D}^2\\mathrm{R}$ , we qualitatively visualize the routing process for several typical examples. As shown in Figure 5, we have the following observations: 1) Simpler text-image pairs tend to activate less paths as their sentiment polarity is obvious. For example, the sentence in Fig. 5 (a) conveys a distinctly positive emotion (love), which may not require much image information; 2) Cross-modal global content analysis can activate more paths for some examples to obtain accurate affective cues. In Fig. 5 (b), We can't tell the sentiment polarity of the post from only text-modality (image-modality), but when we focus on the entire text-image pairs, we can see that it's a negative example (a busted pen soiled hands like doing actual manual labor and working on the car). 3) Additional attention to fine-grained cross-modal local information can activate more paths to capture nuanced sentiment information. Fig. 5 (c) shows two intact strawberries and one damaged strawberry. We first understand the meaning of the entire text, and then paying extra attention to the comparison between \"destroyed\" in text and \"damaged strawberry\" in image to accurately classify it as a negative example. 4) The elements in the first three examples are relatively single (book, hand or food), their interaction patterns and routing paths are less complex than the fourth, because there exist many elements in Fig. 5 (d). (\"bule sky\",",
|
| 1777 |
+
"bbox": [
|
| 1778 |
+
112,
|
| 1779 |
+
453,
|
| 1780 |
+
489,
|
| 1781 |
+
921
|
| 1782 |
+
],
|
| 1783 |
+
"page_idx": 8
|
| 1784 |
+
},
|
| 1785 |
+
{
|
| 1786 |
+
"type": "image",
|
| 1787 |
+
"img_path": "images/e2031b18ca45b1aebbf7496057b5a409c842078ed209b56392813cc4e2d400d3.jpg",
|
| 1788 |
+
"image_caption": [
|
| 1789 |
+
"Figure 5: Path visualisation of interaction patterns for four typical cases."
|
| 1790 |
+
],
|
| 1791 |
+
"image_footnote": [],
|
| 1792 |
+
"bbox": [
|
| 1793 |
+
515,
|
| 1794 |
+
80,
|
| 1795 |
+
884,
|
| 1796 |
+
300
|
| 1797 |
+
],
|
| 1798 |
+
"page_idx": 8
|
| 1799 |
+
},
|
| 1800 |
+
{
|
| 1801 |
+
"type": "text",
|
| 1802 |
+
"text": "\"white clouds\", \"green trees\", \"high mountains\" and \"exquisite tables\"). We need to focus on all the elements one by one against the text, and then analyze the entire text and image to determine the final sentiment polarity.",
|
| 1803 |
+
"bbox": [
|
| 1804 |
+
507,
|
| 1805 |
+
366,
|
| 1806 |
+
882,
|
| 1807 |
+
447
|
| 1808 |
+
],
|
| 1809 |
+
"page_idx": 8
|
| 1810 |
+
},
|
| 1811 |
+
{
|
| 1812 |
+
"type": "text",
|
| 1813 |
+
"text": "5 Conclusion",
|
| 1814 |
+
"text_level": 1,
|
| 1815 |
+
"bbox": [
|
| 1816 |
+
509,
|
| 1817 |
+
463,
|
| 1818 |
+
640,
|
| 1819 |
+
478
|
| 1820 |
+
],
|
| 1821 |
+
"page_idx": 8
|
| 1822 |
+
},
|
| 1823 |
+
{
|
| 1824 |
+
"type": "text",
|
| 1825 |
+
"text": "This paper presents a novel dynamic neural network model for multimodal sentiment detection called $\\mathrm{D}^2\\mathrm{R}$ , which is the first work on exploring diverse interaction patterns using dynamic routing mechanisms. Specifically, we apply six units to simulate various levels of inter- and intra-modal interaction patterns. A soft router is integrated to adapt flexibly to diverse image-text pairs through routing path learning. Additionally, we introduce a path regularization term to measure sentiment-path similarity between samples and optimize the inference path. Comprehensive experiments demonstrate that our model achieves state-of-the-art performance on three benchmark datasets.",
|
| 1826 |
+
"bbox": [
|
| 1827 |
+
507,
|
| 1828 |
+
491,
|
| 1829 |
+
884,
|
| 1830 |
+
715
|
| 1831 |
+
],
|
| 1832 |
+
"page_idx": 8
|
| 1833 |
+
},
|
| 1834 |
+
{
|
| 1835 |
+
"type": "text",
|
| 1836 |
+
"text": "Limitations",
|
| 1837 |
+
"text_level": 1,
|
| 1838 |
+
"bbox": [
|
| 1839 |
+
509,
|
| 1840 |
+
732,
|
| 1841 |
+
613,
|
| 1842 |
+
746
|
| 1843 |
+
],
|
| 1844 |
+
"page_idx": 8
|
| 1845 |
+
},
|
| 1846 |
+
{
|
| 1847 |
+
"type": "text",
|
| 1848 |
+
"text": "At this stage, we concentrate on two limitations of this work, aiming to inspire future potential research directions.",
|
| 1849 |
+
"bbox": [
|
| 1850 |
+
507,
|
| 1851 |
+
760,
|
| 1852 |
+
882,
|
| 1853 |
+
806
|
| 1854 |
+
],
|
| 1855 |
+
"page_idx": 8
|
| 1856 |
+
},
|
| 1857 |
+
{
|
| 1858 |
+
"type": "text",
|
| 1859 |
+
"text": "- For multimodal sentiment analysis of social media posts, incorporating more external knowledge to enrich sentiment semantic information could improve the model's predictive performance. Our model ignores the importance of external knowledge for this task.",
|
| 1860 |
+
"bbox": [
|
| 1861 |
+
531,
|
| 1862 |
+
825,
|
| 1863 |
+
884,
|
| 1864 |
+
921
|
| 1865 |
+
],
|
| 1866 |
+
"page_idx": 8
|
| 1867 |
+
},
|
| 1868 |
+
{
|
| 1869 |
+
"type": "page_number",
|
| 1870 |
+
"text": "3544",
|
| 1871 |
+
"bbox": [
|
| 1872 |
+
480,
|
| 1873 |
+
927,
|
| 1874 |
+
519,
|
| 1875 |
+
940
|
| 1876 |
+
],
|
| 1877 |
+
"page_idx": 8
|
| 1878 |
+
},
|
| 1879 |
+
{
|
| 1880 |
+
"type": "text",
|
| 1881 |
+
"text": "- Multimodal dynamic routing networks can be extended to other multimodal tasks on social media, representing a primary focus for our future research.",
|
| 1882 |
+
"bbox": [
|
| 1883 |
+
137,
|
| 1884 |
+
84,
|
| 1885 |
+
487,
|
| 1886 |
+
148
|
| 1887 |
+
],
|
| 1888 |
+
"page_idx": 9
|
| 1889 |
+
},
|
| 1890 |
+
{
|
| 1891 |
+
"type": "text",
|
| 1892 |
+
"text": "Acknowledgement",
|
| 1893 |
+
"text_level": 1,
|
| 1894 |
+
"bbox": [
|
| 1895 |
+
114,
|
| 1896 |
+
164,
|
| 1897 |
+
278,
|
| 1898 |
+
181
|
| 1899 |
+
],
|
| 1900 |
+
"page_idx": 9
|
| 1901 |
+
},
|
| 1902 |
+
{
|
| 1903 |
+
"type": "text",
|
| 1904 |
+
"text": "This work was supported in part by Guangdong Basic and Applied Basic Research Foundation (2023A1515011370), National Natural Science Foundation of China (32371114), Characteristic Innovation Projects of Guangdong Colleges and Universities (2018KTSCX049), International Scientific and Technological Cooperation Project of Huangpu and Development Districts in Guangzhou (2022GH01, 2023GH05).",
|
| 1905 |
+
"bbox": [
|
| 1906 |
+
112,
|
| 1907 |
+
192,
|
| 1908 |
+
490,
|
| 1909 |
+
336
|
| 1910 |
+
],
|
| 1911 |
+
"page_idx": 9
|
| 1912 |
+
},
|
| 1913 |
+
{
|
| 1914 |
+
"type": "text",
|
| 1915 |
+
"text": "References",
|
| 1916 |
+
"text_level": 1,
|
| 1917 |
+
"bbox": [
|
| 1918 |
+
114,
|
| 1919 |
+
367,
|
| 1920 |
+
213,
|
| 1921 |
+
382
|
| 1922 |
+
],
|
| 1923 |
+
"page_idx": 9
|
| 1924 |
+
},
|
| 1925 |
+
{
|
| 1926 |
+
"type": "list",
|
| 1927 |
+
"sub_type": "ref_text",
|
| 1928 |
+
"list_items": [
|
| 1929 |
+
"Hedi Ben-Younes, Remi Cadene, Nicolas Thome, and Matthieu Cord. 2019. Block: Bilinear superdiagonal fusion for visual question answering and visual relationship detection. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 8102-8109.",
|
| 1930 |
+
"Yitao Cai, Huiyu Cai, and Xiaojun Wan. 2019. Multimodal sarcasm detection in twitter with hierarchical fusion model. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 2506-2515.",
|
| 1931 |
+
"Jianan Chen, Lu Zhang, Qiong Wang, Cong Bai, and Kidiyo Kpalma. 2022. Intra-modal constraint loss for image-text retrieval. In 2022 IEEE International Conference on Image Processing (ICIP), pages 4023-4027. IEEE.",
|
| 1932 |
+
"Yifan Chen, Haoliang Xiong, Kuntao Li, Weixing Mai, Yun Xue, Qianhua Cai, and Fenghuan Li. 2024. Relevance-aware visual entity filter network for multimodal aspect-based sentiment analysis. International Journal of Machine Learning and Cybernetics, pages 1-14.",
|
| 1933 |
+
"Haiwen Diao, Ying Zhang, Lin Ma, and Hutchuan Lu. 2021. Similarity reasoning and filtration for imag-text matching. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 1218-1226.",
|
| 1934 |
+
"Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations."
|
| 1935 |
+
],
|
| 1936 |
+
"bbox": [
|
| 1937 |
+
115,
|
| 1938 |
+
391,
|
| 1939 |
+
489,
|
| 1940 |
+
920
|
| 1941 |
+
],
|
| 1942 |
+
"page_idx": 9
|
| 1943 |
+
},
|
| 1944 |
+
{
|
| 1945 |
+
"type": "list",
|
| 1946 |
+
"sub_type": "ref_text",
|
| 1947 |
+
"list_items": [
|
| 1948 |
+
"Yudong Han, Jianhua Yin, Jianlong Wu, Yinwei Wei, and Liqiang Nie. 2023. Semantic-aware modular capsule routing for visual question answering. IEEE Transactions on Image Processing.",
|
| 1949 |
+
"Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778.",
|
| 1950 |
+
"Lianzhe Huang, Dehong Ma, Sujian Li, Xiaodong Zhang, and Houfeng Wang. 2019. Text level graph neural network for text classification. 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 3444-3450, Hong Kong, China. Association for Computational Linguistics.",
|
| 1951 |
+
"Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the naacL-HLT, volume 1, page 2.",
|
| 1952 |
+
"Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1746-1751, Doha, Qatar. Association for Computational Linguistics.",
|
| 1953 |
+
"Xingye Li, Jin Liu, Yurong Xie, Peizhu Gong, Xiliang Zhang, and Huihua He. 2024. Magdra: a multimodal attention graph network with dynamic routing-by-agreement for multi-label emotion recognition. Knowledge-Based Systems, 283:111126.",
|
| 1954 |
+
"Zhen Li, Bing Xu, Conghui Zhu, and Tiejun Zhao. 2022. CLMLF: a contrastive learning and multi-layer fusion method for multimodal sentiment detection. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2282-2294, Seattle, United States. Association for Computational Linguistics.",
|
| 1955 |
+
"Bin Liang, Chenwei Lou, Xiang Li, Lin Gui, Min Yang, and Ruifeng Xu. 2021. Multi-modal sarcasm detection with interactive in-modal and cross-modal graphs. In Proceedings of the 29th ACM international conference on multimedia, pages 4707-4715.",
|
| 1956 |
+
"Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. 2017. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE international conference on computer vision, pages 2736-2744.",
|
| 1957 |
+
"Weixing Mai, Zhengxuan Zhang, Yifan Chen, Kuntao Li, and Yun Xue. 2024. Geda: Improving training data with large language models for aspect sentiment triplet extraction. Knowledge-Based Systems, 301:112289.",
|
| 1958 |
+
"Teng Niu, Shiai Zhu, Lei Pang, and Abdulmotaleb El Saddik. 2016. Sentiment analysis on multi-view"
|
| 1959 |
+
],
|
| 1960 |
+
"bbox": [
|
| 1961 |
+
510,
|
| 1962 |
+
85,
|
| 1963 |
+
884,
|
| 1964 |
+
920
|
| 1965 |
+
],
|
| 1966 |
+
"page_idx": 9
|
| 1967 |
+
},
|
| 1968 |
+
{
|
| 1969 |
+
"type": "page_number",
|
| 1970 |
+
"text": "3545",
|
| 1971 |
+
"bbox": [
|
| 1972 |
+
480,
|
| 1973 |
+
928,
|
| 1974 |
+
519,
|
| 1975 |
+
940
|
| 1976 |
+
],
|
| 1977 |
+
"page_idx": 9
|
| 1978 |
+
},
|
| 1979 |
+
{
|
| 1980 |
+
"type": "list",
|
| 1981 |
+
"sub_type": "ref_text",
|
| 1982 |
+
"list_items": [
|
| 1983 |
+
"social data. In MultiMedia Modeling: 22nd International Conference, MMM 2016, Miami, FL, USA, January 4-6, 2016, Proceedings, Part II 22, pages 15-27. Springer.",
|
| 1984 |
+
"Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. 2018. Film: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI conference on artificial intelligence, volume 32.",
|
| 1985 |
+
"Leigang Qu, Meng Liu, Jianlong Wu, Zan Gao, and Liqiang Nie. 2021. Dynamic modality interaction modeling for image-text retrieval. In Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1104-1113.",
|
| 1986 |
+
"Rossano Schifanella, Paloma De Juan, Joel Tetreault, and Liangliang Cao. 2016. Detecting sarcasm in multimodal social platforms. In Proceedings of the 24th ACM international conference on Multimedia, pages 1136-1145.",
|
| 1987 |
+
"Thomas Sutter, Imant Daunhawer, and Julia Vogt. 2020. Multimodal generative learning utilizing jensen-shannon-divergence. Advances in neural information processing systems, 33:6100-6110.",
|
| 1988 |
+
"Yuan Tian, Nan Xu, Ruike Zhang, and Wenji Mao. 2023. Dynamic routing transformer network for multimodal sarcasm detection. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2468-2480, Toronto, Canada. Association for Computational Linguistics.",
|
| 1989 |
+
"Laurens Van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-sne. Journal of machine learning research, 9(11).",
|
| 1990 |
+
"Andreas Veit and Serge Belongie. 2018. Convolutional networks with adaptive inference graphs. In Proceedings of the European conference on computer vision (ECCV), pages 3-18.",
|
| 1991 |
+
"Yiwei Wei, Shaozu Yuan, Ruosong Yang, Lei Shen, Zhangmeizhi Li, Longbiao Wang, and Meng Chen. 2023. Tackling modality heterogeneity with multiview calibration network for multimodal sentiment detection. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5240-5252.",
|
| 1992 |
+
"Nan Xu. 2017. Analyzing multimodal public sentiment based on hierarchical semantic attentional network. In 2017 IEEE international conference on intelligence and security informatics (ISI), pages 152-154. IEEE.",
|
| 1993 |
+
"Nan Xu and Wenji Mao. 2017. Multisentinet: A deep semantic network for multimodal sentiment analysis. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, pages 2399-2402."
|
| 1994 |
+
],
|
| 1995 |
+
"bbox": [
|
| 1996 |
+
115,
|
| 1997 |
+
85,
|
| 1998 |
+
487,
|
| 1999 |
+
917
|
| 2000 |
+
],
|
| 2001 |
+
"page_idx": 10
|
| 2002 |
+
},
|
| 2003 |
+
{
|
| 2004 |
+
"type": "list",
|
| 2005 |
+
"sub_type": "ref_text",
|
| 2006 |
+
"list_items": [
|
| 2007 |
+
"Nan Xu, Wenji Mao, and Guandan Chen. 2018. A comemory network for multimodal sentiment analysis. In The 41st international ACM SIGIR conference on research & development in information retrieval, pages 929-932.",
|
| 2008 |
+
"Nan Xu, Zhixiong Zeng, and Wenji Mao. 2020. Reasoning with multimodal sarcastic tweets via modeling cross-modality contrast and semantic association. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 3777-3786.",
|
| 2009 |
+
"Xiaocui Yang, Shi Feng, Daling Wang, and Yifei Zhang. 2020. Image-text multimodal emotion classification via multi-view attentional network. IEEE Transactions on Multimedia, 23:4014-4026.",
|
| 2010 |
+
"Xiaocui Yang, Shi Feng, Yifei Zhang, and Daling Wang. 2021. Multimodal sentiment detection based on multi-channel graph neural networks. 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 328-339.",
|
| 2011 |
+
"Lin Yue, Weitong Chen, Xue Li, Wanli Zuo, and Minghao Yin. 2019. A survey of sentiment analysis in social media. Knowledge and Information Systems, 60:617-663.",
|
| 2012 |
+
"Huatian Zhang, Zhendong Mao, Kun Zhang, and Yongdong Zhang. 2022. Show your faith: Cross-modal confidence-aware network for image-text matching. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pages 3262-3270.",
|
| 2013 |
+
"Lei Zhang, Shuai Wang, and Bing Liu. 2018. Deep learning for sentiment analysis: A survey. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 8(4):e1253.",
|
| 2014 |
+
"Zhengxuan Zhang, Weixing Mai, Haoliang Xiong, Chuhan Wu, and Yun Xue. 2023. A token-wise graph-based framework for multimodal named entity recognition. In 2023 IEEE International Conference on Multimedia and Expo (ICME), pages 2153-2158. IEEE.",
|
| 2015 |
+
"Weiyu Zhong, Zhengxuan Zhang, Qiaofeng Wu, Yun Xue, and Qianhua Cai. 2024. A semantic enhancement framework for multimodal sarcasm detection. Mathematics, 12(2):317.",
|
| 2016 |
+
"Peng Zhou, Wei Shi, Jun Tian, Zhenyu Qi, Bingchen Li, Hongwei Hao, and Bo Xu. 2016. Attention-based bidirectional long short-term memory networks for relation classification. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 207-212, Berlin, Germany. Association for Computational Linguistics.",
|
| 2017 |
+
"Yiyi Zhou, Tianhe Ren, Chaoyang Zhu, Xiaoshuai Sun, Jianzhuang Liu, Xinghao Ding, Mingliang Xu, and Rongrong Ji. 2021. Trar: Routing the attention spans"
|
| 2018 |
+
],
|
| 2019 |
+
"bbox": [
|
| 2020 |
+
510,
|
| 2021 |
+
85,
|
| 2022 |
+
882,
|
| 2023 |
+
920
|
| 2024 |
+
],
|
| 2025 |
+
"page_idx": 10
|
| 2026 |
+
},
|
| 2027 |
+
{
|
| 2028 |
+
"type": "page_number",
|
| 2029 |
+
"text": "3546",
|
| 2030 |
+
"bbox": [
|
| 2031 |
+
480,
|
| 2032 |
+
928,
|
| 2033 |
+
519,
|
| 2034 |
+
940
|
| 2035 |
+
],
|
| 2036 |
+
"page_idx": 10
|
| 2037 |
+
},
|
| 2038 |
+
{
|
| 2039 |
+
"type": "text",
|
| 2040 |
+
"text": "in transformer for visual question answering. In Proceedings of the IEEE/CVF international conference on computer vision, pages 2074-2084.",
|
| 2041 |
+
"bbox": [
|
| 2042 |
+
132,
|
| 2043 |
+
85,
|
| 2044 |
+
487,
|
| 2045 |
+
124
|
| 2046 |
+
],
|
| 2047 |
+
"page_idx": 11
|
| 2048 |
+
},
|
| 2049 |
+
{
|
| 2050 |
+
"type": "text",
|
| 2051 |
+
"text": "Lei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang, and Rynson WH Lau. 2023. Biformer: Vision transformer with bi-level routing attention. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10323-10333.",
|
| 2052 |
+
"bbox": [
|
| 2053 |
+
114,
|
| 2054 |
+
142,
|
| 2055 |
+
489,
|
| 2056 |
+
209
|
| 2057 |
+
],
|
| 2058 |
+
"page_idx": 11
|
| 2059 |
+
},
|
| 2060 |
+
{
|
| 2061 |
+
"type": "text",
|
| 2062 |
+
"text": "A Appendix",
|
| 2063 |
+
"text_level": 1,
|
| 2064 |
+
"bbox": [
|
| 2065 |
+
114,
|
| 2066 |
+
230,
|
| 2067 |
+
236,
|
| 2068 |
+
244
|
| 2069 |
+
],
|
| 2070 |
+
"page_idx": 11
|
| 2071 |
+
},
|
| 2072 |
+
{
|
| 2073 |
+
"type": "text",
|
| 2074 |
+
"text": "A.1 Dataset",
|
| 2075 |
+
"text_level": 1,
|
| 2076 |
+
"bbox": [
|
| 2077 |
+
114,
|
| 2078 |
+
260,
|
| 2079 |
+
223,
|
| 2080 |
+
273
|
| 2081 |
+
],
|
| 2082 |
+
"page_idx": 11
|
| 2083 |
+
},
|
| 2084 |
+
{
|
| 2085 |
+
"type": "text",
|
| 2086 |
+
"text": "We assess our model by conducting experiments on three publicly available benchmark datasets which are MVSA-Single, MVSA-Multiple (Niu et al., 2016), and HFM (Cai et al., 2019). MVSA-Single and MVSA-Multiple datasets collect data from Twitter, each text-image pair is labeled by a single sentiment. Both of them have three categories: positive, neutral, and negative. For a fair comparison, we process the original two MVSA datasets in the same way as Xu and Mao (2017). HFM dataset also collects data from Twitter, which has two sentimental categories: positive and negative. Following Cai et al. (2019), we adopt the same data preprocessing method for experiments. The statistics of these datasets are shown in Table 6.",
|
| 2087 |
+
"bbox": [
|
| 2088 |
+
112,
|
| 2089 |
+
284,
|
| 2090 |
+
489,
|
| 2091 |
+
539
|
| 2092 |
+
],
|
| 2093 |
+
"page_idx": 11
|
| 2094 |
+
},
|
| 2095 |
+
{
|
| 2096 |
+
"type": "text",
|
| 2097 |
+
"text": "A.2 Implementation Details",
|
| 2098 |
+
"text_level": 1,
|
| 2099 |
+
"bbox": [
|
| 2100 |
+
114,
|
| 2101 |
+
558,
|
| 2102 |
+
347,
|
| 2103 |
+
573
|
| 2104 |
+
],
|
| 2105 |
+
"page_idx": 11
|
| 2106 |
+
},
|
| 2107 |
+
{
|
| 2108 |
+
"type": "text",
|
| 2109 |
+
"text": "For a fair comparison, following the processing in Wei et al. (2023), we adopt the pre-trained BERT-base-uncased model (Kenton and Toutanova, 2019) as the text-encoder to embed each word of the text, and utilize the pre-trained ViT model (Dosovitskiy et al., 2020) as the image-encoder to embed each region of the image. The learning rate is $1e - 5$ for MVSA-Single and MVSA-Multiple datasets, $2e - 5$ for HFM dataset. We train the model for 20 epochs with mini-batch size 64. For MVSA-Single and MVSA-Multiple datasets, we establish the number of dynamic routing layers $L$ as 4, the JS loss weight $\\lambda_{1}$ as 0.9 and $\\lambda_{2}$ as 0.3. For HFM dataset, we set the number of dynamic routing layer to 3, the JS loss weight $\\lambda_{1}$ to 0.6 and $\\lambda_{2}$ to 1.0. Adam optimizer is also utilized to train the model. Dropout and early stop are used to avoid overfitting. Based on prior configurations, we utilize ACC and Weighted F1 as evaluation metrics for the MVSA datasets and ACC and Macro-F1 for the HFM to assess the model's performance.",
|
| 2110 |
+
"bbox": [
|
| 2111 |
+
112,
|
| 2112 |
+
583,
|
| 2113 |
+
489,
|
| 2114 |
+
920
|
| 2115 |
+
],
|
| 2116 |
+
"page_idx": 11
|
| 2117 |
+
},
|
| 2118 |
+
{
|
| 2119 |
+
"type": "table",
|
| 2120 |
+
"img_path": "images/8ef8734728d56ae891f3d1a6dfa10cb859b51d246c938da9fad98fdf321c254a.jpg",
|
| 2121 |
+
"table_caption": [
|
| 2122 |
+
"Table 6: Statistics of the dataset"
|
| 2123 |
+
],
|
| 2124 |
+
"table_footnote": [],
|
| 2125 |
+
"table_body": "<table><tr><td>Dataset</td><td>Training</td><td>Validating</td><td>Testing</td><td>Total</td></tr><tr><td>MVSA-S</td><td>3611</td><td>450</td><td>450</td><td>4511</td></tr><tr><td>MVSA-M</td><td>13624</td><td>1700</td><td>1700</td><td>17024</td></tr><tr><td>HFM</td><td>19816</td><td>2410</td><td>2409</td><td>24635</td></tr></table>",
|
| 2126 |
+
"bbox": [
|
| 2127 |
+
514,
|
| 2128 |
+
108,
|
| 2129 |
+
882,
|
| 2130 |
+
168
|
| 2131 |
+
],
|
| 2132 |
+
"page_idx": 11
|
| 2133 |
+
},
|
| 2134 |
+
{
|
| 2135 |
+
"type": "text",
|
| 2136 |
+
"text": "A.3 Baseline Models",
|
| 2137 |
+
"text_level": 1,
|
| 2138 |
+
"bbox": [
|
| 2139 |
+
509,
|
| 2140 |
+
197,
|
| 2141 |
+
687,
|
| 2142 |
+
211
|
| 2143 |
+
],
|
| 2144 |
+
"page_idx": 11
|
| 2145 |
+
},
|
| 2146 |
+
{
|
| 2147 |
+
"type": "text",
|
| 2148 |
+
"text": "We compare our model with unimodal baseline models and multimodal baseline models.",
|
| 2149 |
+
"bbox": [
|
| 2150 |
+
507,
|
| 2151 |
+
218,
|
| 2152 |
+
880,
|
| 2153 |
+
247
|
| 2154 |
+
],
|
| 2155 |
+
"page_idx": 11
|
| 2156 |
+
},
|
| 2157 |
+
{
|
| 2158 |
+
"type": "text",
|
| 2159 |
+
"text": "Unimodal Baselines. For text modality, we choose CNN (Kim, 2014), BiLSTM (Zhou et al., 2016), BERT (Kenton and Toutanova, 2019) and TGNN (Huang et al., 2019) as baselines since they are well-known models for text classification. For image modality, ResNet (He et al., 2016) and ViT (Dosovitskiy et al., 2020) are two popular models for image classification task, ODSA (Yang et al., 2020) is an image sentiment analysis model.",
|
| 2160 |
+
"bbox": [
|
| 2161 |
+
507,
|
| 2162 |
+
250,
|
| 2163 |
+
882,
|
| 2164 |
+
393
|
| 2165 |
+
],
|
| 2166 |
+
"page_idx": 11
|
| 2167 |
+
},
|
| 2168 |
+
{
|
| 2169 |
+
"type": "text",
|
| 2170 |
+
"text": "Multimodal Baselines. For MVSA-Single and MVSA-Multiple datasets, the baselines include: MultiSentiNet (Xu and Mao, 2017), a deep attention-based semantic network for multimodal sentiment analysis; HSAN (Xu, 2017), a hierarchical semantic attentional network based on image captions for multimodal sentiment analysis; Co-MN-Hop6 (Xu et al., 2018) utilize co-memory network to iteratively model the interactions between multiple modalities; MGNNS (Yang et al., 2021) adopt multi-channel graph neural networks with sentiment-awareness for image-text sentiment detection; CLMLF (Li et al., 2022) propose a contrastive learning and multi-layer fusion method for multimodal sentiment detection; MVCN (Wei et al., 2023) is the previous SOTA model that design a multi-view calibration network to solve the modality heterogeneity for multimodal sentiment detection. For HFM dataset, we compare two variants of Concat (Schifanella et al., 2016): Concat(2) means concatenating text and image, while Concat(3) introduces one more image attribute features; MMSD (Cai et al., 2019) is a hierarchical multimodal features model for fusing text, image, and image attributes; D&R Net (Xu et al., 2020) proposes a decomposition and relation network to fuse the text, image, and visual attributes features.",
|
| 2171 |
+
"bbox": [
|
| 2172 |
+
507,
|
| 2173 |
+
395,
|
| 2174 |
+
884,
|
| 2175 |
+
829
|
| 2176 |
+
],
|
| 2177 |
+
"page_idx": 11
|
| 2178 |
+
},
|
| 2179 |
+
{
|
| 2180 |
+
"type": "page_number",
|
| 2181 |
+
"text": "3547",
|
| 2182 |
+
"bbox": [
|
| 2183 |
+
480,
|
| 2184 |
+
927,
|
| 2185 |
+
519,
|
| 2186 |
+
940
|
| 2187 |
+
],
|
| 2188 |
+
"page_idx": 11
|
| 2189 |
+
}
|
| 2190 |
+
]
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/12a8380e-9771-4902-9865-7b459754baa8_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9507771f2ffa1620ea50476d070168ec25a9bd955c9745e83d5cc797a28f5105
|
| 3 |
+
size 1473445
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/full.md
ADDED
|
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# $\mathbf{D}^{2}\mathbf{R}$ : Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection
|
| 2 |
+
|
| 3 |
+
Yifan Chen $^{1*}$ , Kuntao Li $^{1*}$ , Weixing Mai $^{1}$ , Qiaofeng Wu $^{1}$ , Yun Xue $^{1\dagger}$ , Fenghuan Li $^{2\dagger}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>Guangdong Provincial Key Laboratory of Quantum Engineering and Quantum Materials, School of Electronics and Information Engineering, South China Normal University <sup>2</sup>School of Computer Science and Technology, Guangdong University of Technology
|
| 6 |
+
|
| 7 |
+
{chenyifan,likuntao,maiwx,scnu_wqf,xueyun}@m.scnu.edu.cn fhl20180910@gdut.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Multimodal sentiment detection aims to classify the sentiment polarity of a given image-text pair. Existing approaches apply the same fixed framework to all input samples, lacking the flexibility to adapt to different image-text pairs. Furthermore, the interaction patterns of these methods are overly homogenized, limiting the model's capacity to extract multimodal sentiment information effectively. In this paper, we develop a Dual-Branch Dynamic Routing Network $(\mathbf{D}^2\mathbf{R})$ , which is the first multimodal dynamic interaction model towards multimodal sentiment detection. Specifically, we design six independent units to simulate inter- and intramodal information interactions without depending on any existing fixed frameworks. Additionally, we configure a soft router in each unit to guide path generation and introduce the path regularization term to optimize these inference paths. Comprehensive experiments on three publicly available datasets demonstrate the superiority of our proposed model over state-of-the-art methods.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
With the growth of the Internet, people increasingly post multimodal messages on social media platforms to share opinions and express emotions (Yue et al., 2019; Mai et al., 2024; Chen et al., 2024). Consequently, multimodal sentiment detection has attracted significant attention in recent academic and industrial research, proving beneficial for tasks such as product review analysis and political opinion mining (Liang et al., 2021; Zhang et al., 2023). Unlike unimodal data, multimodal data provides richer information to reveal a person's true emotions (Zhang et al., 2018; Liang et al., 2021; Zhong et al., 2024).
|
| 16 |
+
|
| 17 |
+
In this work, we focus on multimodal sentiment detection for image-text pairs in social media posts.
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
(a) Text: What do you think of these candles from free London. We love you! If you feel the same today. (Positive)
|
| 21 |
+
|
| 22 |
+

|
| 23 |
+
(b) Text: When Luke forwards every fan and updates the account, except you. (Negative)
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
(c) Text: Ridge Avenue is closed after a partial building collapse and electrical fire Saturday night. (Negative)
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
(d) Text: This gel allows you to stop bleeding immediately: hemostatic drugs first aid. (Neutral)
|
| 30 |
+
Figure 1: Examples of multimodal sentiment tweets.
|
| 31 |
+
|
| 32 |
+
Previous works employed various fusion strategies to integrate features from different modalities (Xu, 2017; Xu and Mao, 2017). Other approaches introduced memory networks for inter-modal interactions (Xu et al., 2018; Yang et al., 2020). Yang et al. (2021) constructed a multi-channel graph neural network model for multimodal sentiment detection, Wei et al. (2023) recently utilized a sparse attention mechanism to enhance fusion by addressing modal heterogeneity. Although these methods have shown promising results, they predominantly applied existing static networks to handle all samples, with the fixed structure resulting in a lack of flexibility to adapt to different multimodal inputs, such as attention-based (Yang et al., 2020) and graph-based approaches (Yang et al., 2021). Moreover, existing related works are relatively homogenised in terms of interaction, focusing on capturing sentiment information through cross-modal alignment. In some cases, complex interaction patterns are unnecessary for simple image-text pairs and may introduce noise into the model (Qu et al., 2021). As shown in Fig. 1 (a), the word "love" in the text clearly indicates a "Positive" sentiment, making extensive interaction with the image redundant. Similarly, in
|
| 33 |
+
|
| 34 |
+
Fig. 1 (b), the image depicts a crying frog, which directly conveys a "Negative" sentiment, reducing the need for textual interaction. Conversely, in other instances, varying levels of interaction between modalities are essential. In Fig. 1 (c), a local interaction between the "broken house" in the image and "building collapse" in the text helps identify it as a "Negative" example. However, in Fig. 1 (d), no affective cues are captured when interacting the cross-modal global and local information, so the model classifies it as a neutral example.
|
| 35 |
+
|
| 36 |
+
To tackle the above problems, we propose a novel Dual-Branch Dynamic Routing Network $(\mathbf{D}^2\mathbf{R})$ for multimodal sentiment detection, which is a fully dynamic neural network. Specifically, to effectively address complex multimodal sentiment posts, we design six distinct units to implement interaction operations under various scenarios for both text and image without depending on any existing fixed frameworks. Each unit is configured with a soft router to generate inference paths. Subsequently, we stack these six units in width and depth to construct a complete routing space, enabling the exploration of more complex interaction patterns to flexibly adapt to diverse multimodal inputs. We also design a path regularization term to measure the sentiment-path similarity among samples, aiming to optimize these inference paths. Finally, we perform block fusion (Ben-Younes et al., 2019) on the multimodal inference information from different branches and feed it into the classifier for sentiment classification.
|
| 37 |
+
|
| 38 |
+
The main contributions of this paper are summarized as follows:
|
| 39 |
+
|
| 40 |
+
- We propose a novel dual-branch dynamic routing network that dynamically selects routing paths for diverse image-text pairs. To the best of our knowledge, we are the first to utilize a dynamic routing network to capture affective cues from different modalities for multimodal sentiment detection.
|
| 41 |
+
- We design six independent units to simulate inter- and intra-modal information interactions, with each unit integrating a soft router for routing learning and inference path optimization through path regularization.
|
| 42 |
+
- We conduct extensive experiments on three public datasets, and the results demonstrate the effectiveness of our model.
|
| 43 |
+
|
| 44 |
+
# 2 Related Work
|
| 45 |
+
|
| 46 |
+
# 2.1 Multimodal Sentiment Detection
|
| 47 |
+
|
| 48 |
+
Early works on multimodal sentiment detection utilized CNN and LSTM to extract and fuse feature representations from different modalities (Xu and Mao, 2017; Xu, 2017). Xu et al. (2018) introduced CoMN, a co-memory network iteratively modeled cross-modal interactions. Yang et al. (2020) proposed MVAN, which stacked pool module-tuned memory network to fuse multimodal features. Additionally, Yang et al. (2021) developed MGNNS, a multichannel graph neural network to capture emotions from entire dataset. Recently, Li et al. (2022) proposed CLMLF, a model combined contrastive learning and multilayer fusion. Another work (Wei et al., 2023) introduced the modal heterogeneity and proposed a multiview calibration network to resolve inherent differences in modalities. Despite promising results, these networks relied on fixed frameworks with static mechanisms to capture affective cues, limiting their capacity to dynamically handle diverse multimodal sentiment posts. In contrast, we aim to develop a dynamic neural network (Han et al., 2023; Li et al., 2024) to process complex image-text pairs adaptively, thereby enhancing the performance of sentiment classification.
|
| 49 |
+
|
| 50 |
+
# 2.2 Dynamic Neural Networks
|
| 51 |
+
|
| 52 |
+
Unlike common static neural networks, the inference process of dynamic neural networks adjusts dynamically based on different samples (Qu et al., 2021). Early works on dynamic networks focused on updating model parameters dynamically (Perez et al., 2018; Veit and Belongie, 2018). Subsequent research aimed to design dynamic models that enable automatic tuning of network depth or width (Liu et al., 2017). Dynamic neural networks have also shown excellent performance in recent multimodal tasks (Han et al., 2023; Zhu et al., 2023; Qu et al., 2021). Qu et al. (2021) first applied routing mechanisms to the domain of image-text retrieval, Zhou et al. (2021) introduced TRAR, a Transformer-based model to dynamically schedule global and local dependencies for VQA. However, TRAR only performed routing on unimodal data. Tian et al. (2023) proposed DynRT-Net, a dynamic routing converter network for multimodal sarcasm detection, which activated different modules through hierarchical collaboration. The work only achieved local dynamics by modifying sectional frames within the Transformer. To the best of
|
| 53 |
+
|
| 54 |
+
our knowledge, the application of dynamic mechanisms in multimodal sentiment detection has never been explored. Unlike previous related works, we design six interaction units without relying on any existing fixed frameworks to model various interaction scenarios and employ dynamic routing mechanisms to explore novel interaction patterns, achieving truly global dynamics.
|
| 55 |
+
|
| 56 |
+
# 3 Methodology
|
| 57 |
+
|
| 58 |
+
# 3.1 Modal-specific Encoder
|
| 59 |
+
|
| 60 |
+
Given the input $x = (x^{t},x^{v})$ , where $x^{t}$ and $x^{v}$ denote the text and image. In this work, $x^{t} = \{s_{i}\}_{i = 1}^{P}$ , $P$ is the length of the text, we use the pre-trained BERT model to generate the final word embedding $e_i^t\in \mathbb{R}^D$ , $i$ refers to the $i$ -th word. $D$ is the hidden dimension. The local text feature denotes as $e^t\in \mathbb{R}^{P\times D}$ . For each image $x^{v}$ , we first divide each image into $K$ patches and then use the pre-trained ViT model to generate the final region embedding $e_j^v\in \mathbb{R}^D$ , $j$ refers to the $j$ -th region. The local image feature denotes as $e^v\in \mathbb{R}^{K\times D}$ . We also use [CLS] token representation to get the global feature $\bar{e}_t$ and $\bar{e}_v$ for text and image.
|
| 61 |
+
|
| 62 |
+
# 3.2 Dual-Branch Dynamic Sentiment Interaction Module
|
| 63 |
+
|
| 64 |
+
To capture complex and diverse sentiment information in multimodal posts, we design six independent units to realize inter- and intra-modal sentiment information interaction. These units incorporate existing interaction patterns and can explore more unexcavated ones based on routing strategies, endowing our model excellent ability to understand emotions and reason sentiment. Formally, the six units can be summarized as follows:
|
| 65 |
+
|
| 66 |
+
$$
|
| 67 |
+
S _ {m} ^ {(n)} = \left\{ \begin{array}{c} H _ {m} ^ {(n)} \left(X _ {m} ^ {(n)}\right), m = 1 \text {o r} 2 \\ H _ {m} ^ {(n)} \left(X _ {m} ^ {(n)}, Y\right), m = 3, 4, 5, 6 \end{array} \right. \tag {1}
|
| 68 |
+
$$
|
| 69 |
+
|
| 70 |
+
where $S_{m}^{(n)}\in \mathbb{R}^{M\times D}$ denotes the output of the $m$ -th unit in the $n$ -th layer. $H_{m}^{(n)}$ represents the interaction function of the $m$ -th unit in the $n$ -th layer. $X_{m}^{(n)}\in \mathbb{R}^{M\times D}$ is the local input feature of the $m$ -th unit in the $n$ -th layer, $Y\in \mathbb{R}^{N\times D}$ denotes the local input feature from other modality of the $m$ -th unit in the $n$ -th layer.
|
| 71 |
+
|
| 72 |
+
In this work, we implement two single symmetrical interactive branches. Specifically, in text-image (T2V) branch, we set $X = e^{t}$ (M=P) and $Y = e^{v}$ (N=K), as for image-text (V2T) branch, $X = e^{v}$ (M=K) and $Y = e^{t}$ (N=P).
|
| 73 |
+
|
| 74 |
+
In this section, we take the T2V branch as an example to detail these six independent units.
|
| 75 |
+
|
| 76 |
+
Simplified Sentiment-Semantic Rectifying Unit. For a simple image or a short sentence, human can judge its sentiment polarity at a glance, and complex interactions are unnecessary. Therefore, we design a rectifiable unit to simplify the original sentiment information. It can be formulated as: $H_1^{(n)}(e^t) = \mathrm{ReLU}(e^t)$ .
|
| 77 |
+
|
| 78 |
+
Unimodal Sentiment-Semantic Reasoning Unit. There may exist sentiment and semantic similarities between the local fragments (different words or visual regions), so we design a USSR unit to capture these semantic dependencies. Specifically, we employ a multi-head self-attention mechanism to capture intra-modal fine-grained sentimental associations in different subspaces, as follows:
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
h _ {i} = \text {A t t e n t i o n} \left(Q _ {i}, K _ {i}, V _ {i}\right) \tag {2}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
where $h_i$ denotes the output of the $i$ -th head, $Q_i, K_i \in \mathbb{R}^{n \times \frac{D}{h}}$ , $V_i \in \mathbb{R}^{n \times \frac{D}{h}}$ denote the query, key and value of $i$ -th head, respectively.
|
| 85 |
+
|
| 86 |
+
Then, we concatenate all the $R$ heads:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
O = \operatorname {M u l t i h e a d} \left(e ^ {t}\right) = \operatorname {C o n c a t} \left(h _ {1}, \dots , h _ {R}\right) + e ^ {t} \tag {3}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
Based on the above processes, our USSR unit can be summarized as:
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
H _ {2} ^ {(n)} \left(e ^ {t}\right) = F F N (O) + O \tag {4}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
where $FFN$ represents a feed-forward layer with ReLU activation function.
|
| 99 |
+
|
| 100 |
+
Cross-modal Local Sentiment-Semantic Matching Unit. To explore the correlations between inter-modal local segments to enrich the fine-grained affective information representations, a CLSSM unit is designed. Specifically, we first calculate the attention weight between fragments of divergent modalities as follows:
|
| 101 |
+
|
| 102 |
+
$$
|
| 103 |
+
\omega_ {i, j} = \frac {\exp \left(\lambda a _ {i j}\right)}{\sum_ {j = 1} ^ {K} \exp \left(\lambda a _ {i j}\right)}, w _ {i} ^ {v} = \sum_ {j = 1} ^ {K} w _ {i, j} e _ {j} ^ {v} \tag {5}
|
| 104 |
+
$$
|
| 105 |
+
|
| 106 |
+
where $\lambda$ denotes the inversed temperature factor and $a_{ij}$ denotes the cosine similarity between $e_i^t$ and $e_j^v$ . $\omega_{i,j}$ is the attention weight matrix. $w_i^v$ refers to the attended visual context vector with respect to $i$ -th word. The complete local attended visual context vector with respect to all words can be denoted as $w^v$ .
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
Figure 2: The overall architecture of the proposed $\mathrm{D}^2\mathrm{R}$ model.
|
| 110 |
+
|
| 111 |
+

|
| 112 |
+
|
| 113 |
+

|
| 114 |
+
|
| 115 |
+
Then, we map $w_{i}^{v}$ to generate the scaling vector $\alpha_{i}^{v}$ and the shifting vector $\beta_{i}^{v}$ as follows:
|
| 116 |
+
|
| 117 |
+
$$
|
| 118 |
+
\alpha_ {i} ^ {v} = \operatorname {T a n h} \left(F C _ {\alpha} \left(w _ {i} ^ {v}\right)\right) \tag {6}
|
| 119 |
+
$$
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\beta_ {i} ^ {v} = F C _ {\beta} \left(w _ {i} ^ {v}\right) \tag {7}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
Next, we take affine transformation operation followed by a MLP and residual connection to get the refined local fragment representation $\tilde{e}_i^t$ as:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\tilde {e} _ {i} ^ {t} = M L P \left(e _ {i} ^ {t} \odot \alpha_ {i} ^ {v} + \beta_ {i} ^ {v}\right) + e _ {i} ^ {t} \tag {8}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $\odot$ denotes element-wise multiplication.
|
| 132 |
+
|
| 133 |
+
Combining the above steps, our CLSSM unit can be summarized as: $H_3^{(n)}(e_i^t,e_j^v) = [e_1^t;\dots ;e_P^t ]$ .
|
| 134 |
+
|
| 135 |
+
Cross-modal Global Sentiment-Semantic Aligning Unit. Compared with the local fragments information, the global holistic information can reflect the overall sentiment of one text-image pair on a broader level, so we design a CGSSA unit to integrate the global sentiment information of different modalities to learn valuable cross-modal coarse-grained representations. Specifically, we introduce a special gated fusion mechanism to adaptively combine the global text representation $\bar{e}_t$ and visual representation $\bar{e}_v$ , which is formulated as:
|
| 136 |
+
|
| 137 |
+
$$
|
| 138 |
+
\bar {e} = z \bar {e} _ {t} + (1 - z) \bar {e} _ {v} \tag {9}
|
| 139 |
+
$$
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
z = \frac {\exp \left(W _ {1} \delta \left(W _ {2} \bar {e} _ {t}\right)\right)}{\exp \left(W _ {1} \delta \left(W _ {2} \bar {e} _ {t}\right)\right) + \exp \left(W _ {1} \delta \left(W _ {2} \bar {e} _ {v}\right)\right)} \tag {10}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
where $W_{1}$ and $W_{2}\in \mathbb{R}^{m\times d}$ are parameter matrices, $\delta$ denotes the Tanh function.
|
| 146 |
+
|
| 147 |
+
After the above processes, our CGSSA unit can be profiled as: $H_4^{(n)}(\bar{e}_t,\bar{e}_v) = \bar{e}$ .
|
| 148 |
+
|
| 149 |
+
Global-Local Sentiment-Semantic Filtering Unit. For complex text-image pairs, relying only
|
| 150 |
+
|
| 151 |
+
on cross-modal global or local information is still insufficient to classify sentiment. Therefore, we design a GLSSF unit to capture both the cross-modal fine-grained and coarse-grained emotional cues simultaneously, and compensate for affective differences. In addition, we notice that indiscriminately aggregate all possible local comparisons and global comparisons may cause less-meaningful comparisons (such as "a" and "the" correlation comparisons), which hinder the model's capacity to distinguish sentiment polarity. Therefore, we deliberately develop a strategy in GLSSF unit to effectively suppress invalid comparisons with low affective contributions. Specifically, we first compute cross-modal global and local sentimental similarity vector (Diao et al., 2021) as follows:
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
F (a, b; W _ {f}) = \frac {W _ {f} | a - b | ^ {2}}{\| W _ {f} | a - b | ^ {2} \| _ {2}} \tag {11}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+
where $a, b \in \mathbb{R}^D$ are two different vectors, $|\cdot|^2$ and $\| \cdot \|^2$ separately represent the element-wise square and $l_2$ -norm. $W_f \in \mathbb{R}^{m \times d}$ is a parameter matrix.
|
| 158 |
+
|
| 159 |
+
Thereafter, we compute the cross-modal global or local sentiment similarity as:
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
F ^ {G l o b a l} = F \left(\bar {e} _ {t}, \bar {e} _ {v}; W _ {f} ^ {g}\right) \tag {12}
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
$$
|
| 166 |
+
F _ {i} ^ {\text {L o c a l}} = F \left(e _ {i} ^ {t}, w _ {i} ^ {v}; W _ {f} ^ {l}\right) \tag {13}
|
| 167 |
+
$$
|
| 168 |
+
|
| 169 |
+
where $W_{f}^{g}$ , $W_{f}^{l} \in \mathbb{R}^{m \times d}$ are parameter matrices.
|
| 170 |
+
|
| 171 |
+
Next, we calculate the aggregation weight $\gamma_{u}$ for the obtained cross-modal global and each local sentiment similarity vector representations $N = \{F_1^{Local},\dots ,F_i^{Local},F^{Global}\}$ .
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
\gamma_ {u} = \frac {\sigma \left(B N \left(W _ {\gamma} F _ {u}\right)\right)}{\sum_ {F _ {v} \in N} \sigma \left(B N \left(W _ {\gamma} F _ {v}\right)\right)} \tag {14}
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
where $\sigma$ denotes the sigmoid function, $BN$ indicates the batch normalization, and $W_{\gamma} \in \mathbb{R}^{m \times 1}$ is a linear transformation.
|
| 178 |
+
|
| 179 |
+
Finally, we converge all the sentiment similarity representations as follows:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
\gamma_ {f} = \sum_ {F _ {u} \in N} \gamma_ {u} F _ {u} \tag {15}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
Combining the above processes, our GLSSF unit can be represented as: $H_5^{(n)}(e^t, e^v, \bar{e}_t, \bar{e}_v) = \gamma_f$ .
|
| 186 |
+
|
| 187 |
+
Multi-View Sentiment-Semantic Sensing Unit. Both unimodal and cross-mdoal information are beneficial for the fianl sentiment classification. Therefore, we design a MVSSS unit that learns unimodal context-rich cross-modal sentiment features from two different views, aiming to facilitate interactive reasoning between unimodal and multimodal sentiment information. Specifically, considering the possible common features between unimodal and cross-modal information, we first project $w^v$ and $e^t$ into a common potential semantic space for sentiment-semantic matching, as follows:
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
C _ {w} = \operatorname {T a n h} \left(W _ {w} w ^ {v} + b _ {w}\right) \tag {16}
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
C _ {e} = \operatorname {T a n h} \left(W _ {e} e ^ {t} + b _ {e}\right) \tag {17}
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
where $C_w$ and $C_e$ denote the converted multi-view cross-modal and unimodal sentiment features in same space.
|
| 198 |
+
|
| 199 |
+
Next, we modify the gating mechanism to filter possible sentimental differences noise to integrate the common features of unimodal and cross-modal information. And then we learn the unimodal context-rich cross-modal sentiment features. Specifically, we align $C_w$ based on $C_e$ , and set $C_w$ as $Q_m = W_Q C_w$ and the $C_e$ as $K_u = W_K C_e$ , where $W_Q$ and $W_K$ are trainable parameters. Thus, the $V_m = \text{softmax}(Q_m K_u^T)$ , where $V_m$ is query attended mask. Thereafter, unimodal context-rich cross-modal sentiment feature $C_{we}$ can be formulated as:
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
C _ {w e} = C _ {w} + V _ {m} C _ {e} \tag {18}
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
After the above processes, our MVSSS unit can be summarized as: $H_6^n (e^t,w^v) = C_{we}$ .
|
| 206 |
+
|
| 207 |
+
Soft Router. To fully utilize the inimitable strengths of six units, we set up the layers in parallel and connect them between adjacent layers in a dense manner. This dense connectivity ensures a multiple and flexible routing space where many unexcavated interaction patterns can be explored. After constructing the routing space, the routing
|
| 208 |
+
|
| 209 |
+
process is executed by soft router, the input of the $m$ -th unit in the $n$ -th layer can be obtained by the following operation:
|
| 210 |
+
|
| 211 |
+
$$
|
| 212 |
+
H _ {m} ^ {(n)} = \left\{ \begin{array}{l l} e ^ {t}, & n = 0 \\ \sum_ {j = 0} ^ {c - 1} \rho_ {j, m} ^ {(n - 1)} S _ {j} ^ {(n - 1)}, & n > 0 \end{array} \right. \tag {19}
|
| 213 |
+
$$
|
| 214 |
+
|
| 215 |
+
where $C = 6$ indicates the total number of units in each layer. $S_{j}^{(n - 1)}\in \mathbb{R}^{P\times D}$ represents the output of $j$ -th unit in the $(n - 1)$ -th layer. $\rho_{j,m}^{(n - 1)}\in [0,1]$ is the path probability from the $j$ -th unit in the $(n - 1)$ -th layer to the $m$ -th unit in the $n$ -th layer. This can be calculated as follows:
|
| 216 |
+
|
| 217 |
+
$$
|
| 218 |
+
\rho_ {m} ^ {(n)} = \operatorname {R e L U} \left\{\operatorname {T a n h} \left[ M L P \left(\frac {1}{P} \sum_ {r = 1} ^ {P} h _ {m, r} ^ {(n)}\right) \right] \right\} \tag {20}
|
| 219 |
+
$$
|
| 220 |
+
|
| 221 |
+
where $\rho_{m}^{(n)}\in \mathbb{R}^{C}$ denotes the path probability vector of all units in $n$ -th layer, $h_{m,r}^{(n)}$ is the $r$ -th row vector of $H_{m}^{(n)}$
|
| 222 |
+
|
| 223 |
+
Thereafter, the routing process is finished, we can obtain the final refined feature matrix $H_{1-6}^{*} = H_{1-6}^{(L)}$ through Equation (20) from the last layer $L$ . Then, we take average-pooling operation for aggregating the six units output embeddings $H_{1-6}^{*}$ to obtain the final aggregated single-branch feature representation $\bar{h}_{1-6}$ .
|
| 224 |
+
|
| 225 |
+
# 3.3 Sentiment-Aware Path-Adaptive Fusion Module
|
| 226 |
+
|
| 227 |
+
Block Fusion. We implement the units and routing process on text and image-modality respectively, and obtain two branches of aggregated feature representation, namely, $\bar{h}_{1-6}^{T2V}$ and $\bar{h}_{1-6}^{V2T}$ . Then, we adopt a block fusion strategy to fuse $\bar{h}_{1-6}^{T2V}$ and $\bar{h}_{1-6}^{V2T}$ and use the fusion feature to make the final prediction. Inspired by Ben-Younes et al. (2019), we project $\bar{h}_{1-6}^{T2V}$ and $\bar{h}_{1-6}^{V2T}$ into a new feature space through the association tensor $T$ , as follows:
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
f = T \times_ {1} \bar {h} _ {1 - 6} ^ {T 2 V} \times_ {2} \bar {h} _ {1 - 6} ^ {V 2 T} \tag {21}
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
where $\times_{1}$ and $\times_{2}$ means tensor product along different dimensional space.
|
| 234 |
+
|
| 235 |
+
The final fusion tensor $f$ is fed into an additional MLP followed by softmax function to predict the sentiment label:
|
| 236 |
+
|
| 237 |
+
$$
|
| 238 |
+
\hat {y} = \operatorname {s o f t m a x} (M L P (f)) \tag {22}
|
| 239 |
+
$$
|
| 240 |
+
|
| 241 |
+
where $\hat{y}$ denotes the prediction label.
|
| 242 |
+
|
| 243 |
+
Finally, we apply the cross-entropy loss function:
|
| 244 |
+
|
| 245 |
+
$$
|
| 246 |
+
L _ {C E} = - (y \log (\hat {y}) + (1 - y) \log (1 - \hat {y})) \tag {23}
|
| 247 |
+
$$
|
| 248 |
+
|
| 249 |
+
where $y$ denotes the ground-truth label.
|
| 250 |
+
|
| 251 |
+
Path Regularization. In fact, the sentiment information and semantics of multimodal posts are key factors affecting the interaction patterns. Samples with similar sentiment polarity should learn similar routing paths, while samples with different sentiment polarity should learn discrepant routing paths as much as possible. We hope that the routing path distribution can be consistent with the sentiment-semantic distribution. Therefore, we introduce the path regularization term to measure their correlations among samples. Particularly, we take average-pooling on $e^t \in \mathbb{R}^{P \times D}$ to get the sentiment-semantic representation $\bar{e}^t \in \mathbb{R}^D$ and compute the sentiment-semantic similarity as $S_t = \bar{e}^t \cdot (\bar{e}^t)^\top$ . Thereafter, we connect the output values of all routers to get the path vector $\varepsilon^t \in \mathbb{R}^{C^{2(L - 1) + C}}$ and compute the path similarity as $S_p = \varepsilon^t \cdot (\varepsilon^t)^\top$ .
|
| 252 |
+
|
| 253 |
+
To achieve sentiment-path consistency, we develop a path regularization loss function $L_{pr}$ to calculate the distribution gap between the sentiment-semantic representation $S_{t}$ and the path vector $S_{p}$ , which is formulated as:
|
| 254 |
+
|
| 255 |
+
$$
|
| 256 |
+
L _ {p r} ^ {T 2 V} = J S \left(S _ {t} \| S _ {p}\right) \tag {24}
|
| 257 |
+
$$
|
| 258 |
+
|
| 259 |
+
where $JS$ stands for JS divergence (Sutter et al., 2020). Likewise, we can obtain the V2T branch loss function $L_{pr}^{V2T}$ .
|
| 260 |
+
|
| 261 |
+
# 3.4 Training objective
|
| 262 |
+
|
| 263 |
+
The overall loss function for $\mathrm{D}^2\mathrm{R}$ is as follows:
|
| 264 |
+
|
| 265 |
+
$$
|
| 266 |
+
L _ {A l l} = L _ {C E} + \lambda_ {1} L _ {p r} ^ {T 2 V} + \lambda_ {2} L _ {p r} ^ {V 2 T} \tag {25}
|
| 267 |
+
$$
|
| 268 |
+
|
| 269 |
+
where $\lambda_{1}$ and $\lambda_{2}$ control the ratio of $L_{pr}^{T2V}$ and $L_{pr}^{V2T}$ , respectively.
|
| 270 |
+
|
| 271 |
+
# 4 Experiments
|
| 272 |
+
|
| 273 |
+
# 4.1 Experiment Settings
|
| 274 |
+
|
| 275 |
+
Dataset. We assess our model by conducting experiments on three publicly available benchmark datasets which are MVSA-Single, MVSA-Multiple and HFM. The statistics of the dataset are shown in Appendix A.1.
|
| 276 |
+
|
| 277 |
+
Implementation. The details of parameter implementations are listed in Appendix A.2.
|
| 278 |
+
|
| 279 |
+
Baselines. We compare our model with unimodal baseline models and multimodal models.
|
| 280 |
+
|
| 281 |
+
Table 1: Experimental results of different models on MVSA-Single, MVSA-Multiple and HFM datasets.
|
| 282 |
+
|
| 283 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">MVSASingle</td><td colspan="2">MVSAMultiple</td><td colspan="2">HFM</td><td></td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>Model</td><td>ACC</td><td>F1</td></tr><tr><td colspan="7">Text-Only</td><td></td></tr><tr><td>CNN</td><td>0.6819</td><td>0.5590</td><td>0.6564</td><td>0.5766</td><td>CNN</td><td>0.8003</td><td>0.7532</td></tr><tr><td>BiLSTM</td><td>0.7012</td><td>0.6506</td><td>0.6790</td><td>0.6790</td><td>BiLSTM</td><td>0.8190</td><td>0.7753</td></tr><tr><td>BERT</td><td>0.7111</td><td>0.6970</td><td>0.6759</td><td>0.6624</td><td>BERT</td><td>0.8389</td><td>0.8326</td></tr><tr><td>TGNN</td><td>0.7034</td><td>0.6594</td><td>0.6967</td><td>0.6180</td><td></td><td></td><td></td></tr><tr><td colspan="7">Image-Only</td><td></td></tr><tr><td>ResNet</td><td>0.6467</td><td>0.6155</td><td>0.6188</td><td>0.6098</td><td>ResNet</td><td>0.7277</td><td>0.7138</td></tr><tr><td>ViT</td><td>0.6378</td><td>0.6226</td><td>0.6194</td><td>0.6119</td><td>ViT</td><td>0.7309</td><td>0.7152</td></tr><tr><td>OSDA</td><td>0.6675</td><td>0.6651</td><td>0.6662</td><td>0.6623</td><td></td><td></td><td></td></tr><tr><td colspan="7">Multi-Modal</td><td></td></tr><tr><td>MultiSentiNet</td><td>0.6984</td><td>0.6984</td><td>0.6886</td><td>0.6811</td><td>Concat(2)</td><td>0.8103</td><td>0.7799</td></tr><tr><td>HSAN</td><td>0.6988</td><td>0.6690</td><td>0.6796</td><td>0.6776</td><td>Concat(3)</td><td>0.8174</td><td>0.7874</td></tr><tr><td>Co-MN-Hop6</td><td>0.7051</td><td>0.7001</td><td>0.6892</td><td>0.6883</td><td>MMSD</td><td>0.8344</td><td>0.8018</td></tr><tr><td>MGNNS</td><td>0.7377</td><td>0.7270</td><td>0.7249</td><td>0.6934</td><td>D&R Net</td><td>0.8402</td><td>0.8060</td></tr><tr><td>CLMLF</td><td>0.7533</td><td>0.7346</td><td>0.7200</td><td>0.6983</td><td>CLMLF</td><td>0.8543</td><td>0.8487</td></tr><tr><td>MVCN</td><td>0.7606</td><td>0.7455</td><td>0.7207</td><td>0.7001</td><td>MVCN</td><td>0.8568</td><td>0.8523</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>D2R</td><td>0.8672</td><td>0.8625</td></tr></table>
|
| 284 |
+
|
| 285 |
+
Unimodal Baselines. For text-modality, we choose CNN, BiLSTM, BERT and TGNN as baselines. For image-modality, ResNet , ODSA and ViT are three popular models.
|
| 286 |
+
|
| 287 |
+
Multimodal Baselines. For MVSA-Single and MVSA-Multiple datasets, including: MultiSentiNet, HSAN, Co-MN-Hop6, MGNNS, CLMLF and MVCN. For HFM dataset, including: Concat(2) and Concat(3), MMSD, D&R Net. More details on baselines are provided in Appendix A.3.
|
| 288 |
+
|
| 289 |
+
# 4.2 Experiments results
|
| 290 |
+
|
| 291 |
+
We evaluate the effectiveness of our proposed framework by comparing it with the baseline models as shown in Table 1 and derive the following observations. 1). It is evident that both the text and image play crucial roles in sentiment detection. Therefore, it is imperative to fully excavate the affective cues from different modalities, which validate our tuition of designing two single symmetric branches of the two-channel interaction. In addition, the multi-modal models consistently outperform the unimodal models on performance because of fusing more sentiment information. 2). Our $\mathrm{D}^2\mathrm{R}$ achieves considerable improvement on Acc and F1 compared with the other strong baseline models on the three datasets, which suggests that dynamic routing network have advantages over regular static networks. 3). At last, we find that $\mathrm{D}^2\mathrm{R}$ achieves better results on HFM dataset compared to the MVSA datasets. The reason may be that for classification tasks with fewer label categories, the interaction patterns contained in the six units capture more accurate sentiment information.
|
| 292 |
+
|
| 293 |
+
Table 2: Ablation experiment results of our model.
|
| 294 |
+
|
| 295 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">MVSA-Single</td><td colspan="2">MVSA-Multiple</td><td colspan="2">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>w/o 1</td><td>0.7244</td><td>0.7234</td><td>0.7041</td><td>0.6931</td><td>0.8501</td><td>0.8438</td></tr><tr><td>w/o 2</td><td>0.7467</td><td>0.7465</td><td>0.7088</td><td>0.6880</td><td>0.8588</td><td>0.8529</td></tr><tr><td>w/o 3</td><td>0.7289</td><td>0.7155</td><td>0.7005</td><td>0.6823</td><td>0.8559</td><td>0.8500</td></tr><tr><td>w/o 4</td><td>0.7267</td><td>0.7284</td><td>0.6952</td><td>0.6661</td><td>0.8580</td><td>0.8539</td></tr><tr><td>w/o 5</td><td>0.7067</td><td>0.7082</td><td>0.6652</td><td>0.6661</td><td>0.8592</td><td>0.8543</td></tr><tr><td>w/o 6</td><td>0.7333</td><td>0.7208</td><td>0.6764</td><td>0.6702</td><td>0.8630</td><td>0.8582</td></tr><tr><td>w/o BF</td><td>0.7333</td><td>0.7265</td><td>0.6800</td><td>0.6707</td><td>0.8584</td><td>0.8537</td></tr><tr><td>w/o PR</td><td>0.7467</td><td>0.7482</td><td>0.7047</td><td>0.6986</td><td>0.8617</td><td>0.8570</td></tr></table>
|
| 296 |
+
|
| 297 |
+
# 4.3 Ablation Study
|
| 298 |
+
|
| 299 |
+
To further investigate the effectiveness of each component in $\mathrm{D}^2\mathrm{R}$ , we conduct a series of ablation studies: 1) w/o 1: we remove the SSSR unit; 2) w/o 2: we remove the USSR unit; 3) w/o 3: we remove the CLSSM unit; 4) w/o 4: we remove the CGSSA unit; 5) w/o 5: we remove the GLSSF unit; 6) w/o 6: we remove the MVSSS unit; 7) w/o BF: we remove the block fusion module; 8) w/o PR: we remove the path regularization term.
|
| 300 |
+
|
| 301 |
+
Table 2 shows the results of ablation study. It is evident that the performance after removing any of the components is worse than the original $\mathrm{D}^2\mathrm{R}$ , which demonstrates the effectiveness of each component. Specifically, for MVSA-Single and MVSA-Multiple datasets, w/o 5 degrades dramatically, it drops absolutely 0.0600 and 0.0507 on ACC, 0.0477 and 0.0424 on F1, respectively. This demonstrates that GLSSF unit can compensate for sentimental differences by capturing cross-modal global and local affective cues. At the same time, it verifies the rationality of calculating the sentiment similarity vector of cross-modal global and local information, suppressing irrelevant ones. For HFM dataset, w/o 1 has the most significant decline which indicates that the simplest SSSR unit plays an important role. We speculate that the reason may be that the HFM dataset has more simple text-image pairs. Moreover, w/o 6 achieve better results than others, only decrease 0.0042 on ACC and 0.0043 on F1 as HFM is a simple binary classification task dataset, the unit that capture sentiment information from complex multiple perspectives may play less important role. The performance of w/o BF declines distinctly. This suggests that block fusion benefits our dual-branch model by obtaining better sentiment representation. Particularly, for w/o PR, the ACC and F1 of the three datasets also show varying degrees of performance degradation. It proves the effectiveness of our proposed path regularization which consider the consistency
|
| 302 |
+
|
| 303 |
+
Table 3: Soft router ablation study experiment results.
|
| 304 |
+
|
| 305 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">MVSA-Single</td><td colspan="2">MVSA-Multiple</td><td colspan="2">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>w/o Soft Router</td><td>0.7244</td><td>0.7199</td><td>0.6911</td><td>0.6799</td><td>0.8526</td><td>0.8470</td></tr><tr><td>RandomRouter</td><td>0.7067</td><td>0.7106</td><td>0.6894</td><td>0.6886</td><td>0.8517</td><td>0.8473</td></tr><tr><td>HardRouter</td><td>0.7378</td><td>0.7317</td><td>0.7082</td><td>0.7000</td><td>0.8567</td><td>0.8523</td></tr></table>
|
| 306 |
+
|
| 307 |
+
Table 4: Cosine similarity calculations ablation study experiment results.
|
| 308 |
+
|
| 309 |
+
<table><tr><td rowspan="2">Model</td><td colspan="2">MVSA-Single</td><td colspan="2">MVSA-Multiple</td><td colspan="2">HFM</td></tr><tr><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td><td>ACC</td><td>F1</td></tr><tr><td>D2R</td><td>0.7667</td><td>0.7559</td><td>0.7159</td><td>0.7085</td><td>0.8672</td><td>0.8625</td></tr><tr><td>Manhattan distance (L1)</td><td>0.7244</td><td>0.7232</td><td>0.6888</td><td>0.6778</td><td>0.8430</td><td>0.8395</td></tr><tr><td>Euclidean distance (L2)</td><td>0.7533</td><td>0.7441</td><td>0.7076</td><td>0.6985</td><td>0.8542</td><td>0.8492</td></tr><tr><td>Mean Squared Displacement (MSD)</td><td>0.7333</td><td>0.7292</td><td>0.7076</td><td>0.6922</td><td>0.8559</td><td>0.8510</td></tr></table>
|
| 310 |
+
|
| 311 |
+
of routing path and sentiment semantics.
|
| 312 |
+
|
| 313 |
+
We also execute three additional ablation studies to verify the rationality of our proposed soft router, including: 1) w/o Soft Router: we remove the soft router instead of selecting routing paths, 2) RandomRouter: we replace the soft router with the random router, deriving the path probability of each unit from a uniform distribution, 3) HardRouter: we replace the soft router with the hard router, introducing the gumbel-softmax trick to discretize path values. We report the experimental results in Table 3 and have the following observations: the metrics of $\mathrm{D}^2\mathrm{R}$ significantly outperform other three methods on all datasets, demonstrating the effectiveness of our proposed soft router equivalent to other methods. Moreover, hard router got the lightest drop in performance compared with random router and w/o soft router, we hypothesize that the reason may be that random router may introduce extra path noise into the model, while not using router deprives the model's ability to dynamically adapt to different inputs.
|
| 314 |
+
|
| 315 |
+
To validate the reliability of the cosine similarity calculations using embeddings obtained from different pre-trained models in the cross-modal local sentiment-semantic matching unit, we design more three ablation studies to compare the effect of the similarity distance calculation formulas we used and others on the final model's performance. The experimental results are shown in Table 4. It is clear that using cosine values to compute the similarity of embeddings from different pre-trained models is more efficient than other methods and has the most significant improvement in model's performance. At the same time, some previous works have verified the advantages of using cosine similarity calculations (Diao et al., 2021; Chen et al., 2022; Zhang et al., 2022).
|
| 316 |
+
|
| 317 |
+
Table 5: Experimental results of model computational complexity.
|
| 318 |
+
|
| 319 |
+
<table><tr><td>Metric</td><td>MVSA-Single</td><td>MVSA-Multiple</td><td>HFM</td></tr><tr><td>Batch size</td><td>64</td><td>64</td><td>64</td></tr><tr><td>Model parameters</td><td>459.87M</td><td>459.87M</td><td>407.83M</td></tr><tr><td>FLOPs</td><td>18,221.84M</td><td>23,282.92M</td><td>20,855.04M</td></tr><tr><td>Inference time</td><td>192.65ms</td><td>230.35ms</td><td>164.60ms</td></tr><tr><td>Max Memory Reserved</td><td>19.14GB</td><td>21.14GB</td><td>19.03GB</td></tr><tr><td>Max Memory Allocated</td><td>7.12GB</td><td>7.05GB</td><td>6.32GB</td></tr><tr><td>GPU usage</td><td>NVIDIA 3090 GPU</td><td>NVIDIA 3090 GPU</td><td>NVIDIA 3090 GPU</td></tr></table>
|
| 320 |
+
|
| 321 |
+
# 4.4 Hyperparameter Analysis
|
| 322 |
+
|
| 323 |
+
To analyze the impact of the number of dynamic routing layers $L$ in our model, we conduct experiments on varying the layer of dynamic routing from 1 to 6. The results are shown in Figure 3. For MVSA-Single and MVSA-Multiple datasets, we can see that the performance metric F1 improves with the increase of dynamic routing layers in the range 1 to 4, and then drops slightly while the routing layers exceed 4. For HFM dataset, F1 improves with the increase of dynamic routing layers in the first 3 layers, and then decreases in the layers 4 to 6. The results show that increasing the number of routing layers in an appropriate range can improve the performance as more layers offer broader path space, thus increasing the ability of exploring more superior interaction patterns. However, when layers exceed 3 or 4, overfitting limits model optimization and hinders the path learning ability.
|
| 324 |
+
|
| 325 |
+
In addition, we also carry out several experiments on $\lambda_{1}$ and $\lambda_{2}$ to research the influence of the path regularization parameters $L_{pr}^{T2V}$ and $L_{pr}^{V2T}$ on the final prediction. The results are shown in Figure 3. For MVSA datasets, the performance first comes and goes before the saturation points $(\lambda_{1} = 0.9, \lambda_{2} = 0.3)$ , and then begins to decline when $\lambda_{1}$ exceeds 0.9 and $\lambda_{2}$ exceeds 0.3. We can infer that the saturation points $(\lambda_{1} = 0.9, \lambda_{2} = 0.3)$ can maximize the similarity of dynamic paths for examples with the same sentiment polarity. For HFM, the best $\lambda_{1}$ is 0.6 and $\lambda_{2}$ is 1.0. Then, a slight drop in performance occurs on other values. Apparently, excessively large $\lambda_{1}$ and $\lambda_{2}$ affect the performance on three datasets, the reason may be that overly exploring the path diversity leads to a terrible over-fitting phenomenon.
|
| 326 |
+
|
| 327 |
+
# 4.5 Computational Complexity Analysis
|
| 328 |
+
|
| 329 |
+
With the introduction of units and more paths, we perform complementary experiments to analyze the model's computational complexity, inference latency and parameter count. We report the model parameters, FLOPs, inference time, max memory
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 3: The influence of hyper-parameters.
|
| 333 |
+
|
| 334 |
+

|
| 335 |
+
|
| 336 |
+

|
| 337 |
+
|
| 338 |
+
reserved and max memory allocated for the model on three different datasets in Table 5. FLOPs refer to the floating point operations, which are used to evaluate the model's computational complexity; inference time reflects the model's inference latency; model parameters reflect the model's total parameter count. On both MVSA datasets, the number of dynamic routing layers is set to 4, on HFM dataset, it is set to 3. Thus our model has more inference paths and parameter count on MVSA datasets than HFM dataset.
|
| 339 |
+
|
| 340 |
+
# 4.6 Visualization
|
| 341 |
+
|
| 342 |
+
To demonstrate the vital advantage of our dynamic reasoning sentiment methods. We thus show some images and visualize the path vectors learned in SAPAF module, which indicate that $\mathrm{D}^2\mathrm{R}$ can adaptively choose the best paths for different examples. Specifically, we use the t-SNE (Van der Maaten and Hinton, 2008) algorithm to map the concatenation path vector into a 2-dimensional Euclid space. Afterwards, we clustered these 2-dimensional vectors into 6 groups in different 6 colors. As shown in Figure 4, we could observe that the images related to obvious positive emotions (the points marked in brown and yellow) and the ones related to obvious negative emotions (the points marked in blue and green) can be well distinguished. For instance, there exists a large margin between brown points (associated with happy crowds) and blue points (associated with bad weather), because not only is there a semantic gap between "crowds" and "weather", but there is also a sentimental conflict between "happy" and "bad". Although both brown and green points are related to people, the sentiment differences between them are still significant, as a result, they are still wide apart in a 2-dimensional space. Besides, neutral examples serve as a demarcation between positive and negative examples and are located between the two. Pictures with no emotional inclination (the points marked in red and purple) are also can be well distinguished. Because the advanced fine-grained semantics is much different between red points (re
|
| 343 |
+
|
| 344 |
+

|
| 345 |
+
Figure 4: Visualization of the learned path vectors.
|
| 346 |
+
|
| 347 |
+
lated to logos) and purple points (related to foods). Our proposed soft router can make path choices based on these fine-grained semantic and sentiment information to the path selection. These results reveal that our $\mathrm{D}^2\mathrm{R}$ is able to adaptively learn specific semantic-related and sentiment-aware paths for diverse inputs, thus the distribution of learning paths is to a certain extent consistent with that of sentiment-semantic.
|
| 348 |
+
|
| 349 |
+
# 4.7 Case study
|
| 350 |
+
|
| 351 |
+
To further verify the adaptability of $\mathrm{D}^2\mathrm{R}$ , we qualitatively visualize the routing process for several typical examples. As shown in Figure 5, we have the following observations: 1) Simpler text-image pairs tend to activate less paths as their sentiment polarity is obvious. For example, the sentence in Fig. 5 (a) conveys a distinctly positive emotion (love), which may not require much image information; 2) Cross-modal global content analysis can activate more paths for some examples to obtain accurate affective cues. In Fig. 5 (b), We can't tell the sentiment polarity of the post from only text-modality (image-modality), but when we focus on the entire text-image pairs, we can see that it's a negative example (a busted pen soiled hands like doing actual manual labor and working on the car). 3) Additional attention to fine-grained cross-modal local information can activate more paths to capture nuanced sentiment information. Fig. 5 (c) shows two intact strawberries and one damaged strawberry. We first understand the meaning of the entire text, and then paying extra attention to the comparison between "destroyed" in text and "damaged strawberry" in image to accurately classify it as a negative example. 4) The elements in the first three examples are relatively single (book, hand or food), their interaction patterns and routing paths are less complex than the fourth, because there exist many elements in Fig. 5 (d). ("bule sky",
|
| 352 |
+
|
| 353 |
+

|
| 354 |
+
Figure 5: Path visualisation of interaction patterns for four typical cases.
|
| 355 |
+
|
| 356 |
+
"white clouds", "green trees", "high mountains" and "exquisite tables"). We need to focus on all the elements one by one against the text, and then analyze the entire text and image to determine the final sentiment polarity.
|
| 357 |
+
|
| 358 |
+
# 5 Conclusion
|
| 359 |
+
|
| 360 |
+
This paper presents a novel dynamic neural network model for multimodal sentiment detection called $\mathrm{D}^2\mathrm{R}$ , which is the first work on exploring diverse interaction patterns using dynamic routing mechanisms. Specifically, we apply six units to simulate various levels of inter- and intra-modal interaction patterns. A soft router is integrated to adapt flexibly to diverse image-text pairs through routing path learning. Additionally, we introduce a path regularization term to measure sentiment-path similarity between samples and optimize the inference path. Comprehensive experiments demonstrate that our model achieves state-of-the-art performance on three benchmark datasets.
|
| 361 |
+
|
| 362 |
+
# Limitations
|
| 363 |
+
|
| 364 |
+
At this stage, we concentrate on two limitations of this work, aiming to inspire future potential research directions.
|
| 365 |
+
|
| 366 |
+
- For multimodal sentiment analysis of social media posts, incorporating more external knowledge to enrich sentiment semantic information could improve the model's predictive performance. Our model ignores the importance of external knowledge for this task.
|
| 367 |
+
|
| 368 |
+
- Multimodal dynamic routing networks can be extended to other multimodal tasks on social media, representing a primary focus for our future research.
|
| 369 |
+
|
| 370 |
+
# Acknowledgement
|
| 371 |
+
|
| 372 |
+
This work was supported in part by Guangdong Basic and Applied Basic Research Foundation (2023A1515011370), National Natural Science Foundation of China (32371114), Characteristic Innovation Projects of Guangdong Colleges and Universities (2018KTSCX049), International Scientific and Technological Cooperation Project of Huangpu and Development Districts in Guangzhou (2022GH01, 2023GH05).
|
| 373 |
+
|
| 374 |
+
# References
|
| 375 |
+
|
| 376 |
+
Hedi Ben-Younes, Remi Cadene, Nicolas Thome, and Matthieu Cord. 2019. Block: Bilinear superdiagonal fusion for visual question answering and visual relationship detection. In Proceedings of the AAAI conference on artificial intelligence, volume 33, pages 8102-8109.
|
| 377 |
+
Yitao Cai, Huiyu Cai, and Xiaojun Wan. 2019. Multimodal sarcasm detection in twitter with hierarchical fusion model. In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 2506-2515.
|
| 378 |
+
Jianan Chen, Lu Zhang, Qiong Wang, Cong Bai, and Kidiyo Kpalma. 2022. Intra-modal constraint loss for image-text retrieval. In 2022 IEEE International Conference on Image Processing (ICIP), pages 4023-4027. IEEE.
|
| 379 |
+
Yifan Chen, Haoliang Xiong, Kuntao Li, Weixing Mai, Yun Xue, Qianhua Cai, and Fenghuan Li. 2024. Relevance-aware visual entity filter network for multimodal aspect-based sentiment analysis. International Journal of Machine Learning and Cybernetics, pages 1-14.
|
| 380 |
+
Haiwen Diao, Ying Zhang, Lin Ma, and Hutchuan Lu. 2021. Similarity reasoning and filtration for imag-text matching. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 1218-1226.
|
| 381 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. 2020. An image is worth 16x16 words: Transformers for image recognition at scale. In Proceedings of the International Conference on Learning Representations.
|
| 382 |
+
|
| 383 |
+
Yudong Han, Jianhua Yin, Jianlong Wu, Yinwei Wei, and Liqiang Nie. 2023. Semantic-aware modular capsule routing for visual question answering. IEEE Transactions on Image Processing.
|
| 384 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778.
|
| 385 |
+
Lianzhe Huang, Dehong Ma, Sujian Li, Xiaodong Zhang, and Houfeng Wang. 2019. Text level graph neural network for text classification. 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 3444-3450, Hong Kong, China. Association for Computational Linguistics.
|
| 386 |
+
Jacob Devlin Ming-Wei Chang Kenton and Lee Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the naacL-HLT, volume 1, page 2.
|
| 387 |
+
Yoon Kim. 2014. Convolutional neural networks for sentence classification. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1746-1751, Doha, Qatar. Association for Computational Linguistics.
|
| 388 |
+
Xingye Li, Jin Liu, Yurong Xie, Peizhu Gong, Xiliang Zhang, and Huihua He. 2024. Magdra: a multimodal attention graph network with dynamic routing-by-agreement for multi-label emotion recognition. Knowledge-Based Systems, 283:111126.
|
| 389 |
+
Zhen Li, Bing Xu, Conghui Zhu, and Tiejun Zhao. 2022. CLMLF: a contrastive learning and multi-layer fusion method for multimodal sentiment detection. In *Findings of the Association for Computational Linguistics: NAACL* 2022, pages 2282-2294, Seattle, United States. Association for Computational Linguistics.
|
| 390 |
+
Bin Liang, Chenwei Lou, Xiang Li, Lin Gui, Min Yang, and Ruifeng Xu. 2021. Multi-modal sarcasm detection with interactive in-modal and cross-modal graphs. In Proceedings of the 29th ACM international conference on multimedia, pages 4707-4715.
|
| 391 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. 2017. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE international conference on computer vision, pages 2736-2744.
|
| 392 |
+
Weixing Mai, Zhengxuan Zhang, Yifan Chen, Kuntao Li, and Yun Xue. 2024. Geda: Improving training data with large language models for aspect sentiment triplet extraction. Knowledge-Based Systems, 301:112289.
|
| 393 |
+
Teng Niu, Shiai Zhu, Lei Pang, and Abdulmotaleb El Saddik. 2016. Sentiment analysis on multi-view
|
| 394 |
+
|
| 395 |
+
social data. In MultiMedia Modeling: 22nd International Conference, MMM 2016, Miami, FL, USA, January 4-6, 2016, Proceedings, Part II 22, pages 15-27. Springer.
|
| 396 |
+
Ethan Perez, Florian Strub, Harm De Vries, Vincent Dumoulin, and Aaron Courville. 2018. Film: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI conference on artificial intelligence, volume 32.
|
| 397 |
+
Leigang Qu, Meng Liu, Jianlong Wu, Zan Gao, and Liqiang Nie. 2021. Dynamic modality interaction modeling for image-text retrieval. In Proceedings of the 44th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1104-1113.
|
| 398 |
+
Rossano Schifanella, Paloma De Juan, Joel Tetreault, and Liangliang Cao. 2016. Detecting sarcasm in multimodal social platforms. In Proceedings of the 24th ACM international conference on Multimedia, pages 1136-1145.
|
| 399 |
+
Thomas Sutter, Imant Daunhawer, and Julia Vogt. 2020. Multimodal generative learning utilizing jensen-shannon-divergence. Advances in neural information processing systems, 33:6100-6110.
|
| 400 |
+
Yuan Tian, Nan Xu, Ruike Zhang, and Wenji Mao. 2023. Dynamic routing transformer network for multimodal sarcasm detection. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2468-2480, Toronto, Canada. Association for Computational Linguistics.
|
| 401 |
+
Laurens Van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-sne. Journal of machine learning research, 9(11).
|
| 402 |
+
Andreas Veit and Serge Belongie. 2018. Convolutional networks with adaptive inference graphs. In Proceedings of the European conference on computer vision (ECCV), pages 3-18.
|
| 403 |
+
Yiwei Wei, Shaozu Yuan, Ruosong Yang, Lei Shen, Zhangmeizhi Li, Longbiao Wang, and Meng Chen. 2023. Tackling modality heterogeneity with multiview calibration network for multimodal sentiment detection. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5240-5252.
|
| 404 |
+
Nan Xu. 2017. Analyzing multimodal public sentiment based on hierarchical semantic attentional network. In 2017 IEEE international conference on intelligence and security informatics (ISI), pages 152-154. IEEE.
|
| 405 |
+
Nan Xu and Wenji Mao. 2017. Multisentinet: A deep semantic network for multimodal sentiment analysis. In Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, pages 2399-2402.
|
| 406 |
+
|
| 407 |
+
Nan Xu, Wenji Mao, and Guandan Chen. 2018. A comemory network for multimodal sentiment analysis. In The 41st international ACM SIGIR conference on research & development in information retrieval, pages 929-932.
|
| 408 |
+
Nan Xu, Zhixiong Zeng, and Wenji Mao. 2020. Reasoning with multimodal sarcastic tweets via modeling cross-modality contrast and semantic association. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 3777-3786.
|
| 409 |
+
Xiaocui Yang, Shi Feng, Daling Wang, and Yifei Zhang. 2020. Image-text multimodal emotion classification via multi-view attentional network. IEEE Transactions on Multimedia, 23:4014-4026.
|
| 410 |
+
Xiaocui Yang, Shi Feng, Yifei Zhang, and Daling Wang. 2021. Multimodal sentiment detection based on multi-channel graph neural networks. 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 328-339.
|
| 411 |
+
Lin Yue, Weitong Chen, Xue Li, Wanli Zuo, and Minghao Yin. 2019. A survey of sentiment analysis in social media. Knowledge and Information Systems, 60:617-663.
|
| 412 |
+
Huatian Zhang, Zhendong Mao, Kun Zhang, and Yongdong Zhang. 2022. Show your faith: Cross-modal confidence-aware network for image-text matching. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pages 3262-3270.
|
| 413 |
+
Lei Zhang, Shuai Wang, and Bing Liu. 2018. Deep learning for sentiment analysis: A survey. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 8(4):e1253.
|
| 414 |
+
Zhengxuan Zhang, Weixing Mai, Haoliang Xiong, Chuhan Wu, and Yun Xue. 2023. A token-wise graph-based framework for multimodal named entity recognition. In 2023 IEEE International Conference on Multimedia and Expo (ICME), pages 2153-2158. IEEE.
|
| 415 |
+
Weiyu Zhong, Zhengxuan Zhang, Qiaofeng Wu, Yun Xue, and Qianhua Cai. 2024. A semantic enhancement framework for multimodal sarcasm detection. Mathematics, 12(2):317.
|
| 416 |
+
Peng Zhou, Wei Shi, Jun Tian, Zhenyu Qi, Bingchen Li, Hongwei Hao, and Bo Xu. 2016. Attention-based bidirectional long short-term memory networks for relation classification. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 207-212, Berlin, Germany. Association for Computational Linguistics.
|
| 417 |
+
Yiyi Zhou, Tianhe Ren, Chaoyang Zhu, Xiaoshuai Sun, Jianzhuang Liu, Xinghao Ding, Mingliang Xu, and Rongrong Ji. 2021. Trar: Routing the attention spans
|
| 418 |
+
|
| 419 |
+
in transformer for visual question answering. In Proceedings of the IEEE/CVF international conference on computer vision, pages 2074-2084.
|
| 420 |
+
|
| 421 |
+
Lei Zhu, Xinjiang Wang, Zhanghan Ke, Wayne Zhang, and Rynson WH Lau. 2023. Biformer: Vision transformer with bi-level routing attention. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 10323-10333.
|
| 422 |
+
|
| 423 |
+
# A Appendix
|
| 424 |
+
|
| 425 |
+
# A.1 Dataset
|
| 426 |
+
|
| 427 |
+
We assess our model by conducting experiments on three publicly available benchmark datasets which are MVSA-Single, MVSA-Multiple (Niu et al., 2016), and HFM (Cai et al., 2019). MVSA-Single and MVSA-Multiple datasets collect data from Twitter, each text-image pair is labeled by a single sentiment. Both of them have three categories: positive, neutral, and negative. For a fair comparison, we process the original two MVSA datasets in the same way as Xu and Mao (2017). HFM dataset also collects data from Twitter, which has two sentimental categories: positive and negative. Following Cai et al. (2019), we adopt the same data preprocessing method for experiments. The statistics of these datasets are shown in Table 6.
|
| 428 |
+
|
| 429 |
+
# A.2 Implementation Details
|
| 430 |
+
|
| 431 |
+
For a fair comparison, following the processing in Wei et al. (2023), we adopt the pre-trained BERT-base-uncased model (Kenton and Toutanova, 2019) as the text-encoder to embed each word of the text, and utilize the pre-trained ViT model (Dosovitskiy et al., 2020) as the image-encoder to embed each region of the image. The learning rate is $1e - 5$ for MVSA-Single and MVSA-Multiple datasets, $2e - 5$ for HFM dataset. We train the model for 20 epochs with mini-batch size 64. For MVSA-Single and MVSA-Multiple datasets, we establish the number of dynamic routing layers $L$ as 4, the JS loss weight $\lambda_{1}$ as 0.9 and $\lambda_{2}$ as 0.3. For HFM dataset, we set the number of dynamic routing layer to 3, the JS loss weight $\lambda_{1}$ to 0.6 and $\lambda_{2}$ to 1.0. Adam optimizer is also utilized to train the model. Dropout and early stop are used to avoid overfitting. Based on prior configurations, we utilize ACC and Weighted F1 as evaluation metrics for the MVSA datasets and ACC and Macro-F1 for the HFM to assess the model's performance.
|
| 432 |
+
|
| 433 |
+
Table 6: Statistics of the dataset
|
| 434 |
+
|
| 435 |
+
<table><tr><td>Dataset</td><td>Training</td><td>Validating</td><td>Testing</td><td>Total</td></tr><tr><td>MVSA-S</td><td>3611</td><td>450</td><td>450</td><td>4511</td></tr><tr><td>MVSA-M</td><td>13624</td><td>1700</td><td>1700</td><td>17024</td></tr><tr><td>HFM</td><td>19816</td><td>2410</td><td>2409</td><td>24635</td></tr></table>
|
| 436 |
+
|
| 437 |
+
# A.3 Baseline Models
|
| 438 |
+
|
| 439 |
+
We compare our model with unimodal baseline models and multimodal baseline models.
|
| 440 |
+
|
| 441 |
+
Unimodal Baselines. For text modality, we choose CNN (Kim, 2014), BiLSTM (Zhou et al., 2016), BERT (Kenton and Toutanova, 2019) and TGNN (Huang et al., 2019) as baselines since they are well-known models for text classification. For image modality, ResNet (He et al., 2016) and ViT (Dosovitskiy et al., 2020) are two popular models for image classification task, ODSA (Yang et al., 2020) is an image sentiment analysis model.
|
| 442 |
+
|
| 443 |
+
Multimodal Baselines. For MVSA-Single and MVSA-Multiple datasets, the baselines include: MultiSentiNet (Xu and Mao, 2017), a deep attention-based semantic network for multimodal sentiment analysis; HSAN (Xu, 2017), a hierarchical semantic attentional network based on image captions for multimodal sentiment analysis; Co-MN-Hop6 (Xu et al., 2018) utilize co-memory network to iteratively model the interactions between multiple modalities; MGNNS (Yang et al., 2021) adopt multi-channel graph neural networks with sentiment-awareness for image-text sentiment detection; CLMLF (Li et al., 2022) propose a contrastive learning and multi-layer fusion method for multimodal sentiment detection; MVCN (Wei et al., 2023) is the previous SOTA model that design a multi-view calibration network to solve the modality heterogeneity for multimodal sentiment detection. For HFM dataset, we compare two variants of Concat (Schifanella et al., 2016): Concat(2) means concatenating text and image, while Concat(3) introduces one more image attribute features; MMSD (Cai et al., 2019) is a hierarchical multimodal features model for fusing text, image, and image attributes; D&R Net (Xu et al., 2020) proposes a decomposition and relation network to fuse the text, image, and visual attributes features.
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c675fd6e8cf3027464a3d02366e46a5a839a758791604d49cf1f55950c8cd95e
|
| 3 |
+
size 616589
|
2024/D2R_ Dual-Branch Dynamic Routing Network for Multimodal Sentiment Detection/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/ebf1bca7-71b2-4fb6-bcd0-ce0d13530f9a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:361bc60033ac52298467687b99e56a8dc987ae2e810808537fc72205b74f6db3
|
| 3 |
+
size 1236776
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/full.md
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# D3CODE: Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation
|
| 2 |
+
|
| 3 |
+
Aida Davani
|
| 4 |
+
|
| 5 |
+
Google Research aidamd@google.com
|
| 6 |
+
|
| 7 |
+
Mark Diaz
|
| 8 |
+
|
| 9 |
+
Google Research markdiaz@google.com
|
| 10 |
+
|
| 11 |
+
Dylan Baker
|
| 12 |
+
|
| 13 |
+
DAIR Institute
|
| 14 |
+
dylan@dair-institute.org
|
| 15 |
+
|
| 16 |
+
Vinodkumar Prabhakaran
|
| 17 |
+
|
| 18 |
+
Google Research vinodkpg@google.com
|
| 19 |
+
|
| 20 |
+
# Abstract
|
| 21 |
+
|
| 22 |
+
While human annotations play a crucial role in language technologies, annotator subjectivity has long been overlooked in data collection. Recent studies that critically examine this issue are often focused on Western contexts, and solely document differences across age, gender, or racial groups. Consequently, NLP research on subjectivity have failed to consider that individuals within demographic groups may hold diverse values, which influence their perceptions beyond group norms. To effectively incorporate these considerations into NLP pipelines, we need datasets with extensive parallel annotations from a variety of social and cultural groups. In this paper we introduce the D3CODE dataset: a large-scale cross-cultural dataset of parallel annotations for offensive language in over 4.5K English sentences annotated by a pool of more than 4k annotators, balanced across gender and age, from across 21 countries, representing eight geo-cultural regions. The dataset captures annotators' moral values along six moral foundations: care, equality, proportionality, authority, loyalty, and purity. Our analyses reveal substantial regional variations in annotators' perceptions that are shaped by individual moral values, providing crucial insights for developing pluralistic, culturally sensitive NLP models.
|
| 23 |
+
|
| 24 |
+
# 1 Introduction
|
| 25 |
+
|
| 26 |
+
Designing Natural Language Processing (NLP) tools for detecting offensive or toxic text has long been an active area of research (Wulczyn et al., 2017; Founta et al., 2018). However, applying traditional NLP solutions have led to overlooking the cultural and individual factors that shape humans' varying perspectives and disagreements on what is deemed offensive (Aroyo and Welty, 2015; Waseem, 2016; Salminen et al., 2019; Uma et al.,
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
Figure 1: The distribution of labels provided from different countries. Annotators from China, Brazil, and Egypt provided significantly different labels.
|
| 30 |
+
|
| 31 |
+
2021; Prabhakaran et al., 2021; Akhtar et al., 2021; Wang et al., 2024). Perceiving language as offensive can depend inherently on one's beliefs and values as well as the social norms dictated by the socio-cultural context within which one's assessments are made (Eickhoff, 2018; Aroyo et al., 2019; Waseem et al., 2021; Rottger et al., 2022; Davani et al., 2023). Therefore, data curating and modeling efforts should appropriately handle such subjective factors in order to better capture and learn human perspectives about offensiveness.
|
| 32 |
+
|
| 33 |
+
As a result, recent efforts call for diversifying the rater pools as well as designing models that look beyond predicting a singular ground truth (Davani et al., 2022; Aroyo et al., 2023a). However, the efforts for diversifying annotator pools often risk reducing annotators' differences to demographic variations. In other words, subjectivity is often studied solely in relation to annotators' gender and race, within the Western context. In reality, perceptions of what is offensive extend far beyond mere differences in demographics, shaped by an individual's lived experiences, cultural background and other psychological factors (Denton et al., 2021).
|
| 34 |
+
|
| 35 |
+
Sap et al. (2022) demonstrate the impact of annotators' beliefs about racism, freedom of speech, and conservatism on their perceptions of toxicity. While individuals' systematic disagreements on
|
| 36 |
+
|
| 37 |
+
notions of offensiveness reflect the complexity of their beliefs, these beliefs are often anchored in core moral values that shape their judgments. Not only do moral values influence various aspects of our cognitive processes (Greene et al., 2001), emotions (Tangney et al., 2007), and social relationships (Haidt, 2008), they also shape our judgments, motivate our behaviors, and guide our interactions. As a result, moral values, contribute significantly to our personal and cultural identity (Turiel, 2002), as we internalize societal norms and develop our moral compass (Kohlberg, 1921). Therefore, we argue that the high divergence in annotators' perceptions of offensiveness can be traced back to individuals' diverse moral values along with the cultural and social norms that dictate the boundaries of acceptable language within a society.
|
| 38 |
+
|
| 39 |
+
In this work we introduce the D3CODE dataset<sup>1</sup>, built through a cross-cultural annotation effort aimed at collecting perspectives of offensiveness from 4309 participants of different age and genders across 21 countries within eight larger geo-cultural regions. Through an in-depth analysis of our dataset, we shed light on cultural and moral values that sets people apart during the annotation. We believe that this dataset can be used for assessing modeling approaches that are designed to incorporate annotators' subjective views on language, as well as for evaluating different models' cultural and moral alignment.
|
| 40 |
+
|
| 41 |
+
# 2 Related Work
|
| 42 |
+
|
| 43 |
+
Disagreement — even on objective tasks (Parrish et al., 2024a) — is a source of information (Jamison and Gurevych, 2015; Basile et al., 2021; Plank, 2022). Therefore, research on perspectivism in data (Cabitza et al., 2023) argues that treating annotators as interchangeable is ineffective when dealing with subjective language understanding tasks (Aroyo and Welty, 2013; Hovy et al., 2013; Plank et al., 2014b; Pavlick and Kwiatkowski, 2019; Dumitrache et al., 2019; Klenner et al., 2020; Diaz et al., 2022b; Weerasooriya et al., 2023a). Instead, capturing and modeling nuanced annotations and interannotator disagreements has been widely explored (Kairam and Heer, 2016; Founta et al., 2018; Geva et al., 2019; Chung et al., 2019; Obermeyer et al., 2019; Liu et al., 2019; Weerasooriya et al., 2020;
|
| 44 |
+
|
| 45 |
+
Uma et al., 2021; Weerasooriya et al., 2023b). For instance, Rottger et al. (2022) propose a descriptive annotation paradigm for operationalizing subjectivity when surveying different beliefs.
|
| 46 |
+
|
| 47 |
+
Accordingly modeling approaches were proposed to consider variations of annotator perspectives; for instance, incorporating the item-level agreement into the loss function (Uma et al., 2020; Plank et al., 2014a), leveraging annotator disagreement as an auxiliary task along with ground-truth label prediction Fornaciari et al. (2021), or employing item-level disagreements for informing model training (Leonardelli et al., 2021; Parrish et al., 2024b). However, these methods often overlook the integrity of individual labels and aggregate diverse subjectivities into a single construct (Hovy and Yang, 2021). Research has shown that providing the age or gender of the authors to text classifiers consistently and significantly improves the performance over demographic-agnostic models Hovy (2015); Hung et al. (2023). Garten et al. (2019) model users demographics embedding, and further incorporate them into language understanding tasks. Ferracane et al. (2021) add annotators' sentiment about the writers into modeling their labels. The use of multi-task modeling has been proposed as means for model annotator perspectives separately Kennedy et al. (2020); Davani et al. (2022); Hayat et al. (2022). Others (Al Kuwatly et al., 2020; Wich et al., 2020; Akhtar et al., 2021; Orlikowski et al., 2023) capture perspectives of different groups rather than single annotators. Further approaches tend to integrated annotator differences into model predictions, through personalized model tuning (Kumar et al., 2021), jury learning (Gordon et al., 2022), and training annotator embeddings (Deng et al., 2023; Mokhberian et al., 2023).
|
| 48 |
+
|
| 49 |
+
Although attending to annotators' background is gaining more attention, documenting how annotators' identity shapes their comprehension of the world and in turn language is still missing in many data curation efforts (Díaz et al., 2022b; Scheuerman et al., 2021). A number of scholars have begun to not only document annotators' identity, but also develop principled approaches for obtaining a diversity of identities and perspectives in datasets. Aroyo et al. (2023b) developed a dataset that specifically focuses on evaluating disagreement and diverse perspectives on conversational safety, and (Homan et al., 2024) leverages this same dataset to propose a multilevel modeling approach for
|
| 50 |
+
|
| 51 |
+
measuring annotation differences across a range of sociodemographic groups. Pei and Jurgens (2023) recruit a representative sample of annotators across sex, age, and race in the US and show the impact of annotators' background on their judgments.
|
| 52 |
+
|
| 53 |
+
The social nature of language means that sociocultural differences play meaningful roles in how individuals use language, such as offensive speech (Goyal et al., 2022; Diaz et al., 2022a). Sachdeva et al. (2022) apply Item Response Theory to capture the impact of annotators' group identity in their evaluation of harmful language. Salminen et al. (2018) and Lee et al. (2023) demonstrate statistically significant variations across countries in hate speech annotations. Sap et al. (2022) draw from social psychology research to demonstrate the impact of annotator identities and beliefs about hate speech, free speech, and racist beliefs, on their annotations of toxicity. Davani et al. (2023) investigates annotators' biases and disagreements as related to their social stereotypes.
|
| 54 |
+
|
| 55 |
+
One such nuanced factor, often not studied in AI research, is morality. Moral considerations play significant roles in how humans navigate prejudicial thoughts and behaviors (Molina et al., 2016), often manifesting in language through offensive content. The interplay between morality and group identity (Reed II and Aquino, 2003) influences many aspects of our social dynamics, including perceptions, interactions, stereotypes, and prejudices. Moreover, research in computational social science addressing harmful language reveals a concurrent occurrence of moral sentiment alongside expressions of hatred directed at social groups (Kennedy et al., 2023).
|
| 56 |
+
|
| 57 |
+
In this paper we introduce the D3CODE dataset which not only provides social factors and demographic information regarding annotators but also considers the moral values that may vary across regions and among individuals. Such information facilitates drawing connections between annotations from culturally diverse annotators, the sociocultural norms shaping their environment, and the moral values they hold.
|
| 58 |
+
|
| 59 |
+
# 3 D3CODE Dataset
|
| 60 |
+
|
| 61 |
+
In order to study a broad range of cultural perceptions of offensiveness, we recruited 4309 participants from 21 countries, representing eight geocultural regions, with each region represented by
|
| 62 |
+
|
| 63 |
+
<table><tr><td rowspan="2">Region</td><td rowspan="2">#</td><td colspan="3">Gender</td><td colspan="3">Age</td></tr><tr><td>M</td><td>W</td><td>Other</td><td>18-30</td><td>30-50</td><td>50+</td></tr><tr><td>AC.</td><td>516</td><td>306</td><td>205</td><td>5</td><td>269</td><td>168</td><td>79</td></tr><tr><td>ICS.</td><td>554</td><td>308</td><td>245</td><td>1</td><td>237</td><td>198</td><td>119</td></tr><tr><td>LA.</td><td>549</td><td>271</td><td>275</td><td>3</td><td>302</td><td>176</td><td>71</td></tr><tr><td>NA.</td><td>551</td><td>220</td><td>325</td><td>6</td><td>263</td><td>175</td><td>113</td></tr><tr><td>Oc.</td><td>517</td><td>203</td><td>307</td><td>7</td><td>161</td><td>221</td><td>135</td></tr><tr><td>Si.</td><td>540</td><td>280</td><td>249</td><td>11</td><td>208</td><td>228</td><td>104</td></tr><tr><td>SSA.</td><td>530</td><td>309</td><td>219</td><td>2</td><td>320</td><td>157</td><td>53</td></tr><tr><td>WE.</td><td>552</td><td>252</td><td>294</td><td>6</td><td>259</td><td>172</td><td>121</td></tr></table>
|
| 64 |
+
|
| 65 |
+
Table 1: Demographic distribution of annotators from each region, region names are shortened and represent: Arab Culture (AC.), Indian Cultural Sphere (ICS.), Latin America (LA.), North America (NA.), Oceania (Oc.), Sinosphere (Si.), Sun-Saharan Africa (SSA), and Western Europe (WE.).
|
| 66 |
+
|
| 67 |
+
2-4 countries (Table 1). We discuss the reasoning behind our selection of countries and regions in more depth in Appendix A.1; however, the final selection of countries and regions was chosen to maximize cultural diversity while balancing participant access through our recruitment panel. Participants were recruited through an online survey pool, compensated in accordance to their local law, and were informed of the intended use of their responses. In order to capture the participants' perceptions of offensiveness, we asked each participant to annotate offensiveness of social media comments selected from Jigsaw datasets (Jigsaw, 2018, 2019). Furthermore, we also asked them to respond to a measurement of self-reported moral concerns, using the Moral Foundations Questionnaire (MFQ-2; Graham et al., 2013; Atari et al., 2023).
|
| 68 |
+
|
| 69 |
+
# 3.1 Recruitment
|
| 70 |
+
|
| 71 |
+
Recruitment criteria account for various demographic attributes: (1) Region of residence: we recruited at least 500 participants from each of the eight regions with at least 100 participants per country, except for South Korea and Qatar where we managed to recruit only a smaller number of raters (See Table 5), (2) Gender: within regions, we set a maximum limit of $60\%$ representations for Men and Women separately (for a loosely balanced representation of the two genders), while including options for selecting "non-binary / third
|
| 72 |
+
|
| 73 |
+
gender," "prefer not to say," and "prefer to self identify" (with a textual input field). We recognize that collecting non-binary gender information is not safe for annotators in many countries, so we limited the specification of recruitment quota to binary genders to ensure consistency across countries. (3) Age: in each region at most $60\%$ of participants are 18 to 30 years old and at least $15\%$ are 50 years old or older. We specifically aimed to ensure adequate representation of annotators of age 50 or older, because this age group have lower engagement with crowdsourcing platforms but are equally impacted by technology advancements. Table 1 provides the final distribution of participants across different demographic groups in each region.
|
| 74 |
+
|
| 75 |
+
We further set an exclusion criterion based on English fluency since our study is done on English language text; we only selected participants who self-reported a high level of proficiency in reading and writing English. We performed this study in the English language, as the most wide-spoken language across the globe, to simulate the most common data annotation settings, in which annotators (who are no necessarily English speakers) are asked to interact with and label textual data in English. Additionally, we collected participants' self-reported subjective socio-economic status (Adler et al., 2000) that may serve as a potential confound in follow-up analyses.
|
| 76 |
+
|
| 77 |
+
# 3.2 Annotation items
|
| 78 |
+
|
| 79 |
+
We performed this study in the English language. In order to collect textual items for participants to annotate, we selected items from Jigsaw's Toxic Comments Classification dataset (Jigsaw, 2018), and the Unintended Bias in Toxicity Classification dataset (Jigsaw, 2019). We built a dataset of $N_{\text{items}} = 4554$ consisting of three categories of items: (1) potentially high inter-annotator disagreement, (2) evoking moral sentiment, or (3) including language about specific social groups:
|
| 80 |
+
|
| 81 |
+
(1) Random: As the basic strategy, we randomly select $50\%$ of the data from items that are likely to evoke disagreement. To measure disagreements on each item, we averaged the toxicity scores assigned to the item in the original dataset, ranging from 0 (lowest toxicity) to 1 (highest toxicity). Items on the two ends of the range evoke no disagreement because all annotators labeled them either as toxic or non-toxic. Therefore, we chose items with a normal distribution centered around a toxicity
|
| 82 |
+
|
| 83 |
+
score of 0.5 (indicating highest disagreement) with a standard deviation of 0.2.
|
| 84 |
+
|
| 85 |
+
(2) Moral Sentiment: $10\%$ of the dataset consists of a balanced set of items include different moral sentiments, identified through a supervised moral language tagger trained on the MFTC dataset (Hoover et al., 2020). This strategy is aimed at enabling follow up studies to investigate potential content-level correlates of disagreements, particularly as previous computational social science studies on harmful language have shown specific correlation of moral sentiment with expressions of hatred. Our tagger identified very few items with moral sentiment throughout the dataset, selecting a balances set led to a set of 500 such items.
|
| 86 |
+
|
| 87 |
+
(3) Social Group Mentions: Finally, the rest $(40\%)$ of the dataset consists of a balanced set of items that mention specific social group identities related to gender, sexual orientation, or religion (Jigsaw dataset includes manual annotation of these identity terms, which we used for our sampling). We specifically selected such items as online harmful language is largely directed at specific social groups and resonates real-world group conflicts.
|
| 88 |
+
|
| 89 |
+
# 3.3 Annotation task
|
| 90 |
+
|
| 91 |
+
Each participant was tasked with labeling 40 items on a 5-point Likert scale (from not offensive at all to extremely offensive). Half of the participants were provided with a note that defined extremely offensive language as "profanity, strongly impolite, rude or vulgar language expressed with fighting or hurtful words in order to insult a targeted individual or group." Other participants were expected to label items based on their own definition of offensiveness. The latter group served as a control setting of participants who are expected to lean on their individual notion of offensiveness.[4]
|
| 92 |
+
|
| 93 |
+
In case of unfamiliarity with the annotation item, participants were asked to select the option "I do not understand this message." Participants' reliability was tested by 5 undeniably non-offensive, control questions randomly distributed among the 40-items annotation process. Those who failed at least one quality control check were removed, and not counted against our final set of 4309 participants (refer to Appendix A.2 for test items). Each item in the final dataset was labeled by at least three
|
| 94 |
+
|
| 95 |
+
participants from each region who passed the control check (a total of 24 labels). Participants were compensated at rates above the prevalent market rates for the task (which took at most 20 minutes, with a median of 13 minutes), and respecting the local regulations regarding minimum wage in their respective countries.
|
| 96 |
+
|
| 97 |
+
# 3.4 Moral Foundation Questionnaire
|
| 98 |
+
|
| 99 |
+
After annotation, participants were also asked to fill out the Moral Foundations Questionnaire (MFQ-2; Graham et al., 2013; Atari et al., 2023), which assesses their moral values along six different dimensions: Care: “avoiding emotional and physical damage to another individual,” Equality: “equal treatment and equal outcome for individuals,” Proportionality: “individuals getting rewarded in proportion to their merit or contribution,” Authority: “deference toward legitimate authorities and the defense of traditions,” Loyalty: “cooperating with ingroups and competing with outgroups,” and Purity: “avoiding bodily and spiritual contamination and degradation” (Atari et al., 2023). We specifically rely on the MFQ-2 because it is developed and validated through extensive cross-cultural assessments of moral judgments. This characteristic makes the questionnaire a reliable tool for integrating a pluralistic definition of values into AI research. The questionnaire includes 36 statements to assess participants’ priorities along each of the six foundations (see Figure 5 which shows one of the MFQ-2 questions in our survey). For instance, one MFQ-2 statement that targets the Care foundation is: “Everyone should try to comfort people who are going through something hard”. We aggregate each participant’s responses to compute a value between 1 to 5 to capture their moral foundations along each of these dimensions.
|
| 100 |
+
|
| 101 |
+
# 4 Analyses
|
| 102 |
+
|
| 103 |
+
Our analyses focus on annotators' varying perspectives and how shared social, cultural or moral attributes can help shed light on annotation behaviors. We begin by analyzing how different groups vary on expressing their lack of understanding the message by selecting the "I don't understand this message" option. We then study annotators' geocultural regions and moral values in relation to their annotations. Specifically, we consider annotator clustering either based on their similar moral values or their region of residence, and assess in-group
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 2: The likelihood of an annotator not understanding the message, grouped based on their sociodemographic information. Annotators identifying as Men, or of 50 years of old or younger are generally less likely to state they did not understand a message.
|
| 111 |
+
|
| 112 |
+
homogeneity and out-group disagreements for clusters. The remainder of this section delves deeper into how groups of annotators from the same region or with similar moral values tend to label content differently.
|
| 113 |
+
|
| 114 |
+
# 4.1 Lack of Understanding
|
| 115 |
+
|
| 116 |
+
We start our analyses by investigating the patterns of annotators not understanding the provided text. While recent modeling efforts have shown the practical ways in which annotators' ambiguity or confidence can help inform the model. However, in many data annotation efforts, annotators' lack of understanding is either not captured or discarded. We ask whether specific groups of annotators are more likely to not understand the annotation item, and as a result, their responses are more likely to be discarded. We compared annotators with different demographics (along Gender, Age, and Region) on how likely they are to select the "I don't understand" answer (Figure 2). All further studies of the paper relies on the dataset after removing these answers.
|
| 117 |
+
|
| 118 |
+
Gender: When grouping annotators based on their gender or age, Men are overall less probable to state lack of understanding $(\mathbf{M} = .03, \mathrm{SD} = .07)$ , compared to Women $(\mathbf{M} = .05, \mathrm{SD} = .08, p < .001)$ , and other genders $(\mathbf{M} = 0.06, \mathrm{SD} = .07, p = .03)$ . However, Women and other genders did not differently select this label $(p = .34)$ .
|
| 119 |
+
|
| 120 |
+
Age: Participants who were aged 50 or more were more likely to state lack of understanding $(\mathbf{M} = .05, \mathrm{SD} = .09)$ , compared to 30-50 year-old $(\mathbf{M} = .04, \mathrm{SD} = .08, p < .01)$ , and 18-30 year-old $(\mathbf{M} = .04, \mathrm{SD} = .07, p < .01)$ . The difference of the latter two groups was insignificant $(p = .85)$
|
| 121 |
+
|
| 122 |
+
Region: We further looked into the regional differences in not understanding the answers; a pairwise Tukey test shows that annotators from Oceania $(\mathbf{M} = 0.06, \mathrm{SD} = 0.1)$ , North America $(\mathbf{M} = 0.06, \mathrm{SD} = 0.09)$ , and Western Europe $(\mathbf{M} = 0.06, \mathrm{SD} = 0.09)$ were all significantly more probably to state lack of understanding compared to Indian Cultural Sphere $(\mathbf{M} = 0.04, \mathrm{SD} = 0.08)$ , Arab Culture $(\mathbf{M} = 0.03, \mathrm{SD} = 0.06)$ , Latin America $(\mathbf{M} = 0.03, \mathrm{SD} = 0.06)$ , Sinosphere $(\mathbf{M} = 0.02, \mathrm{SD} = 0.07)$ , and Sub Saharan Africa $(\mathbf{M} = 0.02, \mathrm{SD} = 0.05)$ with all $p$ values lower than .05.
|
| 123 |
+
|
| 124 |
+
It is important to note that distinguishing between lack of understanding due to annotator limitations versus inherent ambiguity in the data is crucial for robust analysis and dataset curation. While our current data does not provide a reliable way to make this distinction, future work could explore strategies that combine annotator responses with text analysis techniques to identify data points that are objectively vague or difficult to understand.
|
| 125 |
+
|
| 126 |
+
# 4.2 Morally Aligned Annotators
|
| 127 |
+
|
| 128 |
+
To systematically study annotators' perspectives with regard to varying moral values we first cluster annotators into groups with high internal moral similarity. We used an unsupervised data-driven approach for K-nearest neighbors clustering with an Elbow method for determining the optimal number of clusters (see Appendix A.4). Figure 3a represents the resulting six clusters by the average moral values of their members. Figure 3b represents the distribution of annotators from different regions across the six moral clusters. As shown by the plots, regions have varying presence in the moral clusters; cluster 0 consists of annotators who agreed most with all dimensions of the moral foundations questionnaire, most participants in this cluster are from Indian Cultural Sphere, Sub Saharan Africa and Arab Culture. On the other hand, cluster 3 includes annotators who agreed the least with MFQ-2 values along most dimensions; while this cluster has the fewest annotators, most of them were from Western Europe, Oceania, and Sinosphere, in our data. Other 4 clusters each have their specific distribu
|
| 129 |
+
|
| 130 |
+

|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
|
| 136 |
+

|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
|
| 140 |
+

|
| 141 |
+
|
| 142 |
+
(a) The six moral clusters represented by the moral profile of their centroids. Clusters 0, 2 and 5 generally consist of participants who agreed more with the moral statements, with cluster 0 reporting the highest agreement. On the other hand, clusters 1, 3, and 4 report lower agreement with the moral statements, with cluster 3 consisting of participants who agreed the least.
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 3
|
| 146 |
+
|
| 147 |
+
(b) Distribution of participants from different regions across different moral clusters. Variances of regional presence are noticeable in several cases, e.g., cluster 0 mostly consists of participants from Indian Cultural Sphere, Arab Culture, and Sub-Saharan Africa.
|
| 148 |
+
|
| 149 |
+
tion of moral values across the axes, that show the most prevalent moral values in the annotator pool.
|
| 150 |
+
|
| 151 |
+
In general, while our results replicated previous evidence of regional differences in specific moral values (Atari et al., 2023) (e.g., more collective cultures such as Arab Culture score higher on values such as Purity and Authority), our analysis also demonstrates that cultural differences are not enough to completely explain annotators' moral preferences, as none of the clusters perfectly align
|
| 152 |
+
|
| 153 |
+
with cultural regions.
|
| 154 |
+
|
| 155 |
+
# 4.3 Disagreement among Groups
|
| 156 |
+
|
| 157 |
+
Additionally, we explore the homogeneity of annotations within various clusters of annotators. We specifically compare moral clusters' homogeneity with the alternative clustering approach that considers annotators of the same region to have similar perceptions. We considered region as an alternative means for clustering annotators because collected annotations tend to vary significantly across regions and countries (the distribution of ratings collected from different countries is provided in Figure 6). Inspired by Prabhakaran et al. (2023), we use the Group Association Index (GAI) metric which provides a measurement of perspective diversities within annotator groups. In other words, for each specific group of annotators, GAI provides the ratio of an in-group measurement of agreement to a cross-group measurement of cohesion. In our specific case, we measure in-group agreement through Inter-Rater Reliability (IRR), and cross-group cohesion through Cross-Replication Reliability (XRR; Wong et al., 2021). The GAI metric is then defined as the ratio to IRR to XRR, and a value more than 1 reports higher internal vs. external cohesion.
|
| 158 |
+
|
| 159 |
+
Table 2 includes the results for six moral clusters and eight geo-cultural groups of annotators. In all 14 cases, we assessed the agreement between each specific group and the combined responses of all other annotators. While the highest GAI score is achieved by one of the moral cluster (cluster 2, with low agreement with purity values and moderated moral values on all other axes), moral cluster in general have high variation in their homogeneity. On the other hand, regional clusters are generally more distinct in their perspectives.
|
| 160 |
+
|
| 161 |
+
# 4.4 Disagreement on Categories of Content
|
| 162 |
+
|
| 163 |
+
We further analyze the various types of content that annotators may label as offensive. As outlined in Section 3, annotated items are chosen using three strategies: random selection, morality-based selection, and social identity-based selection. Figure 4 shows that annotators tend to have varying degrees of disagreement (calculated as the standard deviation of labels assigned to the item) when labeling items selected based on different strategies. As the plot shows, items that mention specific social identity groups evoke highest levels of disagreement (Mean = .47, SD = .06), significantly higher than items with moral sentiment (Mean = .31, SD =
|
| 164 |
+
|
| 165 |
+
<table><tr><td>Dimension</td><td>Group</td><td>IRR</td><td>XRR</td><td>GAI</td></tr><tr><td rowspan="8">Region</td><td>AC.</td><td>↑0.13**</td><td>↑0.11</td><td>↑1.17*</td></tr><tr><td>ICS.</td><td>↓0.10</td><td>↓0.10*</td><td>↑1.04</td></tr><tr><td>LA.</td><td>↑0.13**</td><td>↑0.11</td><td>↑1.15*</td></tr><tr><td>NA.</td><td>↑0.14**</td><td>↑0.11</td><td>↑1.31**</td></tr><tr><td>Oc.</td><td>↑0.12</td><td>↓0.10</td><td>↑1.15*</td></tr><tr><td>Si.</td><td>↓0.09*</td><td>↓0.09**</td><td>↓1.00</td></tr><tr><td>SSA.</td><td>↑0.14**</td><td>↓0.10</td><td>↑1.36**</td></tr><tr><td>WE.</td><td>↑0.14**</td><td>↑0.11</td><td>↑1.22**</td></tr><tr><td rowspan="6">Moral Cluster</td><td>0</td><td>↑0.12*</td><td>↑0.12**</td><td>↑1.05</td></tr><tr><td>1</td><td>↑0.12</td><td>↑0.11</td><td>↑1.04</td></tr><tr><td>2</td><td>↑0.18**</td><td>↑0.12**</td><td>↑1.46**</td></tr><tr><td>3</td><td>↓0.07**</td><td>↓0.10**</td><td>↓0.75**</td></tr><tr><td>4</td><td>↑0.11</td><td>↑0.11</td><td>↑1.00</td></tr><tr><td>5</td><td>↓0.09*</td><td>↓0.09**</td><td>↓0.97</td></tr></table>
|
| 166 |
+
|
| 167 |
+
Table 2: Results for in-group and cross-group cohesion, and GAI. Significant results are in **bold:** for significance at $p < 0.05$ , **for significance after Benjamini-Hochberg correction. A ↓ (or ↑) means that the result is less (or greater) than expected under the null hypothesis. GAI results based on $C_X = \text{XRR}$ and $C_I = \text{IRR}$ .
|
| 168 |
+
|
| 169 |
+
.16) and the randomly selected items (Mean $= .41$ , SD $= .10$ ), both with $p < .001$ . It is important to note that our randomly selected items were deliberately chosen from those with high disagreement in the original Jigsaw dataset. Our analysis indicates that items mentioning social identity groups tend to evoke even more disagreement.
|
| 170 |
+
|
| 171 |
+
In addition to disagreement between annotators, items can be labeled differently by various groups of annotators. The aggregated labels from each region demonstrates how recruiting annotators from specific regions could lead to having thoroughly different final dataset. Table 3 represents items with high cross-region disagreement.
|
| 172 |
+
|
| 173 |
+
# 5 Discussion
|
| 174 |
+
|
| 175 |
+
Research on safety considerations of large language models has mostly focused on evaluations of model harms through crowdsourced benchmarks (Srivastava et al., 2023; Wang et al., 2022). However, while annotators from different regions are shown to have different perspectives regarding this task (Salminen et al., 2018; Lee et al., 2023), current benchmarks fail to represent the cultural and individual variations in human moral judgements about generated language and model outputs. They also lack comprehensive understanding of human values and cultural norms that drive diversity of perspectives in annotations. This work presents a cross-cultural experiment with participants across various cultural and demographic backgrounds.
|
| 176 |
+
|
| 177 |
+
<table><tr><td rowspan="2">Item</td><td colspan="2">Offensive</td><td rowspan="2">Category</td></tr><tr><td>Yes</td><td>No</td></tr><tr><td>Transgender athletes.... Trans-gender students.... This is what feminism gets you in society. This was unheard of only a short 20 years ago.</td><td>AC, LA, NA, Oc</td><td>ICS, Si, SSA, WE</td><td>transgender</td></tr><tr><td>Does pointing out that a growing majority of Americans support adultery (abortion, same sex marriage, even theft), change God's law an iota?</td><td>AC, ICS, LA, NA</td><td>Oc, Si, SSA, WE</td><td>LGB</td></tr><tr><td>The women came out because he is a hypocrite, a child predator. Come on trumpers, defend the child predator Christian, lol</td><td>ICS, LA, Oc, SSA</td><td>AC, NA, Si, WE</td><td>christian</td></tr></table>
|
| 178 |
+
|
| 179 |
+
Table 3: Highest cross-regional disagreement.
|
| 180 |
+
|
| 181 |
+
Our dataset captures valuable insights into human perceptions on offensive language, revealing demographic differences in annotation certainty, and regional, as well as moral psychological variations in perceiving offensiveness.
|
| 182 |
+
|
| 183 |
+
Our first analyses captures how participants with different demographic background might express their unfamiliarity with the annotation. In general, annotators not identifying as Men and annotators aged 50 and above are more likely to select the "I don't understand" option. Moreover, annotators from Oceania, North America, and Western Europe were significantly more probably to state that they did not understand the message compared to Indian Cultural Sphere, Arab Culture, Latin America, Sinosphere, and Sub Saharan Africa. Therefore, it is important to note how this kind of uncertainty in annotating might occurred disproportionately for different groups.
|
| 184 |
+
|
| 185 |
+
Our dataset also represent different categories of content within a well-known machine learning corpus, with annotators having varying levels of disagreement for labeling content from different categories. While items with moral sentiment are the least likely to evoke disagreement, items mentioning specific social groups are more likely to have a varying range of annotation. This finding replicates previous findings on how group perception and stereotypes affect harm perception targeting different social groups, in a cross-cultural context. Consequently, these findings underscore the need for further research into social dynamics within diverse cultural contexts to better understand and mitigate harmful risks of language technologies.
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
(a) Density plot of item-level disagreement.
|
| 189 |
+
|
| 190 |
+

|
| 191 |
+
(b) Cross-regional disagreements (standard deviation of majority votes from all regions) or each sub-category.
|
| 192 |
+
Figure 4: Items related to social groups (christian, transgender, Jewish, Muslim and LGB) generally evoke more disagreement compared to random items.
|
| 193 |
+
|
| 194 |
+
Our dataset and findings demonstrate the potential for incorporating diverse cultural and individual moral perspectives to enhance fairness in LLMs. By moving beyond traditional socio-demographic groupings and understanding how individual moral values shape perceptions, we provide a pathway for defining model alignment strategies that capture a broader range of human values, thus contributing to the approaches to address representation biases by challenging value alignment frameworks that prioritize normative cultural or societal values.
|
| 195 |
+
|
| 196 |
+
# 6 Conclusion
|
| 197 |
+
|
| 198 |
+
We introduce the D3CODE dataset, which captures the results of a cross-cultural annotation experiment for understanding disagreements on perceiving offensiveness in language. Our findings reveal significant demographic and regional variations in perceptions of offensive language, underlining the necessity of incorporating diverse perspectives into reinforcement learning with human feedback. Additionally, the dataset showcases differences in annotation certainty and disagreement levels across various content categories, particularly concerning mentions of specific social groups. These findings underscore the imperative for further research into
|
| 199 |
+
|
| 200 |
+
social dynamics within diverse cultural contexts to mitigate the risks associated with harmful language in language technologies and promote fairness and inclusivity in digital interactions.
|
| 201 |
+
|
| 202 |
+
# Limitations
|
| 203 |
+
|
| 204 |
+
In our work, we focus on moral foundations as a way to measure differences in values across groups; however, values can be measured in other ways, including other psychological questionnaires such as the Schwartz's value survey (Lindeman and Verkasalo, 2005) or the World Value survey (Inglehart et al., 2000) as well as through interviews, case studies and ethnography. Importantly, while our annotator sample represents diverse cultural perspectives, the items in our dataset are in English, which may explain the different rates of "I don't know" responses observed across regions. Moreover, English data likely features lower representation of certain content, such as offensive content about social groups, celebrations, or politics specific to certain regions and languages. In addition, to preserve our ability to compare data cross-culturally, we focused on demographic categories that are broadly recognized. As a result, we did not conduct analyses of demographic differences that are specific to particular cultural regions, such as caste, and we did not collect highly sensitive demographic information, such as sexual orientation. We acknowledge that salient social categories can differ greatly across geo-cultural reasons, therefore our selection of categories should not be considered exhaustive. Finally, our selection of countries within each cultural region was informed by access feasibility via our data collection platform, which may have introduced unexpected sampling biases.
|
| 205 |
+
|
| 206 |
+
Our clustering approach is unsupervised and data-driven, with the primary goal of identifying distinct groups of annotators that behave similarly. While not all clusters have immediate intuitive interpretations, they each represent a group of annotators who share similar moral values, differentiating them from other groups. We avoided overinterpreting the patterns in all clusters but we do acknowledge that further qualitative exploration of these clusters is needed to extract more insight about the annotators in each group.
|
| 207 |
+
|
| 208 |
+
We chose language proficiency as a criteria since most widely used NLP-based content moderation tools tend to focus on English, and English is a language spoken across diverse cultures across the
|
| 209 |
+
|
| 210 |
+
globe that facilitates such a study. We acknowledge that as a result our participant pool may not be a good population representation across regions. However, our primary aim is not to comprehensively capture regional moral differences (a question addressed in social psychology research, e.g., Atari et al. (2023)). Instead, we focus on demonstrating how biases creep into the ML pipeline, as a result of existing crowdsourcing efforts for English content/data annotations relying on English speakers without accounting for the cultural differences in countries where English is not the first language. According to your helpful feedback, we will discuss the motivation of requiring English proficiency, and acknowledge the limitations it entails.
|
| 211 |
+
|
| 212 |
+
# Ethics Statement
|
| 213 |
+
|
| 214 |
+
In this work, we collected and modeled annotator responses primarily to demonstrate geocultural differences. Our results and approaches are not meant to be used to define user preferences or platform policies. For example, a subgroup's higher or lower tendency to identify content as offensive does not necessarily mean that content moderation policies should differ for that group. In addition, our work does not advocate for treating any particular cultural group's labels as more "correct" than those of another cultural group.
|
| 215 |
+
|
| 216 |
+
# Acknowledgements
|
| 217 |
+
|
| 218 |
+
We would like to express our gratitude to Alicia Parrish, and Kathy Meier-Hellstern for their support and insightful feedback on this paper. We appreciate Blake Schritter and James Stewart for their support throughout the data collection process.
|
| 219 |
+
|
| 220 |
+
# References
|
| 221 |
+
|
| 222 |
+
Nancy E Adler, Elissa S Epel, Grace Castellazzo, and Jeannette R Ickovics. 2000. Relationship of subjective and objective social status with psychological and physiological functioning: Preliminary data in healthy, white women. *Health psychology*, 19(6):586.
|
| 223 |
+
Sohail Akhtar, Valerio Basile, and Viviana Patti. 2021. Whose opinions matter? perspective-aware models to identify opinions of hate speech victims in abusive language detection. arXiv preprint arXiv:2106.15896.
|
| 224 |
+
Hala Al Kuwatly, Maximilian Wich, and Georg Groh. 2020. Identifying and measuring annotator bias
|
| 225 |
+
|
| 226 |
+
based on annotators' demographic characteristics. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 184-190, Online. Association for Computational Linguistics.
|
| 227 |
+
Lora Aroyo, Mark Diaz, Christopher Homan, Vinodkumar Prabhakaran, Alex Taylor, and Ding Wang. 2023a. The reasonable effectiveness of diverse evaluation data.
|
| 228 |
+
Lora Aroyo, Lucas Dixon, Nithum Thain, Olivia Redfield, and Rachel Rosen. 2019. Crowdsourcing subjective tasks: the case study of understanding toxicity in online discussions. In *Companion proceedings of the 2019 world wide web conference*, pages 1100-1105.
|
| 229 |
+
Lora Aroyo, Alex S Taylor, Mark Diaz, Christopher M Homan, Alicia Parrish, Greg Serapio-Garcia, Vinodkumar Prabhakaran, and Ding Wang. 2023b. DICES dataset: Diversity in conversational ai evaluation for safety. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks.
|
| 230 |
+
Lora Aroyo and Chris Welty. 2013. Crowd truth: Harnessing disagreement in crowdsourcing a relation extraction gold standard. WebSci2013. ACM, 2013(2013).
|
| 231 |
+
Lora Aroyo and Chris Welty. 2015. Truth is a lie: Crowd truth and the seven myths of human annotation. AI Magazine, 36(1):15-24.
|
| 232 |
+
Mohammad Atari, Jonathan Haidt, Jesse Graham, Sena Koleva, Sean T Stevens, and Morteza Dehghani. 2023. Morality beyond the weird: How the nomological network of morality varies across cultures. Journal of Personality and Social Psychology, 125.
|
| 233 |
+
Valerio Basile, Michael Fell, Tommaso Fornaciari, Dirk Hovy, Silviu Paun, Barbara Plank, Massimo Poesio, and Alexandra Uma. 2021. We need to consider disagreement in evaluation. In Proceedings of the 1st Workshop on Benchmarking: Past, Present and Future, Online. Association for Computational Linguistics.
|
| 234 |
+
Federico Cabitza, Andrea Campagner, and Valerio Basile. 2023. Toward a perspectivist turn in ground truthing for predictive computing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 6860-6868.
|
| 235 |
+
John Joon Young Chung, Jean Y Song, Sindhu Kutty, Sungsoo Hong, Juho Kim, and Walter S Lasecki. 2019. Efficient elicitation approaches to estimate collective crowd answers. CSCW, pages 1-25.
|
| 236 |
+
Aida Mostafazadeh Davani, Mohammad Atari, Brendan Kennedy, and Morteza Dehghani. 2023. Hate speech classifiers learn normative social stereotypes. Transactions of the Association for Computational Linguistics, 11:300-319.
|
| 237 |
+
|
| 238 |
+
Aida Mostafazadeh Davani, Mark Diaz, and Vinodkumar Prabhakaran. 2022. Dealing with disagreements: Looking beyond the majority vote in subjective annotations. Transactions of the Association for Computational Linguistics, 10:92-110.
|
| 239 |
+
Naihao Deng, Xinliang Zhang, Siyang Liu, Winston Wu, Lu Wang, and Rada Mihalcea. 2023. You are what you annotate: Towards better models through annotator representations. In *Findings of the Association for Computational Linguistics: EMNLP* 2023, pages 12475-12498, Singapore. Association for Computational Linguistics.
|
| 240 |
+
Emily Denton, Mark Diaz, Ian Kivlichan, Vinodkumar Prabhakaran, and Rachel Rosen. 2021. Whose ground truth? accounting for individual and collective identities underlying dataset annotation. arXiv preprint arXiv:2112.04554.
|
| 241 |
+
Mark Díaz, Razvan Amironesei, Laura Weidinger, and Jason Gabriel. 2022a. Accounting for offensive speech as a practice of resistance. In Proceedings of the sixth workshop on online abuse and harms (woah), pages 192-202.
|
| 242 |
+
Mark Díaz, Ian Kivlichan, Rachel Rosen, Dylan Baker, Razvan Amironesei, Vinodkumar Prabhakaran, and Emily Denton. 2022b. Crowdsheets: Accounting for individual and collective identities underlying crowdsourced dataset annotation. In 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 2342-2351.
|
| 243 |
+
Anca Dumitrache, Lora Aroyo, and Chris Welty. 2019. A crowdsourced frame disambiguation corpus with ambiguity. 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 2164-2170, Minneapolis, Minnesota. Association for Computational Linguistics.
|
| 244 |
+
Carsten Eickhoff. 2018. Cognitive biases in crowdsourcing. In Proceedings of the eleventh ACM international conference on web search and data mining, pages 162-170.
|
| 245 |
+
Elisa Ferracane, Greg Durrett, Junyi Jessy Li, and Katrin Erk. 2021. Did they answer? Subjective acts and intents in conversational discourse. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1626-1644, Online. Association for Computational Linguistics.
|
| 246 |
+
Tommaso Fornaciari, Alexandra Uma, Silviu Paun, Barbara Plank, Dirk Hovy, and Massimo Poesio. 2021. Beyond black & white: Leveraging annotator disagreement via soft-label multi-task learning. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2591-2597.
|
| 247 |
+
|
| 248 |
+
Antigoni Founta, Constantinos Djouvas, Despoina Chatzakou, Ilias Leontiadis, Jeremy Blackburn, Gianluca Stringhini, Athena Vakali, Michael Sirivianos, and Nicolas Kourtellis. 2018. Large scale crowdsourcing and characterization of twitter abusive behavior. In Proceedings of the international AAAI conference on web and social media, volume 12.
|
| 249 |
+
Justin Garten, Brendan Kennedy, Joe Hoover, Kenji Sage, and Morteza Dehghani. 2019. Incorporating demographic embeddings into language understanding. Cognitive science, 43(1):e12701.
|
| 250 |
+
Mor Geva, Yoav Goldberg, and Jonathan Berant. 2019. Are we modeling the task or the annotator? an investigation of annotator bias in natural language understanding datasets. 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 1161-1166, Hong Kong, China. Association for Computational Linguistics.
|
| 251 |
+
Mitchell L Gordon, Michelle S Lam, Joon Sung Park, Kayur Patel, Jeff Hancock, Tatsunori Hashimoto, and Michael S Bernstein. 2022. Jury learning: Integrating dissenting voices into machine learning models. In Proceedings of the 2022 CHI Conference on Human Factors in Computing Systems, pages 1-19.
|
| 252 |
+
Nitesh Goyal, Ian D Kivlichan, Rachel Rosen, and Lucy Vasserman. 2022. Is your toxicity my toxicity? exploring the impact of rater identity on toxicity annotation. Proceedings of the ACM on Human-Computer Interaction, 6(CSCW2):1-28.
|
| 253 |
+
Jesse Graham, Jonathan Haidt, Sena Koleva, Matt Motyl, Ravi Iyer, Sean P Wojcik, and Peter H Ditto. 2013. Moral foundations theory: The pragmatic validity of moral pluralism. In Advances in experimental social psychology, volume 47, pages 55-130. Elsevier.
|
| 254 |
+
Joshua D Greene, R Brian Sommerville, Leigh E Nystrom, John M Darley, and Jonathan D Cohen. 2001. An fmri investigation of emotional engagement in moral judgment. Science, 293(5537):2105-2108.
|
| 255 |
+
Jonathan Haidt. 2008. Morality. Perspectives on psychological science, 3(1):65-72.
|
| 256 |
+
Hassan Hayat, Carles Ventura, and Agata Lapedriza. 2022. Modeling subjective affect annotations with multi-task learning. Sensors, 22(14):5245.
|
| 257 |
+
Christopher Homan, Gregory Serapio-Garcia, Lora Aroyo, Mark Diaz, Alicia Parrish, Vinodkumar Prabhakaran, Alex Taylor, and Ding Wang. 2024. Intersectionality in AI safety: Using multilevel models to understand diverse perceptions of safety in conversational AI. In Proceedings of the 3rd Workshop on Perspectivist Approaches to NLP (NLPerspectives) @ LREC-COLING 2024, pages 131-141, Torino, Italia. ELRA and ICCL.
|
| 258 |
+
|
| 259 |
+
Joe Hoover, Gwenyth Portillo-Wightman, Leigh Yeh, Shreya Havaldar, Aida Mostafazadeh Davani, Ying Lin, Brendan Kennedy, Mohammad Atari, Zahra Kamel, Madelyn Mendlen, et al. 2020. Moral foundations twitter corpus: A collection of 35k tweets annotated for moral sentiment. Social Psychological and Personality Science, 11(8):1057-1071.
|
| 260 |
+
Dirk Hovy. 2015. Demographic factors improve classification performance. In Proceedings of the 53rd annual meeting of the Association for Computational Linguistics and the 7th international joint conference on natural language processing (volume 1: Long papers), pages 752-762.
|
| 261 |
+
Dirk Hovy, Taylor Berg-Kirkpatrick, Ashish Vaswani, and Eduard Hovy. 2013. Learning whom to trust with mace. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 1120-1130.
|
| 262 |
+
Dirk Hovy and Diyi Yang. 2021. The importance of modeling social factors of language: Theory and practice. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 588-602.
|
| 263 |
+
Chia-Chien Hung, Anne Lauscher, Dirk Hovy, Simone Paolo Ponzetto, and Goran Glavaš. 2023. Can demographic factors improve text classification? revisiting demographic adaptation in the age of transformers. In *Findings of the 2023 Association for Computational Linguistics*.
|
| 264 |
+
Ronald Inglehart, Miguel Basanez, Jaime Diez-Medrano, Loek Halman, and Ruud Luijkx. 2000. World values surveys and european values surveys, 1981-1984, 1990-1993, and 1995-1997. Ann Arbor-Michigan, Institute for Social Research, ICPSR version.
|
| 265 |
+
Emily Jamison and Iryna Gurevych. 2015. Noise or additional information? leveraging crowdsourced annotation item agreement for natural language tasks. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 291-297, Lisbon, Portugal. Association for Computational Linguistics.
|
| 266 |
+
Jigsaw. 2018. Toxic comment classification challenge. Accessed: 2021-05-01.
|
| 267 |
+
Jigsaw. 2019. Unintended bias in toxicity classification. Accessed: 2021-05-01.
|
| 268 |
+
Sanjay Kairam and Jeffrey Heer. 2016. Parting crowds: Characterizing divergent interpretations in crowdsourced annotation tasks. In CSCW.
|
| 269 |
+
Brendan Kennedy, Preni Golazizian, Jackson Trager, Mohammad Atari, Joe Hoover, Aida Mostafazadeh Davani, and Morteza Dehghani. 2023. The (moral) language of hate. PNAS nexus, 2(7):pgad210.
|
| 270 |
+
|
| 271 |
+
Chris J Kennedy, Geoff Bacon, Alexander Sahn, and Claudia von Vacano. 2020. Constructing interval variables via faceted rasch measurement and multitask deep learning: a hate speech application. arXiv preprint arXiv:2009.10277.
|
| 272 |
+
Manfred Klenner, Anne Gohring, and Michael Amsler. 2020. Harmonization sometimes harms. CEUR Workshops Proc.
|
| 273 |
+
Lawrence Kohlberg. 1921. The philosophy of moral development: Moral stages and the idea of justice, volume 1. San Francisco: harper & row.
|
| 274 |
+
Deepak Kumar, Patrick Gage Kelley, Sunny Consolvo, Joshua Mason, Elie Burszttein, Zakir Durmeric, Kurt Thomas, and Michael Bailey. 2021. Designing toxic content classification for a diversity of perspectives. In Seventeenth Symposium on Usable Privacy and Security (SOUPS 2021), pages 299-318.
|
| 275 |
+
Nayeon Lee, Chani Jung, Junho Myung, Jiho Jin, Juho Kim, and Alice Oh. 2023. Crehate: Cross-cultural re-annotation of english hate speech dataset. arXiv preprint arXiv:2308.16705.
|
| 276 |
+
Elisa Leonardelli, Stefano Menini, Alessio Palmero Aprosio, Marco Guerini, and Sara Tonelli. 2021. Agreeing to disagree: Annotating offensive language datasets with annotators' disagreement. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 10528-10539, Online and Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 277 |
+
Marjaana Lindeman and Markku Verkasalo. 2005. Measuring values with the short schwartz's value survey. Journal of personality assessment, 85(2):170-178.
|
| 278 |
+
Tong Liu, Akash Venkatachalam, Pratik Sanjay Bongale, and Christopher M. Homan. 2019. Learning to predict population-level label distributions. In HCOMP.
|
| 279 |
+
Negar Mokhberian, Myrl G Marmarelis, Frederic R Hopp, Valerio Basile, Fred Morstatter, and Kristina Lerman. 2023. Capturing perspectives of crowdsourced annotators in subjective learning tasks. arXiv preprint arXiv:2311.09743.
|
| 280 |
+
Ludwin E Molina, Linda R Tropp, and Chris Goode. 2016. Reflections on prejudice and intergroup relations. Current Opinion in Psychology, 11:120-124. Intergroup relations.
|
| 281 |
+
Ziad Obermeyer, Brian Powers, Christine Vogeli, and Sendhil Mullainathan. 2019. Dissecting racial bias in an algorithm used to manage the health of populations. Science.
|
| 282 |
+
Matthias Orlikowski, Paul Röttger, Philipp Cimiano, and Dirk Hovy. 2023. The ecological fallacy in annotation: Modeling human label variation goes beyond sociodemographics. In Proceedings of the
|
| 283 |
+
|
| 284 |
+
61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 1017-1029, Toronto, Canada. Association for Computational Linguistics.
|
| 285 |
+
Alicia Parrish, Susan Hao, Sarah Laszlo, and Lora Aroyo. 2024a. Is a picture of a bird a bird? a mixed-methods approach to understanding diverse human perspectives and ambiguity in machine vision models. pages 1-18.
|
| 286 |
+
Alicia Parrish, Vinodkumar Prabhakaran, Lora Aroyo, Mark Diaz, Christopher M. Homan, Greg Serapio-García, Alex S. Taylor, and Ding Wang. 2024b. Diversity-aware annotation for conversational AI safety. In Proceedings of Safety4ConvAI: The Third Workshop on Safety for Conversational AI @ LREC-COLING 2024, pages 8-15, Torino, Italia. ELRA and ICCL.
|
| 287 |
+
Ellie Pavlick and Tom Kwiatkowski. 2019. Inherent disagreements in human textual inferences. Transactions of the Association for Computational Linguistics, 7:677-694.
|
| 288 |
+
Jiaxin Pei and David Jurgens. 2023. When do annotator demographics matter? measuring the influence of annotator demographics with the POPQUORN dataset. In Proceedings of the 17th Linguistic Annotation Workshop (LAW-XVII), pages 252-265, Toronto, Canada. Association for Computational Linguistics.
|
| 289 |
+
Barbara Plank. 2022. The "problem" of human label variation: On ground truth in data, modeling and evaluation. pages 10671-10682.
|
| 290 |
+
Barbara Plank, Dirk Hovy, and Anders Søgaard. 2014a. Learning part-of-speech taggers with inter-annotator agreement loss. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, pages 742-751.
|
| 291 |
+
Barbara Plank, Dirk Hovy, and Anders Søgaard. 2014b. Linguistically debatable or just plain wrong? In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 507-511, Baltimore, Maryland. Association for Computational Linguistics.
|
| 292 |
+
Vinodkumar Prabhakaran, Christopher Homan, Lora Aroyo, Alicia Parrish, Alex Taylor, Mark Diaz, and Ding Wang. 2023. A framework to assess (dis)agreement among diverse rater groups. arXiv preprint arXiv:2311.05074.
|
| 293 |
+
Vinodkumar Prabhakaran, Aida Mostafazadeh Davani, and Mark Diaz. 2021. On releasing annotator-level labels and information in datasets. In Proceedings of The Joint 15th Linguistic Annotation Workshop (LAW) and 3rd Designing Meaning Representations (DMR) Workshop, pages 133-138, Punta Cana, Dominican Republic. Association for Computational Linguistics.
|
| 294 |
+
|
| 295 |
+
Americus Reed II and Karl F Aquino. 2003. Moral identity and the expanding circle of moral regard toward out-groups. Journal of personality and social psychology, 84(6):1270.
|
| 296 |
+
Paul Rottger, Bertie Vidgen, Dirk Hovy, and Janet Pierrehumbert. 2022. Two contrasting data annotation paradigms for subjective NLP tasks. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 175-190, Seattle, United States. Association for Computational Linguistics.
|
| 297 |
+
Pratik S Sachdeva, Renata Barreto, Claudia von Vacano, and Chris J Kennedy. 2022. Assessing annotator identity sensitivity via item response theory: A case study in a hate speech corpus. In Proceedings of the 2022 ACM Conference on Fairness, Accountability, and Transparency, pages 1585-1603.
|
| 298 |
+
Joni Salminen, Hind Almerekhi, Ahmed Mohamed Kamel, Soon-gyo Jung, and Bernard J Jansen. 2019. Online hate ratings vary by extremes: A statistical analysis. In Proceedings of the 2019 Conference on Human Information Interaction and Retrieval, pages 213-217.
|
| 299 |
+
Joni Salminen, Fabio Veronesi, Hind Almerekhi, SoonGvo Jung, and Bernard J Jansen. 2018. Online hate interpretation varies by country, but more by individual: A statistical analysis using crowdsourced ratings. In 2018 fifth international conference on social networks analysis, management and security (snams), pages 88-94. IEEE.
|
| 300 |
+
Maarten Sap, Swabha Swayamdipta, Laura Vianna, Xuhui Zhou, Yejin Choi, and Noah A. Smith. 2022. Annotators with attitudes: How annotator beliefs and identities bias toxic language detection. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5884-5906, Seattle, United States. Association for Computational Linguistics.
|
| 301 |
+
Morgan Klaus Scheuerman, Alex Hanna, and Emily Denton. 2021. Do datasets have politics? Disciplinary values in computer vision dataset development. Proceedings of the ACM on Human-Computer Interaction, 5(CSCW2):1-37.
|
| 302 |
+
Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R. Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, Agnieszka Kluska, Aitor Lewkowycz, Akshit Agarwal, Alethea Power, Alex Ray, Alex Warstadt, Alexander W. Kocurek, Ali Safaya, Ali Tazarv, Alice Xiang, Alicia Parrish, Allen Nie, Aman Hussain, Amanda Askell, Amanda Dsouza, Ambrose Slone, Ameet Rahane, Anantharaman S. Iyer, Anders Andreassen, Andrea Madotto, Andrea Santilli, Andreas Stuhlmüller, Andrew Dai, Andrew La, Andrew Lampinen, Andy Zou, Angela Jiang, Angelica Chen, Anh Vuong
|
| 303 |
+
|
| 304 |
+
Animesh Gupta, Anna Gottardi, Antonio Norelli, Anu Venkatesh, Arash Gholamidavoodi, Arfa Tabassum, Arul Menezes, Arun Kirubarajan, Asher Mullokandov, Ashish Sabharwal, Austin Herrick, Avia Efrat, Aykut Erdem, Ayla Karakas, B. Ryan Roberts, Bao Sheng Loe, Barret Zoph, Bartlomiej Bojanowski, Batuhan Özyurt, Behnam Hedayatnia, Behnam Neyshabur, Benjamin Inden, Benno Stein, Berk Ekmekci, Bill Yuchen Lin, Blake Howald, Bryan Orinion, Cameron Diao, Cameron Dour, Catherine Stinson, Cedrick Argueta, Cesar Ferri Ramírez, Chandan Singh, Charles Rathkopf, Chenlin Meng, Chitta Baral, Chiyu Wu, Chris Callison-Burch, Chris Waites, Christian Voigt, Christopher D. Manning, Christopher Potts, Cindy Ramirez, Clara E. Rivera, Clemencia Siro, Colin Raffel, Courtney Ashcraft, Cristina Garbacea, Damien Sileo, Dan Garrette, Dan Hendrycks, Dan Kilman, Dan Roth, Daniel Freeman, Daniel Khashabi, Daniel Levy, Daniel Mosegui González, Danielle Perszyk, Danny Hernandez, Danqi Chen, Daphne Ippolito, Dar Gilboa, David Dohan, David Drakard, David Jurgens, Debajyoti Datta, Deep Ganguli, Denis Emelin, Denis Kleyko, Deniz Yuret, Derek Chen, Derek Tam, Dieuwke Hupkes, Diganta Misra, Dilyar Buzan, Dimitri Coelho Mollo, Diyi Yang, Dong-Ho Lee, Dylan Schrader, Ekaterina Shutova, Ekin Dogus Cubuk, Elad Segal, Eleanor Hagerman, Elizabeth Barnes, Elizabeth Donoway, Ellie Pavlick, Emanuele Rodola, Emma Lam, Eric Chu, Eric Tang Erkut Erdem, Ernie Chang, Ethan A. Chi, Ethan Dyer, Ethan Jerzak, Ethan Kim, Eunice Engefu Manyasi, Evgenii Zheltonozhskii Fanyue Xia, Fatemeh Siar, Fernando Martínez-Plumed, Francesca Happé, Francois Chollet, Frieda Rong, Gaurav Mishra, Genta Indra Winata, Gerard de Melo, German Kruszewski Giambattista Parascandolo Giorgio Mariani Gloria WangGonzalo JaimovitchLópez,Gregor Betz,Guy Gur-Ari,Hana Galijasevic Hannah Kim Hannah Rashkin Hannaneh Hajishirzi Harsh Mehta Hayden Bogar Henry Shevlin Hinrich Schütze Hiromu Yakura Hongming Zhang Hugh Mee Wong,Ian Ng Isaac Noble,Jaap Jumelet Jack Geissinger,Jackson Kernion Jacob Hilton Jaehoon Lee Jaime Fernández FisacJames B.Simon James KoppelJames ZhengJames ZouJan Kocon Jana Thompson Janelle Wingfield Jared Kaplan Jarema Radom Jascha Sohl-Dickstein Jason Phang Jason Wei Jason Yosinski Jekaterina Novikova Jelle Bosscher Jennifer Marsh Jeremy Kim Jeroen Taal Jesse Engel Jesujoba Alabi Jiacheng Xu Jiaming Song Jillian TangJoan Waweru John Burden John Miller John U. Balis Jonathan Batchelder Jonathan Berant Jörg Frohberg Jos Rozen Jose Fernandez-Orallo Joseph Boudeman Joseph Guerr Joseph Jones Joshua B.TenenbaumJoshua S. RuleJoyce ChuaKamil KanclerzKaren Livescu Karl Krauth,Karthik Gopalakrishnan Katerina Ignatyeva Katja Markert Kaustubh D.Dhole Kevin Gimpel Kevin Omondi Kory Mathewson Kristen Chiafullo Ksenia Shkaruta Kumar Shridhar Kyle McDonell Kyle Richardson Laria Reynolds Leo Gao Li Zhang Liam Dugan Lianhui Qin
|
| 305 |
+
|
| 306 |
+
Lidia Contreras-Ochando, Louis-Philippe Morency, Luca Moschella, Lucas Lam, Lucy Noble, Ludwig Schmidt, Luheng He, Luis Oliveros Colón, Luke Metz, Lutfi Kerem Şenel, Maarten Bosma, Maarten Sap, Maartje ter Hoeve, Maheen Farooqi, Manaal Faruqui, Mantas Mazeika, Marco Baturan, Marco Marelli, Marco Maru, Maria Jose Ramírez Quintana, Marie Tolkiehn, Mario Giulianielli, Martha Lewis, Martin Potthast, Matthew L. Leavitt, Matthias Hagen, Mátías Schubert, Medina Orduna Baitemirova, Melody Arnaud, Melvin McElrath, Michael A. Yee, Michael Cohen, Michael Gu, Michael Ivanitskiy, Michael Starritt, Michael Strube, Michal Swedrowski, Michele Bevilacqua, Michihiro Yasunaga, Mihir Kale, Mike Cain, Mimee Xu, Mirac Suzgun, Mitch Walker, Mo Tiwari, Mohit Bansal, Moin Aminnaseri, Mor Geva, Mozhdeh Gheini, Mukund Varma T, Nanyun Peng, Nathan A. Chi, Nayeon Lee, Neta Gur-Ari Krakover, Nicholas Cameron, Nicholas Roberts, Nick Doiron, Nicole Martinez, Nikita Nangia, Niklas Deckers, Niklas Muennighoff, Nitish Shirish Keskar, Niveditha S. Iyer, Noah Constant, Noah Fiedel, Nuan Wen, Oliver Zhang, Omar Agha, Omar Elbaghdadi, Omer Levy, Owain Evans, Pablo Antonio Moreno Casares, Parth Doshi, Pascale Fung, Paul Pu Liang, Paul Vicol, Pegah Alipoormolabashi, Peiyuan Liao, Percy Liang, Peter Chang, Peter Eckersley, Phu Mon Htut, Pinyu Hwang, Piotr Milkowski, Piyush Patil, Pouya Pezeshkpour, Priti Oli, Qiaozhu Mei, Qing Lyu, Qinlang Chen, Rabin Banjade, Rachel Etta Rudolph, Raefer Gabriel, Rahul Habacker, Ramon Risco, Raphael Milliere, Rhythm Garg, Richard Barnes, Rif A. Saurous, Riku Arakawa, Robbe Raymaekers, Robert Frank, Rohan Sikand, Roman Novak, Roman Sitelew, Ronan LeBras, Rosanne Liu, Rowan Jacobs, Rui Zhang, Ruslan Salakhutdinov, Ryan Chi, Ryan Lee, Ryan Stovall, Ryan Teehan, Ryan Yang, Sahib Singh, Saif M. Mohammad, Sajant Anand, Sam Dillavou, Sam Shleifer, Sam Wiseman, Samuel Gruetter, Samuel R. Bowman, Samuel S. Schoenholz, Sanghyun Han Sanjeev Kwatra Sarah A. Rous Sarik Ghazarian Sayan Ghosh Sean Casey Sebastian Bischoff Sebastian Gehrmann Sebastian Schuster Sepideh Sadeghi Shadi Hamdan Sharon Zhou Shashank Srivastava Sherry Shi Shikhar Singh Shima Asaadi Shixiang Shane Gu Shubh Pachchigar Shubham Toshniwal Shyam Upadhyay Shyamolima Debnath Siamak Shakeri Simon Thormeyer Simone Melzi Siva Reddy Sneha Priscilla Makini Soo-Hwan Lee Spencer Tirene Sriharsha Hatwar Stanislas Dehaene Stefan Divic Stefano Ermon Stella Biderman Stephanie Lin Stephen Prasad Steven T. Piantadosi Stuart M. Shieber Summer Misherghi Svetlana Kiritchenko Swaroop Mishra Tal Linzen Tal Schuster Tao Li Tao Yu Tariq Ali Tatsu Hashimoto Te-Lin Wu Theo Desbordes Theodore Rothschild Thomas Phan Tianle Wang Tiberius Nkyili Timo Schick Timofei Kornev Titus Tunduny Tobias Gerstenberg Trenton Chang Trishala Neeraj Tushar Khot Tyler Shultz Uri Shaham Vedant Misra Vera Demberg Victoria Nyamai Vikas Raunak Vinay Ra
|
| 307 |
+
|
| 308 |
+
masesh, Vinay Uday Prabhu, Vishakh Padmakumar, Vivek Srikumar, William Fedus, William Saunders, William Zhang, Wout Vossen, Xiang Ren, Xiaoyu Tong, Xinran Zhao, Xinyi Wu, Xudong Shen, Yadollah Yaghoobzadeh, Yair Lakretz, Yangqiu Song, Yasaman Bahri, Yejin Choi, Yichi Yang, Yiding Hao, Yifu Chen, Yonatan Belinkov, Yu Hou, Yufang Hou, Yuntao Bai, Zachary Seid, Zhuoye Zhao, Zijian Wang, Zijie J. Wang, Zirui Wang, and Ziyi Wu. 2023. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models.
|
| 309 |
+
|
| 310 |
+
June Price Tangney, Jeff Stuewig, and Debra J Mashek. 2007. Moral emotions and moral behavior. Annu. Rev. Psychol., 58:345-372.
|
| 311 |
+
Elliot Turiel. 2002. The culture of morality: Social development, context, and conflict. Cambridge University Press.
|
| 312 |
+
Alexandra Uma, Tommaso Fornaciari, Dirk Hovy, Silviu Paun, Barbara Plank, and Massimo Poesio. 2020. A case for soft loss functions. In Proceedings of the AAAI Conference on Human Computation and Crowdsourcing, volume 8, pages 173-177.
|
| 313 |
+
Alexandra Uma, Tommaso Fornaciari, Dirk Hovy, Silviu Paun, Barbara Plank, and Massimo Poesio. 2021. Learning from disagreement: A survey. Journal of Artificial Intelligence Research, 72:1385-1470.
|
| 314 |
+
Boxin Wang, Chejian Xu, Shuohang Wang, Zhe Gan, Yu Cheng, Jianfeng Gao, Ahmed Hassan Awadallah, and Bo Li. 2022. Adversarial GLUE: A multi-task benchmark for robustness evaluation of language models.
|
| 315 |
+
Ding Wang, Mark Diaz, Alicia Parrish, Lora Aroyo, Christopher Homan, Greg Serapio-García, Vinodkumar Prabhakaran, and Alex S Taylor. 2024. A case for moving beyond "gold data" in ai safety evaluation.
|
| 316 |
+
Zeerak Waseem. 2016. Are you a racist or am I seeing things? Annotator influence on hate speech detection on twitter. In Proceedings of the first workshop on NLP and computational social science, pages 138-142.
|
| 317 |
+
Zeerak Waseem, Smarika Lulz, Joachim Bingel, and Isabelle Augenstein. 2021. Disembodied machine learning: On the illusion of objectivity in nlp.
|
| 318 |
+
Tharindu Cyril Weerasooriya, Tong Liu, and Christopher M. Homan. 2020. Neighborhood-based pooling for population-level label distribution learning. In ECAI.
|
| 319 |
+
Tharindu Cyril Weerasooriya, Sarah Luger, Saloni Poddar, Ashiqur KhudaBukhsh, and Christopher Homan. 2023a. Subjective crowd disagreements for subjective data: Uncovering meaningful CrowdOpinion with population-level learning. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 950-966, Toronto, Canada. Association for Computational Linguistics.
|
| 320 |
+
|
| 321 |
+
Tharindu Cyril Weerasooriya, Alexander Ororbia, Raj Bhensadadia, Ashiqur KhudaBukhsh, and Christopher Homan. 2023b. Disagreement matters: Preserving label diversity by jointly modeling item and annotator label distributions with DisCo. In Findings of the Association for Computational Linguistics: ACL 2023, pages 4679-4695, Toronto, Canada. Association for Computational Linguistics.
|
| 322 |
+
|
| 323 |
+
Maximilian Wich, Hala Al Kuwatly, and Georg Groh. 2020. Investigating annotator bias with a graph-based approach. In Proceedings of the Fourth Workshop on Online Abuse and Harms, pages 191-199, Online. Association for Computational Linguistics.
|
| 324 |
+
|
| 325 |
+
Ka Wong, Praveen Paritosh, and Lora Aroyo. 2021. Cross-replication reliability—an empirical approach to interpreting inter-rater reliability. arXiv preprint arXiv:2106.07393.
|
| 326 |
+
|
| 327 |
+
Ellery Wulczyn, Nithum Thain, and Lucas Dixon. 2017. Ex machina: Personal attacks seen at scale. In Proceedings of the 26th international conference on world wide web, pages 1391-1399.
|
| 328 |
+
|
| 329 |
+
# A Appendix
|
| 330 |
+
|
| 331 |
+
<table><tr><td colspan="5">Foundation</td><td>F(7, 4287)</td></tr><tr><td rowspan="4">Care</td><td>0.9</td><td></td><td></td><td>34.48*</td><td></td></tr><tr><td>0.6</td><td></td><td></td><td></td><td></td></tr><tr><td>0.3</td><td></td><td></td><td></td><td></td></tr><tr><td>0.0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td rowspan="3">Equality</td><td>0.3</td><td></td><td></td><td>13.37*</td><td></td></tr><tr><td>0.2</td><td></td><td></td><td></td><td></td></tr><tr><td>0.1</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td rowspan="4">Propor.</td><td>0.6</td><td></td><td></td><td>51.24*</td><td></td></tr><tr><td>0.4</td><td></td><td></td><td></td><td></td></tr><tr><td>0.2</td><td>0.0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>0.0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td rowspan="5">Authority</td><td>0.8</td><td></td><td></td><td>102.25*</td><td></td></tr><tr><td>0.6</td><td></td><td></td><td></td><td></td></tr><tr><td>0.4</td><td></td><td></td><td></td><td></td></tr><tr><td>0.2</td><td>0.0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>0.0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td rowspan="4">Loyalty</td><td>0.6</td><td></td><td></td><td>158.30*</td><td></td></tr><tr><td>0.4</td><td></td><td></td><td></td><td></td></tr><tr><td>0.2</td><td>0.0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>0.0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td rowspan="4">Purity</td><td>0.4</td><td></td><td></td><td>203.55*</td><td></td></tr><tr><td>0.3</td><td></td><td></td><td></td><td></td></tr><tr><td>0.2</td><td>0.0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>0.0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr><tr><td>Arab Culture</td><td colspan="2">Latin America</td><td colspan="2">Oceania</td><td>Subsaharan Africa</td></tr><tr><td>Indian Cultural Sphere</td><td colspan="2">North America</td><td colspan="2">Sinosphere</td><td>Western Europe</td></tr></table>
|
| 332 |
+
|
| 333 |
+
Table 4: Distribution of the moral foundations scores and the results of one-way ANOVA analysis conducted for each moral foundation across regions. *means the $p$ -value of the analysis is lower than .001
|
| 334 |
+
|
| 335 |
+
How well does each statement describe your values?
|
| 336 |
+
|
| 337 |
+
The effort a worker puts into a job ought to be reflected in the size of a raise they receive.
|
| 338 |
+
|
| 339 |
+
Does not describe me at all
|
| 340 |
+
Slightly describes me
|
| 341 |
+
Moderately describes me
|
| 342 |
+
Describes me fairly well
|
| 343 |
+
Describes me extremely well
|
| 344 |
+
|
| 345 |
+
Figure 5: Sample of MFQ-2 questions in our survey
|
| 346 |
+
|
| 347 |
+
# A.1 Regions and Countries
|
| 348 |
+
|
| 349 |
+
Our selected list of geo-cultural regions and countries within regions is not meant to be exhaustive, rather just to make sure that our study is done on a set of countries with diverse cultural histories. Each region listed has countries and sub-regions that have distinct cultural practices, and it is wrong to assume that the country we choose would comprehensively represent that region. Similarly, the countries listed are meant as likely places to collect data from, based on familiarity with previous data collection efforts, which potentially reflect the power structures existing within those regions. Also, each country is rarely a monolith in terms of culture (e.g., India has diverse subcultures, Australia being characterized as a “Western” culture erases the vibrant Australian Aboriginal culture). Collected data also reflects the local disparities in who tends to be in the social strata that maximally overlaps with the data-collection workforce in respective regions, and subcultures they represent.
|
| 350 |
+
|
| 351 |
+
# A.2 Test Items
|
| 352 |
+
|
| 353 |
+
We used participants' response to 5 test items to evaluate their understanding of offensiveness. These items (listed below) were unanimously labeled as not offensive at all by authors and were used as an attention check to remove participants who annotated them otherwise.
|
| 354 |
+
|
| 355 |
+
- Could you explain your point in a little more detail please.
|
| 356 |
+
- The NY Times yesterday had a rebuttal by the Iranian UN ambassador.
|
| 357 |
+
- Ditto to everything said here.
|
| 358 |
+
- Just looked at the link. Impressive and missed opportunity.
|
| 359 |
+
- Don't be so hard on yourself. Your life will go on.
|
| 360 |
+
|
| 361 |
+

|
| 362 |
+
Figure 6: Distribution of the different labels provided by annotators of different countries. The y-axis is sorted based on the average offensive label captured in each country.
|
| 363 |
+
|
| 364 |
+
<table><tr><td>Region</td><td>Country</td></tr><tr><td>Arab Culture</td><td>Egypt, Qatar, UAE</td></tr><tr><td>Indian Cultural Sphere</td><td>India, Singapore</td></tr><tr><td>Latin America</td><td>Argentina, Brazil, Mexico</td></tr><tr><td>North America</td><td>Canada, USA</td></tr><tr><td>Oceania</td><td>Australia, New Zealand</td></tr><tr><td>Sinosphere</td><td>China, Japan, South Korea, Vietnam</td></tr><tr><td>Sub-Saharan Africa</td><td>Ghana, Nigeria</td></tr><tr><td>Western Europe</td><td>Germany, Netherlands, UK</td></tr></table>
|
| 365 |
+
|
| 366 |
+
Table 5: List of regions and countries within them in our dataset.
|
| 367 |
+
|
| 368 |
+
# A.3 Data Cleaning
|
| 369 |
+
|
| 370 |
+
We selected thresholds for the amount of time needed to finish the survey and removed annotators who performed the task either quicker or slower than the expectation. Annotators with similar answers to all items were also removed from the data.
|
| 371 |
+
|
| 372 |
+
# A.4 Moral clusters
|
| 373 |
+
|
| 374 |
+
Figure 7 shows the plot of "distortions" that led to us selecting 6 as the optimal number of moral clusters: for each potential value of $k$ (number of clusters), the distortion (average sum of squared distance between each data point to the centroid) is calculated. Distortion measures how tightly grouped the data points are within each cluster. Lower distortion indicates better clustering. In Figure 7, we can observe that $k = 6$ is the point where adding
|
| 375 |
+
|
| 376 |
+

|
| 377 |
+
Figure 7: The distortion value captured for different options for number of moral clusters.
|
| 378 |
+
|
| 379 |
+
more clusters does not significantly decrease the distortion. In other words, it strikes a balance between maximizing the distinctness of clusters and minimizing the complexity of the model.
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c02c628c31ba8eb723daffea6ae7e5b9d173a2a3495676b7267fad1233ab38a7
|
| 3 |
+
size 410241
|
2024/D3CODE_ Disentangling Disagreements in Data across Cultures on Offensiveness Detection and Evaluation/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/0dbb6cfc-d15c-4b7b-bd66-cc98fe282690_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e1de8e143eeca72382fb09f07d38b8bcf68c25519085122edf3aa2a3200a23f
|
| 3 |
+
size 2590645
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c17a7067be53f5b490b5a6bf53dbf98ac100cbc56c1da1f0c4741e02fceea7e5
|
| 3 |
+
size 1078462
|
2024/DA-Code_ Agent Data Science Code Generation Benchmark for Large Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/8a23b2f9-9674-4ac9-9d4c-31b710f00b26_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4358b489135dad3645a0be244a7df845fbe3f4bd40ef38e8eb551733a8d59790
|
| 3 |
+
size 1243272
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/full.md
ADDED
|
@@ -0,0 +1,585 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# $\mathbf{DA}^{3}$ : A Distribution-Aware Adversarial Attack against Language Models
|
| 2 |
+
|
| 3 |
+
Yibo Wang $^{1*}$ Xiangjue Dong $^{2*}$ James Caverlee $^{2}$ Philip S. Yu $^{1}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup> University of Illinois Chicago, <sup>2</sup> Texas A&M University
|
| 6 |
+
|
| 7 |
+
{ywang633, psyu}@uic.edu, {xj.dong, caverlee}@amu.edu
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Language models can be manipulated by adversarial attacks, which introduce subtle perturbations to input data. While recent attack methods can achieve a relatively high attack success rate (ASR), we've observed that the generated adversarial examples have a different data distribution compared with the original examples. Specifically, these adversarial examples exhibit reduced confidence levels and greater divergence from the training data distribution. Consequently, they are easy to detect using straightforward detection methods, diminishing the efficacy of such attacks. To address this issue, we propose a Distribution-Aware Adversarial Attack $(\mathrm{DA}^3)$ method. $\mathrm{DA}^3$ considers the distribution shifts of adversarial examples to improve attacks' effectiveness under detection methods. We further design a novel evaluation metric, the Non-detectable Attack Success Rate (NASR), which integrates both ASR and detectability for the attack task. We conduct experiments on four widely used datasets to validate the attack effectiveness and transferability of adversarial examples generated by $\mathrm{DA}^3$ against both the white-box BERT-BASE and ROBERTA-BASE models and the black-box LLAMA2-7B model<sup>1</sup>.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Language models (LMs), despite their remarkable accuracy and human-like capabilities in many applications (Thirunavukarasu et al., 2023; Wu et al., 2024; Wang et al., 2024), face vulnerability to adversarial attacks and exhibit high sensitivity to subtle input perturbations, which can potentially cause failures (Jia and Liang, 2017; Belinkov and Bisk, 2018; Liang et al., 2023; Wallace et al., 2019). Recently, an increasing number of adversarial attacks have been proposed, employing techniques such as
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
Figure 1: Toy examples of two adversarial sentences in a sentiment analysis task. Although both sentences successfully attack the victim model, the top one is flagged by the detector, while the bottom one is not detected. In our task, we aim to generate adversarial examples that are hard to detect.
|
| 19 |
+
|
| 20 |
+
insertion, deletion, swapping, and substitution at character, word, or sentence levels (Ren et al., 2019; Jin et al., 2020; Garg and Ramakrishnan, 2020; Ribeiro et al., 2020). These thoroughly crafted adversarial examples are imperceptible to humans yet can deceive victim models, raising concerns regarding the robustness and security of LMs. For example, chatbots may misunderstand user intent or sentiment, resulting in inappropriate responses (Perez et al., 2022; Dong et al., 2023).
|
| 21 |
+
|
| 22 |
+
However, while existing adversarial attacks can achieve a relatively high attack success rate (Gao et al., 2018; Belinkov and Bisk, 2018; Li et al., 2020), our experimental observations detailed in §3 reveal notable distribution shifts between adversarial examples and original examples, rendering high detectability of adversarial examples. On one hand, adversarial examples exhibit different confidence levels compared to their original counterparts. Typically, the Maximum Softmax Probability (MSP), a metric indicating prediction confidence, is higher for original examples than for adversarial examples. On the other hand, there is a disparity in the distance to the training data distribution between adversarial and original examples. Specifically, the Mahalanobis Distance (MD) to training data distribution for original examples is shorter than that for adversarial examples. Based on these two observations, we conclude that adversarial exam
|
| 23 |
+
|
| 24 |
+
plies generated by previous attack methods, such as BERT-Attack (Li et al., 2020), can be easily detected through score-based detection techniques like MSP detection (Hendrycks and Gimpel, 2017) and embedding-based detection methods like MD detection (Lee et al., 2018). Thus, the efficacy of previous attack methods is diminished when considering Out-of-distribution (OOD) detection, as shown in Figure 1.
|
| 25 |
+
|
| 26 |
+
To address the aforementioned problems, we propose a Distribution-Aware Adversarial Attack $(\mathrm{DA}^3)$ method with Data Alignment Loss (DAL), which is a novel attack method that can generate hard-to-detect adversarial examples. The $\mathrm{DA}^3$ framework comprises two phases. Firstly, $\mathrm{DA}^3$ finetunes a LoRA-based LM by combining the Masked Language Modeling task and the downstream classification task using DAL. This fine-tuning phase enables the LoRA-based LM to generate adversarial examples closely resembling original examples in terms of MSP and MD. Subsequently, the LoRA-based LM is used during inference to generate adversarial examples.
|
| 27 |
+
|
| 28 |
+
To measure the detectability of adversarial examples, we propose a new evaluation metric: Nondetectable Attack Success Rate (NASR), which combines Attack Success Rate (ASR) with OOD detection. We conduct experiments on four datasets to assess whether $\mathrm{DA}^3$ can effectively attack white-box LMs using ASR and NASR. Furthermore, given the widespread use of Large Language Models (LLMs) and their costly fine-tuning process, coupled with the limited availability of open-source models, we also evaluate the attack transferability of adversarial examples on black-box LLMs. The results show that $\mathrm{DA}^3$ achieves competitive attack performance on the white-box BERT-BASE (Devlin et al., 2019) and ROBERTA-BASE (Liu et al., 2019) models and superior transferability on the black-box LLAMA2-7B (Touvron et al., 2023).
|
| 29 |
+
|
| 30 |
+
Our work has the following contributions:
|
| 31 |
+
|
| 32 |
+
- We analyze the distribution of adversarial and original examples, revealing the existence of distribution shifts in terms of MSP and MD.
|
| 33 |
+
- We propose a novel Distribution-Aware Adversarial Attack method with Data Alignment Loss, which is capable of generating adversarial examples that effectively undermine victim models while remaining difficult to detect.
|
| 34 |
+
- We design a new evaluation metric – NASR – for the attack task, which considers the de
|
| 35 |
+
|
| 36 |
+
tectability of adversarial examples.
|
| 37 |
+
|
| 38 |
+
- We conduct comprehensive experiments to compare $\mathrm{DA}^3$ with baselines on four datasets, demonstrating that $\mathrm{DA}^3$ achieves competitive attack capabilities and better transferability.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
# 2.1 Adversarial Attacks in NLP
|
| 43 |
+
|
| 44 |
+
Adversarial attacks in Natural Language Processing (NLP) have been extensively studied to explore the robustness of LMs. Current methods fall into character-level, word-level, sentence-level, and multi-level (Goyal et al., 2023). Character-level methods manipulate texts by incorporating typos or errors into words, such as deleting, repeating, replacing, swapping, flipping, inserting, and allowing variations in characters for specific words (Gao et al., 2018; Belinkov and Bisk, 2018). Word-level attacks alter entire words rather than individual characters within words. Common manipulation includes addition, deletion, and substitution with synonyms to mislead language models while the manipulated words are selected based on gradients or importance scores (Ren et al., 2019; Jin et al., 2020; Li et al., 2020; Garg and Ramakrishnan, 2020; Formento et al., 2024). Sentence-level attacks typically involve inserting or rewriting sentences within a text, all while preserving the original meaning (Zhao et al., 2018; Iyyer et al., 2018; Ribeiro et al., 2020). Multi-level attacks combine multiple perturbation techniques to achieve both imperceptibility and a high success rate in the attack (Song et al., 2021).
|
| 45 |
+
|
| 46 |
+
# 2.2 Out-of-distribution Detection in NLP
|
| 47 |
+
|
| 48 |
+
Detecting suspicious data in NLP has been studied from various perspectives, such as linguistic analysis (Zhou et al., 2019; Mozes et al., 2021; Mosca et al., 2022). Our work, however, primarily focuses on detecting adversarial data from the out-of-distribution perspective. Out-of-distribution (OOD) detection methods have been widely explored in NLP, like machine translation (Arora et al., 2021; Ren et al., 2022; Adila and Kang, 2022). OOD detection methods in NLP can be roughly categorized into two types: (1) score-based methods and (2) embedding-based methods. Score-based methods use maximum softmax probability (Hendrycks and Gimpel, 2017), perplexity score (Arora et al., 2021), beam score (Wang et al., 2019b), sequence probability (Wang et al., 2019b),
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
(a) MSP on SST-2 dataset.
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
(b) MSP on MRPC dataset.
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
(a) MD on SST-2 dataset.
|
| 58 |
+
Figure 3: Visualization of the distribution shift between original data and adversarial data generated by BERT-Attack when attacking BERT-BASE regarding MD.
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
Figure 2: Visualization of the distribution shift between original data and adversarial data generated by BERT-Attack when attacking BERT-BASE regarding MSP.
|
| 62 |
+
(b) MD on MRPC dataset.
|
| 63 |
+
|
| 64 |
+
BLEU variance (Xiao et al., 2020), or energy-based scores (Liu et al., 2020). Embedding-based methods measure the distance to in-distribution data in the embedding space for OOD detection. For example, Lee et al. (2018) uses Mahalanobis distance; Ren et al. (2021) proposes to use relative Mahalanobis distance; Sun et al. (2022) proposes a nearest-neighbor-based OOD detection method.
|
| 65 |
+
|
| 66 |
+
We select the simple, representative, and widely-used OOD detection methods of these two categories: MSP detection (Hendrycks and Gimpel, 2017) and MD detection (Lee et al., 2018), respectively. This selection serves to highlight a significant issue within the community – the ability to detect adversarial examples using such basic and commonly employed OOD detection methods underscores the criticality of detectability. These two methods are then incorporated with the ASR to assess the robustness and detectability of adversarial examples generated by different attack models.
|
| 67 |
+
|
| 68 |
+
# 3 Understanding Distribution Shifts of Adversarial Examples
|
| 69 |
+
|
| 70 |
+
This section showcases distribution shifts between adversarial and original examples, suggesting that the original examples are in-distribution examples while adversarial examples are Out-of-Distribution (OOD) examples. Due to space constraints, we fo
|
| 71 |
+
|
| 72 |
+
cus our analysis on adversarial examples generated by BERT-Attack on SST-2 (Socher et al., 2013) and MRPC (Dolan and Brockett, 2005); the complete results are available in Appendix G.
|
| 73 |
+
|
| 74 |
+
Maximum Softmax Probability (MSP). Maximum Softmax Probability (MSP) is a metric to evaluate prediction confidence, rendering it a widely used score-based method for OOD detection, where lower confidence values often signify OOD examples. To assess MSP, we visualize the MSP distribution of adversarial examples generated by BERT-Attack and original examples from SST-2 and MRPC datasets in Figure 2. Our observation reveals that in both datasets, the majority of original examples have an MSP exceeding 0.9, indicating a significantly higher MSP compared to adversarial examples overall. This distribution shift is particularly notable in the MRPC dataset, whereby most adversarial examples exhibit MSP below 0.6, highlighting a clear distinction from the original examples.
|
| 75 |
+
|
| 76 |
+
Mahalanobis Distance (MD). Mahalanobis Distance (MD) is a metric used to measure the distance between a data point and a distribution, making it a highly suitable and widespread method for OOD detection. A high MD between an example and the in-distribution data (training data) indicates that the example is probably an OOD instance. To assess the MD difference between adversarial and original examples, we visualize the MD distribution of adversarial examples generated by BERT-Attack and original examples from the SST-2 and MRPC datasets in Figure 3. From Figure 3, we can observe that distribution shifts exist between original and adversarial examples in both datasets. This dissimilarity is more noticeable on the SST-2 dataset and not as conspicuous on the MRPC dataset.
|
| 77 |
+
|
| 78 |
+
Summary. These observations regarding MSP and MD highlight clear distinctions between original and adversarial examples generated by one of the state-of-the-art methods, BERT-Attack. Compared to the original examples, the adversarial examples exhibit a more pronounced OOD nature in either MSP or MD, meaning that adversarial examples are easy to detect and the practical effectiveness of previous attack methods is diminished.
|
| 79 |
+
|
| 80 |
+
# 4 Methodology
|
| 81 |
+
|
| 82 |
+
In this section, we define the attack task (§4.1), propose a novel attack method called Distribution-
|
| 83 |
+
|
| 84 |
+

|
| 85 |
+
Figure 4: The model architecture of $\mathrm{DA}^3$ comprises two phases: fine-tuning and inference. During fine-tuning, a LoRA-based Pre-trained Language Model (PLM) is fine-tuned to develop the ability to generate adversarial examples resembling original examples in terms of MSP and MD. During inference, the LoRA-based PLM is used to generate adversarial examples.
|
| 86 |
+
|
| 87 |
+

|
| 88 |
+
|
| 89 |
+
Aware Adversarial Attack (§4.2), and introduce the new Data Alignment Loss (§4.3).
|
| 90 |
+
|
| 91 |
+
# 4.1 Problem Formulation
|
| 92 |
+
|
| 93 |
+
Given an original sentence $x^{orig} \in \mathcal{X}$ and its corresponding original label $y^{orig} \in \mathcal{Y}$ , our objective is to generate an adversarial sentence $x^{adv}$ such that the prediction of the victim model corresponds to $y^{adv} \in \mathcal{Y}$ and $y^{adv} \neq y^{orig}$ .
|
| 94 |
+
|
| 95 |
+
# 4.2 Distribution-Aware Adversarial Attack
|
| 96 |
+
|
| 97 |
+
Motivated by the observed distribution shifts of adversarial examples, we propose a Distribution-Aware Adversarial Attack $\left(\mathrm{DA}^{3}\right)$ method. The key idea of $\mathrm{DA}^{3}$ is to consider the distribution of the generated adversarial examples and attempt to achieve a closer alignment between distributions of adversarial and original examples in terms of MSP and MD. $\mathrm{DA}^{3}$ is composed of two phases: fine-tuning and inference, as shown in Figure 4.
|
| 98 |
+
|
| 99 |
+
Fine-tuning Phase. The fine-tuning phase aims to fine-tune a LoRA-based Pre-trained Language Model (PLM) to make it capable of generating adversarial examples through the Masked Language Modeling (MLM) task. We employ LoRA-based PLM because it is efficient to fine-tune and the frozen PLM can serve in both MLM and downstream classification tasks. First, the original sentence $x^{orig}$ undergoes the MLM task through a LoRA-based PLM to generate the adversarial embedding $X^{adv}$ , during which the parameters of the PLM are frozen, and the parameters of LoRA (Hu et al., 2021) are tunable. Then, the generated adversarial embedding $X^{adv}$ is fed into the frozen PLM to perform the corresponding downstream classification task, producing logits of original ground truth label $y^{orig}$ and adversarial label $y^{adv}$ . The
|
| 100 |
+
|
| 101 |
+
loss is computed based on $X^{adv}$ , $P(y^{orig}|X^{adv},\theta)$ , and $P(y^{adv}|X^{adv},\theta)$ to update the parameters of LoRA, where $\theta$ is the model parameters. Details are discussed in §4.3.
|
| 102 |
+
|
| 103 |
+
Inference Phase. The inference phase aims to generate adversarial examples with minimal perturbation. The original sentence $x^{orig}$ is first tokenized, and a ranked token list is obtained through token importance (Li et al., 2020). Then, a token is selected from the token list to be masked. Subsequently, the MLM task of the frozen LoRA-based PLM is employed to generate a candidate list for the masked token. A word is then chosen from the list to replace the masked token until a successful attack on the victim model is achieved or the candidate list is exhausted. If the attack is unsuccessful, another token is chosen from the token list until a successful attack is achieved or the termination condition is met. The termination condition is set as the percentage of the tokens.
|
| 104 |
+
|
| 105 |
+
# 4.3 Model Learning
|
| 106 |
+
|
| 107 |
+
The Data Alignment Loss, denoted as $\mathcal{L}_{DAL}$ , is used to minimize the discrepancy between distributions of adversarial examples and original examples in terms of MSP and MD. $\mathcal{L}_{DAL}$ is composed of two losses: MSP loss, denoted as $\mathcal{L}_{MSP}$ and MD loss, denoted as $\mathcal{L}_{MD}$ .
|
| 108 |
+
|
| 109 |
+
$\mathcal{L}_{MSP}$ aims to increase the difference between $P(y^{adv}|X^{adv},\theta)$ and $P(y^{orig}|X^{adv},\theta)$ . $\mathcal{L}_{MSP}$ is formulated as
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\mathcal {L} _ {M S P} = \sum_ {X ^ {a d v}} \frac {e x p (P (y ^ {o r i g} | X ^ {a d v} , \theta))}{e x p (P (y ^ {o r i g} | X ^ {a d v} , \theta)) + e x p (P (y ^ {a d v} | X ^ {a d v} , \theta))}.
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
According to our observation experiments in Figure 2, original examples have higher MSP than adversarial examples. Minimizing $\mathcal{L}_{MSP}$ increases
|
| 116 |
+
|
| 117 |
+
the MSP of adversarial examples. Thus, minimizing $\mathcal{L}_{MSP}$ makes generated adversarial examples more similar to original examples concerning MSP.
|
| 118 |
+
|
| 119 |
+
$\mathcal{L}_{MD}$ aims to reduce MD between adversarial input and the training data distribution. $\mathcal{L}_{MD}$ is formulated as:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\mathcal {L} _ {M D} = \sum_ {X ^ {a d v}} l o g \sqrt {(X ^ {a d v} - \mu) \sum^ {- 1} (X ^ {a d v} - \mu) ^ {\intercal}},
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
where $\mu$ and $\sum^{-1}$ are the mean and covariance embedding of the in-distribution (training) data respectively. MD is a robust metric for OOD detection and adversarial data detection. In general, adversarial data has higher MD than original data, as shown in Figure 3. Therefore, minimizing $\mathcal{L}_{MD}$ encourages the generated adversarial examples to resemble original examples in terms of MD. $\mathcal{L}_{MD}$ is constrained to the logarithmic space for consistency with the scale of $\mathcal{L}_{MSP}$ .
|
| 126 |
+
|
| 127 |
+
Thus, Data Alignment Loss is represented as
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
\mathcal {L} _ {D A L} = \mathcal {L} _ {M S P} + \mathcal {L} _ {M D}, \tag {1}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
and $\mathrm{DA}^3$ is trained by optimizing $\mathcal{L}_{DAL}$
|
| 134 |
+
|
| 135 |
+
# 5 Automatic Evaluation Metrics
|
| 136 |
+
|
| 137 |
+
Given the observations of distribution shifts analyzed in Section 3, we adopt a widely-used metric - Attack Success Rate (ASR) - and design a new metric - Non-detectable Attack Success Rate (NASR) - to evaluate attack performance. We also report the Percentage of Perturbed Words (%Words) and Semantic Similarity (SS) to evaluate the impact of text perturbation. Detailed explanations of ASR, %Words, and SS are shown in Appendix A.
|
| 138 |
+
|
| 139 |
+
Non-detectable Attack Success Rate (NASR). Considering the detectability of adversarial examples generated by attack methods, we define a new evaluation metric – Non-Detectable Attack Success Rate (NASR). This metric considers both ASR and OOD detection. Specifically, NASR posits that a successful adversarial example is characterized by its ability to deceive the victim model while simultaneously evading OOD detection methods.
|
| 140 |
+
|
| 141 |
+
We utilize two established and commonly employed OOD detection techniques - MSP detection (Hendrycks and Gimpel, 2017) and MD detection (Lee et al., 2018). MSP detection relies on logits and utilizes a probability distribution-based approach, while MD detection is a distance-based
|
| 142 |
+
|
| 143 |
+
approach. For MSP detection, we use Negative MSPs, calculated as
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
- \max _ {y \in \mathcal {Y}} P (y \mid X, \theta).
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
For MD detection, we compute the distance as
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\sqrt {(X - \mu) \sum^ {- 1} (X - \mu) ^ {\intercal}}.
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
NASRs under MSP detection and MD detection are denoted as $\mathbf{NASR}_{MSP}$ and $\mathbf{NASR}_{MD}$ .
|
| 156 |
+
|
| 157 |
+
Thus, NASR is formulated as:
|
| 158 |
+
|
| 159 |
+
$$
|
| 160 |
+
\mathrm {N A S R} _ {k} = 1 - \frac {| \{x ^ {o r i g} | y ^ {a d v} = y ^ {o r i g} , x ^ {o r i g} \in \mathcal {X} \} | + | \mathcal {D} _ {k} |}{| \mathcal {X} |},
|
| 161 |
+
$$
|
| 162 |
+
|
| 163 |
+
where $\mathcal{D}_k$ denotes the set of examples that successfully attack the victim model but are detected by the detection method $k\in \{MSP,MD\}$
|
| 164 |
+
|
| 165 |
+
In this context, adversarial examples are considered as OOD examples (positive), while original examples are considered as in-distribution examples (negative). To avoid misdetecting original examples as adversarial examples from a defender's view, we use the Negative MSP and MD value at $99\%$ False Positive Rate of the training data as thresholds. Values exceeding these thresholds are considered positive, while those falling below are classified as negative.
|
| 166 |
+
|
| 167 |
+
# 6 Experimental Settings
|
| 168 |
+
|
| 169 |
+
Attack Baselines. We use two character-level attack methods, DeepWordBug (Gao et al., 2018) and TextBugger (Jinfeng et al., 2019), and three word-level attack methods, TextFooer (Jin et al., 2020), BERT-Attack (Li et al., 2020) and A2T (Yoo and Qi, 2021). Detailed descriptions are listed in Appendix B.1.
|
| 170 |
+
|
| 171 |
+
Datasets. We evaluate $\mathrm{DA}^3$ on four different types of tasks: sentiment analysis task - SST-2 (Socher et al., 2013), grammar correctness task - CoLA (Warstadt et al., 2019), textual entailment task - RTE (Wang et al., 2019a), and textual similarity task - MRPC (Dolan and Brockett, 2005). Detailed descriptions and statistics of each dataset are shown in Appendix B.2.
|
| 172 |
+
|
| 173 |
+
Implementation Details The backbone models of $\mathrm{DA}^3$ are BERT-BASE or ROBERTA-BASE models fine-tuned on corresponding downstream datasets. We use BERT-BASE and ROBERTA-BASE as white-box victim models and LLAMA2-7B as the black-box victim model. More detailed
|
| 174 |
+
|
| 175 |
+
Table 1: Evaluation results on the white-box victim models. BERT-BASE and ROBERTA-BASE models are fine-tuned on the corresponding datasets. ACC represents model accuracy. We highlight the best and the second-best results.
|
| 176 |
+
|
| 177 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Model</td><td colspan="4">BERT-BASE</td><td colspan="4">ROBERTA-BASE</td></tr><tr><td>ACC↓</td><td>ASR↑</td><td>NASR_MSP↑</td><td>NASR_MD↑</td><td>ACC↓</td><td>ASR↑</td><td>NASR_MSP↑</td><td>NASR_MD↑</td></tr><tr><td rowspan="7">SST-2</td><td>Original</td><td>92.43</td><td></td><td></td><td></td><td>94.04</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>4.47</td><td>95.16</td><td>53.47</td><td>91.94</td><td>4.7</td><td>95.0</td><td>73.29</td><td>92.93</td></tr><tr><td>TextBugger</td><td>29.01</td><td>68.61</td><td>37.34</td><td>66.87</td><td>36.70</td><td>60.98</td><td>44.02</td><td>60.37</td></tr><tr><td>DeepWordBug</td><td>16.74</td><td>81.89</td><td>57.57</td><td>80.77</td><td>16.97</td><td>81.95</td><td>68.17</td><td>81.10</td></tr><tr><td>BERT-Attack</td><td>38.42</td><td>58.44</td><td>33.62</td><td>54.96</td><td>2.06</td><td>97.80</td><td>74.02</td><td>94.76</td></tr><tr><td>A2T</td><td>55.16</td><td>40.32</td><td>20.72</td><td>11.79</td><td>59.63</td><td>36.59</td><td>26.10</td><td>35.73</td></tr><tr><td>DA3(ours)</td><td>21.10</td><td>77.17</td><td>54.22</td><td>75.06</td><td>4.82</td><td>94.88</td><td>75.98</td><td>94.27</td></tr><tr><td rowspan="7">CoLA</td><td>Original</td><td>81.21</td><td></td><td></td><td></td><td>85.04</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>1.92</td><td>97.64</td><td>95.63</td><td>94.92</td><td>5.56</td><td>93.46</td><td>90.98</td><td>89.18</td></tr><tr><td>TextBugger</td><td>12.18</td><td>85.01</td><td>81.23</td><td>77.69</td><td>15.63</td><td>81.62</td><td>75.87</td><td>73.28</td></tr><tr><td>DeepWordBug</td><td>7.09</td><td>91.26</td><td>88.78</td><td>86.19</td><td>11.02</td><td>87.03</td><td>84.10</td><td>74.18</td></tr><tr><td>BERT-Attack</td><td>12.46</td><td>84.65</td><td>79.22</td><td>79.93</td><td>2.21</td><td>97.41</td><td>91.43</td><td>90.98</td></tr><tr><td>A2T</td><td>20.44</td><td>74.82</td><td>71.63</td><td>48.82</td><td>19.75</td><td>76.78</td><td>72.72</td><td>71.82</td></tr><tr><td>DA3(ours)</td><td>2.78</td><td>96.58</td><td>93.74</td><td>93.27</td><td>6.33</td><td>92.56</td><td>87.60</td><td>85.91</td></tr><tr><td rowspan="7">RTE</td><td>Original</td><td>72.56</td><td></td><td></td><td></td><td>78.34</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>1.44</td><td>98.01</td><td>68.66</td><td>79.60</td><td>5.05</td><td>93.55</td><td>67.74</td><td>87.56</td></tr><tr><td>TextBugger</td><td>2.53</td><td>96.52</td><td>68.66</td><td>83.08</td><td>9.75</td><td>87.56</td><td>70.05</td><td>81.57</td></tr><tr><td>DeepWordBug</td><td>4.33</td><td>94.03</td><td>79.60</td><td>88.06</td><td>16.25</td><td>79.26</td><td>69.59</td><td>76.04</td></tr><tr><td>BERT-Attack</td><td>3.61</td><td>95.02</td><td>67.16</td><td>72.64</td><td>1.44</td><td>98.16</td><td>70.51</td><td>90.32</td></tr><tr><td>A2T</td><td>8.66</td><td>88.06</td><td>62.69</td><td>25.87</td><td>16.97</td><td>78.34</td><td>67.28</td><td>77.88</td></tr><tr><td>DA3(ours)</td><td>1.08</td><td>98.51</td><td>72.14</td><td>86.07</td><td>7.22</td><td>90.78</td><td>71.43</td><td>88.94</td></tr><tr><td rowspan="7">MRPC</td><td>Original</td><td>87.75</td><td></td><td></td><td></td><td>91.18</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>2.94</td><td>96.65</td><td>58.38</td><td>91.62</td><td>4.90</td><td>94.62</td><td>35.48</td><td>94.62</td></tr><tr><td>TextBugger</td><td>7.35</td><td>91.60</td><td>62.85</td><td>87.15</td><td>9.80</td><td>89.25</td><td>34.68</td><td>89.25</td></tr><tr><td>DeepWordBug</td><td>10.05</td><td>88.55</td><td>72.35</td><td>86.31</td><td>12.01</td><td>86.83</td><td>47.31</td><td>86.83</td></tr><tr><td>BERT-Attack</td><td>9.56</td><td>89.11</td><td>55.31</td><td>61.39</td><td>2.45</td><td>97.31</td><td>34.95</td><td>97.04</td></tr><tr><td>A2T</td><td>30.88</td><td>64.80</td><td>46.65</td><td>26.54</td><td>49.51</td><td>45.70</td><td>21.51</td><td>45.43</td></tr><tr><td>DA3(ours)</td><td>0.74</td><td>99.16</td><td>74.86</td><td>93.29</td><td>0.49</td><td>99.46</td><td>50.27</td><td>99.46</td></tr></table>
|
| 178 |
+
|
| 179 |
+
information about hyperparameters and settings is in Appendix B.3. The prompts used for the blackbox LLAMA2-7B are listed in Appendix B.4
|
| 180 |
+
|
| 181 |
+
# 7 Experimental Results and Analyses
|
| 182 |
+
|
| 183 |
+
In this section, we conduct experiments and analyses to answer five research questions:
|
| 184 |
+
|
| 185 |
+
- RQ1 Will DA<sup>3</sup> effectively attack the white-box language models?
|
| 186 |
+
- RQ2 Are the adversarial examples generated by $\mathrm{DA}^3$ transferable to the black-box LLAMA2-7B model?
|
| 187 |
+
- RQ3 Will human judges find the quality of the generated adversarial examples reasonable?
|
| 188 |
+
- RQ4 How do the components of $\mathcal{L}_{DAL}$ impact the performance of DA $^3$ ?
|
| 189 |
+
- RQ5 Will $\mathcal{L}_{DAL}$ outperform other attack losses?
|
| 190 |
+
|
| 191 |
+
# 7.1 Automatic Evaluation Results
|
| 192 |
+
|
| 193 |
+
We use the adversarial examples generated by $\mathrm{DA}^3$ with BERT-BASE or ROBERTA-BASE as the backbone to attack the white-box BERT-BASE and ROBERTA-BASE models, respectively. White-box models have been fine-tuned on the corresponding datasets and are accessible during our fine-tuning phase. Besides, considering that LLMs are widely used, expensive to fine-tune, and often not open source, we evaluate the attack transferability of the adversarial examples, which are generated by $\mathrm{DA}^3$ with BERT-BASE as the backbone, on the blackbox LLAMA2-7B model, which is not available during $\mathrm{DA}^3$ fine-tuning. The experimental results on ACC, ASR, and NASR are shown in Table 1.
|
| 194 |
+
|
| 195 |
+
Attack Performance (RQ1). When attacking white-box models, $\mathrm{DA}^3$ obtains the best or second-to-best performance regarding NASR on most datasets. Aside from $\mathrm{DA}^3$ , some baseline methods perform well on one of the victim models. For example, TextFooer works well on BERT-
|
| 196 |
+
|
| 197 |
+
Table 2: Evaluation results on the black-box LLAMA2-7B model. Results of LLAMA2-7B are the average of zero-shot prompting with five different prompts.
|
| 198 |
+
|
| 199 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Model</td><td colspan="4">LLAMA2-7B</td></tr><tr><td>ACC↓</td><td>ASR↑</td><td>NASR_MSP ↑</td><td>NASR_MD ↑</td></tr><tr><td rowspan="7">SST-2</td><td>Original</td><td>89.91</td><td></td><td></td><td></td></tr><tr><td>TextFooer</td><td>68.97</td><td>23.81</td><td>22.97</td><td>23.58</td></tr><tr><td>TextBugger</td><td>84.50</td><td>6.89</td><td>6.51</td><td>6.69</td></tr><tr><td>DeepWordBug</td><td>81.97</td><td>9.49</td><td>9.01</td><td>9.39</td></tr><tr><td>BERT-Attack</td><td>66.42</td><td>26.61</td><td>25.81</td><td>26.38</td></tr><tr><td>A2T</td><td>81.33</td><td>10.63</td><td>10.14</td><td>10.15</td></tr><tr><td>DA3(ours)</td><td>64.19</td><td>29.42</td><td>28.68</td><td>29.14</td></tr><tr><td rowspan="7">CoLA</td><td>Original</td><td>70.97</td><td></td><td></td><td></td></tr><tr><td>TextFooer</td><td>31.95</td><td>57.65</td><td>52.13</td><td>57.09</td></tr><tr><td>TextBugger</td><td>39.41</td><td>48.22</td><td>42.49</td><td>47.22</td></tr><tr><td>DeepWordBug</td><td>31.93</td><td>61.23</td><td>56.67</td><td>60.58</td></tr><tr><td>BERT-Attack</td><td>39.98</td><td>46.07</td><td>40.97</td><td>45.68</td></tr><tr><td>A2T</td><td>40.38</td><td>45.09</td><td>39.81</td><td>37.75</td></tr><tr><td>DA3(ours)</td><td>33.06</td><td>58.51</td><td>53.39</td><td>57.69</td></tr><tr><td rowspan="7">RTE</td><td>Original</td><td>57.76</td><td></td><td></td><td></td></tr><tr><td>TextFooer</td><td>53.29</td><td>12.62</td><td>10.54</td><td>12.11</td></tr><tr><td>TextBugger</td><td>56.39</td><td>5.62</td><td>3.77</td><td>5.10</td></tr><tr><td>DeepWordBug</td><td>51.05</td><td>12.78</td><td>9.76</td><td>12.39</td></tr><tr><td>BERT-Attack</td><td>44.33</td><td>24.96</td><td>20.30</td><td>24.05</td></tr><tr><td>A2T</td><td>48.52</td><td>21.40</td><td>17.45</td><td>19.72</td></tr><tr><td>DA3(ours)</td><td>42.81</td><td>28.95</td><td>24.26</td><td>26.87</td></tr><tr><td rowspan="7">MRPC</td><td>Original</td><td>67.94</td><td></td><td></td><td></td></tr><tr><td>TextFooer</td><td>61.96</td><td>14.32</td><td>9.69</td><td>7.74</td></tr><tr><td>TextBugger</td><td>65.25</td><td>8.60</td><td>6.71</td><td>7.21</td></tr><tr><td>DeepWordBug</td><td>63.97</td><td>9.59</td><td>6.77</td><td>8.87</td></tr><tr><td>BERT-Attack</td><td>60.64</td><td>15.47</td><td>10.99</td><td>14.82</td></tr><tr><td>A2T</td><td>60.19</td><td>15.40</td><td>11.06</td><td>14.17</td></tr><tr><td>DA3(ours)</td><td>59.85</td><td>17.92</td><td>12.22</td><td>16.84</td></tr></table>
|
| 200 |
+
|
| 201 |
+
BASE, while its $\mathrm{NASR}_{MSP}$ decreases drastically compared to ASR on SST-2, RTE, and MRPC. Similarly, BERT-Attack shows good performance on ROBERTA-BASE, while its $\mathrm{NASR}_{MSP}$ is notably lower than its ASR, especially on SST-2, RTE, and MRPC. This phenomenon indicates these adversarial examples are relatively easy to detect using MSP detection. Considering the results of both victim models, $\mathrm{DA}^3$ consistently produces reasonable and favorable outcomes when attacking white-box models, which proves the effectiveness of $\mathrm{DA}^3$ .
|
| 202 |
+
|
| 203 |
+
We also report %Words and SS in Appendix C. DA<sup>3</sup> achieves best or second-to-best %Words and comparable SS compared to baselines across datasets on both victim models.
|
| 204 |
+
|
| 205 |
+
Transferability to LLMs (RQ2). When attacking the black-box LLAMA2-7B model, $\mathrm{DA}^3$ performs the best on SST-2, RTE, and MRPC, outperforming baselines in all evaluation metrics. On CoLA, $\mathrm{DA}^3$ achieves second-to-best results on NASR. Further analysis and visualization of attack performance on LLAMA2-7B across five different prompts are displayed in Appendix F. $\mathrm{DA}^3$ consistently surpasses all baselines across five prompts.
|
| 206 |
+
|
| 207 |
+
2We also present results on MISTRAL-7B and the analysis on why the generated samples can be transferred to another LLMs in Appendix C. The results show $\mathrm{DA}^3$ achieves the best performance in most cases when attacking MISTRAL-7B.
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 5: The t-SNE visualization of high-level features of the original examples and the adversarial examples generated by BERT-Attack (left) and $\mathrm{DA}^3$ (right) on the SST-2 dataset.
|
| 211 |
+
|
| 212 |
+
The experimental results underscore the substantial advantage of our model when generalizing the generated adversarial examples to the black-box LLAMA2-7B model, compared to baselines.
|
| 213 |
+
|
| 214 |
+
Visualization We use t-SNE visualization to analyze high-level features of the generated adversarial examples. We visualize BERT embedding of BERT-Attack generated adversarial examples and original examples, and $\mathrm{DA}^3$ generated adversarial examples and original samples on SST-2 in Figure 5. In each subfigure, data points are classified into four types: original negative, original positive, adversarial negative, and adversarial positive (negative/positive refer to ground truth labels). In both subfigures, original negative points and original positive points form two separate clusters. In Figure 5 (left), adversarial negative and adversarial positive points overlap and are dispersed between the original negative and original positive points. In contrast, in Figure 5 (right), adversarial negative and adversarial positive points are relatively separated, with adversarial negative points closer to original positive points and adversarial positive points closer to original negative points. The visualization shows that $\mathrm{DA}^3$ generated adversarial examples are harder to detect than BERT-Attack generated adversarial examples.
|
| 215 |
+
|
| 216 |
+
# 7.2 Human Evaluation (RQ3)
|
| 217 |
+
|
| 218 |
+
Given that our goal is to generate high-quality adversarial examples that preserve the original semantics and remain imperceptible to humans, we perform human evaluations to assess the adversarial examples generated by $\mathrm{DA}^3$ using BERT-BASE as the backbone. These evaluations focus on grammar, prediction accuracy, and semantic preservation on SST-2 and MRPC datasets. For this pur
|
| 219 |
+
|
| 220 |
+
Table 3: Grammar correctness, prediction accuracy and semantic preservation of original examples (denoted as Orig.) and adversarial examples generated by $\mathrm{DA}^3$ .
|
| 221 |
+
|
| 222 |
+
<table><tr><td rowspan="2">Dataset</td><td colspan="2">Grammar</td><td colspan="2">Accuracy</td><td colspan="2">Semantic</td></tr><tr><td>DA3</td><td>Orig.</td><td>DA3</td><td>Orig.</td><td>DA3</td><td>TextFOoler</td></tr><tr><td>SST-2</td><td>4.12</td><td>4.37</td><td>0.68</td><td>0.74</td><td>0.71</td><td>0.66</td></tr><tr><td>MRPC</td><td>4.62</td><td>4.86</td><td>0.68</td><td>0.76</td><td>0.88</td><td>0.84</td></tr></table>
|
| 223 |
+
|
| 224 |
+
pose, three human judges evaluate 50 randomly selected original-adversarial pairs from each dataset. Detailed annotation guidelines are in Appendix D.
|
| 225 |
+
|
| 226 |
+
First, human raters are tasked with evaluating the grammar correctness and making predictions of a shuffled mix of the sampled original and adversarial examples. Grammar correctness is scored from 1-5 (Li et al., 2020; Jin et al., 2020). Then, human judges assess the semantic preservation of adversarial examples, determining whether they maintain the original semantics. We follow Jin et al. (2020) and ask human judges to classify adversarial examples as similar (1), ambiguous (0.5), or dissimilar (0) to the original examples. We compare $\mathrm{DA}^3$ with the best baseline model, TextFooler, on semantic preservation for better evaluation. We take the average scores among human raters for grammar correctness and semantic preservation and take the majority class as the predicted label.
|
| 227 |
+
|
| 228 |
+
As shown in Table 3, grammar correctness scores of adversarial examples generated by $\mathrm{DA}^3$ are similar to those of original examples. While word perturbations make predictions more challenging, adversarial examples generated by $\mathrm{DA}^3$ still show decent accuracy. Compared to TextFooler, $\mathrm{DA}^3$ can better preserve semantic similarity to original examples. Some generated adversarial examples are displayed in Appendix E.
|
| 229 |
+
|
| 230 |
+
# 7.3 Ablation Study (RQ4)
|
| 231 |
+
|
| 232 |
+
To analyze the effectiveness of different components of $\mathcal{L}_{DAL}$ , we conduct an ablation study on $\mathrm{DA}^3$ with BERT-BASE as the backbone. The results are shown in Table 4 and Table 5.
|
| 233 |
+
|
| 234 |
+
MSP Loss. We ablate $\mathcal{L}_{MSP}$ during fine-tuning to assess the efficacy of $\mathcal{L}_{MSP}$ . $\mathcal{L}_{MSP}$ helps improve $\mathrm{NASR}_{MSP}$ and MSP Detection Rate $(\mathrm{DR}_{MSP})$ , which is the ratio of $|\mathcal{D}_{MSP}|$ to the total number of successful adversarial examples, across all datasets. An interesting finding is that on SST-2 and CoLA, although models without $\mathcal{L}_{MSP}$ perform better in terms of ASR, the situation deteriorates when considering detectability, leading to lower $\mathrm{NASR}_{MSP}$ and higher $\mathrm{DR}_{MSP}$ compared
|
| 235 |
+
|
| 236 |
+
Table 4: Ablation study on $\mathrm{DA}^3$ using BERT-BASE as the backbone regarding the MSP Loss.
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Dataset</td><td>Model</td><td>ACC↓</td><td>ASR↑</td><td>NASR_MSP↑</td><td>DR_MSP↓</td></tr><tr><td rowspan="2">SST-2</td><td rowspan="2">DA3(w/o MSP)</td><td>21.10</td><td>77.17</td><td>54.22</td><td>29.74</td></tr><tr><td>1.61</td><td>98.26</td><td>47.27</td><td>51.89</td></tr><tr><td rowspan="2">CoLA</td><td rowspan="2">DA3(w/o MSP)</td><td>2.78</td><td>96.58</td><td>93.74</td><td>2.93</td></tr><tr><td>2.11</td><td>97.40</td><td>93.15</td><td>4.36</td></tr><tr><td rowspan="2">RTE</td><td rowspan="2">DA3(w/o MSP)</td><td>1.08</td><td>98.51</td><td>72.14</td><td>26.77</td></tr><tr><td>1.08</td><td>98.51</td><td>70.65</td><td>28.28</td></tr><tr><td rowspan="2">MRPC</td><td rowspan="2">DA3(w/o MSP)</td><td>0.74</td><td>99.16</td><td>74.86</td><td>24.51</td></tr><tr><td>0.74</td><td>99.16</td><td>73.18</td><td>26.20</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 5: Ablation study on $\mathrm{DA}^3$ using BERT-BASE as the backbone regarding the MD Loss.
|
| 241 |
+
|
| 242 |
+
<table><tr><td>Dataset</td><td>Model</td><td>ACC↓</td><td>ASR↑</td><td>NASRMID↑</td><td>DRMD↓</td></tr><tr><td rowspan="2">SST-2</td><td rowspan="2">DA3(w/o MD)</td><td>21.10</td><td>77.17</td><td>75.06</td><td>2.73</td></tr><tr><td>15.60</td><td>83.13</td><td>80.77</td><td>2.84</td></tr><tr><td rowspan="2">CoLA</td><td rowspan="2">DA3(w/o MD)</td><td>2.78</td><td>96.58</td><td>93.27</td><td>3.42</td></tr><tr><td>2.30</td><td>97.17</td><td>90.55</td><td>6.80</td></tr><tr><td rowspan="2">RTE</td><td rowspan="2">DA3(w/o MD)</td><td>1.08</td><td>98.51</td><td>86.07</td><td>12.63</td></tr><tr><td>1.08</td><td>98.51</td><td>85.57</td><td>13.13</td></tr><tr><td rowspan="2">MRPC</td><td rowspan="2">DA3(w/o MD)</td><td>0.74</td><td>99.16</td><td>93.29</td><td>5.90</td></tr><tr><td>1.72</td><td>98.04</td><td>90.22</td><td>7.98</td></tr></table>
|
| 243 |
+
|
| 244 |
+
to the model with $\mathcal{L}_{DAL}$ .
|
| 245 |
+
|
| 246 |
+
MD Loss. We ablate $\mathcal{L}_{MD}$ during fine-tuning to assess the efficacy of $\mathcal{L}_{MD}$ . $\mathcal{L}_{MD}$ helps improve MD Detection Rate $(\mathrm{DR}_{MD})$ , which is the ratio of $|\mathcal{D}_{MD}|$ to the number of successful adversarial examples, across all datasets. $\mathcal{L}_{MD}$ also improves $\mathrm{NASR}_{MD}$ on all datasets except SST-2. A similar finding on CoLA exists that although models without $\mathcal{L}_{MD}$ perform better on ASR, the performance worsens when considering detectability.
|
| 247 |
+
|
| 248 |
+
The ablation study shows that both $\mathcal{L}_{MSP}$ and $\mathcal{L}_{MD}$ are effective on most datasets.
|
| 249 |
+
|
| 250 |
+
# 7.4 Loss Visualization and Analysis (RQ4)
|
| 251 |
+
|
| 252 |
+
To better understand how different loss components contribute to $\mathrm{DA}^3$ , we visualize the changes of $\mathcal{L}_{MSP}$ , $\mathcal{L}_{MD}$ , and $\mathcal{L}_{DAL}$ throughout the fine-tuning phase of $\mathrm{DA}^3$ with BERT-BASE as the backbone on SST-2 dataset, as illustrated in Figure 6.
|
| 253 |
+
|
| 254 |
+
We observe that all three losses exhibit oscillating descent and eventual convergence. Although the overall trends of $\mathcal{L}_{MSP}$ and $\mathcal{L}_{MD}$ are consistent, a closer examination reveals that they often exhibit opposite trends at each step, especially in the initial stages. Despite both losses sharing a common goal of reducing distribution shifts between adversarial examples and original examples, this observation reveals a potential trade-off relationship between them. One possible interpretation is that, on the one hand, minimizing $\mathcal{L}_{MSP}$ increases the confidence of wrong predictions, aligning with
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
Figure 6: The change of $\mathcal{L}_{MSP}$ , $\mathcal{L}_{MD}$ , and $\mathcal{L}_{DAL}$ throughout the fine-tuning phase of $\mathrm{DA}^3$ with BERT-BASE as the backbone on SST-2. The x-axis represents fine-tuning steps; the y-axis represents the change of loss compared to the initial loss.
|
| 258 |
+
|
| 259 |
+
the objective of the adversarial attack task to induce incorrect predictions. On the other hand, minimizing $\mathcal{L}_{MD}$ encourages the generated adversarial sentences to resemble the original ones more closely, loosely akin to the objective of the masked language modeling task to restore masked tokens to their original values. While these two objectives are not inherently conflicting, an extreme standpoint reveals that when the latter objective is fully satisfied – meaning the model generates identical examples to the original ones – the former objective naturally becomes untenable.
|
| 260 |
+
|
| 261 |
+
# 7.5 Loss Comparison (RQ5)
|
| 262 |
+
|
| 263 |
+
Other than using our $\mathcal{L}_{DAL}$ , we also explore other loss variants: $\mathcal{L}_{NCE}$ and $\mathcal{L}_{FCE}$ .
|
| 264 |
+
|
| 265 |
+
Minimizing the negative of regular cross-entropy loss (denoted as $\mathcal{L}_{NCE}$ ) or minimizing the cross-entropy loss of flipped adversarial labels (denoted as $\mathcal{L}_{FCE}$ ) are two simple ideas as baseline attack methods. We replace $\mathcal{L}_{DAL}$ with $\mathcal{L}_{NCE}$ or $\mathcal{L}_{FCE}$ during the fine-tuning phase to assess the efficacy of our loss $\mathcal{L}_{DAL}$ . The results in Table 6 show that $\mathcal{L}_{DAL}$ outperforms the other two losses across all evaluation metrics on RTE and MRPC datasets. On CoLA dataset, $\mathcal{L}_{DAL}$ achieves better or similar performance compared to $\mathcal{L}_{NCE}$ and $\mathcal{L}_{FCE}$ . While $\mathcal{L}_{DAL}$ may not perform as well as $\mathcal{L}_{NCE}$ and $\mathcal{L}_{FCE}$ on SST-2, given its superior performance on the majority of datasets, we believe $\mathcal{L}_{DAL}$ is more effective than $\mathcal{L}_{NCE}$ and $\mathcal{L}_{FCE}$ generally.
|
| 266 |
+
|
| 267 |
+
# 8 Conclusion
|
| 268 |
+
|
| 269 |
+
We analyze the adversarial examples generated by previous attack methods and identify distribution
|
| 270 |
+
|
| 271 |
+
Table 6: Comparison of ${\mathrm{{DA}}}^{3}$ using BERT-BASE as backbone with loss variants.
|
| 272 |
+
|
| 273 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Model</td><td rowspan="2">ACC↓</td><td rowspan="2">ASR↑</td><td colspan="2">MSP</td><td colspan="2">MD</td></tr><tr><td>NASR↑</td><td>DR↓</td><td>NASR↑</td><td>DR↓</td></tr><tr><td rowspan="3">SST-2</td><td>w/ LNCE</td><td>18.23</td><td>80.27</td><td>55.71</td><td>30.60</td><td>76.30</td><td>4.95</td></tr><tr><td>w/ LFCE</td><td>17.66</td><td>80.89</td><td>63.03</td><td>22.09</td><td>78.04</td><td>3.53</td></tr><tr><td>ours</td><td>21.10</td><td>77.17</td><td>54.22</td><td>29.74</td><td>75.06</td><td>2.73</td></tr><tr><td rowspan="3">CoLA</td><td>w/ LNCE</td><td>2.03</td><td>97.52</td><td>94.10</td><td>3.51</td><td>92.80</td><td>4.84</td></tr><tr><td>w/ LFCE</td><td>3.07</td><td>96.22</td><td>93.98</td><td>2.33</td><td>91.97</td><td>4.42</td></tr><tr><td>ours</td><td>2.78</td><td>96.58</td><td>93.74</td><td>2.93</td><td>93.27</td><td>3.42</td></tr><tr><td rowspan="3">RTE</td><td>w/ LNCE</td><td>1.08</td><td>98.51</td><td>71.14</td><td>27.78</td><td>85.57</td><td>13.13</td></tr><tr><td>w/ LFCE</td><td>1.44</td><td>98.01</td><td>69.65</td><td>28.93</td><td>85.07</td><td>13.20</td></tr><tr><td>ours</td><td>1.08</td><td>98.51</td><td>72.14</td><td>26.77</td><td>86.07</td><td>12.63</td></tr><tr><td rowspan="3">MRPC</td><td>w/ LNCE</td><td>2.45</td><td>97.21</td><td>71.79</td><td>26.15</td><td>89.39</td><td>8.05</td></tr><tr><td>w/ LFCE</td><td>0.74</td><td>99.16</td><td>68.99</td><td>30.42</td><td>91.34</td><td>7.89</td></tr><tr><td>ours</td><td>0.74</td><td>99.16</td><td>74.86</td><td>24.51</td><td>93.29</td><td>5.90</td></tr></table>
|
| 274 |
+
|
| 275 |
+
shifts between adversarial examples and original examples in terms of MSP and MD. To address this problem, we propose a Distribution-Aware Adversarial Attack $(\mathrm{DA}^3)$ method with the Data Alignment Loss and introduce a novel evaluation metric, NASR, which integrates out-of-distribution detection into the assessment of successful attacks. Our experiments validate the attack effectiveness of $\mathrm{DA}^3$ on BERT-BASE and ROBERTA-BASE and the transferability of adversarial examples generated by $\mathrm{DA}^3$ on the black-box LLAMA2-7B.
|
| 276 |
+
|
| 277 |
+
# Limitations
|
| 278 |
+
|
| 279 |
+
We analyze the distribution shifts between adversarial examples and original examples in terms of MSP and MD, which exist in most datasets. Nevertheless, the MD distribution shift is not very obvious in some datasets like MRPC. This indicates that MD detection may not always effectively identify adversarial examples. However, we believe that since such a distribution shift is present in many datasets, we still need to consider MD detection. Furthermore, our experiments demonstrate that considering distribution shift is not only effective for NASR but also enhances the performance of the model in ASR.
|
| 280 |
+
|
| 281 |
+
# Ethics Statement
|
| 282 |
+
|
| 283 |
+
There exists a potential risk associated with our proposed attack methods – they could be used maliciously to launch adversarial attacks against off-the-shelf systems. Despite this risk, we emphasize the necessity of conducting studies on adversarial attacks. Understanding these attack models is crucial for the research community to develop effective defenses against such attacks.
|
| 284 |
+
|
| 285 |
+
# Acknowledgements
|
| 286 |
+
|
| 287 |
+
This work is supported in part by NSF under grants III-2106758, and POSE-2346158.
|
| 288 |
+
|
| 289 |
+
# References
|
| 290 |
+
|
| 291 |
+
Dyah Adila and Dongyeop Kang. 2022. Understanding out-of-distribution: A perspective of data dynamics. In I (Still) Can't Believe It's Not Better! Workshop at NeurIPS 2021, pages 1-8. PMLR.
|
| 292 |
+
Udit Arora, William Huang, and He He. 2021. Types of out-of-distribution texts and how to detect them. In 2021 Conference on Empirical Methods in Natural Language Processing, EMNLP 2021, pages 10687-10701. Association for Computational Linguistics (ACL).
|
| 293 |
+
Yonatan Belinkov and Yonatan Bisk. 2018. Synthetic and natural noise both break neural machine translation. In International Conference on Learning Representations.
|
| 294 |
+
Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, et al. 2018. Universal sentence encoder. arXiv preprint arXiv:1803.11175.
|
| 295 |
+
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.
|
| 296 |
+
William B. Dolan and Chris Brockett. 2005. Automatically constructing a corpus of sentential paraphrases. In Proceedings of the Third International Workshop on Paraphrasing (IWP2005).
|
| 297 |
+
Xiangjue Dong, Yun He, Ziwei Zhu, and James Caverlee. 2023. PromptAttack: Probing dialogue state trackers with adversarial prompts. In *Findings of the Association for Computational Linguistics: ACL* 2023, pages 10651–10666, Toronto, Canada. Association for Computational Linguistics.
|
| 298 |
+
Brian Formento, Wenjie Feng, Chuan-Sheng Foo, Luu Anh Tuan, 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 Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 7998-8021.
|
| 299 |
+
Ji Gao, Jack Lanchantin, Mary Lou Soffa, and Yanjun Qi. 2018. Black-box generation of adversarial text sequences to evade deep learning classifiers. In 2018
|
| 300 |
+
|
| 301 |
+
IEEE Security and Privacy Workshops (SPW), pages 50-56.
|
| 302 |
+
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.
|
| 303 |
+
Shreya Goyal, Sumanth Doddapaneni, Mitesh M. Khapra, and Balaraman Ravindran. 2023. A survey of adversarial defenses and robustness in nlp. ACM Comput. Surv., 55(14s).
|
| 304 |
+
Dan Hendrycks and Kevin Gimpel. 2017. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations.
|
| 305 |
+
Edward J Hu, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al. 2021. Lora: Low-rank adaptation of large language models. In International Conference on Learning Representations.
|
| 306 |
+
Mohit Iyyer, John Wieting, Kevin Gimpel, and Luke Zettlemoyer. 2018. Adversarial example generation with syntactically controlled paraphrase networks. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers), pages 1875-1885, New Orleans, Louisiana. Association for Computational Linguistics.
|
| 307 |
+
Robin Jia and Percy Liang. 2017. Adversarial examples for evaluating reading comprehension systems. In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 2021-2031, Copenhagen, Denmark. Association for Computational Linguistics.
|
| 308 |
+
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.
|
| 309 |
+
Li Jinfeng, Ji Shouling, Du Tianyu, Li Bo, and Wang Ting. 2019. Textbugger: Generating adversarial text against real-world applications. Proceedings 2019 Network and Distributed System Security Symposium.
|
| 310 |
+
Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. 2018. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. Advances in neural information processing systems, 31.
|
| 311 |
+
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.
|
| 312 |
+
|
| 313 |
+
Yueqing Liang, Lu Cheng, Ali Payani, and Kai Shu. 2023. Beyond detection: Unveiling fairness vulnerabilities in abusive language models. arXiv preprint arXiv:2311.09428.
|
| 314 |
+
Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. 2020. Energy-based out-of-distribution detection. Advances in neural information processing systems, 33:21464-21475.
|
| 315 |
+
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. arXiv preprint arXiv:1907.11692.
|
| 316 |
+
Edoardo Mosca, Shreyash Agarwal, Javier Rando Ramírez, and Georg Groh. 2022. "that is a suspicious reaction": Interpreting logits variation to detect nlp adversarial attacks. In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7806-7816.
|
| 317 |
+
Maximilian Mozes, Pontus Stenetorp, Bennett Kleinberg, and Lewis Griffin. 2021. Frequency-guided word substitutions for detecting textual adversarial examples. In Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, pages 171-186. Association for Computational Linguistics.
|
| 318 |
+
Nikola Mrkšić, Diarmuid Žáeghdha, Blaise Thomson, Milica Gasic, Lina M Rojas Barahona, Pei-Hao Su, David Vandyke, Tsung-Hsien Wen, and Steve Young. 2016. Counter-fitting word vectors to linguistic constraints. In Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 142-148.
|
| 319 |
+
Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. 2022. Red teaming language models with language models. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3419-3448, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
|
| 320 |
+
Jie Ren, Stanislav Fort, Jeremiah Liu, Abhijit Guha Roy, Shreyas Padhy, and Balaji Lakshminarayanan. 2021. A simple fix to mahalanobis distance for improving near-ood detection. arXiv preprint arXiv:2106.09022.
|
| 321 |
+
Jie Ren, Jiaming Luo, Yao Zhao, Kundan Krishna, Mohammad Saleh, Balaji Lakshminarayanan, and Peter J Liu. 2022. Out-of-distribution detection and selective generation for conditional language models. In The Eleventh International Conference on Learning Representations.
|
| 322 |
+
Shuhuai Ren, Yihe Deng, Kun He, and Wanxiang Che. 2019. Generating natural language adversarial examples through probability weighted word saliency. In
|
| 323 |
+
|
| 324 |
+
Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1085-1097, Florence, Italy. Association for Computational Linguistics.
|
| 325 |
+
Marco Tulio Ribeiro, Tongshuang Wu, Carlos Guestrin, and Sameer Singh. 2020. Beyond accuracy: Behavioral testing of NLP models with CheckList. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 4902-4912, Online. Association for Computational Linguistics.
|
| 326 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631-1642, Seattle, Washington, USA. Association for Computational Linguistics.
|
| 327 |
+
Liwei Song, Xinwei Yu, Hsuan-Tung Peng, and Karthik Narasimhan. 2021. Universal adversarial attacks with natural triggers for text classification. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 3724-3733, Online. Association for Computational Linguistics.
|
| 328 |
+
Yiyou Sun, Yifei Ming, Xiaojin Zhu, and Yixuan Li. 2022. Out-of-distribution detection with deep nearest neighbors. In International Conference on Machine Learning, pages 20827-20840. PMLR.
|
| 329 |
+
Arun James Thirunavukarasu, Darren Shu Jeng Ting, Kabilan Elangovan, Laura Gutierrez, Ting Fang Tan, and Daniel Shu Wei Ting. 2023. Large language models in medicine. Nature medicine, 29(8):1930-1940.
|
| 330 |
+
Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288.
|
| 331 |
+
Eric Wallace, Shi Feng, Nikhil Kandpal, Matt Gardner, and Sameer Singh. 2019. Universal adversarial triggers for attacking and analyzing NLP. 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 2153-2162, Hong Kong, China. Association for Computational Linguistics.
|
| 332 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019a. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In the Proceedings of ICLR.
|
| 333 |
+
|
| 334 |
+
Chen Wang, Liangwei Yang, Zhiwei Liu, Xiaolong Liu, Mingdai Yang, Yueqing Liang, and S Yu Philip. 2024. Collaborative semantic alignment in recommendation systems. In 33rd ACM International Conference on Information and Knowledge Management.
|
| 335 |
+
Shuo Wang, Yang Liu, Chao Wang, Huanbo Luan, and Maosong Sun. 2019b. Improving back-translation with uncertainty-based confidence estimation. 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 791–802, Hong Kong, China. Association for Computational Linguistics.
|
| 336 |
+
Alex Warstadt, Amanpreet Singh, and Samuel R. Bowman. 2019. Neural network acceptability judgments. Transactions of the Association for Computational Linguistics, 7:625-641.
|
| 337 |
+
Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, et al. 2024. Autogen: Enabling next-gen llm applications via multi-agent conversation. In ICLR 2024 Workshop on Large Language Model (LLM) Agents.
|
| 338 |
+
Tim Z Xiao, Aidan N Gomez, and Yarin Gal. 2020. Wat zei je? detecting out-of-distribution translations with variational transformers. arXiv preprint arXiv:2006.08344.
|
| 339 |
+
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.
|
| 340 |
+
Zhengli Zhao, Dheeru Dua, and Sameer Singh. 2018. Generating natural adversarial examples. In International Conference on Learning Representations.
|
| 341 |
+
Yichao Zhou, Jyun-Yu Jiang, Kai-Wei Chang, and Wei Wang. 2019. Learning to discriminate perturbations for blocking adversarial attacks in text classification. 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 4904-4913.
|
| 342 |
+
|
| 343 |
+
# Appendix
|
| 344 |
+
|
| 345 |
+
# A Evaluation Metrics
|
| 346 |
+
|
| 347 |
+
Percentage of Perturbed Words (%Words). Percentage of Perturbed Words (%Words) is used to measure how much a text has been altered or perturbed from its original form. %Words is formulated as
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
\% \text {Words} = \frac {\text {Number of Perturbed Words}}{\text {Total Number of Words}} \times 100.
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
Semantic Similarity (SS). We calculate Semantic Similarity (SS) using sentence semantic similarity between $x^{orig}$ and $x^{adv}$ . Specifically, we transform the two sentences into high-dimensional sentence embeddings using the Universal Sentence Encoder (USE) (Cer et al., 2018). We then approximate their semantic similarity by calculating the cosine similarity score between these vectors.
|
| 354 |
+
|
| 355 |
+
Attack Success Rate (ASR). Attack Success Rate (ASR) is defined as the percentage of generated adversarial examples that successfully deceive model predictions. Thus, ASR is formulated as
|
| 356 |
+
|
| 357 |
+
$$
|
| 358 |
+
\mathrm {A S R} = \frac {| \{x ^ {o r i g} \mid y ^ {a d v} \neq y ^ {o r i g} , x ^ {o r i g} \in \mathcal {X} \} |}{| \mathcal {X} |}.
|
| 359 |
+
$$
|
| 360 |
+
|
| 361 |
+
These definitions are consistent with prior work.
|
| 362 |
+
|
| 363 |
+
# B More Implementation Details
|
| 364 |
+
|
| 365 |
+
# B.1 Baselines
|
| 366 |
+
|
| 367 |
+
DeepWordBug (Gao et al., 2018) uses two scoring functions to determine the most important words and then adds perturbations through random substation, deletion, insertion, and swapping letters in the word while constrained by the edit distance.
|
| 368 |
+
|
| 369 |
+
TextBugger (Jinfeng et al., 2019) finds important words through the Jacobian matrix or scoring function and then uses insertion, deletion, swapping, substitution with visually similar words, and substitution with semantically similar words.
|
| 370 |
+
|
| 371 |
+
TextFooler (Jin et al., 2020) uses the prediction change before and after deleting the word as the word importance score and then replaces each word in the sentence with synonyms until the prediction label of the target model changes.
|
| 372 |
+
|
| 373 |
+
BERT-Attack (Li et al., 2020) finds the vulnerable words through logits from the target model and then uses BERT to generate perturbations based on the top-K predictions.
|
| 374 |
+
|
| 375 |
+
Table 7: Dataset statistics.
|
| 376 |
+
|
| 377 |
+
<table><tr><td>Dataset</td><td>Train</td><td>Validation</td><td>Description</td></tr><tr><td>SST-2</td><td>67,300</td><td>872</td><td>Sentiment analysis</td></tr><tr><td>CoLA</td><td>8,550</td><td>1,043</td><td>Grammar correctness</td></tr><tr><td>RTE</td><td>2,490</td><td>277</td><td>Textual entailment</td></tr><tr><td>MRPC</td><td>3,670</td><td>408</td><td>Textual similarity</td></tr></table>
|
| 378 |
+
|
| 379 |
+
Table 8: Hyperparameters of different datasets.
|
| 380 |
+
|
| 381 |
+
<table><tr><td>Backbone</td><td>Hyperparameter</td><td>SST-2</td><td>CoLA</td><td>RTE</td><td>MRPC</td></tr><tr><td rowspan="3">BERT-BASE</td><td>batch size</td><td>128</td><td>128</td><td>32</td><td>128</td></tr><tr><td>learning rate</td><td>1e-4</td><td>5e-5</td><td>1e-5</td><td>1e-3</td></tr><tr><td>% masked tokens</td><td>30</td><td>30</td><td>30</td><td>30</td></tr><tr><td rowspan="3">ROBERTA-BASE</td><td>batch size</td><td>128</td><td>128</td><td>32</td><td>128</td></tr><tr><td>learning rate</td><td>5e-5</td><td>1e-4</td><td>1e-5</td><td>1e-3</td></tr><tr><td>% masked tokens</td><td>30</td><td>30</td><td>30</td><td>30</td></tr></table>
|
| 382 |
+
|
| 383 |
+
A2T (Yoo and Qi, 2021) employs a gradient-based method for ranking word importance, iteratively replacing each word with top synonyms generated from counter-fitting word embeddings (Mrkšić et al., 2016).
|
| 384 |
+
|
| 385 |
+
For the implementation of baselines, we use the TextAttack<sup>3</sup> package with its default parameters.
|
| 386 |
+
|
| 387 |
+
# B.2 Datasets
|
| 388 |
+
|
| 389 |
+
SST-2. The Stanford Sentiment Treebank (Socher et al., 2013) is a binary sentiment classification task. It consists of sentences extracted from movie reviews with human-annotated sentiment labels.
|
| 390 |
+
|
| 391 |
+
CoLA. The Corpus of Linguistic Acceptability (Warstadt et al., 2019) contains English sentences extracted from published linguistics literature, aiming to check grammar correctness.
|
| 392 |
+
|
| 393 |
+
RTE. The Recognizing Textual Entailment dataset (Wang et al., 2019a) is derived from a combination of news and Wikipedia sources, aiming to determine whether the given pair of sentences entail each other.
|
| 394 |
+
|
| 395 |
+
MRPC. The Microsoft Research Paraphrase Corpus (Dolan and Brockett, 2005) comprises sentence pairs sourced from online news articles. These pairs are annotated to indicate whether the sentences are semantically equivalent.
|
| 396 |
+
|
| 397 |
+
Data statistics for each dataset are shown in Table 7.
|
| 398 |
+
|
| 399 |
+
# B.3 Hyperparameters and More Settings
|
| 400 |
+
|
| 401 |
+
For each experiment, the $\mathrm{DA}^3$ fine-tuning phrase is executed for a total of 20 epochs. The learning rate is searched from $[1e - 5, 1e - 3]$ . Up to $30\%$ of
|
| 402 |
+
|
| 403 |
+
Table 9: Prompt template for different datasets. {instruct} is replaced by different instructions in Table 10, while {text} is replaced with input sentence.
|
| 404 |
+
|
| 405 |
+
<table><tr><td colspan="2">Dataset Prompt</td></tr><tr><td>SST-2</td><td>“{instruct} Respond with ‘positive’ or ‘negative’ in lowercase, only one word. \nInput: {text}\nAnswer:"</td></tr><tr><td>CoLA</td><td>“{instruct} Respond with ‘acceptable’ or ‘unacceptable’ in lowercase, only one word.\nInput: {text}\nAnswer:",</td></tr><tr><td>RTE</td><td>“{instruct} Respond with ‘entailment’ or ‘not_entiailment’ in lowercase, only one word.\nInput: {text}\nAnswer:</td></tr><tr><td>MRPC</td><td>“{instruct} Respond with ‘equivalent’ or ‘not_equivalent’ in lowercase, only one word.\nInput: {text}\nAnswer:</td></tr></table>
|
| 406 |
+
|
| 407 |
+
Table 10: Different instructions used for different runs.
|
| 408 |
+
|
| 409 |
+
<table><tr><td colspan="2">Dataset Prompt</td></tr><tr><td rowspan="5">SST-2</td><td>“Evaluate the sentiment of the given text.”</td></tr><tr><td>“Please identify the emotional tone of this passage.”</td></tr><tr><td>“Determine the overall sentiment of this sentence.”</td></tr><tr><td>“After examining the following expression, label its emotion.”</td></tr><tr><td>“Assess the mood of the following quote.”</td></tr><tr><td rowspan="5">CoLA</td><td>“Assess the grammatical structure of the given text.”</td></tr><tr><td>“Assess the following sentence and determine if it is grammatically correct.”</td></tr><tr><td>“Examine the given sentence and decide if it is grammatically sound.”</td></tr><tr><td>“Check the grammar of the following sentence.”</td></tr><tr><td>“Analyze the provided sentence and classify its grammatical correctness.”</td></tr><tr><td rowspan="5">RTE</td><td>“Assess the relationship between sentence1 and sentence2.”</td></tr><tr><td>“Review the sentence1 and sentence2 and categorize their relationship.”</td></tr><tr><td>“Considering the sentence1 and sentence2, identify their relationship.”</td></tr><tr><td>“Please classify the relationship between sentence1 and sentence2.”</td></tr><tr><td>“Indicate the connection between sentence1 and sentence2.”</td></tr><tr><td rowspan="5">MRPC</td><td>“Assess whether sentence1 and sentence2 share the same semantic meaning.”</td></tr><tr><td>“Compare sentence1 and sentence2 and determine if they share the same semantic meaning.”</td></tr><tr><td>“Do sentence1 and sentence2 have the same underlying meaning?”</td></tr><tr><td>“Do the meanings of sentence1 and sentence2 align?”</td></tr><tr><td>“Please analyze sentence1 and sentence2 and indicate if their meanings are the same.”</td></tr></table>
|
| 410 |
+
|
| 411 |
+
the tokens are masked during the fine-tuning phrase. The rank of the update matrices of LoRA is set to 8; LoRA scaling factor is 32; LoRA dropout value is set as 0.1. The inference termination condition is set as $40\%$ of the tokens.
|
| 412 |
+
|
| 413 |
+
Table 8 shows the hyperparameters used in experiments.
|
| 414 |
+
|
| 415 |
+
White-box experiments are conducted on two NVIDIA GeForce RTX 3090ti GPUs, and blackbox experiments are conducted on two NVIDIA RTX A5000 24GB GPUs.
|
| 416 |
+
|
| 417 |
+
# B.4 Prompts Used for the Black-box LLM
|
| 418 |
+
|
| 419 |
+
The constructed prompt templates used for the Black-box LLM (LLAMA2-7B $^4$ ) are shown in Table 9. For each run, {instruct} in the prompt template is replaced by different instructions in
|
| 420 |
+
|
| 421 |
+
Table 10, while {text} is replaced with the input sentence.
|
| 422 |
+
|
| 423 |
+
# C More Automatic Evaluation Results
|
| 424 |
+
|
| 425 |
+
Experimental results of %Words and SS on the white-box victim models BERT-BASE and ROBERTA-BASE are shown in Table 12 and Table 13. DA<sup>3</sup> achieves best or second-to-best %Words and comparable SS compared to baselines across datasets on both victim models.
|
| 426 |
+
|
| 427 |
+
The results of the generated adversarial examples by $\mathrm{DA}^3$ with BERT-BASE as the backbone on attacking the white-box MISTRAL-7B model on CoLA, RTE, and MRPC are shown in Table 11. Our proposed $\mathrm{DA}^3$ outperforms all other baselines.
|
| 428 |
+
|
| 429 |
+
Although BERT-BASE, LLAMA2-7B, and MISTRAL-7B have different structures and parameters, they are both trained on large text corpora.
|
| 430 |
+
|
| 431 |
+
Table 11: Evaluation results on the black-box MISTRAL-7B models. Results of MISTRAL-7B are the average of zero-shot prompting with five different prompts.
|
| 432 |
+
|
| 433 |
+
<table><tr><td rowspan="2">Dataset</td><td rowspan="2">Model</td><td colspan="4">MISTRAL-7B</td></tr><tr><td>ACC↓</td><td>ASR↑</td><td>NASR_MSP ↑</td><td>NASR_MD ↑</td></tr><tr><td rowspan="7">SST-2</td><td>Original</td><td>89.17</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>66.56</td><td>26.15</td><td>26.15</td><td>25.61</td></tr><tr><td>TextBugger</td><td>83.07</td><td>8.26</td><td>8.26</td><td>7.74</td></tr><tr><td>DeepWordBug</td><td>82.48</td><td>9.21</td><td>9.21</td><td>8.87</td></tr><tr><td>BERT-Attack</td><td>63.97</td><td>29.01</td><td>28.94</td><td>28.50</td></tr><tr><td>A2T</td><td>77.89</td><td>14.12</td><td>14.04</td><td>13.50</td></tr><tr><td>DA3(ours)</td><td>60.18</td><td>33.71</td><td>33.71</td><td>33.17</td></tr><tr><td rowspan="7">CoLA</td><td>Original</td><td>79.35</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>27.84</td><td>66.20</td><td>57.59</td><td>63.57</td></tr><tr><td>TextBugger</td><td>38.28</td><td>52.52</td><td>46.36</td><td>48.26</td></tr><tr><td>DeepWordBug</td><td>34.67</td><td>58.99</td><td>51.69</td><td>53.87</td></tr><tr><td>BERT-Attack</td><td>33.25</td><td>59.58</td><td>52.23</td><td>55.96</td></tr><tr><td>A2T</td><td>35.70</td><td>56.36</td><td>49.26</td><td>51.86</td></tr><tr><td>DA3(ours)</td><td>29.11</td><td>66.12</td><td>63.41</td><td>62.49</td></tr><tr><td rowspan="7">RTE</td><td>Original</td><td>80.94</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>65.20</td><td>24.35</td><td>24.35</td><td>24.17</td></tr><tr><td>TextBugger</td><td>77.91</td><td>6.95</td><td>6.95</td><td>6.86</td></tr><tr><td>DeepWordBug</td><td>77.98</td><td>6.33</td><td>6.33</td><td>6.24</td></tr><tr><td>BERT-Attack</td><td>56.73</td><td>33.18</td><td>33.18</td><td>33.12</td></tr><tr><td>A2T</td><td>57.69</td><td>32.11</td><td>32.11</td><td>32.11</td></tr><tr><td>DA3(ours)</td><td>54.08</td><td>35.98</td><td>35.71</td><td>35.45</td></tr><tr><td rowspan="7">MRPC</td><td>Original</td><td>79.31</td><td></td><td></td><td></td></tr><tr><td>TextFooler</td><td>63.09</td><td>25.00</td><td>24.81</td><td>22.97</td></tr><tr><td>TextBugger</td><td>78.68</td><td>4.52</td><td>4.52</td><td>4.52</td></tr><tr><td>DeepWordBug</td><td>78.33</td><td>4.46</td><td>4.46</td><td>4.40</td></tr><tr><td>BERT-Attack</td><td>56.22</td><td>34.58</td><td>33.72</td><td>34.60</td></tr><tr><td>A2T</td><td>61.91</td><td>26.52</td><td>26.03</td><td>26.52</td></tr><tr><td>DA3(ours)</td><td>56.18</td><td>35.30</td><td>35.07</td><td>35.38</td></tr></table>
|
| 434 |
+
|
| 435 |
+
Thus, they share similar knowledge. From Table 2 and Table 11, we can see that BERT-based models (BERT-Attack and $\mathrm{DA}^3$ ) perform better than other models in most cases, which confirms our explanations. Besides, the best transferability also shows that our proposed $\mathrm{DA}^3$ can generate high-quality adversarial examples that are robust to the black-box LLMs.
|
| 436 |
+
|
| 437 |
+
# D Annotation Guidelines
|
| 438 |
+
|
| 439 |
+
Here we provide the annotation guidelines for annotators:
|
| 440 |
+
|
| 441 |
+
Grammar. Rate the grammaticality and fluency of the text between 1-5; the higher the score, the better the grammar of the text.
|
| 442 |
+
|
| 443 |
+
Prediction. For SSTS-2 dataset, classify the sentiment of the text into negative (0) or positive (1); For MRPC dataset, classify if the two sentences are equivalent (1) or not_equivalent (0).
|
| 444 |
+
|
| 445 |
+
Semantic. Compare the semantic similarity between text1 and text2, and label with similar (1), ambiguous (0.5), and dissimilar (0).
|
| 446 |
+
|
| 447 |
+
# E Examples of Generated Adversarial Sentences
|
| 448 |
+
|
| 449 |
+
Table 14 displays some original examples and the corresponding adversarial examples generated by $\mathrm{DA}^3$ . The table also shows the predicted results of the original or adversarial sentence using BERT-BASE. Blue words are perturbed into the red words. Table 14 shows that $\mathrm{DA}^3$ only perturbs a very small number of words, leading to model prediction failure. Besides, the adversarial examples generally preserve similar semantic meanings to their original inputs.
|
| 450 |
+
|
| 451 |
+
# F Results Visualization Across Different Prompts
|
| 452 |
+
|
| 453 |
+
We display the individual attack performance of five runs with different prompts on the MRPC dataset in Figure 7. The figure illustrates that $\mathrm{DA}^3$ consistently surpasses other baseline methods for each run.
|
| 454 |
+
|
| 455 |
+
# G Observation Experiments
|
| 456 |
+
|
| 457 |
+
The observation experiments on previous attack methods TextFooler, TextBugger, DeepWordBug, and BERT-Attack are shown in Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, and Figure 15.
|
| 458 |
+
|
| 459 |
+
The distribution shift between adversarial examples and original examples is more evident in terms of MSP across all the datasets. The distribution shift between adversarial examples and original examples in terms of MD is clear only on SST-2 dataset and MRPC dataset. Although this shift is not always present in terms of MD, it is imperative to address this issue given its presence in certain datasets.
|
| 460 |
+
|
| 461 |
+
Table 12: %Words and SS results on the BERT-Base victim model.
|
| 462 |
+
|
| 463 |
+
<table><tr><td>Dataset</td><td colspan="6">SST-2</td><td colspan="6">CoLA</td></tr><tr><td>Model</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td></tr><tr><td>%Words</td><td>17.58</td><td>15.35</td><td>19.11</td><td>13.42</td><td>11.06</td><td>10.72</td><td>19.16</td><td>19.16</td><td>18.53</td><td>18.34</td><td>19.04</td><td>16.83</td></tr><tr><td>SS</td><td>82.32</td><td>90.98</td><td>80.03</td><td>89.89</td><td>90.25</td><td>87.78</td><td>82.09</td><td>91.36</td><td>83.60</td><td>90.65</td><td>88.62</td><td>86.95</td></tr><tr><td>Dataset</td><td colspan="6">RTE</td><td colspan="6">MRPC</td></tr><tr><td>Model</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td></tr><tr><td>%Words</td><td>6.01</td><td>12.07</td><td>6.59</td><td>6.97</td><td>4.41</td><td>4.75</td><td>9.69</td><td>19.09</td><td>8.32</td><td>11.66</td><td>6.2</td><td>6.64</td></tr><tr><td>SS</td><td>96.80</td><td>97.26</td><td>96.72</td><td>96.32</td><td>97.18</td><td>96.37</td><td>94.04</td><td>95.60</td><td>94.56</td><td>93.07</td><td>96.10</td><td>93.86</td></tr></table>
|
| 464 |
+
|
| 465 |
+
Table 13: %Words and SS results on the ROBERTA-BASE victim model.
|
| 466 |
+
|
| 467 |
+
<table><tr><td>Dataset</td><td colspan="6">SST-2</td><td colspan="6">CoLA</td></tr><tr><td>Model</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td></tr><tr><td>%Words</td><td>18.73</td><td>18.03</td><td>22.70</td><td>14.33</td><td>12.30</td><td>12.58</td><td>19.07</td><td>18.40</td><td>19.10</td><td>17.31</td><td>17.60</td><td>17.29</td></tr><tr><td>SS</td><td>81.58</td><td>90.37</td><td>75.26</td><td>86.44</td><td>89.48</td><td>86.98</td><td>83.31</td><td>91.90</td><td>83.22</td><td>90.49</td><td>90.15</td><td>85.99</td></tr><tr><td>Dataset</td><td colspan="6">RTE</td><td colspan="6">MRPC</td></tr><tr><td>Model</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td><td>TextFooler</td><td>TextBugger</td><td>DeepWordBug</td><td>BERT-Attack</td><td>A2T</td><td>DA3</td></tr><tr><td>%Words</td><td>6.96</td><td>7.93</td><td>5.27</td><td>6.59</td><td>3.93</td><td>6.38</td><td>12.50</td><td>18.84</td><td>13.18</td><td>10.09</td><td>7.04</td><td>8.10</td></tr><tr><td>SS</td><td>96.35</td><td>97.32</td><td>96.93</td><td>96.67</td><td>97.69</td><td>94.88</td><td>92.12</td><td>93.28</td><td>90.44</td><td>93.13</td><td>95.96</td><td>94.12</td></tr></table>
|
| 468 |
+
|
| 469 |
+

|
| 470 |
+
(a) ASR
|
| 471 |
+
|
| 472 |
+

|
| 473 |
+
(b) NASR (MSP)
|
| 474 |
+
|
| 475 |
+

|
| 476 |
+
(c) NASR (MD)
|
| 477 |
+
|
| 478 |
+

|
| 479 |
+
(a) MSP on SST-2 dataset.
|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
(b) MSP on CoLA dataset.
|
| 483 |
+
|
| 484 |
+

|
| 485 |
+
Figure 7: Results of LLAMA2-7B across five different prompts on MRPC.
|
| 486 |
+
(c) MSP on RTE dataset.
|
| 487 |
+
|
| 488 |
+

|
| 489 |
+
(d) MSP on MRPC dataset.
|
| 490 |
+
|
| 491 |
+

|
| 492 |
+
(a) MD on SST-2 dataset.
|
| 493 |
+
|
| 494 |
+

|
| 495 |
+
Figure 8: Visualization of the distribution shift between original data and adversarial data generated by TextFooler when attacking BERT-BASE regarding Maximum Softmax Probability.
|
| 496 |
+
(b) MD on CoLA dataset.
|
| 497 |
+
|
| 498 |
+

|
| 499 |
+
(c) MD on RTE dataset.
|
| 500 |
+
Figure 9: Visualization of the distribution shift between original data and adversarial data generated by TextFooler when attacking BERT-BASE regarding Mahalanobis Distance.
|
| 501 |
+
|
| 502 |
+

|
| 503 |
+
(d) MD on MRPC dataset.
|
| 504 |
+
|
| 505 |
+
Table 14: Examples of generated adversarial sentences
|
| 506 |
+
|
| 507 |
+
<table><tr><td></td><td>Sentence</td><td>Prediction</td></tr><tr><td>Ori</td><td>/ but daphne, you 're too buff / fred thinks he 's tough / and velma - wow, you 've lost weight!</td><td>Negative</td></tr><tr><td>Adv</td><td>/ but daphne, you 're too buff / fred thinks he 's tough / and velma - wow, you 've corrected weight!</td><td>Positive</td></tr><tr><td>Ori</td><td>The car was driven by John to Maine.</td><td>Acceptable</td></tr><tr><td>Adv</td><td>The car was amounted by John to Maine.</td><td>Unacceptable</td></tr><tr><td>Ori</td><td>The sailors rode the breeze clear of the rocks.</td><td>Acceptable</td></tr><tr><td>Adv</td><td>The sailors wandered the breeze clear of the rocks.</td><td>Unacceptable</td></tr><tr><td>Ori</td><td>The more Fred is obnoxious, the less attention you should pay to him.</td><td>Acceptable</td></tr><tr><td>Adv</td><td>The more Fred is obnoxious, the less noticed you should pay to him.</td><td>Unacceptable</td></tr><tr><td>Ori</td><td>Sentence1: And, despite its own suggestions to the contrary, Oracle will sell PeopleSoft and JD Edwards financial software through reseller channels to new customers.<SPLIT>Sentence2: Oracle sells financial software.</td><td>Not_ entailment</td></tr><tr><td>Adv</td><td>Sentence1: And, despite its own suggestions to the contrary, Oracle will sell PeopleSoft and JD Edwards financial software through reseller channels to new customers.<SPLIT>Sentence2: Oracle sells another software.</td><td>Entailment</td></tr><tr><td>Ori</td><td>Sentence1: Ms Stewart, the chief executive, was not expected to attend.<SPLIT>Sentence2: Ms Stewart, 61, its chief executive officer and chairwoman, did not attend.</td><td>Equivalent</td></tr><tr><td>Adv</td><td>Sentence1: Ms Stewart, the chief executive, was not expected to visiting.<SPLIT>Sentence2: Ms Stewart, 61, its chief executive officer and chairwoman, did not attend.</td><td>Not_equivalent</td></tr><tr><td>Ori</td><td>Sentence1: Sen. Patrick Leahy of Vermont, the committee 's senior Democrat, later said the problem is serious but called Hatch's suggestion too drastic.<SPLIT>Sentence2: Sen. Patrick Leahy, the committee's senior Democrat, later said the problem is serious but called Hatch's idea too drastic a remedy to be considered.</td><td>Equivalent</td></tr><tr><td>Adv</td><td>Sentence1: Sen. Patrick Leahy of Vermont, the committee's senior Democrat, later said the problem is serious but called Hatch's suggestion too drastic.<SPLIT>Sentence2: Sen. Patrick Leahy, the committee's senior Democrat, later said the problem is serious but called Hatch's idea too drastic a remedy to be counted.</td><td>Not_equivalent</td></tr></table>
|
| 508 |
+
|
| 509 |
+

|
| 510 |
+
(a) MSP on SST-2 dataset.
|
| 511 |
+
|
| 512 |
+

|
| 513 |
+
(b) MSP on CoLA dataset.
|
| 514 |
+
|
| 515 |
+

|
| 516 |
+
(c) MSP on RTE dataset.
|
| 517 |
+
|
| 518 |
+

|
| 519 |
+
(d) MSP on MRPC dataset.
|
| 520 |
+
Figure 10: Visualization of the distribution shift between original data and adversarial data generated by TextBugger when attacking BERT-BASE regarding Maximum Softmax Probability.
|
| 521 |
+
|
| 522 |
+

|
| 523 |
+
(a) MD on SST-2 dataset.
|
| 524 |
+
|
| 525 |
+

|
| 526 |
+
(b) MD on CoLA dataset.
|
| 527 |
+
|
| 528 |
+

|
| 529 |
+
(c) MD on RTE dataset.
|
| 530 |
+
Figure 11: Visualization of the distribution shift between original data and adversarial data generated by TextBugger when attacking BERT-BASE regarding Mahalanobis Distance.
|
| 531 |
+
|
| 532 |
+

|
| 533 |
+
(d) MD on MRPC dataset.
|
| 534 |
+
|
| 535 |
+

|
| 536 |
+
(a) MSP on SST-2 dataset.
|
| 537 |
+
|
| 538 |
+

|
| 539 |
+
(b) MSP on CoLA dataset.
|
| 540 |
+
Figure 12: Visualization of the distribution shift between original data and adversarial data generated by DeepWord-Bug when attacking BERT-BASE regarding Maximum Softmax Probability.
|
| 541 |
+
|
| 542 |
+

|
| 543 |
+
(c) MSP on RTE dataset.
|
| 544 |
+
|
| 545 |
+

|
| 546 |
+
(d) MSP on MRPC dataset.
|
| 547 |
+
|
| 548 |
+

|
| 549 |
+
(a) MD on SST-2 dataset.
|
| 550 |
+
Figure 13: Visualization of the distribution shift between original data and adversarial data generated by DeepWord-Bug when attacking BERT-BASE regarding Mahalanobis Distance.
|
| 551 |
+
|
| 552 |
+

|
| 553 |
+
(b) MD on CoLA dataset.
|
| 554 |
+
|
| 555 |
+

|
| 556 |
+
(c) MD on RTE dataset.
|
| 557 |
+
|
| 558 |
+

|
| 559 |
+
(d) MD on MRPC dataset.
|
| 560 |
+
|
| 561 |
+

|
| 562 |
+
(a) MSP on SST-2 dataset.
|
| 563 |
+
Figure 14: Visualization of the distribution shift between original data and adversarial data generated by BERT-Attack when attacking BERT-BASE regarding Maximum Softmax Probability.
|
| 564 |
+
|
| 565 |
+

|
| 566 |
+
(b) MSP on CoLA dataset.
|
| 567 |
+
|
| 568 |
+

|
| 569 |
+
(c) MSP on RTE dataset.
|
| 570 |
+
|
| 571 |
+

|
| 572 |
+
(d) MSP on MRPC dataset.
|
| 573 |
+
|
| 574 |
+

|
| 575 |
+
(a) MD on SST-2 dataset.
|
| 576 |
+
Figure 15: Visualization of the distribution shift between original data and adversarial data generated by BERT-Attack when attacking BERT-BASE regarding Mahalanobis Distance.
|
| 577 |
+
|
| 578 |
+

|
| 579 |
+
(b) MD between on CoLA dataset.
|
| 580 |
+
|
| 581 |
+

|
| 582 |
+
(c) MD on RTE dataset.
|
| 583 |
+
|
| 584 |
+

|
| 585 |
+
(d) MD on MRPC dataset.
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34da15ce3ad56ba2421627fc833f50707e2876c6862bd42a914549f5668ec0c3
|
| 3 |
+
size 1583827
|
2024/DA3_ A Distribution-Aware Adversarial Attack against Language Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/3cbe8e4b-1a17-4694-b0ec-66cc10c97c23_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5be9f18199a4b3e9c08644f5ffab6c43beb2006360015e8235a69b5c293ccde7
|
| 3 |
+
size 8266371
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/full.md
ADDED
|
@@ -0,0 +1,504 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# DAMRO: Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination
|
| 2 |
+
|
| 3 |
+
Xuan Gong, Tianshi Ming, Xinpeng Wang, Zhihua Wei*
|
| 4 |
+
|
| 5 |
+
Department of Computer Science and Technology, Tongji University
|
| 6 |
+
|
| 7 |
+
{2152095,2151569,wangxinpeng,zhihua_wei}@tongji.edu.cn
|
| 8 |
+
|
| 9 |
+
# Abstract
|
| 10 |
+
|
| 11 |
+
Despite the great success of Large Vision-Language Models (LVLMs), they inevitably suffer from hallucination. As we know, both the visual encoder and the Large Language Model (LLM) decoder in LVLMs are Transformer-based, allowing the model to extract visual information and generate text outputs via attention mechanisms. We find that the attention distribution of LLM decoder on image tokens is highly consistent with the visual encoder and both distributions tend to focus on particular background tokens rather than the referred objects in the image. We attribute to the unexpected attention distribution to an inherent flaw in the visual encoder itself, which misguides LLMs to over emphasize the redundant information and generate object hallucination. To address the issue, we propose DAMRO, a novel training-free strategy that Dive into Attention Mechanism of LVLM to Reduce Object Hallucination. Specifically, our approach employs classification token (CLS) of ViT to filter out high-attention outlier tokens scattered in the background and then eliminate their influence during decoding stage. We evaluate our method on LVLMs including LLaVA-1.5, LLaVA-NeXT and InstructBLIP, using various benchmarks such as POPE, CHAIR, MME and GPT-4V Aided Evaluation. The results demonstrate that our approach significantly reduces the impact of these outlier tokens, thus effectively alleviating the hallucination of LVLMs.
|
| 12 |
+
|
| 13 |
+
# 1 Introduction
|
| 14 |
+
|
| 15 |
+
Large Vision-Language Models (LVLMs) research (Dai et al., 2023; Liu et al., 2024b; Chen et al., 2023; Ye et al., 2023) has witnessed rapid advancement in the past few years, particularly demonstrating strong capabilities in visual reasoning tasks. However, LVLMs still face significant challenges related to object hallucination (Rohrbach et al.,
|
| 16 |
+
|
| 17 |
+
2018), where the objects described in the generated text do not align with the visual ground truth of the input. This issue is prevalent across various models, posing a critical problem for the reliability and safety of LVLMs (Ahmad et al., 2023).
|
| 18 |
+
|
| 19 |
+
Recently, the issue of object hallucination in LVLMs has gained increasing attention. Early work has tried many methods, such as optimizing the training and fine-tuning methods (Sarkar et al., 2024; Xiao et al., 2024), incorporating external information or models, e.g. DETR (Carion et al., 2020)(Zhao et al., 2024; Chen et al., 2024), providing feedback on hallucinated information and reprocesses (Zhou et al., 2024; Yin et al., 2023). Efforts also include LLM decoding methods, like contrastive decoding (Leng et al., 2024; Favero et al., 2024) and other novel decoding methods (Huang et al., 2024).
|
| 20 |
+
|
| 21 |
+
These approaches mainly focus on improving the overall model architecture or specific modules within LVLMs, such as the visual encoder or LLM decoder. However, they often overlook the fundamental component of LVLMs, the Vision Transformer (ViT) structure (Dosovitskiy et al., 2021), and its impact on the hallucination generation mechanism during the LLM decoding stage.
|
| 22 |
+
|
| 23 |
+
Based on LLaVA-1.5 (Liu et al., 2024a), we explore the attention map in both the visual encoder and the LLM decoder. We find outlier tokens in the attention map of both components, which are highly consistent with each other. These high-norm outlier tokens often contain globally redundant visual information (Darcet et al., 2024). Additionally, our analysis reveals a correlation between attention to these tokens and the occurrence of object hallucination.
|
| 24 |
+
|
| 25 |
+
To address the aforementioned issue, we propose the Dive into Attention Mechanism of LVLM to Reduce Object Hallucination (DAMRO) method, as illustrated in Figure 1. DAMRO filters out high-norm outlier tokens from the ViT attention
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
Figure 1: An overview of DAMRO. We utilize attention mechanism to filter the outlier tokens, and then apply contrastive decoding to mitigate the influence of outlier tokens in LLM decoding stage.
|
| 29 |
+
|
| 30 |
+
map, identifying them as negative tokens, and then projects them into the LLM along with normal tokens. Contrastive decoding is then applied to reduce the LLM decoder's reliance on these tokens that contain globally redundant information and to enhance its focus on object-level details, thus mitigating model hallucination.
|
| 31 |
+
|
| 32 |
+
Our method is training-free and does not introduce external information or models. It outperforms similar approaches such as M3ID (Favero et al., 2024) and VCD (Leng et al., 2024) in overall effectiveness. Additionally, since ViT is such a popular backbone of visual encoder (Yin et al., 2024) that our approach demonstrates strong generalizability due to its utilizing on attention mechanism.
|
| 33 |
+
|
| 34 |
+
In conclusion, our main contributions are summarized as follows:
|
| 35 |
+
|
| 36 |
+
- We conduct in-depth analysis of the relationship between the attention maps of the visual encoder and the LLM decoder, revealing a high consistency in the distribution of their outlier tokens.
|
| 37 |
+
- We analyze the impact of the consistency on object hallucination and design the DAMRO method to mitigate the hallucination in LVLMs.
|
| 38 |
+
- We demonstrate effectiveness of our method via extensive experiments on various models and benchmarks. Moreover, our training-free approach is applicable to most LVLMs without external knowledge or models.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
# 2.1 Hallucination in LVLMs
|
| 43 |
+
|
| 44 |
+
In LVLMs, hallucination refers to discrepancies between visual input (ground truth) and textual output. Hallucination is initially identified and studied in LLM research (Huang et al., 2023; Ji et al., 2023). However, LVLMs also suffer from hallucination, which is much more complex due to their intricate structure. Han et al. (2024) analyze hallucination from the perspective of training data bias. Tong et al. (2024), Jiang et al. (2024), and Huang et al. (2024) focus on structural causes, revealing the flaws in visual encoders, the misalignment of visual-textual modalities, and the inherent hallucinations of LLM respectively. Zhou et al. (2024) identify patterns in LVLM input and output, proposing object co-occurrence, model uncertainty, and the spatial positioning in sentence as causes. These studies reveal the mechanisms of hallucinations and offer new approaches to address this issue in LVLMs.
|
| 45 |
+
|
| 46 |
+
Unlike previous studies, we start by analyzing the attention maps of the visual encoder and LLM decoder, focusing on their distribution characteristics and correlations. This analysis provides new insights into object hallucination.
|
| 47 |
+
|
| 48 |
+
# 2.2 Contrastive Decoding to Mitigate Hallucination
|
| 49 |
+
|
| 50 |
+
Contrastive decoding (Li et al., 2023a) is first introduced in text generation tasks in LLMs to reduce noise by subtracting the distribution of an amateur model. To address hallucination issues in LVLMs, researchers have introduced contrastive decoding to improve model performance. Leng et al. (2024)
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: Attention map of visual encoder. Left: original image. Middle: attention map of InstructBLIP ViT (16x16). Right: attention map of LLaVA-1.5 ViT (24x24).
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+

|
| 60 |
+
|
| 61 |
+
apply Gaussian noise to images to increase visual uncertainty. They use these noisy images as negative samples to subtract the LLM's prior and reduce object hallucination. Favero et al. (2024) employ pure text inputs as negative samples. They apply contrastive decoding to enhance the influence of visual information during text generation. Wang et al. (2024) introduce a disturbance instruction to force the model to output an error distribution, which is then subtracted to mitigate hallucination.
|
| 62 |
+
|
| 63 |
+
Given that our method draws on contrastive decoding and considering the generality and effectiveness of these methods, in section 5.1, we select VCD (Leng et al., 2024) and M3ID (Favero et al., 2024) as our baselines for experimental comparison.
|
| 64 |
+
|
| 65 |
+
# 3 Motivation
|
| 66 |
+
|
| 67 |
+
# 3.1 Problem Formulation
|
| 68 |
+
|
| 69 |
+
We segment the LVLM generation process into three distinct stages: Visual Encoding, Projection, and LLM Decoding. In the initial stage, an input image is divided into $n$ patches, each projected into a token embedding via Vision Transformer. The set of $n$ tokens is represented as $X_{v} = \{X_{v_{i}}|0\leq i < n\}$ . Then tokens are forwarded to the LLM after projection. Concurrently, the prompt is tokenized into tokens $X_{l}$ and is put into the LLM directly or indirectly.
|
| 70 |
+
|
| 71 |
+
In the decoding stage, we perform autoregressive decoding with the transformer, which is formulated in Eq. 1.
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
p _ {t} = \operatorname {s o f t m a x} \left(\log_ {t} \left(y _ {t} \mid y _ {< t}, X _ {v}, X _ {l}\right)\right). \tag {1}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $p_t$ represents probability distribution of next token $y_t$ in the $t$ -th step of decoding, $y_{<t}$ represents the generated text from 0 to $t - 1$ step and $\log_{\theta}$ represents the logit distribution. Then the LLM
|
| 78 |
+
|
| 79 |
+
admits a specific strategy to obtain the next token based on the probability distribution $p_t$ .
|
| 80 |
+
|
| 81 |
+
We studied the impact of the visual token $X_{v}$ on $\mathrm{logits}_{\theta}(y_t|y_{< t},X_v,X_l)$ to reduce the likelihood of hallucination occurrence.
|
| 82 |
+
|
| 83 |
+
# 3.2 Drawbacks of ViT
|
| 84 |
+
|
| 85 |
+
The Vision Transformer (Dosovitskiy et al., 2021) has gained widespread favor as the backbone visual encoder for all LVLMs due to its superior visual representation capabilities. However, Darcet et al. (2024) find that there are always high-norm outlier tokens in ViT, which tend to appear in background regions with redundant patch information, containing minimal local information but a little global information.
|
| 86 |
+
|
| 87 |
+
The attention map of LVLMs' visual encoder also focus on a small number of high-norm outlier tokens, as illustrated in Figure 2. We posit that these outlier tokens embody the negative visual priors within the ViT. And when image tokens are projected and sent to the LLM, the LLM also tends to focus on these tokens due to their high attention value in visual encoder, leading to the ignorance of local information contained within other patches. This may result in a degradation of the model's fine-grained visual capabilities.
|
| 88 |
+
|
| 89 |
+
To validate the information contained within these tokens as perceived by the LLM, we conducted ablation experiments (results provided in Appendix B.3). The findings confirmed that these few tokens indeed contain substantial information, but are not accurate enough.
|
| 90 |
+
|
| 91 |
+
# 3.3 Outlier Tokens Cause Hallucination
|
| 92 |
+
|
| 93 |
+
Based on the aforementioned issues in ViT, we attempt to observe the attention maps of image tokens during LLM decoding stage. We find that LLM decoder attention map also features with a
|
| 94 |
+
|
| 95 |
+

|
| 96 |
+
Figure 3: LLM decoder attention map of "plant" token (non-hallucinatory). It is evident that attention can accurately locate the position of the plotted plant.
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 5: The proportion of the overall attention map in LLM decoder.
|
| 100 |
+
|
| 101 |
+

|
| 102 |
+
Figure 4: LLM decoder attention map of "clock" token (hallucinatory). The attention mainly focus on the outlier tokens in the background, whose positions are the same in visual encoder attention map in the right sub-image of Figure 2.
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
few outlier tokens at the same position as visual encoder that get most of the attention compared to other tokens, as illustrated in Figure 5. We assume that this consistency is related to the occurrence of hallucination, where the LLM decoder pays more attention to outlier tokens identified in visual encoding stage. And we selected an example (Figure 3, 4) to demonstrate this correlation. To quantitatively characterize the consistency, we propose an evaluation metric $H_{i}$ , where $S_{v}(i)$ denotes the set of top $i$ tokens of attention value from the visual encoder's attention map, while $S_{l}(i)$ represents the set of top $i$ tokens from the LLM decoder's attention map. And in this formulation, $|S|$ denotes the cardinality of the set $S$ , which is the number of elements contained within $S$ .
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
H _ {i} = \frac {\left| S _ {v} (i) \cap S _ {l} (i) \right|}{i}. \tag {2}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
We randomly select 1000 images from the val2014 subset in MSCOCO dataset (Lin et al., 2014) and query LLaVA-1.5 with the prompt "What can you see in this image ?" to get the descriptions from model. We use the generated captions and object words as two kinds of units and employed CHAIR (Rohrbach et al., 2018) to identify hallucinations. We then utilize metric $H_{i}$ to analyze
|
| 113 |
+
|
| 114 |
+

|
| 115 |
+
|
| 116 |
+
<table><tr><td>Granularity</td><td>HA</td><td>Non-HA</td></tr><tr><td>sentence-level</td><td>0.0554</td><td>0.0539</td></tr><tr><td>object-level</td><td>0.0605</td><td>0.0551</td></tr></table>
|
| 117 |
+
|
| 118 |
+
Table 1: $F$ Value results. HA: hallucinatory, Non-HA: non-hallucinatory. It is easily observed that at both the sentence level and the object level, the influence of outlier tokens from the visual encoder is greater when hallucinations occur.
|
| 119 |
+
|
| 120 |
+
the relation between the occurrence of hallucinations and the consistency of their distributions, as illustrated in Figure 6.
|
| 121 |
+
|
| 122 |
+
Additionally, we found that the top three tokens with the highest attention score in the visual encoding stage accounted for more than $99\%$ of the attention, as shown in Figure 7. To further verify the influence of these tokens, we analyzed the proportion of the same three tokens<sup>1</sup> in the attention map of LLM decoder. The evaluation metric of the influence is denoted as $F$ , defined as
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
F = \frac {\sum_ {j = 1} ^ {3} A T T \left(L _ {v} (j)\right)}{\sum_ {i = 0} ^ {n - 1} A T T (i)}. \tag {3}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
where $L_{v}(i)$ represents the position of the token with $i$ -th highest attention value in the visual encoder attention map and $ATT(i)$ represents the LLM decoder attention value of the token at position $i$ .
|
| 129 |
+
|
| 130 |
+
Similarly, we use generated captions and object words as units to identify hallucinations. And we get the $F$ results in Table 1. It can be observed that outlier tokens in visual encoding stage indeed have influence on the subsequent LLM decoding stage, which is closely related to the occurrence of hallucinations.
|
| 131 |
+
|
| 132 |
+

|
| 133 |
+
|
| 134 |
+

|
| 135 |
+
Figure 6: Top 1-10 outlier tokens overlap rate between visual encoder and LLM decoder. Both of object-level and sentence-level results show that hallucination tends to happen when overlap rate is higher, especially considering the top tokens.
|
| 136 |
+
|
| 137 |
+
# 4 Methods
|
| 138 |
+
|
| 139 |
+
# 4.1 Outlier Tokens Selection
|
| 140 |
+
|
| 141 |
+
In the final layer of self-attention in ViT, the class token [CLS] is generally used for classification (Dosovitskiy et al., 2021). The [CLS] token is used as the query vector in attention calculation with other visual tokens as key vector:
|
| 142 |
+
|
| 143 |
+
$$
|
| 144 |
+
A _ {\mathrm {c l s}} = \operatorname {s o f t m a x} \left(\frac {Q _ {\mathrm {c l s}} K ^ {T}}{\sqrt {d}}\right). \tag {4}
|
| 145 |
+
$$
|
| 146 |
+
|
| 147 |
+
where $Q_{cls}$ is the result of the [CLS] token's query vector after being multiplied by the corresponding weights; $K^T$ is the result of all other image tokens' key vectors after being multiplied by their corresponding weights, and $d$ is the dimension of $Q_{cls}$ .
|
| 148 |
+
|
| 149 |
+
We sample the top $k$ outlier tokens based on attention value between the class token [CLS] and spatial visual tokens, which is denoted as:
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\operatorname {t o k e n} _ {\text {o u t l i e r}} = \underset {\operatorname {t o k e n} _ {i}} {\arg \max } \left(A _ {\mathrm {c l s}} \left(\operatorname {t o k e n} _ {i}\right)\right). \tag {5}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
For the selection of the top $k$ , it is important to note that LLaVA-1.5 (Liu et al., 2024a) and InstructBLIP (Dai et al., 2023) have different ViT
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 7: The proportion of the overall attention map occupied by tokens sorted by attention value in visual encoder.
|
| 159 |
+
|
| 160 |
+
structures. ViT in LLaVA-1.5 contains 576 (24x24) image tokens, whereas InstructBLIP has only 256 (16x16). The different numbers of image tokens lead to different choices in values of $k$ for the top $k$ selection. The difference in $k$ value will be discussed in detail in the ablation experiment in Appendix B.
|
| 161 |
+
|
| 162 |
+
# 4.2 Contrastive Decoding
|
| 163 |
+
|
| 164 |
+
We use Contrastive Decoding (Li et al., 2023a) to mitigate the impact of visual outlier tokens from the visual encoder on subsequent text generation. In LVLMs, Contrastive Decoding is typically conducted during the sampling process of LLM decoding, where the next token is determined based on the probability distribution in the logits space.
|
| 165 |
+
|
| 166 |
+
Answer generation in LLMs is an autoregressive process, in which the contrastive decoding is formulated as Eq. 6.
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\begin{array}{l} p _ {t} = \operatorname {s o f t m a x} \left(\left(1 + \alpha\right) \log_ {t} \theta \left(y _ {t} \mid y _ {< t}, v, x\right) \right. \tag {6} \\ - \alpha \operatorname {l o g i t s} _ {\theta} \left(y _ {t} \mid y _ {< t}, v _ {\mathrm {c l s}}, x)\right). \\ \end{array}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where the probability distribution of the next token at step $t$ is $p_t$ with $x$ being the prompt input. $v_{\mathrm{cls}} \in v$ is visual information filtered by [CLS] token from overall visual information $v$ .
|
| 173 |
+
|
| 174 |
+
The probability distribution in the logits space attenuates the influence of previous outlier tokens on decoding. This allows the model to focus more on fine-grained semantic information and eliminates redundant information containing visual encoder priors, thus mitigating hallucinations in the LVLM.
|
| 175 |
+
|
| 176 |
+
To address the issue of excessive removal of global information, we introduced an adaptive plausibility constraint (Li et al., 2023a). In constrative decoding stage, we set a threshold $\beta$ to truncate
|
| 177 |
+
|
| 178 |
+
the new probability distribution based on the confidence level of the original model's predictions. The specific form is shown in Eq. 7:
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\begin{array}{r l} \mathcal {V} _ {\text {h e a d}} (y _ {< t}) & = \left\{y _ {t} \in \mathcal {V}: p _ {\theta} (y _ {t} | v, x, y _ {< t}) \right. \\ & \geq \beta \max _ {w} p _ {\theta} (w | v, x, y _ {< t}) \}. \end{array} \tag {7}
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
$\nu_{\mathrm{head}}$ serves as a filtering constraint for sampling the next token. The whole algorithm is further explained in Algo. 1.
|
| 185 |
+
|
| 186 |
+
# Algorithm 1 DAMRO
|
| 187 |
+
|
| 188 |
+
Require: text query $x$ , image input $v$ , visual encoder $I_{\phi}$ .
|
| 189 |
+
|
| 190 |
+
1: Initialize empty output $y = []$ .
|
| 191 |
+
2: Large Language Model $\mathcal{M}_{\theta}$ .
|
| 192 |
+
3: for $t = 0,1,2\dots$ do
|
| 193 |
+
4: $I_{\phi}(v)_{i=1}^{n} \gets \text{VisualEncoder}(v)$
|
| 194 |
+
5: $\log p_{\mathrm{orig}} \gets \log it_{\theta}(y_t | y_{<t}, I_{\phi}(v)_{i=1}^n, x)$
|
| 195 |
+
6: $\mathrm{Attn}_c^i\gets \mathrm{Attention}(\mathrm{token}_{cls},I_\phi (v)_{i = 1}^n)$
|
| 196 |
+
7: $I_{\text{outlier}} = \arg \max_{I} (\text{Att}_c^{\iota})$
|
| 197 |
+
8: $\log p_{\mathrm{negative}} \gets \mathrm{logits}_{\theta}(y_t | y_{<t}, I_{\mathrm{outlier}}, x)$
|
| 198 |
+
9: Get token distribution in constrastive learning, $p_t \gets \text{softmax}((1 + \alpha) \log p_{\text{origin}} - \alpha \log p_{\text{negative}})$ ,
|
| 199 |
+
10: Considering adaptive plausibility constraint, $p_t = p_t$ if $p_t \geq \max(\log p_{\text{origin}})$ else 0
|
| 200 |
+
11: Get next token using random sample strategy $y_{t}$ .
|
| 201 |
+
12: $y = [y,y_t]$
|
| 202 |
+
13: if $y_{t} = <\mathrm{EOS}>$ then
|
| 203 |
+
14: break
|
| 204 |
+
15: end if
|
| 205 |
+
16: end for
|
| 206 |
+
17: return Generated prompt $y$ .
|
| 207 |
+
|
| 208 |
+
# 5 Experiments
|
| 209 |
+
|
| 210 |
+
# 5.1 Experimental Settings
|
| 211 |
+
|
| 212 |
+
LVLM Models We select three of the most representative LVLM models for evaluation: LLaVA-1.5-7b, LLaVA-NeXT-7b, and InstructBLIP-7b. For visual encoder, LLaVA-1.5 and LLaVA-NeXT share the same ViT backbone, both using ViT-L-336px pretrained from CLIP-L/14-336px (Radford et al., 2021). In contrast, InstructBLIP uses ViTg/14 pretrained from EVA-CLIP (Sun et al., 2023). All three models use Vicuna² (Chiang et al., 2023) as the LLM module.
|
| 213 |
+
|
| 214 |
+
$^{2}$ Vicuna-7b v1.5 for LLaVA-1.5 and LLaVA-NeXT, Vicuna-7b v1.1 for InstrutBLIP
|
| 215 |
+
|
| 216 |
+
Regarding the connection module between the two modalities, LLaVA-1.5 and LLaVA-NeXT use MLP layers to bridge feature gap between vision and text modalities without changing the amount of image tokens in the LLM. Conversely, InstructBLIP employs Q-Former (Zhang et al., 2024) for modality alignment, which standardized the number of visual tokens in LLM to 32.
|
| 217 |
+
|
| 218 |
+
Our approach is based on LLaVA-1.5 in the analysis of Section 3.3. For more insights into generalizability, we also test our method on InstructBLIP, which has a significantly different structure compared to LLaVA-1.5, and we find that the performance still surpasses that of original model. This demonstrates that mitigating the impact of outlier tokens in the visual encoder is effective in alleviating hallucination across different projection modules.
|
| 219 |
+
|
| 220 |
+
Baselines We select two popular and training-free contrastive decoding methods: VCD (Leng et al., 2024) and M3ID (Favero et al., 2024). Both approaches aim to enhance the impact of visual features during the LLM decoding phase by eliminating language priors. VCD generates negative logits using Gaussian blurring, while M3ID generates negative logits using pure text that without visual information. Additionally, we include the original model for comparison to highlight the improvements over the baseline model. For detailed experimental hyperparameter settings of these baselines, please refer to Appendix A.
|
| 221 |
+
|
| 222 |
+
Implementation Details Considering the characteristics of different visual encoders, for LLaVA-1.5 and LLaVA-NeXT, we set $\alpha$ (Eq. 6) to 0.5 for CHAIR benchmark and 2 for other benchmarks and we select top 10 (Eq. 5) tokens as outlier tokens. For InstructBLIP, we set $\alpha$ to 1.5 for CHAIR benchmark and 0.5 for other benchmarks and we select top 4 tokens as outlier tokens. To avoid introducing additional factors, we directly use the probability distribution generated by the softmax function as the sampling distribution and employ the basic random sampling decoding strategy. For all experiments, the seed is set to 42, max_new_token is set to 1024 and $\beta$ (Eq. 7) is set to 0.1.
|
| 223 |
+
|
| 224 |
+
# 5.2 Benchmarks and Experimental Results
|
| 225 |
+
|
| 226 |
+
POPE The Polling-based Object Probing Evaluation (POPE) (Li et al., 2023b) is a streamlined approach to assess object hallucination. LVLMs are required to respond to formatted questions in
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Base Model</td><td>Method</td><td>Precision</td><td>Recall</td><td>F1 Score</td><td>Accuracy</td></tr><tr><td rowspan="4">LLaVA-1.5</td><td>Original</td><td>88.63</td><td>73.76</td><td>80.48</td><td>82.08</td></tr><tr><td>VCD</td><td>86.15</td><td>83.78</td><td>84.87</td><td>84.98</td></tr><tr><td>M3ID</td><td>92.48</td><td>75.22</td><td>82.93</td><td>82.93</td></tr><tr><td>DAMRO</td><td>88.84</td><td>81.09</td><td>84.72</td><td>85.31</td></tr><tr><td rowspan="4">LLaVA-NeXT</td><td>Original</td><td>92.28</td><td>75.58</td><td>83.07</td><td>84.57</td></tr><tr><td>VCD</td><td>91.90</td><td>82.4</td><td>86.86</td><td>87.50</td></tr><tr><td>M3ID</td><td>94.23</td><td>79.2</td><td>86.05</td><td>80.87</td></tr><tr><td>DAMRO</td><td>90.02</td><td>85.40</td><td>87.60</td><td>87.87</td></tr><tr><td rowspan="4">InstructBLIP</td><td>Original</td><td>78.64</td><td>79.42</td><td>78.99</td><td>78.85</td></tr><tr><td>VCD</td><td>84.88</td><td>79.93</td><td>81.96</td><td>82.56</td></tr><tr><td>M3ID</td><td>90.59</td><td>70.58</td><td>79.33</td><td>81.60</td></tr><tr><td>DAMRO</td><td>80.67</td><td>83.89</td><td>82.20</td><td>81.77</td></tr></table>
|
| 229 |
+
|
| 230 |
+
the form: "Is there a <object> in the image?" with "Yes" or "No,". The answers to these questions alternate between "Yes" and "No," ensuring an equal $50\%$ probability for each response. The complete POPE test is divided into three splits: random, popular and adversarial, in which missing objects are randomly selected, most frequently occurring in the dataset, and highly correlated with those present in the image respectively.
|
| 231 |
+
|
| 232 |
+
The dataset consists of 500 randomly selected images from the MSCOCO (Lin et al., 2014) validation set. To facilitate testing, we add the prompt "Please use one word to answer this question." to restrict LVLM responses to "Yes" or "No". Four key evaluation metrics are generated: Precision, Recall, F1 score, and Accuracy. We average the results across the three splits, and the outcomes are presented in Table 2. More details are shown in Appendix C.1.
|
| 233 |
+
|
| 234 |
+
CHAIR The Caption Hallucination Assessment with Image Relevance (CHAIR) (Rohrbach et al., 2018) is a widely used metric for evaluating object hallucination in image captioning tasks. CHAIR compares the captions generated by the LVLM with the ground truth to identify correctly and incorrectly described objects in the captions. It then calculates the proportion of objects mentioned in the captions that are not present in the images. CHAIR evaluates hallucination on two dimensions: $\mathrm{CHAIR}_S$ and $\mathrm{CHAIR}_I$ . The former calculates the proportion of sentences containing hallucinations at the sentence level, while the latter computes the proportion of hallucinated objects out of all identi
|
| 235 |
+
|
| 236 |
+
Table 2: Results of POPE. (The foundation model without methods is denoted as Original). The best value in the table is highlighted in bold, and the second best value is underlined.
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Model</td><td>Method</td><td>CS↓</td><td>CI↓</td></tr><tr><td rowspan="4">LLaVA-1.5</td><td>Original</td><td>12.4</td><td>7.2</td></tr><tr><td>VCD</td><td>7.6</td><td>4.1</td></tr><tr><td>M3ID</td><td>9.2</td><td>5.3</td></tr><tr><td>DAMRO</td><td>6.0</td><td>3.6</td></tr><tr><td rowspan="4">LLaVA-NeXT</td><td>Original</td><td>4.2</td><td>9.0</td></tr><tr><td>VCD</td><td>3.0</td><td>4.1</td></tr><tr><td>M3ID</td><td>4.2</td><td>6.8</td></tr><tr><td>DAMRO</td><td>3.0</td><td>5.2</td></tr><tr><td rowspan="4">Instruct-BLIP</td><td>Original</td><td>7.8</td><td>5.2</td></tr><tr><td>VCD</td><td>3.2</td><td>1.9</td></tr><tr><td>M3ID</td><td>5.2</td><td>3.7</td></tr><tr><td>DAMRO</td><td>2.8</td><td>1.7</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 3: Results of CHAIR. $C_S$ : CHAIRS, $C_I$ : CHAIRI.
|
| 241 |
+
|
| 242 |
+
fied objects at the object level. These two metrics can be formulated as follows:
|
| 243 |
+
|
| 244 |
+
$$
|
| 245 |
+
\mathrm {C H A I R} _ {S} = \frac {\left| \left\{\text {c a p t i o n s w / h a l l u c i n a t e d o b j e c t s} \right\} \right|}{\left| \left\{\text {a l l c a p t i o n s} \right\} \right|}.
|
| 246 |
+
$$
|
| 247 |
+
|
| 248 |
+
$$
|
| 249 |
+
\mathrm {C H A I R} _ {I} = \frac {\left| \{\text {h a l l u c i n a t e d o b j e c t s} \} \right|}{\left| \{\text {a l l m e n t i o n e d o b j e c t s} \} \right|}. \tag {8}
|
| 250 |
+
$$
|
| 251 |
+
|
| 252 |
+
Similarly, we conducted the CHAIR evaluation on the MSCOCO dataset with 80 annotated object categories. We randomly selected 500 images from the validation set of COCO 2014 and used the prompt "Generate a short caption of this image." to obtain the generated captions.
|
| 253 |
+
|
| 254 |
+
The test results are shown in Table 3. It can
|
| 255 |
+
|
| 256 |
+

|
| 257 |
+
|
| 258 |
+

|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
Figure 8: Results of MME.
|
| 262 |
+
|
| 263 |
+
be observed that, CHAIR scores on LLaVA-1.5 and InstructBLIP both surpassed the baseline compared to other methods, which achieve significant improvements in comparison with base model.
|
| 264 |
+
|
| 265 |
+
MME Hallucination Subset The Multimodal Large Language Model Evaluation (MME) (Fu et al., 2024) assesses LVLMs using a set of comprehensive metrics. Following the methodologies of Yin et al. (2023) and Leng et al. (2024), we adopted "existence" and "count" from the MME benchmark as object-level evaluation metrics, and "color" and "position" as attribute-level evaluation metrics. The experimental results in Figure 8 demonstrate that our approach generally improves performance across three models, confirming its effectiveness. However, for InstructBLIP, metrics for count and position show a decline. We hypothesize that this is due to the unique structure of InstructBLIP, which
|
| 266 |
+
|
| 267 |
+
<table><tr><td>Model</td><td>Method</td><td>A</td><td>D</td></tr><tr><td rowspan="2">LLaVA-1.5</td><td>Original</td><td>5.356</td><td>5.067</td></tr><tr><td>DAMRO</td><td>6.611</td><td>6.078</td></tr><tr><td rowspan="2">LLaVA-NeXT</td><td>Original</td><td>6.456</td><td>6.332</td></tr><tr><td>DAMRO</td><td>7.189</td><td>6.656</td></tr><tr><td rowspan="2">InstructBLIP</td><td>Original</td><td>5.833</td><td>5.400</td></tr><tr><td>DAMRO</td><td>6.756</td><td>5.967</td></tr></table>
|
| 268 |
+
|
| 269 |
+
Table 4: Results of GPT4V-aided evaluation. A: accuracy, D: detailedness.
|
| 270 |
+
|
| 271 |
+
relies on certain outlier tokens for spatial reasoning. Compared to the LLaVA series of foundation models, InstructBLIP has significantly weaker positional capabilities, possibly explaining the reduced effectiveness of our approach for this model. Experiment Details are shown in Appendix C.2.
|
| 272 |
+
|
| 273 |
+
GPT4V-Aided Evaluation The GPT-4V-aided evaluation employs $\mathrm{GPT - 4V}^3$ as an evaluator to compare the outputs of two LVLM assistants. GPT4V assigns scores out of 10 based on two criteria: 1) accuracy, which measures how accurately each assistant describes the image, and 2) detailedness, which evaluates the richness of necessary details in the responses. We select LLaVA-QA90 $^{4}$ for our tests on GPT-4V. The dataset consists of 30 images from COCO val2014, each paired with 3 questions to comprehensively evaluate the capabilities of LVLMs. Table 6 presents the overall scores of GPT-4V in terms of accuracy and detailedness, with detailed results provided in the appendix C.3.
|
| 274 |
+
|
| 275 |
+
# 6 Conclusions
|
| 276 |
+
|
| 277 |
+
In this paper, we investigate the relationship between the attention maps of the visual encoder and the LLM decoder, and explore its impact on the mechanism of object hallucination in LVLMs. Based on our analysis of attention mechanism, we propose the Dove into Attention Mechanism to mitigate object hallucination (DAMRO) method. Our method demonstrates its effectiveness and generalizability on various models and benchmarks. Experiments show that our method effectively reduces hallucination issues in LVLMs across multiple domains, especially in fine-grained semantic hallucinations. Additionally, we hope our findings on Encoder-Decoder attention mechanism will inspire
|
| 278 |
+
|
| 279 |
+
further research on LVLM foundation model structures.
|
| 280 |
+
|
| 281 |
+
# Limitations
|
| 282 |
+
|
| 283 |
+
Our method (DAMRO) is based on the relationship between the attention mechanisms of the visual encoder and the LLM decoder. It relies solely on empirical analysis and lacks further theoretical proof. Additionally, we have not conducted a detailed exploration of more complex projection modules in the visual encoder and LLM decoder (e.g. QFormer (Zhang et al., 2024)). With the rapid development and continual refinement of LVLM models, whether our method remains applicable to future models poses a significant challenge.
|
| 284 |
+
|
| 285 |
+
# Acknowledgements
|
| 286 |
+
|
| 287 |
+
The work is partially supported by the National Nature Science Foundation of China (No. 62376199, 62076184, 62076182) and Shanghai Science and Technology Plan Project (No.21DZ1204800).
|
| 288 |
+
|
| 289 |
+
# References
|
| 290 |
+
|
| 291 |
+
Muhammad Aurangzeb Ahmad, Ilker Yaramis, and Taposh Dutta Roy. 2023. Creating trustworthy llms: Dealing with hallucinations in healthcare ai. Preprint, arXiv:2311.01463.
|
| 292 |
+
Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, and Sergey Zagoruyko. 2020. End-to-end object detection with transformers. In Computer Vision - ECCV 2020, pages 213-229, Cham. Springer International Publishing.
|
| 293 |
+
Jun Chen, Deyao Zhu, Xiaogian Shen, Xiang Li, Zechu Liu, Pengchuan Zhang, Raghuraman Krishnamoorthi, Vikas Chandra, Yunyang Xiong, and Mohamed Elhoseiny. 2023. Minigpt-v2: large language model as a unified interface for vision-language multi-task learning. ArXiv preprint, abs/2310.09478.
|
| 294 |
+
Zhaorun Chen, Zhuokai Zhao, Hongyin Luo, Huaxiu Yao, Bo Li, and Jiawei Zhou. 2024. Halc: Object hallucination reduction via adaptive focal-contrast decoding. Preprint, arXiv:2403.00425.
|
| 295 |
+
Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E. Gonzalez, et al. 2023. Vicuna: An open-source chatbot impressing gpt-4 with $90\%$ * chatgpt quality. https://vicuna.lmsys.org. Accessed: 2024-06-13.
|
| 296 |
+
Wenliang Dai, Junnan Li, Dongxu Li, Anthony Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung, and Steven Hoi. 2023. InstructBLIP: Towards
|
| 297 |
+
|
| 298 |
+
general-purpose vision-language models with instruction tuning. In Thirty-seventh Conference on Neural Information Processing Systems.
|
| 299 |
+
Timothée Darcet, Maxime Oquab, Julien Mairal, and Piotr Bojanowski. 2024. Vision transformers need registers. In *The Twelfth International Conference on Learning Representations*.
|
| 300 |
+
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. 2021. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations.
|
| 301 |
+
Alessandro Favero, Luca Zancato, Matthew Trager, Siddharth Choudhary, Pramuditha Perera, Alessandro Achille, Ashwin Swaminathan, and Stefano Soatto. 2024. Multi-modal hallucination control by visual information grounding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14303-14312.
|
| 302 |
+
Chaoyou Fu, Peixian Chen, Yunhang Shen, Yulei Qin, Mengdan Zhang, Xu Lin, Jinrui Yang, Xiawu Zheng, Ke Li, Xing Sun, Yunsheng Wu, and Rongrong Ji. 2024. Mme: A comprehensive evaluation benchmark for multimodal large language models. Preprint, arXiv:2306.13394.
|
| 303 |
+
Tianyang Han, Qing Lian, Rui Pan, Renjie Pi, Jipeng Zhang, Shizhe Diao, Yong Lin, and Tong Zhang. 2024. The instinctive bias: Spurious images lead to hallucination in mllms. Preprint, arXiv:2402.03757.
|
| 304 |
+
Lei Huang, Weijiang Yu, Weitao Ma, Weihong Zhong, Zhangyin Feng, Haotian Wang, Qianglong Chen, Weihua Peng, Xiaocheng Feng, Bing Qin, and Ting Liu. 2023. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. Preprint, arXiv:2311.05232.
|
| 305 |
+
Qidong Huang, Xiaoyi Dong, Pan Zhang, Bin Wang, Conghui He, Jiaqi Wang, Dahua Lin, Weiming Zhang, and Nenghai Yu. 2024. Opera: Alleviating hallucination in multi-modal large language models via over-trust penalty and retrospection-allocation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13418-13427.
|
| 306 |
+
Ziwei Ji, Nayeon Lee, Rita Frieske, Tiezheng Yu, Dan Su, Yan Xu, Etsuko Ishii, Ye Jin Bang, Andrea Madotto, and Pascale Fung. 2023. Survey of hallucination in natural language generation. ACM Computing Surveys, 55(12).
|
| 307 |
+
Chaoya Jiang, Haiyang Xu, Mengfan Dong, Jiaxing Chen, Wei Ye, Ming Yan, Qinghao Ye, Ji Zhang, Fei Huang, and Shikun Zhang. 2024. Hallucination augmented contrastive learning for multimodal large language model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 27036-27046.
|
| 308 |
+
|
| 309 |
+
Sicong Leng, Hang Zhang, Guanzheng Chen, Xin Li, Shijian Lu, Chunyan Miao, and Lidong Bing. 2024. Mitigating object hallucinations in large vision-language models through visual contrastive decoding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13872-13882.
|
| 310 |
+
Xiang Lisa Li, Ari Holtzman, Daniel Fried, Percy Liang, Jason Eisner, Tatsunori Hashimoto, Luke Zettlemoyer, and Mike Lewis. 2023a. Contrastive decoding: Open-ended text generation as optimization. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12286-12312, Toronto, Canada. Association for Computational Linguistics.
|
| 311 |
+
Yifan Li, Yifan Du, Kun Zhou, Jinpeng Wang, Xin Zhao, and Ji-Rong Wen. 2023b. Evaluating object hallucination in large vision-language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 292-305, Singapore. Association for Computational Linguistics.
|
| 312 |
+
Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollar, and C. Lawrence Zitnick. 2014. Microsoft coco: Common objects in context. In Computer Vision - ECCV 2014, pages 740-755, Cham. Springer International Publishing.
|
| 313 |
+
Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. 2024a. Improved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 26296-26306.
|
| 314 |
+
Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan Zhang, Sheng Shen, and Yong Jae Lee. 2024b. Llavanext: Improved reasoning,OCR, and world knowledge.
|
| 315 |
+
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 8748-8763. PMLR.
|
| 316 |
+
Anna Rohrbach, Lisa Anne Hendricks, Kaylee Burns, Trevor Darrell, and Kate Saenko. 2018. Object hallucination in image captioning. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 4035-4045, Brussels, Belgium. Association for Computational Linguistics.
|
| 317 |
+
Pritam Sarkar, Sayna Ebrahimi, Ali Etemad, Ahmad Beirami, Sercan Ö. Ark, and Tomas Pfister. 2024. Mitigating object hallucination via data augmented contrastive tuning. Preprint, arXiv:2405.18654.
|
| 318 |
+
Quan Sun, Yuxin Fang, Ledell Wu, Xinlong Wang, and Yue Cao. 2023. Eva-clip: Improved training techniques for clip at scale. Preprint, arXiv:2303.15389.
|
| 319 |
+
|
| 320 |
+
Shengbang Tong, Zhuang Liu, Yuexiang Zhai, Yi Ma, Yann LeCun, and Saining Xie. 2024. Eyes wide shut? exploring the visual shortcomings of multimodal llms. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9568-9578.
|
| 321 |
+
Xintong Wang, Jingheng Pan, Liang Ding, and Chris Biemann. 2024. Mitigating hallucinations in large vision-language models with instruction contrastive decoding. In Findings of the Association for Computational Linguistics ACL 2024, pages 15840-15853, Bangkok, Thailand and virtual meeting. Association for Computational Linguistics.
|
| 322 |
+
Wenyi Xiao, Ziwei Huang, Leilei Gan, Wanggui He, Haoyuan Li, Zhelun Yu, Hao Jiang, Fei Wu, and Linchao Zhu. 2024. Detecting and mitigating hallucination in large vision language models via fine-grained ai feedback. Preprint, arXiv:2404.14233.
|
| 323 |
+
Qinghao Ye, Haiyang Xu, Jiabo Ye, Mingshi Yan, Anwen Hu, Haowei Liu, Qi Qian, Ji Zhang, Fei Huang, and Jingren Zhou. 2023. MPLug-owi2: Revolutionizing multi-modal large language model with modality collaboration. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 13040-13051.
|
| 324 |
+
Shukang Yin, Chaoyou Fu, Sirui Zhao, Ke Li, Xing Sun, Tong Xu, and Enhong Chen. 2024. A survey on multimodal large language models. Preprint, arXiv:2306.13549.
|
| 325 |
+
Shukang Yin, Chaoyou Fu, Sirui Zhao, Tong Xu, Hao Wang, Dianbo Sui, Yunhang Shen, Ke Li, Xing Sun, and Enhong Chen. 2023. Woodpecker: Hallucination correction for multimodal large language models. Preprint, arXiv:2310.16045.
|
| 326 |
+
Qiming Zhang, Jing Zhang, Yufei Xu, and Dacheng Tao. 2024. Vision transformer with quadrangle attention. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(5):3608-3624.
|
| 327 |
+
Linxi Zhao, Yihe Deng, Weitong Zhang, and Quanquan Gu. 2024. Mitigating object hallucination in large vision-language models via classifier-free guidance. Preprint, arXiv:2402.08680.
|
| 328 |
+
Yiyang Zhou, Chenhang Cui, Jaehong Yoon, Linjun Zhang, Zhun Deng, Chelsea Finn, Mohit Bansal, and Huaxiu Yao. 2024. Analyzing and mitigating object hallucination in large vision-language models. In The Twelfth International Conference on Learning Representations.
|
| 329 |
+
|
| 330 |
+
# A More Implementation Details
|
| 331 |
+
|
| 332 |
+
For the baselines M3ID and VCD, we employ the same direct sampling strategy as DAMRO. Throughout the entire experiment, our experimental hyperparameters remain consistent. The hyperparameters are listed in the table below:
|
| 333 |
+
|
| 334 |
+
<table><tr><td>Hyperparameters</td><td>Value</td></tr><tr><td>Forgetting Factor(POPE) γ</td><td>0.2</td></tr><tr><td>Forgetting Factor(CHAIR, MME) γ</td><td>0.01</td></tr><tr><td>Threshold</td><td>0.9</td></tr></table>
|
| 335 |
+
|
| 336 |
+
Table 5: M3ID Hyperparameters Settings.
|
| 337 |
+
|
| 338 |
+
<table><tr><td>Hyperparameters</td><td>Value</td></tr><tr><td>Amplification Factor α</td><td>1</td></tr><tr><td>Adaptive Plausibility Threshold β</td><td>0.1</td></tr><tr><td>Diffusion Noise Step</td><td>999</td></tr></table>
|
| 339 |
+
|
| 340 |
+
Table 6: VCD Hyperparameters Settings.
|
| 341 |
+
|
| 342 |
+
# B Ablation Study
|
| 343 |
+
|
| 344 |
+
Considering that CHAIR can more precisely assess the generative capabilities of the model, and given that LLaVA-1.5 and LLaVA-NeXT have similar model structures, we choose to test the parameter sensitivity of DAMRO on LLaVA-1.5 and Instruct-BLIP using CHAIR. The following two parameter ablation experiments are based on this setup. As for how many visual tokens are enough, we conduct ablation experiments on LLaVA-1.5 using POPE, CHAIR and MME benchmarks.
|
| 345 |
+
|
| 346 |
+
# B.1 Effect of $\alpha$ in Visual Contrastive Decoding
|
| 347 |
+
|
| 348 |
+
The results of the experiments with LLaVA-1.5 and InstructBLIP are shown in Figure 9 and Figure 10. It can be observed that when the value of $\alpha$ is too large or too small, the performance of the models deteriorates. $\alpha$ highlights the adjustment strength for outliers in our method, and the optimal adjustment strength varies for different models.
|
| 349 |
+
|
| 350 |
+
# B.2 Effect of Outlier Token Number top $k$
|
| 351 |
+
|
| 352 |
+
We use hyperparameters to define the number of outlier tokens, which vary across different visual encoders. Removing the top k outlier tokens aims to eliminate the redundant negative information they carry. However, this redundant information also contains a certain degree of global information, which can be beneficial for the results. Therefore, it is crucial to reasonably select the top k for our method. The results of the ablation experiments are shown in Figure 11 and Figure 12.
|
| 353 |
+
|
| 354 |
+
# B.3 How Many Visual Tokens are Enough
|
| 355 |
+
|
| 356 |
+
We conduct experiments using LLaVA-1.5 on CHAIR, POPE(only on random split), and MME, and found that a small number of visual tokens,
|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
Figure 9: Ablation study of $\alpha$ in LLaVA-1.5, top $k = 10$ .
|
| 360 |
+
|
| 361 |
+

|
| 362 |
+
Figure 10: Ablation study of $\alpha$ in InstructBLIP, top $k = 4$ .
|
| 363 |
+
|
| 364 |
+
or even a single token, can contain the basic information of an entire image. POPE, CHAIR, MME results are shown in Table 7, Table 8 and Table 9 respectively. Additionally, we select some images and examples from these CHAIR experiments, as shown in Figure 13 and Figure 14. It is evident that a few tokens indeed contain a large amount of information. However, the error rate of this information is quite high, easily leading to the co-occurrence of related objects, which reflects the priors of the visual encoder.
|
| 365 |
+
|
| 366 |
+
An interesting phenomenon is that using only a small number of tokens, some metric results are actually better than using more tokens. We attribute this to the fact that the LLM's attention to visual tokens cannot accurately capture the information they contain. Therefore, this also provides an idea for better selection and acquisition of effective tokens in future LVLM models.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 11: Ablation study of top $k$ in LLaVA-1.5, $\alpha = 0.5$ .
|
| 370 |
+
|
| 371 |
+

|
| 372 |
+
Figure 12: Ablation study of top $k$ in InstructBLIP, $\alpha = 1.5$ .
|
| 373 |
+
|
| 374 |
+
<table><tr><td></td><td>Precision</td><td>Recall</td><td>F1</td><td>Accuracy</td></tr><tr><td>top 1</td><td>89.93</td><td>70.87</td><td>79.27</td><td>81.47</td></tr><tr><td>top 2</td><td>90.47</td><td>69.60</td><td>78.67</td><td>81.13</td></tr><tr><td>top 5</td><td>93.29</td><td>64.93</td><td>76.57</td><td>80.13</td></tr><tr><td>top 10</td><td>94.76</td><td>63.93</td><td>76.35</td><td>80.20</td></tr><tr><td>top 100</td><td>95.50</td><td>66.47</td><td>78.38</td><td>81.67</td></tr><tr><td>all</td><td>92.32</td><td>73.73</td><td>81.97</td><td>83.80</td></tr></table>
|
| 375 |
+
|
| 376 |
+
# C Detailed Results on POPE, MME and GPT4V-Aided Evaluation
|
| 377 |
+
|
| 378 |
+
# C.1 POPE Details
|
| 379 |
+
|
| 380 |
+
The detailed results of POPE on different sub-datasets are shown in Table 10.Our method achieved excellent results across different subsets.
|
| 381 |
+
|
| 382 |
+
Table 7: POPE results with token numbers changed.
|
| 383 |
+
|
| 384 |
+
<table><tr><td></td><td>CHAIRs ↓</td><td>CHAIRi ↓</td><td>Recall ↑</td></tr><tr><td>top1</td><td>58.6</td><td>18.4</td><td>61.4</td></tr><tr><td>top2</td><td>53.6</td><td>17.0</td><td>61.0</td></tr><tr><td>top5</td><td>57.8</td><td>15.1</td><td>67.0</td></tr><tr><td>top10</td><td>50.6</td><td>14.4</td><td>60.5</td></tr><tr><td>top100</td><td>57.8</td><td>15.1</td><td>67.0</td></tr><tr><td>all</td><td>60.2</td><td>16.8</td><td>68.1</td></tr></table>
|
| 385 |
+
|
| 386 |
+
Table 8: CHAIR results with token numbers changed.
|
| 387 |
+
|
| 388 |
+
# C.2 MME Details
|
| 389 |
+
|
| 390 |
+
The detailed results of MME are shown in Table 11
|
| 391 |
+
|
| 392 |
+
# C.3 GPT4V-aided Evaluation Details
|
| 393 |
+
|
| 394 |
+
To evaluate open-ended generation, we utilize GPT-4V to assess the accuracy and detailedness of LVLMs' responses. The specific configurations are detailed in Table 12. Additionally, two illustrative evaluation cases are presented in Figure 15 and Figure 16.
|
| 395 |
+
|
| 396 |
+
<table><tr><td></td><td>existence</td><td>count</td><td>position</td><td>color</td><td>total</td></tr><tr><td>top1</td><td>175.00</td><td>81.67</td><td>98.33</td><td>116.67</td><td>471.67</td></tr><tr><td>top2</td><td>180.00</td><td>91.67</td><td>96.66</td><td>136.66</td><td>504.99</td></tr><tr><td>top5</td><td>168.33</td><td>90.00</td><td>116.67</td><td>125.00</td><td>500.00</td></tr><tr><td>top10</td><td>178.33</td><td>80.00</td><td>96.66</td><td>118.33</td><td>473.32</td></tr><tr><td>top100</td><td>170.00</td><td>80.00</td><td>90.00</td><td>121.67</td><td>461.67</td></tr><tr><td>all</td><td>185.00</td><td>98.30</td><td>115.00</td><td>138.30</td><td>536.30</td></tr></table>
|
| 397 |
+
|
| 398 |
+
Table 9: MME results with token numbers changed.
|
| 399 |
+
|
| 400 |
+
<table><tr><td>Model</td><td>Dataset</td><td>Method</td><td>Precision</td><td>Recall</td><td>F1</td><td>Accuracy</td></tr><tr><td rowspan="12">LLaVA-1.5</td><td rowspan="4">random</td><td>Original</td><td>92.321</td><td>73.733</td><td>81.987</td><td>83.800</td></tr><tr><td>DAMRO</td><td>94.557</td><td>81.067</td><td>87.294</td><td>88.200</td></tr><tr><td>VCD</td><td>91.886</td><td>83.8</td><td>87.657</td><td>88.200</td></tr><tr><td>M3ID</td><td>96.331</td><td>75.267</td><td>84.506</td><td>86.200</td></tr><tr><td rowspan="4">popular</td><td>Original</td><td>89.700</td><td>73.733</td><td>80.937</td><td>82.633</td></tr><tr><td>DAMRO</td><td>89.280</td><td>81.067</td><td>84.976</td><td>85.667</td></tr><tr><td>VCD</td><td>87.231</td><td>83.800</td><td>85.481</td><td>85.767</td></tr><tr><td>M3ID</td><td>92.923</td><td>75.267</td><td>83.168</td><td>84.767</td></tr><tr><td rowspan="4">adversarial</td><td>Original</td><td>83.864</td><td>73.800</td><td>78.511</td><td>79.800</td></tr><tr><td>DAMRO</td><td>82.677</td><td>81.133</td><td>81.898</td><td>82.067</td></tr><tr><td>VCD</td><td>79.343</td><td>83.733</td><td>81.479</td><td>80.967</td></tr><tr><td>M3ID</td><td>88.185</td><td>75.133</td><td>81.138</td><td>82.533</td></tr><tr><td rowspan="12">LLaVA-NeXT</td><td rowspan="4">random</td><td>Original</td><td>96.500</td><td>75.600</td><td>84.785</td><td>86.433</td></tr><tr><td>DAMRO</td><td>94.749</td><td>85.400</td><td>89.832</td><td>90.333</td></tr><tr><td>VCD</td><td>96.187</td><td>82.400</td><td>88.760</td><td>89.567</td></tr><tr><td>M3ID</td><td>97.457</td><td>79.200</td><td>87.385</td><td>88.567</td></tr><tr><td rowspan="4">popular</td><td>Original</td><td>92.571</td><td>75.600</td><td>83.229</td><td>84.767</td></tr><tr><td>DAMRO</td><td>90.594</td><td>85.400</td><td>87.920</td><td>88.267</td></tr><tr><td>VCD</td><td>92.170</td><td>82.400</td><td>87.010</td><td>87.700</td></tr><tr><td>M3ID</td><td>93.913</td><td>79.200</td><td>85.931</td><td>87.033</td></tr><tr><td rowspan="4">adversarial</td><td>Original</td><td>87.761</td><td>75.533</td><td>81.189</td><td>82.500</td></tr><tr><td>DAMRO</td><td>84.720</td><td>85.400</td><td>85.059</td><td>85.000</td></tr><tr><td>VCD</td><td>87.340</td><td>82.400</td><td>84.803</td><td>85.233</td></tr><tr><td>M3ID</td><td>91.314</td><td>79.200</td><td>84.827</td><td>85.833</td></tr><tr><td rowspan="12">InstrucBLIP</td><td rowspan="4">random</td><td>Original</td><td>81.975</td><td>79.133</td><td>80.523</td><td>80.867</td></tr><tr><td>DAMRO</td><td>85.890</td><td>84.000</td><td>84.934</td><td>85.100</td></tr><tr><td>VCD</td><td>89.694</td><td>80.067</td><td>84.607</td><td>85.433</td></tr><tr><td>M3ID</td><td>93.451</td><td>70.400</td><td>80.304</td><td>82.733</td></tr><tr><td rowspan="4">popular</td><td>Original</td><td>79.112</td><td>79.067</td><td>79.093</td><td>79.100</td></tr><tr><td>DAMRO</td><td>80.089</td><td>83.667</td><td>81.839</td><td>81.433</td></tr><tr><td>VCD</td><td>83.907</td><td>79.600</td><td>81.697</td><td>82.167</td></tr><tr><td>M3ID</td><td>90.000</td><td>70.800</td><td>79.254</td><td>81.467</td></tr><tr><td rowspan="4">adversarial</td><td>Original</td><td>74.829</td><td>80.067</td><td>77.359</td><td>76.567</td></tr><tr><td>DAMRO</td><td>76.010</td><td>84.067</td><td>79.835</td><td>78.767</td></tr><tr><td>VCD</td><td>81.052</td><td>80.133</td><td>79.59</td><td>80.700</td></tr><tr><td>M3ID</td><td>88.314</td><td>70.533</td><td>78.428</td><td>80.600</td></tr></table>
|
| 401 |
+
|
| 402 |
+
Table 10: Detailed results of POPE on different sub-datasets.
|
| 403 |
+
|
| 404 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Method</td><td colspan="2">Object-level</td><td colspan="2">Attribute-level</td><td rowspan="2">Total Scores</td></tr><tr><td>Existence</td><td>Count</td><td>Position</td><td>Color</td></tr><tr><td rowspan="4">LLaVA-1.5</td><td>Original</td><td>185.00</td><td>98.30</td><td>115.00</td><td>138.30</td><td>536.60</td></tr><tr><td>VCD</td><td>195.00</td><td>100.00</td><td>123.33</td><td>146.67</td><td>565.00</td></tr><tr><td>M3ID</td><td>180.00</td><td>121.67</td><td>123.33</td><td>143.33</td><td>568.33</td></tr><tr><td>DAMRO</td><td>180.00</td><td>131.67</td><td>128.30</td><td>153.30</td><td>593.27</td></tr><tr><td rowspan="4">LLaVA-NeXT</td><td>Original</td><td>165.00</td><td>116.67</td><td>103.33</td><td>131.66</td><td>516.66</td></tr><tr><td>VCD</td><td>195.00</td><td>126.00</td><td>110.00</td><td>146.00</td><td>577.00</td></tr><tr><td>M3ID</td><td>195.00</td><td>105.00</td><td>111.67</td><td>155.00</td><td>566.67</td></tr><tr><td>DAMRO</td><td>190.00</td><td>123.33</td><td>140.00</td><td>133.33</td><td>586.66</td></tr><tr><td rowspan="4">InstructBLIP</td><td>Original</td><td>160.00</td><td>75.00</td><td>68.30</td><td>103.3</td><td>406.60</td></tr><tr><td>VCD</td><td>170.00</td><td>78.30</td><td>61.67</td><td>98.33</td><td>408.30</td></tr><tr><td>M3ID</td><td>190.00</td><td>70.00</td><td>76.67</td><td>135.00</td><td>471.67</td></tr><tr><td>DAMRO</td><td>185.00</td><td>65.00</td><td>61.00</td><td>115.00</td><td>426.00</td></tr></table>
|
| 405 |
+
|
| 406 |
+
Table 11: Detailed results of MME.
|
| 407 |
+
|
| 408 |
+

|
| 409 |
+
|
| 410 |
+

|
| 411 |
+
with 1 tokens
|
| 412 |
+
|
| 413 |
+
In the image, there is a young woman wearing a green shirt holding a large, bright red umbrella. She is standing in the rain, protecting herself from the downpour. The umbrella is open, covering the entire width of the image, and the woman is positioned in the center of the frame.
|
| 414 |
+
|
| 415 |
+
There are other people in the scene, one to the left of the woman and another one to the right, but they are not the main focus of the image.
|
| 416 |
+
|
| 417 |
+
Additionally, there are two cars visible in the background, one near the left edge and the other one occupying the right side of the frame. A handbag can also be seen close to the woman, likely belonging to her.
|
| 418 |
+
|
| 419 |
+

|
| 420 |
+
with 5 tokens
|
| 421 |
+
|
| 422 |
+
The image depicts a woman standing next to a little girl, both of them holding a large black and red umbrella over their heads. They appear to be in a rainy environment, as the umbrella is open, providing protection from the rain. They are both looking at something together, likely observing the surroundings or engaging in conversation.
|
| 423 |
+
|
| 424 |
+
The scene takes place outdoors, with a car visible in the background, parked on the street. Additionally, a handbag can be spotted close to the woman, likely belonging to her. The overall atmosphere suggests a moment of connection and shared experience between the two women during a rainy day
|
| 425 |
+
|
| 426 |
+

|
| 427 |
+
with all tokens
|
| 428 |
+
Figure 13: A case illustrates the generative ability of tokens. We use the prompt "Please describe this image in detail." to get answers from different. Hallucinated words are marked in red.
|
| 429 |
+
|
| 430 |
+
In the image, an older person and a young girl, possibly a mother and daughter, are walking down a rain-soaked street. The older person is holding an umbrella over the girl, protecting them from the rain. It appears to be raining quite heavily, causing the road to be wet.
|
| 431 |
+
|
| 432 |
+
In the scene, there are multiple vehicles. A car is parked on the left side of the street and another car is farther back, on the right side. The older person and the child seem to be walking across the street safely with the help of the umbrella.
|
| 433 |
+
|
| 434 |
+

|
| 435 |
+
Figure 14: A case illustrates the generative ability of tokens. We use the prompt"Please describe this image in detail." to get the answers. Hallucinated words are marked in red.
|
| 436 |
+
|
| 437 |
+
# GPT-4V(ison) Prompt
|
| 438 |
+
|
| 439 |
+
You are required to score the performance of two AI assistants in describing a given image. You should pay extra attention to the hallucination, which refers to the part of descriptions that are inconsistent with the image content, such as claiming the existence of something not present in the image or describing incorrectly in terms of the counts, positions, or colors of objects in the image. Please rate the responses of the assistants on a scale of 1 to 10, where a higher score indicates better performance, according to the following criteria:
|
| 440 |
+
|
| 441 |
+
1: Accuracy: whether the response is accurate with respect to the image content. Responses with fewer hallucinations should be given higher scores.
|
| 442 |
+
2: Detailedness: whether the response is rich in necessary details. Note that hallucinated descriptions should not count as necessary details.
|
| 443 |
+
|
| 444 |
+
Please output the scores for each criterion, containing only two values indicating the scores for Assistant 1 and 2, respectively. The two scores are separated by a space. Following the scores, please provide an explanation of your evaluation, avoiding any potential bias and ensuring that the order in which the responses were presented does not affect your judgment.
|
| 445 |
+
|
| 446 |
+
[Assistant 1]
|
| 447 |
+
|
| 448 |
+
{}
|
| 449 |
+
|
| 450 |
+
[End of Assistant 1]
|
| 451 |
+
|
| 452 |
+
[Assistant 2]
|
| 453 |
+
|
| 454 |
+
1
|
| 455 |
+
|
| 456 |
+
[End of Assistant 2]
|
| 457 |
+
|
| 458 |
+
Output format:
|
| 459 |
+
|
| 460 |
+
Accuracy:
|
| 461 |
+
|
| 462 |
+
Reason:
|
| 463 |
+
|
| 464 |
+
Detailedness:
|
| 465 |
+
|
| 466 |
+
Reason:
|
| 467 |
+
|
| 468 |
+
Table 12: The prompt used for GPT-4V(ision) evaluation.
|
| 469 |
+
|
| 470 |
+
[Input Image]
|
| 471 |
+
|
| 472 |
+

|
| 473 |
+
Figure 15: DAMRO's performance on reducing hallucinations on on InstructBLIP.
|
| 474 |
+
|
| 475 |
+
[Input Instruction]
|
| 476 |
+
|
| 477 |
+
What is the man doing in the image?
|
| 478 |
+
|
| 479 |
+
[Model Reponse]
|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
|
| 483 |
+
InstructBLIP
|
| 484 |
+
|
| 485 |
+
The man in the image is holding up various items, including a suit jacket, a husband coat, a man suit, a robe, and a doll suit. He is possibly preparing to pavck or hang these items up in his residence.
|
| 486 |
+
|
| 487 |
+
Ours
|
| 488 |
+
|
| 489 |
+
The man in the image is holding up two garment covers, one over a suitcase and the other over a dress.
|
| 490 |
+
|
| 491 |
+

|
| 492 |
+
|
| 493 |
+
GPT-4 Evaluation
|
| 494 |
+
|
| 495 |
+
# Accuracy: 18
|
| 496 |
+
|
| 497 |
+
Reason: Assistant 1 incorrectly describes multiple items that are not present in the image, such as a suit jacket, a husband coat, a man suit, a robe, and a doll suit, leading to a high level of hallucination. In contrast, Assistant 2 accurately describes the man holding up two garment covers, which is consistent with the image content. There is a minor error in stating that one garment cover is over a suitcase and the other over a dress; it's actually over a blue bag, not necessarily a suitcase.
|
| 498 |
+
|
| 499 |
+
# Detailedness: 25
|
| 500 |
+
|
| 501 |
+
Reason: Assistant 1 provides a more detailed (though inaccurate) description by listing various clothing items but does so incorrectly, causing hallucination. Meanwhile, Assistant 2's description is concise and relatively accurate but lacks in-depth detail. Hence, while Assistant 2's description is more accurate, it is also less detailed.
|
| 502 |
+
|
| 503 |
+

|
| 504 |
+
Figure 16: DAMRO's performance on reducing hallucinations on LLaVA-1.5-7b.
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:751bf8ef13ffb03683cbb338c379a2f4233b3d5438dcd897126c83d6cd5652c6
|
| 3 |
+
size 1435114
|
2024/DAMRO_ Dive into the Attention Mechanism of LVLM to Reduce Object Hallucination/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/DC-Instruct_ An Effective Framework for Generative Multi-intent Spoken Language Understanding/8772c6a2-28f1-4ba3-98cc-c91ae987faf8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|