H3BERTa: A CDR-H3-specific language model for antibody repertoire analysis

Chiara Rodella1,2, Thomas Lemmin1

  • 1Institute of Biochemistry and Molecular Medicine (IBMM), University of Bern, Bühlstrasse 28, 3012 Bern, Switzerland.

Antibodies are central to immune defense and therapeutic design, yet predicting functional sequences remains challenging. Deep learning models trained on full variable regions often struggle due to sparse experimental data, signal dilution from conserved framework residues, and extreme diversity of hypervariable loops. The heavy-chain complementarity-determining region 3 (CDR-H3) is the most variable segment, shaping antigen specificity and immune diversity. Here, we present H3BERTa, a language model trained solely on CDR-H3 sequences to assess the extent of biological information encoded by this region. H3BERTa embeddings recapitulate immunologically relevant features, including J-gene usage, inferred B cell maturation state, and antigen binding. Pseudo-perplexity profiles enable repertoire analysis, distinguishing healthy from human immunodeficiency virus type 1 (HIV-1)-derived sequences and suggesting measurable immune response signatures. These embeddings support classifiers for broadly neutralizing antibodies using limited labeled data, highlighting utility for antibody discovery. CDR-H3 alone encodes a rich immunological signal, which H3BERTa captures, offering a focused tool for repertoire analysis and antibody engineering.

Related Concept Videos

Antibody Structure and Classes01:25

Antibody Structure and Classes

Antibodies, also known as immunoglobulins, are produced by B cells in response to foreign substances, such as bacteria and viruses. These proteins are critical for recognizing and neutralizing these substances, protecting the body from potential harm.
The basic structure of an antibody consists of four protein chains: two identical heavy chains and two identical light chains. These chains are held together by disulfide bonds and other non-covalent interactions, forming a Y-shaped structure.
Antibody Structure01:10

Antibody Structure

Overview
Antibodies, also known as immunoglobulins (Ig), are essential players of the adaptive immune system. These antigen-binding proteins are produced by B cells and make up 20 percent of the total blood plasma by weight. In mammals, antibodies fall into five different classes, which each elicits a different biological response upon antigen binding.
The Y-Shaped Structure of Antibodies Consists of Four Polypeptide Chains
Antibodies consist of four polypeptide chains: two identical heavy...
Antibody Structure01:10

Antibody Structure

Overview
Antibodies, also known as immunoglobulins (Ig), are essential players of the adaptive immune system. These antigen-binding proteins are produced by B cells and make up 20 percent of the total blood plasma by weight. In mammals, antibodies fall into five different classes, which each elicits a different biological response upon antigen binding.
The Y-Shaped Structure of Antibodies Consists of Four Polypeptide Chains
Antibodies consist of four polypeptide chains: two identical heavy...
Diversity of Antigen Receptors01:28

Diversity of Antigen Receptors

Antigen receptors are essential components of the immune system crucial in defending the body against foreign invaders. These receptors are present on the surface of B and T cells, enabling them to recognize antigens and mount an appropriate immune response.
Before encountering any antigen, lymphocytes express these receptors. On B cells, the antigen receptor is a membrane-bound antibody molecule called BCR; on T cells, it is a T cell receptor or TCR. B and T cell receptors are composed of two...