Recycling is an iterative refinement mechanism in AlphaFold2 where the model's initial predicted 3D structure is fed back as input for multiple passes through the neural network. This process progressively improves the accuracy of the final atomic coordinates by allowing the model to refine its predictions based on its own previous outputs, effectively bootstrapping structural accuracy without requiring additional evolutionary information.
Glossary
Recycling

What is Recycling?
Recycling is a core iterative mechanism in AlphaFold2 where the model's initial predicted structure is fed back as input for multiple passes, progressively improving the accuracy of the final 3D coordinates.
During each recycling iteration, the predicted pairwise distances and orientations from the previous pass are combined with the original multiple sequence alignment (MSA) and template features. This enables the Invariant Point Attention (IPA) module to resolve structural inconsistencies and improve the pLDDT confidence scores, typically converging within three to four cycles to produce a highly accurate protein structure.
Key Characteristics of Recycling
Recycling in AlphaFold2 is a core architectural mechanism where the model's initial predicted structure is iteratively fed back as input, enabling progressive refinement of 3D coordinates over multiple passes.
Iterative Feedback Loop
Recycling transforms AlphaFold2 from a single-pass predictor into a recurrent architecture. The output pair representation and single representation from one iteration become the input for the next, allowing the model to refine its own predictions without external intervention. This loop is unrolled for a fixed number of iterations (typically 3-4) during both training and inference.
Gradient Flow Through Time
During training, gradients flow through all recycling iterations, effectively creating a deep computational pathway that learns to correct systematic errors. Key aspects:
- The model learns to identify and fix stereochemical violations
- Early iterations focus on global topology, later iterations on local geometry
- Truncated backpropagation is used to manage memory constraints
Pair Representation Update
The pair representation—an N×N matrix encoding relationships between all residue pairs—is the primary carrier of information across recycling iterations. It is updated by:
- Adding the output pair representation to the input via a residual connection
- No learned gating or weighting is applied; the addition is direct
- This allows the model to accumulate pairwise distance and orientation constraints incrementally
Single Representation Refinement
The single representation (MSA row-wise embeddings) is also recycled, but with a learned gating mechanism. The model computes a gated sum of the previous and current single representations, allowing it to selectively retain or overwrite per-residue information. This prevents the accumulation of noise while preserving useful structural signals.
Recycling Without MSA Enrichment
In AlphaFold-Multimer and newer variants, recycling operates without re-querying the MSA. The initial MSA embedding is computed once, and subsequent iterations refine the structure purely from the pair and single representations. This decoupling:
- Reduces computational cost significantly
- Demonstrates that recycling learns a structure-conditioned refinement independent of evolutionary signal
- Enables faster inference for large complexes
Impact on Prediction Accuracy
Ablation studies show that removing recycling causes a significant drop in TM-score, particularly for:
- Hard targets with few homologous sequences
- Multi-domain proteins requiring correct inter-domain packing
- Side-chain accuracy and rotamer recovery Recycling provides the largest accuracy gain after the Evoformer itself, making it indispensable for atomic-accuracy predictions.
Frequently Asked Questions
The recycling mechanism is a critical innovation in AlphaFold2 that enables iterative refinement of predicted protein structures. By feeding the model's output back as input for multiple passes, the architecture progressively resolves structural details that would be inaccessible in a single forward pass.
Recycling is an iterative refinement mechanism in AlphaFold2 where the model's predicted 3D protein structure is fed back as input for multiple successive passes through the neural network. During each recycling iteration, the pair representation—which encodes inter-residue relationships—and the initial single representation are updated with information from the previous cycle's output. The model uses the predicted backbone coordinates and pairwise distance distributions from the prior iteration to refine its internal representations. This process is repeated for a fixed number of cycles (typically 3-4), with each iteration progressively improving the accuracy of the final 3D coordinates. The key insight is that early iterations establish a coarse topological scaffold, while later iterations resolve fine-grained structural details like side-chain orientations and hydrogen bonding networks. The recycling mechanism is not a post-prediction refinement step but is integrated directly into the Evoformer architecture, allowing gradients to flow through all recycling iterations during training.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Recycling vs. Other Refinement Strategies
Comparison of iterative recycling in AlphaFold2 against alternative protein structure refinement methodologies.
| Feature | Recycling | Energy Minimization | Diffusion Denoising |
|---|---|---|---|
Core Mechanism | Iterative re-feeding of output as input | Gradient descent on physics-based force field | Iterative denoising of random coordinates |
Input Requirement | Pair representation and initial backbone | Predicted or experimental structure | Random noise or template coordinates |
Gradient Propagation | |||
Learned Priors | |||
Stereochemical Correction | |||
Conformational Diversity | Single refined state | Single local minimum | Diverse ensemble generation |
Typical Iterations | 3-4 cycles | Thousands of steps | 50-200 timesteps |
Computational Cost per Step | Moderate | Low | High |
Related Terms
Explore the core mechanisms and validation concepts that interact with the recycling process to achieve atomic-accuracy protein structure prediction.
IPA (Invariant Point Attention)
The core spatial reasoning mechanism that operates alongside recycling. IPA performs attention over the 3D coordinates of residues, ensuring that predictions remain invariant to global rotation and translation. It uses a novel architecture that represents each residue as a local reference frame, allowing the model to reason about pairwise spatial relationships without being confused by the protein's overall orientation in space.
Multiple Sequence Alignment (MSA)
The primary evolutionary input that recycling refines. MSAs align homologous protein sequences to identify co-evolutionary couplings between residue pairs. These couplings provide distance constraints that guide the initial structure prediction. The recycling mechanism iteratively re-interprets the MSA representation, allowing the model to extract increasingly subtle co-evolutionary signals that were not resolved in the first pass.
pLDDT (Predicted Local Distance Difference Test)
The per-residue confidence metric that validates recycling's effectiveness. pLDDT scores range from 0 to 100 and estimate the local accuracy of the prediction. Regions with low pLDDT scores often correspond to intrinsically disordered regions or domains that require more recycling iterations to converge. Monitoring pLDDT improvement across recycling passes provides a diagnostic for whether the model is genuinely refining the structure or oscillating.
Energy Minimization
The final refinement step applied after recycling concludes. While recycling operates on the neural network's internal representations, energy minimization uses a physics-based force field to resolve steric clashes and bond geometry violations in the output coordinates. This post-processing step corrects unphysical local geometries that the recycling process may have introduced, ensuring the final model is chemically plausible.
Conformational Ensemble
A limitation that recycling alone cannot fully address. Proteins are dynamic molecules that sample multiple structural states. Standard AlphaFold2 recycling typically converges to a single static structure, potentially missing alternative conformations relevant to function. Recent advances combine recycling with denoising diffusion models to generate diverse ensembles that capture the intrinsic flexibility of the protein.
CASP (Critical Assessment of Structure Prediction)
The blind benchmarking experiment that validated recycling's contribution. CASP14 demonstrated that AlphaFold2's iterative refinement approach achieved median GDT_TS scores above 90 across all targets, effectively solving the single-domain protein folding problem. The recycling mechanism was identified as a critical component enabling the model to escape local minima and achieve atomic accuracy on challenging targets.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us