AntiFold

AntiFold

Peer-reviewed

Summary card

ПолеЗначение
Год / version2025 / NR
Last verified2026-08-13
Что генерируетFv/VHH sequences, per-residue probabilities, sampled masked variants
ФорматыFv and VHH/nanobody structures
De novo или optimizationMostly redesign of an existing structural template
DOI10.1093/bioadv/vbae202
Paperhttps://doi.org/10.1093/bioadv/vbae202
GitHub / repohttps://github.com/oxpig/AntiFold
Service / docsNR
ЛицензияBSD-3-Clause
Доступность / commercial-useCode + web service

Задача и generated object

Used in these tasks: Fixed-backbone inverse folding, Structure-aware дизайн antibody sequence, Генерация CDR sequence

Part of these workflows: Antibody inverse folding / masked CDR redesign

ПолеЗначение
Required inputSolved or predicted antibody structure; optional antigen context
ConditioningCDR/framework masks, fixed residues, optional antigen
FixedBackbone coordinates; typically most of the framework unless unmasked
EditableMasked CDR/framework residues
GeneratedAmino-acid identities at masked positions
Single mutationsYes
Combinatorial mutationsYes
Multi-objectiveNo explicit multi-objective loop

Architecture and operating principle

Author-reported / Implementation-derived interpretation
ПолеЗначение
Base architectureESM-IF1
Model typeInverse folding
RepresentationResidue graph + backbone coordinates
Generation unitAmino-acid token
ConditioningBackbone, chain identity, antigen context
OutputConditional sequence distribution
SamplingTemperature-based categorical sampling
Internal scorerModel log-likelihood
Structure generationНет

Input representation

На вход подаётся не «просто структура», а backbone-level residue graph: координаты тяжёлых атомов остова, маски проектируемых позиций, идентификаторы цепей и, опционально, antigen coordinates. Author-reported: Fv and VHH supported; optional antigen context.

ПолеЗначение
Node featuresResidue identity (when observed), backbone geometry features inherited from ESM-IF1
Edge / pair featuresGeometric edges / GVP messages between neighbouring residues

Encoder и decoder

Геометрический GVP encoder из ESM-IF1 кодирует локальные ориентации и расстояния. Implementation-derived interpretation: antibody fine-tune не меняет сам класс encoder, а адаптирует веса к SAbDab-like structures.

ПолеЗначение
EncoderGVP geometric encoder (from ESM-IF1)
DecoderAutoregressive Transformer over amino-acid tokens

Latent or generative state

Дискретные amino-acid tokens. Геометрия не сэмплируется.

Conditioning mechanism

Coordinate conditioning через geometric edges; residue-level masks; framework можно фиксировать; antigen — optional geometric context, не sequence-only prompt.

Generation mechanism

Autoregressive decoding по residues либо masked redesign выбранных CDR/framework позиций. Backbone остаётся clamped.

Sampling: Per-residue categorical sampling from conditional softmax; masks keep framework/CDR subsets fixed

Training objectives

Cross-entropy sequence recovery. Negative non-binding antigens не используются как training signal (NR / not claimed).

Losses: Cross-entropy over amino-acid tokens

Mathematical details: NR

Integrated evaluation

Likelihood ranking is post hoc relative to geometry: it does not update backbone. No docking, no AF in-loop required. Zero-shot affinity correlation must not be read as demonstrated affinity improvement.

Architectural limitations

Архитектурная особенностьВозможное ограничение
Fixed-backbone conditioningНельзя исследовать новую CDR topology.
Residue-level representationFull-atom interactions моделируются лишь косвенно.
Training on antibody structuresDataset bias и слабое покрытие редких formats возможны.
Likelihood rankerLearned score может быть miscalibrated вне training distribution.

Uses these architecture components: Inverse folding, Geometric transformers

Generator versus evaluation

ComponentRoleArchitecture classIntegrated or externalRequired or optionalInfluences generation or post hocRuntime included or excluded
AntiFold inverse-folding samplerprimary_generatorESM-IF1 fine-tuned on antibody structuresintegratedrequiredgenerationincluded
Conditional probabilities; zero-shot affinity correlation is only a scoreintegrated_scorerNRintegratedoptionalpost_hocunknown
Independent antibody structure/complex validation and experimentsmandatory_external_dependencyNRexternalrequiredpost_hocexcluded
Experimental binding/function assaysexperimental_validationNRexternalrequiredpost_hocexcluded

Training data и biases

ПолеЗначение
Training dataAntibody structures used to fine-tune ESM-IF1 (exact split sizes: NR here)
PreprocessingNR
Negative examplesNR
Fine-tuningYes — ESM-IF1 → AntiFold
Label requirementsStructure-derived sequences; no wet-lab affinity labels required for training
Training hardwareNR
Training timeNR

Inference hardware и runtime

