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 ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 31 code samples harvested from 3 repositories linked to this paper: 26 ran (of which 13 constructed an object rather than computing a result; 20 with no instrument failure: 3 honoured, 3 violated, 14 with no contract checked; 6 where Syntology's instrument failed) · 5 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

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

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

zhjohnchan/R2Gen officialmentioned in papermentioned on GitHubpytorchSyntology: 1 sample, 1 ran (1 instrument-failed) · 0 unverified report
jbdel/vilmedic mentioned on GitHubpytorchSyntology: 6 samples, 4 ran (3 instrument-failed) · 2 unverified 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 (of which 13 constructed an object rather than computing a result; 20 with no instrument failure: 3 honoured, 3 violated, 14 with no contract checked; 6 where Syntology's instrument failed) · 5 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
3ran · violated contract
5ran · our draft was wrong
1ran; the contract check could not run
14ran
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; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 6 samples that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity. A census tag appears when Syntology's census ran implementations with that name on one shared input per bucket: it gives how many were compared, from how many papers, and how many distinct outputs they produced, and names this sample's bucket when this sample was one of them.

zhjohnchan/R2Gen official repository 1 sample, 1 ran (1 instrument-failed) · 0 unverified
clones in 92 papers modules/encoder_decoder.py ran · our draft was wrong no licence file found · pointer only · 6cdff690e29fd5e2 · report fixture: signature module:callable/0/?, N:int/0/int · returned ModuleList · level recorded 2026-09-22
jbdel/vilmedic community (archive-listed) 6 samples, 4 ran (3 instrument-failed) · 2 unverified
evaluation in 57 papers vilmedic/models/rrg/RRG.py ran; the contract check could not run (RAISES) MIT (permissive) · 90a7d4b65fda9753 · report fixture: signature models:list/1/callable, config:EvalConfig/0/?, dl:MinimalDataLoader/0/? · returned dict · level recorded 2026-09-24
get_n_params in 21 papers vilmedic/models/rrg/RRG.py ran · our draft was wrong MIT (permissive) · 2ce55e4c4a74c7fe · report fixture: signature module:callable/0/? · returned str · level recorded 2026-09-22
get_special_token_ids vilmedic/models/rrg/RRG.py ran · honoured contract MIT (permissive) · 9b96271c0ebfc544 · report fixture: signature model:callable/0/?, tokenizer:Tokenizer/0/? · returned tuple · level recorded 2026-09-24
readable_size vilmedic/models/rrg/RRG.py ran · our draft was wrong fingerprinted MIT (permissive) · 38f8d7385c92b38e · report fixture: signature n:int/0/int · returned str · level recorded 2026-09-22
DecoderModel in 5 papers vilmedic/models/rrg/RRG.py unverified MIT (permissive) · f582c3015724586c · report
RRG vilmedic/models/rrg/RRG.py unverified MIT (permissive) · 0832ed0f66780e17 · report
cuhksz-nlp/R2Gen found in paper text by Syntology 24 samples, 21 ran (2 instrument-failed) · 3 unverified
ConditionalLayerNorm modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 83685e82672f8403 · report fixture: returned ConditionalLayerNorm · level recorded 2026-09-22
ConditionalSublayerConnection modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 66e1facaefcc74bf · report fixture: returned ConditionalSublayerConnection · level recorded 2026-09-22
Decoder in 210 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 5dd90b8f3465a5d4 · report fixture: returned Decoder · level recorded 2026-09-22
DecoderLayer in 43 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 4d87926b21da466a · report fixture: returned DecoderLayer · level recorded 2026-09-22
Embeddings in 15 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · f573a122811ee3d9 · report fixture: returned Embeddings · level recorded 2026-09-22
Encoder in 278 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · c7161e97934abeef · report fixture: returned Encoder · level recorded 2026-09-22
EncoderLayer in 73 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · bc4566e8723dd002 · report fixture: returned EncoderLayer · level recorded 2026-09-22
LayerNorm in 121 papers
census: 5 implementations from 5 papers, 5 distinct outputs across 3 buckets, one shared input per bucket
modules/encoder_decoder.py ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · f3db48bfa8d0418c · report fixture: returned LayerNorm · level recorded 2026-09-22
MultiHeadedAttention in 38 papers modules/encoder_decoder.py ran fingerprinted no licence file found · pointer only · b79314b6538aca28 · report fixture: signature query:Tensor/3/float, key:Tensor/3/float, value:Tensor/3/float, mask:NoneType/0/? · returned Tensor · level recorded 2026-09-24
PositionalEncoding in 126 papers
census: 13 implementations from 9 papers, 9 distinct outputs across 5 buckets, one shared input per bucket
modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 94ae2b884db29276 · report fixture: returned PositionalEncoding · level recorded 2026-09-22
PositionwiseFeedForward in 36 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 31ac554b956f2c39 · report fixture: returned PositionwiseFeedForward · level recorded 2026-09-22
RelationalMemory modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · c72b4b36f72a8b7f · report fixture: returned RelationalMemory · level recorded 2026-09-22
SublayerConnection in 16 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · 777d5cf5b297d69f · report fixture: returned SublayerConnection · level recorded 2026-09-22
Transformer in 173 papers modules/encoder_decoder.py ran · metamorphic tier: deterministic no licence file found · pointer only · e0bad05390dca30a · report fixture: returned Transformer · level recorded 2026-09-22
attention in 144 papers
census: 11 implementations from 10 papers, 7 distinct outputs across 5 buckets, one shared input per bucket
modules/encoder_decoder.py ran · our draft was wrong no licence file found · pointer only · 83045338e170467c · report fixture: signature query:Tensor/3/float, key:Tensor/3/float, value:Tensor/3/float, mask:Tensor/3/float, dropout:callable/0/? · returned tuple · level recorded 2026-09-22
length_average modules/encoder_decoder.py ran · violated contract fingerprinted no licence file found · pointer only · 506f510e45fc90c3 · report fixture: signature length:Tensor/0/float, logprobs:Tensor/1/float, alpha:float/0/float · returned Tensor · level recorded 2026-09-22
length_wu modules/encoder_decoder.py ran · honoured contract fingerprinted no licence file found · pointer only · 1b78d09288063680 · report fixture: signature length:int/0/int, logprobs:Tensor/2/float, alpha:float/0/float · returned Tensor · level recorded 2026-09-22
penalty_builder modules/encoder_decoder.py ran · our draft was wrong no licence file found · pointer only · 8345317ad8bce91f · report fixture: signature penalty_config:str/0/str · returned function · level recorded 2026-09-22
repeat_tensors modules/encoder_decoder.py ran · honoured contract fingerprinted no licence file found · pointer only · b317109a6e9a36e3 · report fixture: signature n:int/0/int, x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
split_tensors modules/encoder_decoder.py ran · violated contract fingerprinted no licence file found · pointer only · 936178513bc7b9d7 · report fixture: signature n:int/0/int, x:Tensor/2/float · returned tuple · level recorded 2026-09-22
subsequent_mask in 38 papers modules/encoder_decoder.py ran · violated contract no licence file found · pointer only · 66fbf162663d4cff · report fixture: signature size:int/0/int · returned Tensor · level recorded 2026-09-22
AttModel modules/encoder_decoder.py unverified no licence file found · pointer only · a5dc837f604a531e · report
CaptionModel modules/encoder_decoder.py unverified no licence file found · pointer only · 929610ebb467db68 · report
EncoderDecoder modules/encoder_decoder.py unverified no licence file found · pointer only · fe63f5b4d1609641 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.

3 assemblies on this paper: 3 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).

3 sibling assemblies for Memory-driven Transformer (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.

harvested Assembly for Memory-driven Transformer (graph method: Memory-driven Transformer). 28 bricks; individually on a fixture: 25 ran (of which 13 constructed an object rather than computing a result; 19 with no instrument failure: 2 honoured, 3 violated, 14 with no contract checked; 6 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. EncoderDecoder entry · level 0 · unverified · fe63f5b4d1609641
  2. AttModel helper · level 0 · unverified · a5dc837f604a531e
  3. Decoder model · level 1 · ran · 5dd90b8f3465a5d4
  4. DecoderLayer model · level 1 · ran · 4d87926b21da466a
  5. Embeddings model · level 1 · ran · f573a122811ee3d9
  6. Encoder model · level 1 · ran · c7161e97934abeef
  7. EncoderLayer model · level 1 · ran · bc4566e8723dd002
  8. MultiHeadedAttention model · level 1 · ran · b79314b6538aca28
  9. PositionalEncoding model · level 1 · ran · 94ae2b884db29276
  10. PositionwiseFeedForward model · level 1 · ran · 31ac554b956f2c39
  11. RelationalMemory model · level 1 · ran · c72b4b36f72a8b7f
  12. Transformer model · level 1 · ran · e0bad05390dca30a
  13. pack_wrapper helper · level 1 · ran; the contract check could not run · 537642f95d45af38
  14. subsequent_mask helper · level 1 · ran · violated contract · 66fbf162663d4cff
  15. CaptionModel helper · level 0 · unverified · 929610ebb467db68
  16. repeat_tensors helper · level 1 · ran · honoured contract · b317109a6e9a36e3
  17. LayerNorm helper · level 1 · ran · f3db48bfa8d0418c
  18. clones helper · level 1 · ran · our draft was wrong · 6cdff690e29fd5e2
  19. ConditionalSublayerConnection helper · level 1 · ran · 66e1facaefcc74bf
  20. SublayerConnection helper · level 1 · ran · 777d5cf5b297d69f
  21. attention helper · level 1 · ran · our draft was wrong · 83045338e170467c
  22. pad_unsort_packed_sequence helper · level 1 · ran · our draft was wrong · bfac58a04b6835f5
  23. sort_pack_padded_sequence helper · level 1 · ran · our draft was wrong · e56d2f9cbd9cb8b1
  24. penalty_builder helper · level 1 · ran · our draft was wrong · 8345317ad8bce91f
  25. split_tensors helper · level 1 · ran · violated contract · 936178513bc7b9d7
  26. ConditionalLayerNorm model · level 1 · ran · 83685e82672f8403
  27. length_average helper · level 1 · ran · violated contract · 506f510e45fc90c3
  28. length_wu helper · level 1 · ran · honoured contract · 1b78d09288063680

harvested Assembly for Memory-driven Transformer (graph method: Memory-driven Transformer). 4 bricks; individually on a fixture: 4 ran (of which 1 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 2 where Syntology's instrument failed) · 0 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. RelationalMemory entry · level 1 · ran · c72b4b36f72a8b7f
  2. MultiHeadedAttention model · level 1 · ran · b79314b6538aca28
  3. attention helper · level 1 · ran · our draft was wrong · 83045338e170467c
  4. clones helper · level 1 · ran · our draft was wrong · 6cdff690e29fd5e2

harvested Assembly for Memory-driven Transformer (graph method: Memory-driven Transformer). 6 bricks; individually on a fixture: 4 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 1 honoured, 0 violated, 0 with no contract checked; 3 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. RRG entry · level 0 · unverified · 0832ed0f66780e17
  2. DecoderModel helper · level 0 · unverified · f582c3015724586c
  3. evaluation helper · level 1 · ran; the contract check could not run (RAISES) · 90a7d4b65fda9753
  4. get_n_params helper · level 1 · ran · our draft was wrong · 2ce55e4c4a74c7fe
  5. get_special_token_ids helper · level 1 · ran · honoured contract · 9b96271c0ebfc544
  6. readable_size helper · level 1 · ran · our draft was wrong · 38f8d7385c92b38e

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2010.16056") returns these assemblies with each brick's role and wiring (how to connect).

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