{"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/the-past-mistake-is-the-future-wisdom-error-1","title":"The Past Mistake is the Future Wisdom: Error-driven Contrastive Probability Optimization for Chinese Spell Checking","arxiv_id":"2203.00991","date":"2022-03-02","proceeding":"Findings (ACL) 2022 5","authors":["Yinghui Li","Qingyu Zhou","Yangning Li","Zhongli Li","Ruiyang Liu","Rongyi Sun","Zizhen Wang","Chao Li","Yunbo Cao","Hai-Tao Zheng"],"abstract":"Chinese Spell Checking (CSC) aims to detect and correct Chinese spelling errors, which are mainly caused by the phonological or visual similarity. Recently, pre-trained language models (PLMs) promote the progress of CSC task. However, there exists a gap between the learned knowledge of PLMs and the goal of CSC task. PLMs focus on the semantics in text and tend to correct the erroneous characters to semantically proper or commonly used ones, but these aren't the ground-truth corrections. To address this issue, we propose an Error-driven COntrastive Probability Optimization (ECOPO) framework for CSC task. ECOPO refines the knowledge representations of PLMs, and guides the model to avoid predicting these common characters through an error-driven way. Particularly, ECOPO is model-agnostic and it can be combined with existing CSC methods to achieve better performance. Extensive experiments and detailed analyses on SIGHAN datasets demonstrate that ECOPO is simple yet effective.","url_abs":"https://arxiv.org/abs/2203.00991v1","url_pdf":"https://arxiv.org/pdf/2203.00991v1.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":"chinese-spell-checking","task_name":"Chinese Spell Checking"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2203.00991","atlas_url":"https://app.syntology.ai/?focus=2203.00991","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.00991"}},"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/BYVoid/OpenCC","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":5,"unverified":1},"by_repo_kind":{"found_in_text":{"samples":6,"ran":5,"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":"b338b6f7dd60e20a","entry":"IsHeaderFile","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/google-benchmark/.ycm_extra_conf.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/google-benchmark/.ycm_extra_conf.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":"b338b6f7dd60e20a"}},{"code_sha256_prefix":"11a933b4ba235ce6","entry":"MakeRelativePathsInFlagsAbsolute","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/google-benchmark/.ycm_extra_conf.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/google-benchmark/.ycm_extra_conf.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":"11a933b4ba235ce6"}},{"code_sha256_prefix":"2cf7b337c8f8f0c8","entry":"auto_cpp_level","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/pybind11-2.13.1/pybind11/setup_helpers.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/pybind11-2.13.1/pybind11/setup_helpers.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":"2cf7b337c8f8f0c8"}},{"code_sha256_prefix":"67ad1f7a0bbdff7f","entry":"get_include","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/pybind11-2.13.1/pybind11/commands.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/pybind11-2.13.1/pybind11/commands.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":"67ad1f7a0bbdff7f"}},{"code_sha256_prefix":"6eb3262cc4e1cf5c","entry":"has_flag","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/pybind11-2.13.1/pybind11/setup_helpers.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/pybind11-2.13.1/pybind11/setup_helpers.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":"6eb3262cc4e1cf5c"}},{"code_sha256_prefix":"6409ed070d8dcb85","entry":"GetCompilationInfoForFile","repo":"BYVoid/OpenCC","repo_kind":"found_in_text","path":"deps/google-benchmark/.ycm_extra_conf.py","file_url":"https://github.com/BYVoid/OpenCC/blob/HEAD/deps/google-benchmark/.ycm_extra_conf.py","link_basis":"harvester_set","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":"6409ed070d8dcb85"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}