ПолеЗначение
Candidate countNR
Batch sizeNR
Generation stepsNR
RecyclesNR
SizeNR
Reported runtimeNR
Runtime boundaryDoes not include downstream complex prediction or assays
CPUNR
GPUNR
VRAMNR
RAMNR
DiskNR
DatabasesNone for inference beyond the model weights

Experimental evidence

ПолеЗначение
Evidence class2 retrospective antibody evaluation
RetrospectiveNo prospective wet-lab validation in primary paper
Prospective bindingNR
Prospective functionNR
DevelopabilityNR
Tested design countNo prospective wet-lab validation in primary paper
Success criterionImproved CDR recovery and retrospective mutation ranking; not demonstrated affinity improvement
Independent validationNR
SummaryImproved CDR recovery and retrospective mutation ranking; not demonstrated affinity improvement

Limitations and failure modes

Deployment: Immediate retrospective evaluation

Reproducibility, license, commercial use

ПолеЗначение
Repohttps://github.com/oxpig/AntiFold
LicenseBSD-3-Clause
Commercial-use statusCode + web service

Alternative tools: ProteinMPNN, ESM-IF1

Complementary: RFantibody, DiffAb

Related: ESM-IF1, ProteinMPNN, IgLM

Not directly comparable with

EvoDiff, FrameDiff, ProGen / ProGen2, RFdiffusion, RFdiffusion All-Atom (RFdiffusionAA)
Сравнение допустимо только внутри совместимых категорий. Runtime и quality AntiFold vs RFantibody нельзя читать как одну шкалу: разные starting points и generated objects.

Depends on these external modules

Inverse folding, CDR, Framework, Likelihood / log-probability, Conditioning

Primary paper и полный список источников

AntiFold: improved structure-based antibody design using inverse folding

Source matrix: landscape xlsx, last verified 2026-08-13.

Детальный source-grounded разбор

partially verified Последняя сверка источников: 2026-08-27. arXiv HTML 2405.03370 включая Supplementary Methods прочитан. OUP Bioinformatics Advances HTML блокировался Cloudflare. Код antifold/main.py и README просмотрены (commit 789d467); веса model.pt и полный ESM encoder не дизассемблировались.

Недоступные или неполные источники

ИсточникПочему недоступенЧто использовано вместо
https://academic.oup.com/bioinformaticsadvances/article/5/1/vbae202/8090019Cloudflare / HTML недоступенarXiv 2405.03370 HTML + SI methods в том же документе
Полный binary checkpoint internalsНе разбиралсяАрхитектура по SI: ESM-IF1 4 GVP + 8+8 Transformer

AntiFold — antibody-specific inverse folding: fine-tune ESM-IF1 на solved и predicted Fv/VHH. Генерирует sequences (logits / sampled FASTA) при фиксированном backbone. Не генерирует структуру. Zero-shot корреляция log-likelihood с DMS affinity — score, не demonstrated affinity engineering.

Происхождение источников

МеткаИсточникСсылкаПримечание
[PAPER]Høie, Hummer et al., arXiv:2405.03370 / Bioinformatics Advances 10.1093/bioadv/vbae202https://arxiv.org/abs/2405.03370NR
[CODE]https://github.com/oxpig/AntiFoldhttps://github.com/oxpig/AntiFoldmaster 789d46786624c01eb44f177ef4c0deeeb6e77469
[DOC]README: independent benchmarks listed (Li 2025 PLOS ONE; Clifford 2025 Sci Adv) — papers not fully readhttps://github.com/oxpig/AntiFoldNR
ПолеЗначение
Репозиторийhttps://github.com/oxpig/AntiFold
Commit789d46786624c01eb44f177ef4c0deeeb6e77469
Ветка / tagmaster
ЛицензияBSD 3-Clause (README / OPIG download)

Проверенные файлы реализации:

1. Что именно делает инструмент

[DOC]Вход: PDB/CIF variable domain (IMGT 1–128 рекомендуется для region sampling); цепи H/L или nanobody; optional antigen chain. Выход: per-residue log-probabilities/CSV, perplexity, sampled FASTA для выбранных IMGT regions. Фиксируется: backbone coordinates. Изменяется: amino-acid identities на маске. Parent-based / template-based, не de novo fold. README Features/Input; PAPER Figure 1 caption

2. Архитектура в одном абзаце

[SI]Fine-tune ESM-IF1: 4 GVP-GNN + 8 Transformer encoder + 8 decoder, инвариантность к rotation/translation входа. Комплекс VH/VL: конкатенация координат L после H с 10 gap tokens (missing coordinates). Обучение CE на masked positions; финальные augmentations: span+shotgun mask, CDR-weighted 3:1, layer-wise LR decay $\alpha=0.85$, OAS predicted structures. Sampling: $\mathrm{logits}/t$, default $t=0.20$. Supplementary Methods 0.1.3–0.1.6

