{"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/chartreader-a-unified-framework-for-chart","title":"ChartReader: A Unified Framework for Chart Derendering and Comprehension without Heuristic Rules","arxiv_id":"2304.02173","date":"2023-04-05","proceeding":"ICCV 2023 1","authors":["Zhi-Qi Cheng","Qi Dai","SiYao Li","Jingdong Sun","Teruko Mitamura","Alexander G. Hauptmann"],"abstract":"Charts are a powerful tool for visually conveying complex data, but their comprehension poses a challenge due to the diverse chart types and intricate components. Existing chart comprehension methods suffer from either heuristic rules or an over-reliance on OCR systems, resulting in suboptimal performance. To address these issues, we present ChartReader, a unified framework that seamlessly integrates chart derendering and comprehension tasks. Our approach includes a transformer-based chart component detection module and an extended pre-trained vision-language model for chart-to-X tasks. By learning the rules of charts automatically from annotated datasets, our approach eliminates the need for manual rule-making, reducing effort and enhancing accuracy.~We also introduce a data variable replacement technique and extend the input and position embeddings of the pre-trained model for cross-task training. We evaluate ChartReader on Chart-to-Table, ChartQA, and Chart-to-Text tasks, demonstrating its superiority over existing methods. Our proposed framework can significantly reduce the manual effort involved in chart analysis, providing a step towards a universal chart understanding model. Moreover, our approach offers opportunities for plug-and-play integration with mainstream LLMs such as T5 and TaPas, extending their capability to chart comprehension tasks. The code is available at https://github.com/zhiqic/ChartReader.","url_abs":"https://arxiv.org/abs/2304.02173v1","url_pdf":"https://arxiv.org/pdf/2304.02173v1.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":"chartreader-a-unified-framework-for-chart","repo_url":"https://github.com/zhiqic/chartreader","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"chart-understanding","task_name":"Chart Understanding"},{"task_slug":"derendering","task_name":"Derendering"},{"task_slug":"language-modelling","task_name":"Language Modelling"},{"task_slug":"optical-character-recognition","task_name":"Optical Character Recognition (OCR)"}],"methods":[{"method_slug":"adafactor","method_name":"Adafactor"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"glu","method_name":"Gated Linear Unit"},{"method_slug":"inverse-square-root-schedule","method_name":"Inverse Square Root Schedule"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"sentencepiece","method_name":"SentencePiece"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"t5","method_name":"T5"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2304.02173","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2304.02173"}},"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/zhiqic/ChartReader","reach":{"status":"ok"}}],"summary":{"ran":6,"ran_draft_wrong":10,"unverified":3},"by_repo_kind":{"official":{"samples":19,"ran":16,"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":19,"samples":[{"code_sha256_prefix":"f38738fe47817e7a","entry":"MergeUp","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f38738fe47817e7a"}},{"code_sha256_prefix":"3b97a8d623c47811","entry":"_decode_detection_or_group","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3b97a8d623c47811"}},{"code_sha256_prefix":"dc38208382de06e0","entry":"_gather_feat","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dc38208382de06e0"}},{"code_sha256_prefix":"a448187aa3f6e3bd","entry":"_nms","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a448187aa3f6e3bd"}},{"code_sha256_prefix":"7b0736d76dca1d86","entry":"_topk","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7b0736d76dca1d86"}},{"code_sha256_prefix":"4c16f46577c4cb06","entry":"_transpose_and_gather_feat","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4c16f46577c4cb06"}},{"code_sha256_prefix":"a542d7eb0ee49b8c","entry":"convolution","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a542d7eb0ee49b8c"}},{"code_sha256_prefix":"07dc6e1aa50ef5ea","entry":"kp_module","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"07dc6e1aa50ef5ea"}},{"code_sha256_prefix":"0b3c93f7cc9d13d8","entry":"make_cnv_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0b3c93f7cc9d13d8"}},{"code_sha256_prefix":"904abe6b3419d489","entry":"make_inter_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"904abe6b3419d489"}},{"code_sha256_prefix":"667c807b82c75575","entry":"make_kp_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"667c807b82c75575"}},{"code_sha256_prefix":"09a07cdf34e60fa0","entry":"make_layer_revr","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"09a07cdf34e60fa0"}},{"code_sha256_prefix":"4cbabbb2008c1207","entry":"make_merge_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cbabbb2008c1207"}},{"code_sha256_prefix":"9e52b93fcd8b5b4e","entry":"make_pool_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9e52b93fcd8b5b4e"}},{"code_sha256_prefix":"5e355fb4db10b370","entry":"make_unpool_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5e355fb4db10b370"}},{"code_sha256_prefix":"c83b00138de50a06","entry":"residual","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c83b00138de50a06"}},{"code_sha256_prefix":"e444e9442edaa756","entry":"_decode_detection","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e444e9442edaa756"}},{"code_sha256_prefix":"12f2801becbfa539","entry":"kp_detection","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"12f2801becbfa539"}},{"code_sha256_prefix":"74bee3912d0b766e","entry":"make_layer","repo":"zhiqic/ChartReader","repo_kind":"official","path":"models/py_utils/kp.py","file_url":"https://github.com/zhiqic/ChartReader/blob/HEAD/models/py_utils/kp.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"74bee3912d0b766e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}