{"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/chain-of-interaction-enhancing-large-language","title":"Chain-of-Interaction: Enhancing Large Language Models for Psychiatric Behavior Understanding by Dyadic Contexts","arxiv_id":"2403.13786","date":"2024-03-20","proceeding":null,"authors":["Guangzeng Han","Weisi Liu","Xiaolei Huang","Brian Borsari"],"abstract":"Automatic coding patient behaviors is essential to support decision making for psychotherapists during the motivational interviewing (MI), a collaborative communication intervention approach to address psychiatric issues, such as alcohol and drug addiction. While the behavior coding task has rapidly adapted machine learning to predict patient states during the MI sessions, lacking of domain-specific knowledge and overlooking patient-therapist interactions are major challenges in developing and deploying those models in real practice. To encounter those challenges, we introduce the Chain-of-Interaction (CoI) prompting method aiming to contextualize large language models (LLMs) for psychiatric decision support by the dyadic interactions. The CoI prompting approach systematically breaks down the coding task into three key reasoning steps, extract patient engagement, learn therapist question strategies, and integrates dyadic interactions between patients and therapists. This approach enables large language models to leverage the coding scheme, patient state, and domain knowledge for patient behavioral coding. Experiments on real-world datasets can prove the effectiveness and flexibility of our prompting method with multiple state-of-the-art LLMs over existing prompting baselines. We have conducted extensive ablation analysis and demonstrate the critical role of dyadic interactions in applying LLMs for psychotherapy behavior understanding.","url_abs":"https://arxiv.org/abs/2403.13786v2","url_pdf":"https://arxiv.org/pdf/2403.13786v2.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":"chain-of-interaction-enhancing-large-language","repo_url":"https://github.com/trust-nlp/coi-psychotherapy","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"decision-making","task_name":"Decision Making"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.13786","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.13786"}},"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/trust-nlp/coi-psychotherapy","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":4,"unverified":4},"by_repo_kind":{"official":{"samples":8,"ran":4,"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":"b2f47ceb183063e1","entry":"count_parameters","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/misc.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/misc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b2f47ceb183063e1"}},{"code_sha256_prefix":"a9e798cf22bd399b","entry":"infer_optim_dtype","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/misc.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/misc.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a9e798cf22bd399b"}},{"code_sha256_prefix":"fadfc4128068a6f6","entry":"parse_args","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/misc.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/misc.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fadfc4128068a6f6"}},{"code_sha256_prefix":"70c7f6d657ef0a9e","entry":"smooth","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/ploting.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/ploting.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"70c7f6d657ef0a9e"}},{"code_sha256_prefix":"e180bbd09fe3a2f2","entry":"get_eval_template","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/eval/MMCBtemplate.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/eval/MMCBtemplate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e180bbd09fe3a2f2"}},{"code_sha256_prefix":"0905fc3e8ed7fea3","entry":"get_logger","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/logging.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/logging.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0905fc3e8ed7fea3"}},{"code_sha256_prefix":"14c9fb02d60eea83","entry":"get_package_version","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/packages.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/packages.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"14c9fb02d60eea83"}},{"code_sha256_prefix":"2e71330e34fbbfd7","entry":"is_package_available","repo":"trust-nlp/coi-psychotherapy","repo_kind":"official","path":"src/llmtuner/extras/packages.py","file_url":"https://github.com/trust-nlp/coi-psychotherapy/blob/HEAD/src/llmtuner/extras/packages.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2e71330e34fbbfd7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}