{"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/r2gengpt-radiology-report-generation-with","title":"R2GenGPT: Radiology Report Generation with Frozen LLMs","arxiv_id":"2309.09812","date":"2023-09-18","proceeding":null,"authors":["Zhanyu Wang","Lingqiao Liu","Lei Wang","Luping Zhou"],"abstract":"Large Language Models (LLMs) have consistently showcased remarkable generalization capabilities when applied to various language tasks. Nonetheless, harnessing the full potential of LLMs for Radiology Report Generation (R2Gen) still presents a challenge, stemming from the inherent disparity in modality between LLMs and the R2Gen task. To bridge this gap effectively, we propose R2GenGPT, which is a novel solution that aligns visual features with the word embedding space of LLMs using an efficient visual alignment module. This innovative approach empowers the previously static LLM to seamlessly integrate and process image information, marking a step forward in optimizing R2Gen performance. R2GenGPT offers the following benefits. First, it attains state-of-the-art (SOTA) performance by training only the lightweight visual alignment module while freezing all the parameters of LLM. Second, it exhibits high training efficiency, as it requires the training of an exceptionally minimal number of parameters while achieving rapid convergence. By employing delta tuning, our model only trains 5M parameters (which constitute just 0.07\\% of the total parameter count) to achieve performance close to the SOTA levels. Our code is available at https://github.com/wang-zhanyu/R2GenGPT.","url_abs":"https://arxiv.org/abs/2309.09812v2","url_pdf":"https://arxiv.org/pdf/2309.09812v2.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":"r2gengpt-radiology-report-generation-with","repo_url":"https://github.com/wang-zhanyu/r2gengpt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"none","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2309.09812","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2309.09812"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/wang-zhanyu/r2gengpt","reach":{"status":"ok","spdx":"BSD-3-Clause"}}],"summary":{"ran_draft_wrong":6,"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":13,"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":"4c1b107103b7c856","entry":"cook_refs","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/cider/cider_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/cider/cider_scorer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"4c1b107103b7c856"}},{"code_sha256_prefix":"3573c4bc85f65dfd","entry":"cook_test","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/cider/cider_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/cider/cider_scorer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"3573c4bc85f65dfd"}},{"code_sha256_prefix":"7ac8f8f3cb7d5bc6","entry":"cook_test","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/bleu/bleu_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/bleu/bleu_scorer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"7ac8f8f3cb7d5bc6"}},{"code_sha256_prefix":"ba9348aac71a3f72","entry":"dec","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/meteor/meteor.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/meteor/meteor.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ba9348aac71a3f72"}},{"code_sha256_prefix":"eaab50b5d9fea58a","entry":"enc","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/meteor/meteor.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/meteor/meteor.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"eaab50b5d9fea58a"}},{"code_sha256_prefix":"b2cebd35fd97df2a","entry":"get_linear_schedule_with_warmup","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"lightning_tools/optim.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/lightning_tools/optim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"b2cebd35fd97df2a"}},{"code_sha256_prefix":"d5b1a71db63d18e1","entry":"lr_lambda","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"lightning_tools/optim.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/lightning_tools/optim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d5b1a71db63d18e1"}},{"code_sha256_prefix":"d6f215d655a876ee","entry":"my_lcs","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/rouge/rouge.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/rouge/rouge.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"d6f215d655a876ee"}},{"code_sha256_prefix":"ec4448373d72d636","entry":"precook","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/bleu/bleu_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/bleu/bleu_scorer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"ec4448373d72d636"}},{"code_sha256_prefix":"9560e3e3e41bc1b2","entry":"precook","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/cider/cider_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/cider/cider_scorer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"9560e3e3e41bc1b2"}},{"code_sha256_prefix":"19fe2eef2172c7b6","entry":"add_callbacks","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"lightning_tools/callbacks.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/lightning_tools/callbacks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"19fe2eef2172c7b6"}},{"code_sha256_prefix":"7586e1d32f7325f7","entry":"cook_refs","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"evalcap/bleu/bleu_scorer.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/evalcap/bleu/bleu_scorer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"7586e1d32f7325f7"}},{"code_sha256_prefix":"09f67cc7856cfd02","entry":"create_datasets","repo":"wang-zhanyu/r2gengpt","repo_kind":"official","path":"dataset/data_helper.py","file_url":"https://github.com/wang-zhanyu/r2gengpt/blob/HEAD/dataset/data_helper.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"BSD-3-Clause","inline_ok":true,"mcp_get_code":{"code_sha256":"09f67cc7856cfd02"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}