learn/model families
Transformer
A transformer is a type of neural network that reads a whole sequence at once and learns which parts of it should influence which others, rather than stepping through in order.
What it is
Many kinds of scientific data come as sequences: the chain of chemical units in a protein, the atoms listed in a crystal, the words in a paper. A transformer is a way of building a learned model, a program whose internal settings are tuned by showing it examples, for data of this shape. Its central trick is called attention. For every item in the sequence, the model works out a weight for every other item, saying how much that other item matters here. It then mixes the items together according to those weights. Stacking many such layers lets distant parts of the sequence inform each other directly.
Because attention compares all items with all others in one go, a transformer does not have to pass information along the chain step by step, and the comparisons can be computed in parallel on the hardware used for this work. The same machinery also works on things that are not really sequences. An image can be cut into small patches and treated as a bag of items; a molecule or a crystal can be treated as a set of atoms with their positions supplied as extra input. This is why one architecture turns up in fields that otherwise share nothing.
Why scientists use it
Scientists reach for transformers when the meaning of one part of the data depends on far-off parts. In a protein, two units at opposite ends of the chain may sit side by side once it folds. In a crystal, whether a pore will hold a gas depends on the arrangement of atoms around it, not on their order in a file. Older designs handled such long-range links poorly, either forgetting them or only seeing a fixed neighbourhood. Attention lets the model learn which links matter instead of being told in advance.
The architecture also suits a two-stage way of working that scientists find useful. A transformer can first be trained on a large pile of unlabelled data, learning general regularities, and then adjusted on the much smaller labelled set that a particular study can afford to produce. In that sense it stands in for an expert's sense of what to look at: a learned substitute for the hand-written rules and features that researchers would otherwise have to invent for each new problem.
In the record
Limits
A transformer learns patterns in the data it was shown; it does not learn the physics or chemistry behind them, and it will give a confident answer on inputs unlike anything in its training. The attention weights are often read as showing what the model relied on, but they are not a reliable explanation. Comparing every item with every other is costly as sequences grow, so long inputs must be shortened or approximated. And the architecture itself solves nothing without large, well-made training data, which in many sciences is the harder problem.
Written by AIxSci: the background from general knowledge, the examples from checked records.
By field
- Transformers in structural biology and protein science
- Transformers in materials and computational chemistry
- Transformers in astronomy and astrophysics
- Transformers in weather, climate and oceans
Named models
Every article
aix-00302
A test suite for judging how well AI reads crystal symmetry from X-ray patterns
aix-00283
Deep learning forecast of El Niño suggests Indian and Atlantic oceans extend warning time
aix-00292
Neural network forecasts daily sea surface temperature up to 90 days ahead
aix-00295
Diffusion model trained on past weather produces 15-day global ensemble forecasts
aix-00296
Neural networks trained on 39 years of weather data produce week-ahead global forecasts
aix-00298
Generative AI model forecasts UK rainfall 90 minutes ahead from radar images
aix-00299
Neural network forecasts weather straight from raw satellite and station observations
aix-00280
Neural network splits forest carbon measurements into uptake and release
aix-00279
Machine learning predicts where dopant atoms sit in hexaferrite crystals before refinement
aix-00277
Software reads AlphaFold predictions to infer how protein complexes assemble
aix-00273
Deep learning model flags bacterial proteins likely to drive infection
aix-00221
Neural network measures rotation periods for Kepler's main-sequence stars
aix-00210
Language models suggest ingredients and firing temperatures for inorganic materials recipes
aix-00206
Neural network designs five hard metallic glasses, all confirmed by experiment
aix-00195
Researchers read an AlphaFold model of honey bee vitellogenin's tail end
aix-00158
Structure predictions place an uncharacterised human protein in the BRICHOS family
aix-00156
Protein language model and two classifiers predict where ATP binds on proteins
aix-00155
Neural network predicts crystal density of candidate explosives from molecular structure
aix-00154
AlphaFold models used to map membrane-crossing segments in human proteins
aix-00151
Classifier sorts true from false AlphaFold predictions of human protein pairs
aix-00149
AlphaFold2 used to predict the shapes of hepatitis E virus copying proteins
aix-00162
Software splits coiled-coil proteins into short windows for AlphaFold to model
aix-00164
Five structure-prediction models tested on 509 protein–peptide pairs under altered inputs
aix-00169
AlphaFold's confidence scores used to predict which disordered protein segments bind LC8
aix-00171
Neural network fills gaps in protein maps from raw diffraction data
aix-00145
Repeating-coil proteins designed from random sequences using AlphaFold2 in an evolution loop
aix-00143
Software models of two cancer proteins used to rank mutations by likely effect
aix-00140
Model labels which protein residues are active sites and what job they do
aix-00138
AI-labelled protein pairs used to test how well function predictors handle unknown proteins
aix-00136
Diffusion model generates synthetic images of the Sun sorted by flare strength
aix-00174
Simulations probe shape-shifting of opium poppy's reticuline-flipping enzyme using a predicted structure
aix-00180
Teaching protein language models to rank mutants from a few dozen lab measurements
aix-00181
Protein language model embeddings used to predict succinylation sites in proteins
aix-00185
Protein language model trained to spot lactylated lysines in rice proteins
aix-00186
Language model trained on protein sequences predicts shape and behaviour of disordered proteins
aix-00188
Machine learning sorts antibody heavy chains by the germ they target
aix-00189
Benchmarking AI tools that predict and design peptides for cell-surface receptors
aix-00190
A transformer model segments cryo-electron tomograms from three viewing directions at once
aix-00129
Neural networks sort supernovae and estimate their distances from brightness alone
aix-00117
Deep learning model predicts polymer heat-softening across 48,208 designed candidates
aix-00115
A shared test set for predicting which enzyme carries out a reaction
aix-00112
Protein language model embeddings tested against classical descriptors for spotting resistance genes
aix-00110
Deep learning trained on robotic peptide mapping predicts where antibody proteins degrade
aix-00100
Astronomers test pre-trained image models for sifting telescope alerts
aix-00096
Two protein design models redesigned T cell receptor contact points on solved structures
aix-00092
Cryo-EM maps and AlphaFold models explain how two bacterial helper proteins activate an enzyme
aix-00083
A compact neural network learns to generate shape-shifting protein structures
aix-00081
Language models trained on protein sequences used to predict sugar-attachment sites
aix-00072
Attention patterns inside a protein language model used to cut sequences into reusable units
aix-00065
Model predicts how fast an enzyme works on a substrate, with uncertainty attached
aix-00061
A search engine for radio galaxy shapes, built on a fine-tuned image-text model
aix-00056
Deep learning tool predicts how single mutations weaken protein partnerships
aix-00052
Benchmark measures how well AlphaFold predicts antibody-antigen complex structures
aix-00036
Four million simulated X-ray patterns used to test 21 crystal-symmetry classifiers
aix-00015
Transformer model predicts how gas-storing crystals take up gases, replacing slow simulations
aix-00007
Neural network predicts protein atom positions from amino acid sequence alone
aix-00005
Cryo-tomography maps the myosin filament inside relaxed mouse heart muscle
aix-00003
Researchers map the sixteen-part Commander complex using crystals, cryo-EM and AlphaFold2
aix-00001