{"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/bidirectional-generative-framework-for-cross","title":"Bidirectional Generative Framework for Cross-domain Aspect-based Sentiment Analysis","arxiv_id":"2305.09509","date":"2023-05-16","proceeding":null,"authors":["Yue Deng","Wenxuan Zhang","Sinno Jialin Pan","Lidong Bing"],"abstract":"Cross-domain aspect-based sentiment analysis (ABSA) aims to perform various fine-grained sentiment analysis tasks on a target domain by transferring knowledge from a source domain. Since labeled data only exists in the source domain, a model is expected to bridge the domain gap for tackling cross-domain ABSA. Though domain adaptation methods have proven to be effective, most of them are based on a discriminative model, which needs to be specifically designed for different ABSA tasks. To offer a more general solution, we propose a unified bidirectional generative framework to tackle various cross-domain ABSA tasks. Specifically, our framework trains a generative model in both text-to-label and label-to-text directions. The former transforms each task into a unified format to learn domain-agnostic features, and the latter generates natural sentences from noisy labels for data augmentation, with which a more accurate model can be trained. To investigate the effectiveness and generality of our framework, we conduct extensive experiments on four cross-domain ABSA tasks and present new state-of-the-art results on all tasks. Our data and code are publicly available at \\url{https://github.com/DAMO-NLP-SG/BGCA}.","url_abs":"https://arxiv.org/abs/2305.09509v1","url_pdf":"https://arxiv.org/pdf/2305.09509v1.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":"bidirectional-generative-framework-for-cross","repo_url":"https://github.com/damo-nlp-sg/bgca","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"aspect-based-sentiment-analysis-1","task_name":"Aspect-Based Sentiment Analysis"},{"task_slug":"aspect-based-sentiment-analysis","task_name":"Aspect-Based Sentiment Analysis (ABSA)"},{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"sentiment-analysis","task_name":"Sentiment Analysis"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.09509","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.09509"}},"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":"deterministic:regex_extraction","url":"https://github.com/DAMO-NLP-SG/BGCA","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"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":12,"samples":[{"code_sha256_prefix":"d5e5ce72cf2ee51f","entry":"bieos2generation","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/preprocess.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/preprocess.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"d5e5ce72cf2ee51f"}},{"code_sha256_prefix":"e9877d724f7c8999","entry":"extract_ate_from_extraction","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/eval_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/eval_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"e9877d724f7c8999"}},{"code_sha256_prefix":"fe2befb636677ddb","entry":"extract_ate_from_extraction_universal","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/eval_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/eval_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"fe2befb636677ddb"}},{"code_sha256_prefix":"720c0acbcf45e681","entry":"extract_spans_extraction","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/eval_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/eval_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"720c0acbcf45e681"}},{"code_sha256_prefix":"2eeaa42adb85b9b2","entry":"filter_invalid","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/data_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"2eeaa42adb85b9b2"}},{"code_sha256_prefix":"0965b8b312ee6469","entry":"filter_none","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/data_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"0965b8b312ee6469"}},{"code_sha256_prefix":"a7a44720b71aba1f","entry":"infer","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/run_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/run_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"a7a44720b71aba1f"}},{"code_sha256_prefix":"7176e6be47411bbc","entry":"normalize_augment","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/data_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/data_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"7176e6be47411bbc"}},{"code_sha256_prefix":"66e95af6c3f2626b","entry":"ot2bieos_absa","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/preprocess.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/preprocess.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"66e95af6c3f2626b"}},{"code_sha256_prefix":"b241f70140f2368f","entry":"prepare_constrained_tokens","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/model_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"b241f70140f2368f"}},{"code_sha256_prefix":"f125eddd80113cb7","entry":"prepare_tag_tokens","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/model_utils.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/model_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"f125eddd80113cb7"}},{"code_sha256_prefix":"22a4f540afef6103","entry":"read_generation_uabsa","repo":"DAMO-NLP-SG/BGCA","repo_kind":"official","path":"code/preprocess.py","file_url":"https://github.com/DAMO-NLP-SG/BGCA/blob/HEAD/code/preprocess.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":false,"mcp_get_code":{"code_sha256":"22a4f540afef6103"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}