Papers › Generating Radiology Reports via Memory-driven Transformer

Generating Radiology Reports via Memory-driven Transformer

30 Oct 2020EMNLP 2020 11arXiv:2010.16056archive 2025-07-28

Zhihong Chen, Yan Song, Tsung-Hui Chang, Xiang Wan

Medical imaging is frequently used in clinical practice and trials for diagnosis and treatment. Writing imaging reports is time-consuming and can be error-prone for inexperienced radiologists. Therefore, automatically generating radiology reports is highly desired to lighten the workload of radiologists and accordingly promote clinical automation, which is an essential task to apply artificial intelligence to the medical domain. In this paper, we propose to generate radiology reports with memory-driven Transformer, where a relational memory is designed to record key information of the generation process and a memory-driven conditional layer normalization is applied to incorporating the memory into the decoder of Transformer. Experimental results on two prevailing radiology report datasets, IU X-Ray and MIMIC-CXR, show that our proposed approach outperforms previous models with respect to both language generation metrics and clinical evaluations. Particularly, this is the first work reporting the generation results on MIMIC-CXR to the best of our knowledge. Further analyses also demonstrate that our approach is able to generate long reports with necessary medical terms as well as meaningful image-text attention mappings.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.16056")

Code

Syntology Ran 26 of 31 code samples harvested from 3 repositories linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 3 ran · violated contract; 5 ran · our draft was wrong; 16 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 6 samples from 1 repository, 4 ran; found in paper text by Syntology: 24 samples from 1 repository, 21 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhjohnchan/R2Gen officialmentioned in papermentioned on GitHubpytorch report
jbdel/vilmedic mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

31 samples harvested; 26 ran; 2 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
3ran · violated contract
5ran · our draft was wrong
16ran
5unverified

Licence: 25 of the 31 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

clones zhjohnchan/R2Gen/modules/encoder_decoder.py official repository ran · our draft was wrong no licence file found · pointer only · 6cdff690e29fd5e2 · report
evaluation jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) ran MIT (permissive) · 90a7d4b65fda9753 · report
get_n_params jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2ce55e4c4a74c7fe · report
get_special_token_ids jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) ran MIT (permissive) · 9b96271c0ebfc544 · report
readable_size jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 38f8d7385c92b38e · report
DecoderModel jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) unverified MIT (permissive) · f582c3015724586c · report
RRG jbdel/vilmedic/vilmedic/models/rrg/RRG.py community (archive-listed) unverified MIT (permissive) · 0832ed0f66780e17 · report
ConditionalLayerNorm cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 83685e82672f8403 · report
ConditionalSublayerConnection cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 66e1facaefcc74bf · report
Decoder cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 5dd90b8f3465a5d4 · report
DecoderLayer cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 4d87926b21da466a · report
Embeddings cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · f573a122811ee3d9 · report
Encoder cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · c7161e97934abeef · report
EncoderLayer cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · bc4566e8723dd002 · report
LayerNorm cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · f3db48bfa8d0418c · report
MultiHeadedAttention cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · b79314b6538aca28 · report
PositionalEncoding cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 94ae2b884db29276 · report
PositionwiseFeedForward cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 31ac554b956f2c39 · report
RelationalMemory cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · c72b4b36f72a8b7f · report
SublayerConnection cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · 777d5cf5b297d69f · report
Transformer cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · metamorphic tier: deterministic no licence file found · pointer only · e0bad05390dca30a · report
attention cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 83045338e170467c · report
length_average cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · violated contract fingerprinted no licence file found · pointer only · 506f510e45fc90c3 · report
length_wu cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · honoured contract fingerprinted no licence file found · pointer only · 1b78d09288063680 · report
penalty_builder cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · our draft was wrong no licence file found · pointer only · 8345317ad8bce91f · report
repeat_tensors cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · honoured contract no licence file found · pointer only · b317109a6e9a36e3 · report
split_tensors cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · violated contract fingerprinted no licence file found · pointer only · 936178513bc7b9d7 · report
subsequent_mask cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology ran · violated contract no licence file found · pointer only · 66fbf162663d4cff · report
AttModel cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology unverified no licence file found · pointer only · a5dc837f604a531e · report
CaptionModel cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology unverified no licence file found · pointer only · 929610ebb467db68 · report
EncoderDecoder cuhksz-nlp/R2Gen/modules/encoder_decoder.py found in paper text by Syntology unverified no licence file found · pointer only · fe63f5b4d1609641 · report

Tasks

DecoderText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections