All models

AntiBERTa

Antibody-specific RoBERTa-style language model with a binary token classification head for paratope prediction.

Molecules, proteins and genomics · 311 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (29 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
85.2M
Operations
311
Framework
PyTorch
Recurrent
No
Published
Patterns 2022
Cited by
154 (as of 28 October 2026)
Authors
Jinwoo Leem, Laura S. Mitchell, James H. R. Farmery and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14693
Graph hash
46c335e53c9c821adc6b2babbc09bd2b31631ffae6958a07c9f72e94cd873d37
Skeleton hash
d8ecd6e7fa56d8ef833abb54862de709d22ebe49ae2e824f5f3c34e7d574407a
Architecture hash
0a25495705774a0702482db010b8fa7c0c6892ff61db0027f4957530f07ab9c4
Diagram SHA-256
ff8ff4006e44e30a576c507a6f478323be5064e65d596ccc4fcfc02ae04ee9e6
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

AntiBERTa is a language model trained only on antibody sequences, built to give a contextualized representation of B cell receptor (BCR) sequences. The paper frames the challenge as predicting BCR properties from the amino acid sequence alone. Pre-training used human antibody sequences spanning 61 studies from the OAS database. AntiBERTa is a single model trained on both heavy and light chains.

The architecture follows a modified setup of the original RoBERTa-base model. It has 12 layers with 12 attention heads per layer, a hidden dimension of 768 and a feed-forward dimension of 3072. The vocabulary has only 25 tokens, the standard 20 amino acids and five special tokens, with each amino acid acting as a token and no byte-pair encoding. The paper reports 86 million learnable parameters.

For its case study the paper fine-tunes AntiBERTa to predict paratope positions, framed as a binary token classification task. A binary classifier head is added on top of the 12 layers for this. The paper reports that the fine-tuned model outperformed public tools across multiple metrics. The authors note that this paratope prediction is antigen agnostic.

Key idea. AntiBERTa is an antibody-specific transformer language model whose pre-trained embeddings capture biologically relevant information and which can be fine-tuned to predict paratope positions.

  • AntiBERTa
  • antibody language model
  • B cell receptor
  • BCR
  • paratope prediction
  • antibody-specific transformer
  • protein language model
  • Antibody-specific Bidirectional Encoder Representation from Transformers
  • antibody sequence

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Leem_2022, title={Deciphering the language of antibodies using self-supervised learning}, volume={3}, ISSN={2666-3899}, url={http://dx.doi.org/10.1016/j.patter.2022.100513}, DOI={10.1016/j.patter.2022.100513}, number={7}, journal={Patterns}, publisher={Elsevier BV}, author={Leem, Jinwoo and Mitchell, Laura S. and Farmery, James H.R. and Barton, Justin and Galson, Jacob D.}, year={2022}, month=July, pages={100513} }