{"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/linguistic-representations-for-fewer-shot","title":"Linguistic representations for fewer-shot relation extraction across domains","arxiv_id":"2307.03823","date":"2023-07-07","proceeding":null,"authors":["Sireesh Gururaja","Ritam Dutt","Tinglong Liao","Carolyn Rose"],"abstract":"Recent work has demonstrated the positive impact of incorporating linguistic representations as additional context and scaffolding on the in-domain performance of several NLP tasks. We extend this work by exploring the impact of linguistic representations on cross-domain performance in a few-shot transfer setting. An important question is whether linguistic representations enhance generalizability by providing features that function as cross-domain pivots. We focus on the task of relation extraction on three datasets of procedural text in two domains, cooking and materials science. Our approach augments a popular transformer-based architecture by alternately incorporating syntactic and semantic graphs constructed by freely available off-the-shelf tools. We examine their utility for enhancing generalization, and investigate whether earlier findings, e.g. that semantic representations can be more helpful than syntactic ones, extend to relation extraction in multiple domains. We find that while the inclusion of these graphs results in significantly higher performance in few-shot transfer, both types of graph exhibit roughly equivalent utility.","url_abs":"https://arxiv.org/abs/2307.03823v1","url_pdf":"https://arxiv.org/pdf/2307.03823v1.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":[],"tasks":[{"task_slug":null,"task_name":"Relation"},{"task_slug":"relation-extraction","task_name":"Relation Extraction"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2307.03823","atlas_url":"https://app.syntology.ai/?focus=2307.03823","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.03823"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/ShoRit/flow_graphs","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":10,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":12,"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":"a4338ddc4d9fefe7","entry":"add_evaluation_context","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/evaluation.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/evaluation.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":"a4338ddc4d9fefe7"}},{"code_sha256_prefix":"e862ce41c308f4c8","entry":"create_mini_batch","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloader.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloader.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":"e862ce41c308f4c8"}},{"code_sha256_prefix":"fd1263cea7785bb2","entry":"get_case","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/modeling/metadata_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/modeling/metadata_utils.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":"fd1263cea7785bb2"}},{"code_sha256_prefix":"06352740042a8bcb","entry":"get_experiment_config_from_filename","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/modeling/metadata_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/modeling/metadata_utils.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":"06352740042a8bcb"}},{"code_sha256_prefix":"ea2da938a6597622","entry":"get_transfer_checkpoint_filename","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/modeling/metadata_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/modeling/metadata_utils.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":"ea2da938a6597622"}},{"code_sha256_prefix":"9ee0b1fa45ecb649","entry":"load_amr_rel2id","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloading_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloading_utils.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":"9ee0b1fa45ecb649"}},{"code_sha256_prefix":"60f6752e6b70b47a","entry":"load_deprels","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloading_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloading_utils.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":"60f6752e6b70b47a"}},{"code_sha256_prefix":"7eaf87d77923564b","entry":"load_glove","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloading_utils.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloading_utils.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":"7eaf87d77923564b"}},{"code_sha256_prefix":"8599b1cb2086c2f2","entry":"sample_fraction","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloader.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloader.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":"8599b1cb2086c2f2"}},{"code_sha256_prefix":"e17310578b0210f1","entry":"stratified_sample","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/dataloader.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/dataloader.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":"e17310578b0210f1"}},{"code_sha256_prefix":"962a5b07a9931a3d","entry":"get_labels_and_model_predictions","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/evaluation.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/evaluation.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":true,"mcp_get_code":{"code_sha256":"962a5b07a9931a3d"}},{"code_sha256_prefix":"44053179e1c00586","entry":"seen_eval","repo":"ShoRit/flow_graphs","repo_kind":"found_in_text","path":"code/evaluation.py","file_url":"https://github.com/ShoRit/flow_graphs/blob/HEAD/code/evaluation.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":true,"mcp_get_code":{"code_sha256":"44053179e1c00586"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}