4. Математическая модель

$$p(Y\mid X)=\prod_i p(y_i\mid y_{
[SI] ESM-IF1 / AntiFold [SI]. AntiFold SI Eq. (1), по Hsu et al.
СимволТипОпределение
$X$coordinatesN, Cα, C (и gap как missing coords)
$Y$tokensamino acids
$$\mathrm{LR}_i = \mathrm{LR}\times \alpha^{i},\quad \alpha=0.85,\; i=0\ldots 20$$
[SI] tool-specific [SI]. Layer-wise decay, SI Eq. (2).
$$p_i(a)=\mathrm{softmax}(\mathrm{logits}_i)_a,\quad \tilde{\ell}=\mathrm{logits}/t$$
[SI] tool-specific [SI]. SI Eq. (4–5, 7). Temperature как в ProteinMPNN.
$$\mathrm{perplexity}=2^{-\sum_{a=1}^{20}p(a)\log_2 p(a)}$$
[SI] tool-specific [SI]. SI Eq. (6) — энтропийная толерантность позиции, не affinity.

5. Физическое устройство состояния

[PAPER]Состояние генерации: дискретная sequence на фиксированных backbone atoms. Side-chain coordinates не сэмплируются. Antigen — дополнительные residues в geometric context, если указан. Experimental fitness не является переменной модели.

6. Физико-химическая интерпретация

[PAPER]Явно: идентичность АК и геометрия остова. Неявно: статистика antibody structures (SAbDab + OAS/ABB2). Электростатика/растворитель/энтропия не считаются. Antigen chain улучшает корреляцию likelihood с lysozyme DMS для CDR, не являясь ΔG. Results 3.3

7. Training

[PAPER]Данные (чтобы сравнить с AbMPNN): 2074 solved SAbDab комплексов (protein antigen, resolution <5 Å, redundancy filter AbMPNN) + 147458 OAS paired, ABB2 models. Split 80/10/10 по 90% concatenated CDR identity (Dreyer et al.). Methods 2.1; SI 0.1.1–0.1.2

[SI]Без ESM-IF1 pretraining CDRH3 AAR validation 31.5% vs 58.4% с OAS+augmentations (Tables S1–S4 в SI; цифры из HTML). Early stopping: 10 epochs без снижения val loss.

NRHardware/time: NR. Negative antigens как specificity loss: не заявлены.

8. Inference

[DOC]Default sampling temp 0.20; --num_seq_per_target default 0 (только logits). Evaluation в paper: 20 sequences, t=0.20, 56 X-ray <2.5 Å test structures; refold ABodyBuilder2; CDR RMSD после FW align. --esm_if1_mode подменяет веса. GPU/MPS поддерживаются README. Batch size default 1.

10. Почему, по мнению авторов, метод эффективен

[PAPER]Mechanism: antibody-specific fine-tune + CDR-weighted masking + predicted structures; ESM-IF1 prior с 12M structures.

[PAPER]Claim: лучше AAR на CDR (CDRH3 60% vs AbMPNN 56% vs ESM-IF1 43% на AbMPNN test, Table 1 HTML) и выше Spearman на Warszawski DMS (0.42 vs ~0.30–0.33); refold RMSD 0.95 vs native ABB2 0.63.

[PAPER]Causal support: ablation masking/OAS/pretrain — validation AAR (SI tables), не prospective binding. Overall benchmark Table 1 не изолирует каждый модуль на affinity. Prospective wet-lab designs отсутствуют в primary paper.

12. Ablation analysis

[SI]SI Tables S1–S4: span-masking, extra random mask, 3:1 CDR weight, layer-wise decay, OAS predicted structures, train from scratch. Метрика — CDRH3 AAR на validation, не Kd. Тест на predicted vs experimental structures: AntiFold ΔAAR ~0.5%, AbMPNN хуже на experimental (−2.7%). Methods 2.2; Results 3.1

13. What the model does not represent

14. Evidence and limitations

[DOC]Авторы обсуждают de-selection loss-of-binding и ортогональность к PLM scores. Independent: README указывает Li et al. 2025 PLOS ONE и Clifford et al. 2025 Sci Adv — не читались здесь, не цитировать их цифры.

[INTERPRETATION]Ограничения: зависимость от входной структуры и IMGT numbering для regions; dataset bias SAbDab/OAS; likelihood miscalibration вне распределения.

15. Reproducibility

[CODE]BSD-3, pip package, webserver OPIG, weights https://opig.stats.ox.ac.uk/data/downloads/AntiFold/models/model.pt . Commit 789d4678. Colab в README. Training scripts полного fine-tune в просмотренном дереве antifold/ не выделены как отдельный train.py в listing — воспроизведение обучения NR без дальнейшего поиска.

Физико-химический смысл

Признак или операция моделиФизико-химическая интерпретацияПрямо / косвенно / внешнеВажное ограничение
Backbone N,CA,Cостов Fvпрямоside chains не генерируются
CDRH3 tokensгипервариабельный loop sequenceпрямо как labelsуникальные H3 topologies в train ограничены
Antigen coordsгеометрический контекст эпитопаoptional direct coordsне affinity

Модульная схема

МодульКласс моделиВходВыходОбучается или frozenGenerator или evaluator
ESM-IF1 geometric encoder + AR decoderGVP-GNN + Transformer (fine-tuned)backbone coords, masks, optional antigenper-position logits over amino acidsfine-tuned from ESM-IF1generator (sequence)
Temperature samplercategorical samplinglogits, IMGT region mask, TFASTAнеобучаемыйgenerator
ABodyBuilder2 (в статье, не обязателен в CLI)structure predictordesigned sequencepredicted Fvexternalevaluator (retrospective RMSD)
Per-position perplexity / log-likelihoodderived scoresoftmax probabilitiesscalar ranksn/aevaluator only

Generator versus evaluator

КомпонентРольIntegrated или externalRequired или optionalВлияет на generation или только ранжирует после
AntiFold networksequence generator / logit modelintegratedrequiredgeneration
log-likelihood / perplexityrankerintegratedoptional for samplingpost_hoc ranking; не двигает backbone
ABodyBuilder2 / AF (paper eval)structure predictorexternaloptionalpost_hoc
Wet-lab affinityexperimentalexternalrequired для binding claimsне входит в модель

Claim–evidence matrix

УтверждениеПредполагаемый механизмТип evidenceДатасет / экспериментComparatorМетрика / результатИсточникОговорка
Fine-tune улучшает CDRH3 AAR vs ESM-IF1 и AbMPNNantibody data + masking recipe + ESM-IF1 init2. retrospective benchmarkAbMPNN test split / SAbDabProteinMPNN, ESM-IF1, AbMPNNCDRH3 AAR 60% vs 43% ESM-IF1 vs 56% AbMPNN (Table 1)[PAPER] Results 3.1 Table 1Recovery ≠ function; split CDR identity 90%
Designed sequences preserve backboneIF likelihood + low T sampling2. retrospective benchmark56 X-ray <2.5 Å; 20 seq; ABB2 refoldProteinMPNN, ESM-IF1, AbMPNN, native ABB2mean CDR RMSD 0.95 vs native 0.63[PAPER] Results 3.2Self-consistency через predictor, не crystallography designed variants
Zero-shot IF probabilities предсказывают AbAg affinitylog-likelihood variants2. retrospective benchmarkWarszawski 2019 lysozyme DMS 2209 variants; Hie 2023 124 variants / 7 AbsESM-IF1, AbMPNN, ProteinMPNN, ESM-2Spearman 0.418; improved-group median rank 80%[PAPER] Results 3.3Не prospective design; корреляция ≠ Kd; de-selection LoF
Pretraining ESM-IF1 необходимtrain from scratch3. ablation evidencevalidation CDRH3 AARfrom-scratch 31.5% vs full recipe 58.4%AAR[SI] Table S4 / Methods 2.2Validation AAR, не affinity
Prospective affinity improvement demonstrated in primary paper—1. только architectural rationalen/an/aне показано[PAPER] Discussion / Availability: no wet-lab campaignPrimary paper retrospective only

Различия между статьёй и реализацией

Версия статьиCommit репозиторияCheckpoint / modelФайлРазличиеПрактическое следствие
arXiv 2405.03370 SI architecture = ESM-IF1789d4678models/model.pt (AntiFold) vs --esm_if1_modeantifold/main.pyCLI может считать ESM-IF1 без antibody fine-tuneСравнение с paper AntiFold невалидно, если включён esm_if1_mode

Схемы information flow

flowchart TD
  PDB["Fv/VHH PDB backbone"] --> ENC["GVP + Transformer encoder"]
  ENC --> DEC["AR decoder logits"]
  DEC --> CSV["Per-residue log p"]
  DEC --> SMP["Temperature sample on IMGT mask"]
  CSV --> RANK["Likelihood ranker"]
  SMP --> FASTA["FASTA sequences"]
  FASTA --> ABB["Optional ABB2 — evaluator"]
Information flow AntiFold. ABB2 не часть обязательного CLI generator. Источник схемы: arXiv 2405.03370 SI + README

Источники

  1. [1] Høie, Hummer et al. AntiFold. arXiv:2405.03370; Bioinformatics Advances 10.1093/bioadv/vbae202 · DOI · источник
  2. [2] oxpig/AntiFold commit 789d46786624c01eb44f177ef4c0deeeb6e77469 · источник
  3. [3] Hsu et al. ESM-IF1, ICML 2022 · источник

Нерешённые научные вопросы