Machine learning · 2017

transformer

Transformer

A neural-network architecture from 2017 that relies entirely on self-attention, letting every element of a sequence exchange information directly with every other. It underlies large language models and entered medical imaging as the vision transformer and its descendants.

In 2017 eight researchers at Google, with Ashish Vaswani as first author, published "Attention Is All You Need" for machine translation. Recurrent networks had to process a sentence word by word; the transformer dropped recurrence entirely. Each layer combines multi-head self-attention with a position-wise feed-forward network, wrapped in residual connections and layer normalization, while positional encodings supply word order. The original model had six encoder and six decoder layers and scored 28.4 BLEU on WMT 2014 English–German translation.

Because nearly all of its computation is matrix multiplication, the transformer parallelizes well and scales to billions of parameters, which made it the standard skeleton of large language models and foundation models. In 2020 the vision transformer cut images into patches and treated them as words. Medical imaging followed with segmentation networks such as TransUNet, UNETR, and Swin UNETR, and with vision–language models that generate reports from images.

Sources
  1. Vaswani A, Shazeer N, Parmar N, et al. Attention is all you need. NeurIPS 2017 (arXiv:1706.03762). arxiv.org/abs/1706.03762
  2. Hatamizadeh A, Tang Y, Nath V, et al. UNETR: transformers for 3D medical image segmentation. WACV 2022:1748–1758. doi.org/10.1109/WACV51458.2022.00181

Key works · 16

Landmark2017NeurIPS 2017152,463 citations

Attention Is All You Need

Ashish Vaswani, Noam Shazeer … Illia Polosukhin

The Transformer uses multihead self-attention to exchange information within a sequence and encoder-decoder attention to condition the translation on its source. The architecture adds positional information and supports parallel training over sequence positions. The authors reported results on WMT English-to-German and English-to-French translation.

SignificanceThe paper established the combination of attention, positional encoding, and feed-forward layers that later vision transformers reused. ViT applies the encoder to image-patch sequences, and UNETR subsequently uses patch-based transformer encoding for volumetric medical segmentation.

Landmark2021ICLR 202172,289 citations

An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale

Alexey Dosovitskiy, Lucas Beyer … Thomas Unterthiner

ViT splits an image into fixed-size patches, projects them to tokens, and adds position embeddings before applying a Transformer encoder. The paper compares different pretraining scales and finds that large-scale pretraining makes the approach competitive on several downstream image classification benchmarks.

SignificanceThe work established a general vision backbone that represents an image as a sequence of patches. UNETR adapts that idea to volumetric segmentation, and Masked Autoencoders use a ViT encoder to learn patch representations by reconstructing missing image content.

Key2016arXiv14,938 citations

Layer Normalization

Jimmy Lei Ba, Jamie Ryan Kiros, Geoffrey E. Hinton

Layer normalization computes the mean and variance across a layer's units for one training example, making the operation independent of other examples in the batch. The authors applied it to recurrent networks and reported more stable dynamics and faster convergence in several sequence experiments.

SignificanceNormalization within an example made the operation usable in sequence models without relying on batch-level estimates. The original Transformer uses layer normalization after the residual addition in each sublayer, establishing a common use in later attention-based networks.

Key2019ClinicalNLP 2019 (NAACL)2,021 citations

Publicly Available Clinical BERT Embeddings

Emily Alsentzer, John R. Murphy … Matthew B. A. McDermott

The authors continued pretraining BERT on clinical notes and released versions trained on general clinical narratives and on discharge summaries specifically. Their clinical embeddings improved three of five evaluation tasks, whereas the two de-identification tasks did not benefit in the same way.

SignificanceThe public checkpoints gave later experiments a common starting point for using contextual representations of clinical text. Their mixed results also established a useful evaluation practice: test transfer to several clinical tasks, including tasks where the pretraining and evaluation corpora differ.

Key2020Scientific Reports993 citations

BEHRT: Transformer for Electronic Health Records

Yikuan Li, Shishir Rao … Dexter Canoy

BEHRT encoded longitudinal diagnosis sequences together with age and visit order, then learned representations with a transformer. Using records from nearly 1.6 million individuals, the authors tested prediction of diagnoses on later visits and reported improvements in average precision over earlier deep models.

SignificanceBEHRT demonstrated a way to pretrain on structured visit histories, making temporal coding an explicit design choice. Med-BERT situated its approach alongside BEHRT and examined transfer of pretrained structured-record representations to particular disease outcomes and across data sources.

Key2020EMNLP 2020735 citations

CheXbert: Combining Automatic Labelers and Expert Annotations for Accurate Radiology Report Labeling Using BERT

Akshay Smit, Saahil Jain … Matthew P. Lungren

CheXbert first trained a biomedical BERT model on labels supplied by a rules-based chest radiograph report labeler, then fine-tuned it with a smaller set of expert annotations augmented by back-translation. On the report labeling evaluation, it improved on the selected rules-based comparison.

SignificanceCheXbert supplied a reusable extractor of chest radiograph findings from text. It also became part of report generation evaluation, where the RadCliQ study tested whether CheXbert-derived representations and other metrics captured differences judged clinically important by radiologists.

Key2020EMNLP 20201,113 citations

Generating Radiology Reports via Memory-driven Transformer

Zhihong Chen, Yan Song … Xiang Wan

R2Gen used a relational memory to track information as a transformer decoder generated a radiology report, conditioning the decoder on that memory. On IU X-Ray and MIMIC-CXR, it improved language-generation scores and the paper’s clinical evaluations compared with the selected earlier methods.

SignificanceR2Gen provided a reusable transformer-based report generator and published comparative results on MIMIC-CXR. The later RadCliQ study used it alongside other systems to test how closely automatic report evaluation scores tracked clinically significant errors that radiologists identified.

Key2021npj Digital Medicine1,441 citations

Med-BERT: pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction

Laila Rasmy, Yang Xiang … Degui Zhi

Med-BERT adapted masked pretraining to structured diagnosis codes in electronic records of more than 28 million patients. The authors tested the effect of transferring these contextual representations to disease prediction tasks in two databases, reporting benefits when relatively few examples were available for fine-tuning.

SignificanceThe paper made transfer from large coded records to smaller cohorts a distinct experimental question. Its fine-tuning comparisons at different cohort sizes gave later structured-record studies a reference for measuring how much a pretrained representation helps when local training data are scarce.

Key2021NeurIPS 20211,558 citations

TransMIL: Transformer based Correlated Multiple Instance Learning for Whole Slide Image Classification

Zhuchen Shao, Hao Bian … Yongbing Zhang

TransMIL treated the tiles in a slide as correlated instances and used a transformer with spatial position encoding to aggregate their features for classification. Across three cancer datasets, its experiments reported improved slide prediction and faster convergence compared with the multiple-instance approaches evaluated.

SignificanceTransMIL made correlation-aware pooling available as a separate slide aggregator, so later experiments could vary the way tiles were pooled independently of the tile encoder. The TANGLE study, for example, compared transcriptomics-guided representations with CTransPath features aggregated by TransMIL.

Key2022npj Digital Medicine1,284 citations

A large language model for electronic health records

Xi Yang, Aokun Chen … Christopher Parisien

GatorTron was trained on more than 90 billion words, most of them from de-identified clinical notes, with models up to 8.9 billion parameters. The authors compared model sizes on concept and relation extraction, textual similarity, natural language inference, and medical question answering.

SignificanceThe study quantified scaling effects for a clinical-domain encoder across several tasks, including information extraction as well as question answering. The released models gave later researchers a reference for measuring how clinical pretraining and larger model capacity affect performance.

Key2023IEEE Transactions on Image Processing1,570 citations

nnFormer: Volumetric Medical Image Segmentation via a 3D Transformer

Hong-Yu Zhou, Jiansen Guo … Yizhou Yu

nnFormer interleaves convolution and attention, uses local and global volumetric attention, and replaces conventional skip fusion with attention between encoder and decoder features. The authors compare performance on three public datasets and assess whether ensembling with nnU-Net provides complementary predictions.

SignificancennFormer provided a concrete design for testing local, global, and skip attention within the same volumetric segmenter. Its released code and weights let researchers compare those design choices with convolutional pipelines and study whether different architectures yield complementary errors.

Key2025Nature246 citations

Learning the natural history of human disease with generative transformers

Artem Shmatko, Alexander Wolfgang Jung … Moritz Gerstung

Delphi-2M adapted a generative transformer to model the sequence and timing of coded diagnoses. It was trained on records from approximately 400,000 UK Biobank participants and evaluated on 1.9 million Danish residents without updating its parameters. It estimated rates for more than 1,000 diseases conditional on a person’s recorded history.

SignificanceThe work extended structured-record modeling to time-dependent prediction of many competing disease events and used a national registry to test transfer between populations. The same model could sample possible future trajectories, giving researchers a way to explore patterns of disease burden over time.

Notable2024ECCV 2024 (LNCS 15115)69 citations

HERGen: Elevating Radiology Report Generation with Longitudinal Data

Fuying Wang, Shenghui Du, Lequan Yu

HERGen used a group-causal transformer to incorporate imaging from a patient’s earlier exams and a contrastive objective to align image sequences with their reports. The authors derived a longitudinal subset of MIMIC-CXR and evaluated what happened when earlier exams were supplied for report generation.

SignificanceThe work treated previous exams as an explicit source of information whose contribution could be measured. Its longitudinal data construction and comparisons give researchers a way to assess report-generation methods that incorporate imaging history alongside the index study.

Notable2024Findings of ACL 202489 citations

RadGraph-XL: A Large-Scale Expert-Annotated Dataset for Entity and Relation Extraction from Radiology Reports

Jean-Benoit Delbrouck, Pierre Chambon … Louis Blankemeier

RadGraph-XL extended report annotation to chest radiographs, chest CT, abdominal and pelvic CT, and brain MRI. Radiologists annotated more than 410,000 entities and relations across 2,300 reports. The study trained extraction models and included an expert review on out-of-domain reports.

SignificanceThe dataset made structured extraction from reports an evaluation problem spanning several anatomies and modalities. The trained models and the MIMIC subset released through PhysioNet support tests of whether methods established for chest radiographs transfer to other report types.

Notable2026npj Digital Medicine26 citations

ClinicRealm: Re-evaluating large language models with conventional machine learning for non-generative clinical prediction tasks

Yinghao Zhu, Junyi Gao … Lifang Liang

ClinicRealm compared 15 generative language models, five BERT-style models, and 11 conventional approaches on clinical prediction using notes and structured records. Model rankings varied by input and the amount of training data available, and zero-shot models were competitive in some data-scarce settings.

SignificanceThe benchmark made clinical prediction measurable independently of medical question answering, using conventional models and zero-shot methods as direct comparisons. Its separation of notes from structured records provided a reference for evaluating models under different input and training-data conditions.

Notable2026Cell Genomics13 citations

Hist2Cell: Deciphering fine-grained cellular architectures from histology images

Weiqin Zhao, Zhuo Liang … Lequan Yu

Hist2Cell trained a vision graph transformer on matched histology and spatial transcriptomics from human lung and breast cancer to predict local cell-type abundance. Applied to The Cancer Genome Atlas without retraining, it produced estimated cell maps used to examine cellular colocalization and associations with survival.

SignificanceThe work made cell-type composition an explicit target of histology-based spatial prediction and examined the utility of the estimates in a much larger retrospective cohort. It illustrates how routinely collected slides can be analyzed for cell organization and survival associations using a model trained on paired measurements.