{"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/seq2seq-is-all-you-need-for-coreference","title":"Seq2seq is All You Need for Coreference Resolution","arxiv_id":"2310.13774","date":"2023-10-20","proceeding":null,"authors":["Wenzheng Zhang","Sam Wiseman","Karl Stratos"],"abstract":"Existing works on coreference resolution suggest that task-specific models are necessary to achieve state-of-the-art performance. In this work, we present compelling evidence that such models are not necessary. We finetune a pretrained seq2seq transformer to map an input document to a tagged sequence encoding the coreference annotation. Despite the extreme simplicity, our model outperforms or closely matches the best coreference systems in the literature on an array of datasets. We also propose an especially simple seq2seq approach that generates only tagged spans rather than the spans interleaved with the original text. Our analysis shows that the model size, the amount of supervision, and the choice of sequence representations are key factors in performance.","url_abs":"https://arxiv.org/abs/2310.13774v1","url_pdf":"https://arxiv.org/pdf/2310.13774v1.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":"seq2seq-is-all-you-need-for-coreference","repo_url":"https://github.com/wenzhengzhang/seq2seqcoref","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"all","task_name":"All"},{"task_slug":"coreference-resolution","task_name":"Coreference Resolution"},{"task_slug":"coreference-resolution-1","task_name":"coreference-resolution"}],"methods":[{"method_slug":"lstm","method_name":"LSTM"},{"method_slug":"seq2seq","method_name":"Seq2Seq"},{"method_slug":"sigmoid-activation","method_name":"Sigmoid Activation"},{"method_slug":"tanh-activation","method_name":"Tanh Activation"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.13774","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.13774"}},"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/WenzhengZhang/Seq2seqCoref","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":9,"unverified":5},"by_repo_kind":{"official":{"samples":14,"ran":9,"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":"2d71e2917845b6ac","entry":"b_cubed","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/metrics.py","link_basis":"harvester_set","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":"2d71e2917845b6ac"}},{"code_sha256_prefix":"1b30aee01d2ddc01","entry":"extract_clusters","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"utils.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/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":"1b30aee01d2ddc01"}},{"code_sha256_prefix":"a44d03c78991db18","entry":"get_document_predicts","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"data.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/data.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":"a44d03c78991db18"}},{"code_sha256_prefix":"a757f2a0602e2db4","entry":"get_mention_to_clusters","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"utils.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/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":"a757f2a0602e2db4"}},{"code_sha256_prefix":"b39bade2b5608136","entry":"global_align","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"alignment.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/alignment.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":"b39bade2b5608136"}},{"code_sha256_prefix":"5266adb6d2ffdcfc","entry":"load_data","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"check_align.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/check_align.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":"5266adb6d2ffdcfc"}},{"code_sha256_prefix":"2f6a512c201dda17","entry":"match_score","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"alignment.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/alignment.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":"2f6a512c201dda17"}},{"code_sha256_prefix":"4fe53dfaad013950","entry":"max_track","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"alignment.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/alignment.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":"4fe53dfaad013950"}},{"code_sha256_prefix":"1dfbebba563fe3db","entry":"normalize_word","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"data.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/data.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":"1dfbebba563fe3db"}},{"code_sha256_prefix":"17c2f60d7aa60c4e","entry":"evaluate_conll","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"conll.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/conll.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":"17c2f60d7aa60c4e"}},{"code_sha256_prefix":"44ea1242eeeb38ac","entry":"evaluate_documents","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/metrics.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":"44ea1242eeeb38ac"}},{"code_sha256_prefix":"5dc251a1bb16c94f","entry":"f1","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"metrics.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/metrics.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":"5dc251a1bb16c94f"}},{"code_sha256_prefix":"f300a33fe05fc609","entry":"get_doc_key","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"conll.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/conll.py","link_basis":"plan_row","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":"f300a33fe05fc609"}},{"code_sha256_prefix":"623bb0c122976d14","entry":"official_conll_eval","repo":"WenzhengZhang/Seq2seqCoref","repo_kind":"official","path":"conll.py","file_url":"https://github.com/WenzhengZhang/Seq2seqCoref/blob/HEAD/conll.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":"623bb0c122976d14"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}