8000 GitHub - lzw108/RAEmoLLM
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lzw108/RAEmoLLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAEmoLLM: Retrieval Augmented LLMs for Cross-Domain Misinformation Detection Using In-Context Learning based on Emotional Information

RAEmoLLM paper

News

📢 May. 15, 2025 Our RAEmoLLM paper has been accepted by ACL 2025 (main)!

Introduction

This is the original code of RAEmoLLM, the first framework to address cross-domain misinformation detection using in-context learning based on affective information. RAEmoLLM includes three modules.

(1) In the index construction module, we apply an emotional LLM to obtain affective embeddings from all domains to construct a retrieval database.

(2) The retrieval module uses this to recommend top K examples (text-label pairs) from source domain data for the target domain contents.

(3) These examples are adopted as few-shot demonstrations for the inference module to process the target domain content. We evaluate our framework on three misinformation benchmarks.

Usage

The processed data are in the datasets folder. You can follow the steps to get the retrieval instruction data for LLM inference. You can change the parameters in .sh file to get different datasets, different affective information and dimensions.

NOTE: If you would like to use the datasets, please make sure to comply with the original data's license or obtain authorization from the author of the original data.

Original data link: AMTCele, PHEME, COCO.

index construction module

# get affectieve labels by Emollama-chat-7b
bash indexconstruct/get_Emolabel.sh

# get affective embeddings of last hidden layer from Emollama-chat-7b
bash indexconstruct/get_embs.sh

retrieval module

# get retrieval examples for target domains according to different affective information.
bash retrieval/retrieval.sh

inference module

# get retrieval retrieval augmented instructions data for LLMs inference according to different affective information
bash inference/construct_instructs4inference.sh
# LLM inference
bash inference/inference.sh

License

EmoLLMs series are licensed under [MIT]. Please find more details in the MIT file.

Citation

If you use RAEmoLLM in your work, please cite our paper:

@article{liu2024raemollm,
  title={RAEmoLLM: Retrieval Augmented LLMs for Cross-Domain Misinformation Detection Using In-Context Learning based on Emotional Information},
  author={Liu, Zhiwei and Yang, Kailai and Xie, Qianqian and de Kock, Christine and Ananiadou, Sophia and Hovy, Eduard},
  journal={arXiv preprint arXiv:2406.11093},
  year={2024}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0