{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/dialoguellm-context-and-emotion-knowledge","title":"DialogueLLM: Context and Emotion Knowledge-Tuned Large Language Models for Emotion Recognition in Conversations","arxiv_id":"2310.11374","date":"2023-10-17","proceeding":null,"authors":["Yazhou Zhang","Mengyao Wang","Youxi Wu","Prayag Tiwari","Qiuchi Li","Benyou Wang","Jing Qin"],"abstract":"Large language models (LLMs) and their variants have shown extraordinary efficacy across numerous downstream natural language processing (NLP) tasks, which has presented a new vision for the development of NLP. Despite their remarkable performance in natural language generating (NLG), LLMs lack a distinct focus on the emotion understanding domain. As a result, using LLMs for emotion recognition may lead to suboptimal and inadequate precision. Another limitation of LLMs is that they are typical trained without leveraging multi-modal information. To overcome these limitations, we propose DialogueLLM, a context and emotion knowledge tuned LLM that is obtained by fine-tuning LLaMA models with 13,638 multi-modal (i.e., texts and videos) emotional dialogues. The visual information is considered as the supplementary knowledge to construct high-quality instructions. We offer a comprehensive evaluation of our proposed model on three benchmarking emotion recognition in conversations (ERC) datasets and compare the results against the SOTA baselines and other SOTA LLMs. Additionally, DialogueLLM-7B can be easily trained using LoRA on a 40GB A100 GPU in 5 hours, facilitating reproducibility for other researchers.","url_abs":"https://arxiv.org/abs/2310.11374v4","url_pdf":"https://arxiv.org/pdf/2310.11374v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"dialoguellm-context-and-emotion-knowledge","repo_url":"https://github.com/Dreamyao516/DialogueLLM","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"benchmarking","task_name":"Benchmarking"},{"task_slug":"emotion-recognition","task_name":"Emotion Recognition"},{"task_slug":null,"task_name":"GPU"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.11374","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.11374"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Dreamyao516/DialogueLLM","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":2,"ran":7,"ran_violates":1,"unverified":1},"by_repo_kind":{"official":{"samples":11,"ran":10,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"d7b6dcfe63bfe59b","entry":"apply_rotary_emb","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d7b6dcfe63bfe59b"}},{"code_sha256_prefix":"2775546539a8ffad","entry":"generate_prompt","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/myllama-train-IEMOCAP.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/myllama-train-IEMOCAP.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2775546539a8ffad"}},{"code_sha256_prefix":"8edcd3249036d199","entry":"generate_test_prompt","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/myllama-generate-emory.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/myllama-generate-emory.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8edcd3249036d199"}},{"code_sha256_prefix":"5d73d5099180c62f","entry":"generate_test_prompt","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/myllama-generate-test-IEMOCAP.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/myllama-generate-test-IEMOCAP.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d73d5099180c62f"}},{"code_sha256_prefix":"ae3c7b122b84d16c","entry":"generate_test_prompt","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/myllama-generate-test.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/myllama-generate-test.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ae3c7b122b84d16c"}},{"code_sha256_prefix":"54fb3aa067f31a5e","entry":"generate_test_prompt","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/myllama-train-EQ.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/myllama-train-EQ.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"54fb3aa067f31a5e"}},{"code_sha256_prefix":"2562c7cc3c3dc903","entry":"get_column_elements","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/evaluate_emo.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/evaluate_emo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2562c7cc3c3dc903"}},{"code_sha256_prefix":"04a1fa63d6d4b8e4","entry":"precompute_freqs_cis","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"04a1fa63d6d4b8e4"}},{"code_sha256_prefix":"5a639d78ada17fee","entry":"reshape_for_broadcast","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"llama/model.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/llama/model.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a639d78ada17fee"}},{"code_sha256_prefix":"f68bf976b2448fff","entry":"sentiment_score_to_name","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"py/evaluate_emo.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/py/evaluate_emo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f68bf976b2448fff"}},{"code_sha256_prefix":"e28848558038eee4","entry":"sample_top_p","repo":"Dreamyao516/DialogueLLM","repo_kind":"official","path":"llama/generation.py","file_url":"https://github.com/Dreamyao516/DialogueLLM/blob/HEAD/llama/generation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e28848558038eee4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}