{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Ramith Hettiarachchi — Scholarly Posts",
  "description": "Curated research notes, scholarly explainers, and independent findings.",
  "user_comment": "This is the blog's curated full-text scholarly feed.",
  "home_page_url": "https://new.ramith.fyi/",
  "feed_url": "https://new.ramith.fyi/feed.json",
  "language": "en",
  "authors": [
    {
      "name": "Ramith Hettiarachchi",
      "url": "https://new.ramith.fyi/"
    }
  ],
  "items": [
    {
      "id": "https://new.ramith.fyi/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/",
      "url": "https://new.ramith.fyi/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/",
      "title": "ESM-2 (evolutionary-scale prediction of atomic level protein structure with a language model)",
      "content_html": "<h2>ESM-2 (evolutionary-scale prediction of atomic level protein structure with a language model)</h2><div class=\"scholarly-post-meta\" data-title=\"ESM-2 (evolutionary-scale prediction of atomic level protein structure with a language model)\" data-slug=\"2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model\" data-authors=\"Ramith Hettiarachchi\" data-date-published=\"2023-02-10\" data-language=\"en\" data-status=\"published\" data-license=\"CC-BY-4.0\" data-collections=\"scholarly\" data-doi><p class=\"scholarly-post-byline\">By Ramith Hettiarachchi ⋅ Published <time datetime=\"2023-02-10\">2023-02-10</time></p></div><aside class=\"post-callout post-callout--note\"><div class=\"post-callout__icon\" aria-hidden=\"true\">✏️</div><div class=\"post-callout__body\"><em>I write these paper “summaries” for me to clearly understand the paper by summarizing the paper and synthesizing the literature. I hope they might be helpful to some readers too. If you have feedback, please write to <a href=\"mailto:hello@ramith.fyi\">hello@ramith.fyi</a>.</em></div></aside><h3>Highlights of the ESM-2 Paper</h3><aside class=\"post-callout post-callout--highlight\"><div class=\"post-callout__icon\" aria-hidden=\"true\">💡</div><div class=\"post-callout__body\"><ul><li>Train protein language models up to 15B parameters.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-1\" id=\"fnref-1\">1</a></sup><span class=\"marginnote\" id=\"fn-1\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-1\">1</a></sup> The largest language model for proteins at the time.</span></li><li>Infer structure directly from a primary sequence using a language model.</li><li>Leverage evolutionary patterns captured by the language model to produce atomic-level predictions.</li><li>Achieve an order-of-magnitude speedup—up to 60×—in high-resolution structure prediction.</li><li>Present the ESM Metagenomic Atlas: structural characterization of more than 617 million metagenomic proteins.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-2\" id=\"fnref-2\">2</a></sup><span class=\"marginnote\" id=\"fn-2\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-2\">2</a></sup> Of these, 225 million were high-confidence predictions. See the <a href=\"https://esmatlas.com/\">ESM Metagenomic Atlas</a>.</span><sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-3\" id=\"fnref-3\">3</a></sup><span class=\"marginnote\" id=\"fn-3\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-3\">3</a></sup> Metagenomics describes both sequencing DNA purified directly from a natural environment and the research field studying microbial communities in their natural state (Godzik, 2011).</span></li></ul></div></aside><h3>1. Introduction</h3><h4>1.1 — Structure and function are hidden in sequences</h4><p>Biological properties of proteins influence which positions in a sequence can undergo mutations. From these observations, we can identify evolutionary patterns such as coevolution and conservation of amino acids. These patterns can help us infer properties of protein function and structure.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-4\" id=\"fnref-4\">4</a></sup><span class=\"marginnote\" id=\"fn-4\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-4\">4</a></sup> In essence, information about protein structure and function is hidden in sequences.</span></p><p>Usually, we align sequences before drawing conclusions about function and structure. This intermediate representation, known as a <em>multiple sequence alignment (MSA)</em>, has a high time complexity because we must first search for related sequences and then align them.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-5\" id=\"fnref-5\">5</a></sup><span class=\"marginnote\" id=\"fn-5\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-5\">5</a></sup> The search process in AlphaFold and RoseTTAFold pipelines can take more than ten minutes.</span></p><p>What if we can get rid of this intermediate representation? That’s one aspect this paper accomplishes.</p><h4>1.2 — Large language models (LLMs)</h4><p>Historically, language models were pretrained using objectives such as predicting the next word in a sentence. Devlin et al.‘s <a href=\"https://arxiv.org/abs/1810.04805\">BERT</a> showed that masking some input tokens and predicting them—the masked-language-model objective, or MLM—is an effective pretraining strategy.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-6\" id=\"fnref-6\">6</a></sup><span class=\"marginnote\" id=\"fn-6\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-6\">6</a></sup> Unlike left-to-right pretraining, the MLM objective lets the representation combine both left and right context, enabling a deeply bidirectional Transformer (paraphrased from the BERT paper).</span></p><h4>1.3 — Contributions</h4><p>Inspired by this widely adopted strategy, the authors hypothesise that filling in missing amino acids might produce representations rich enough to infer structure. They therefore <strong>scale protein language models from 8 million parameters up to 15 billion parameters</strong>. Doing so reveals the following:</p><ul><li>Atomic-level structure prediction directly from sequence.</li><li>A strong correlation between perplexity and structure-prediction accuracy.</li><li>Up to 60× faster inference.</li><li><strong>No need to search</strong> for related sequences.</li></ul><p>Because this approach improves speed by one to two orders of magnitude and does not need an MSA, the authors expand structure prediction to the much larger and more diverse space of metagenomic proteins. In summary, they:</p><ul><li><p>Predict structures for more than 617 million sequences in MGnify90.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-7\" id=\"fnref-7\">7</a></sup><span class=\"marginnote\" id=\"fn-7\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-7\">7</a></sup> This took two weeks on 2,000 GPUs. 🤯</span></p><ul><li><p>Of those structures, 225 million are high-confidence predictions.</p><ul><li>76.8% are disjoint from UniRef90 at 90% sequence identity.</li><li>12.6% have no experimental ground truth.</li></ul></li></ul></li></ul><div class=\"post-embed\"><p class=\"post-embed__fallback\">Open <a href=\"https://esmatlas.com/explore\">ESM Metagenomic Atlas explorer</a> in a new tab.</p></div><h3>2. Method</h3><h4>2.1 — How does structure emerge from a language model trained on sequences?</h4><p>The ESM-2 language model is trained with approximately 65 million unique sequences.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-8\" id=\"fnref-8\">8</a></sup><span class=\"marginnote\" id=\"fn-8\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-8\">8</a></sup> The sequences were sampled with even weighting across approximately 43 million UniRef50 training clusters.</span> Because the MLM objective asks the model to predict missing amino acids using their neighboring context, the model must learn interdependencies between amino acids. Previous work—<a href=\"https://arxiv.org/abs/2006.15222\">[1]</a> and <a href=\"https://doi.org/10.1101/2020.12.15.422761\">[2]</a>—showed that Transformer models trained with MLM on protein sequences develop attention patterns that correspond to residue-residue contact maps.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-9\" id=\"fnref-9\">9</a></sup><span class=\"marginnote\" id=\"fn-9\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-9\">9</a></sup> I plan to write a separate article about this work.</span></p><p>After training the language model, the authors use the approach from <a href=\"https://doi.org/10.1101/2020.12.15.422761\">[2]</a> to compute contact maps from attention patterns. A logistic regression identifies contacts as follows.</p><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/contact-prediction-pipeline.png\" aria-label=\"Open full-size image: Annotated contact-prediction pipeline from Transformer attention maps\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/contact-prediction-pipeline.png\" alt=\"Annotated contact-prediction pipeline from Transformer attention maps\" loading=\"lazy\"></a><figcaption>Attention maps from a masked protein language model are symmetrized and passed to logistic regression to predict residue-residue contacts. Source figure: <a href=\"https://doi.org/10.1101/2020.12.15.422761\">Rao et al. (2020)</a> annotations added for this article.</figcaption></figure><h4>2.2 — What about atomic-level structure? (Enter ESMFold)</h4><p>The authors extract contact maps from attention patterns, but predicting atomic spatial coordinates requires an equivariant Transformer. They use the <a class=\"post-image-link post-image-link--text\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/alphafold-structure-module.png\" data-image-alt=\"Annotated AlphaFold structure module and invariant point attention diagram\" data-image-caption=\"AlphaFold structure module and invariant point attention.\"><em>structure module</em></a> introduced in <a href=\"https://doi.org/10.1038/s41586-021-03819-2\">AlphaFold</a>. This module projects atomic spatial coordinates from the language model’s internal representation. The complete architecture is called ESMFold.</p><p><em>Steps in ESMFold</em></p><ol><li value=\"1\">Process the sequence through ESM-2.</li><li value=\"2\">Pass the representation learned by ESM-2 through a series of <em>folding blocks</em>. Each block <a class=\"post-image-link post-image-link--text\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-folding-trunk-code.png\" data-image-alt=\"Annotated ESMFold folding-trunk and triangular-attention source code\" data-image-caption=\"Folding-trunk code mapped to the triangular self-attention block.\">sequentially updates</a> a sequence representation and a pairwise representation.</li><li value=\"3\">Pass the result to the structure module.</li><li value=\"4\">Repeat with three recycling steps. <a class=\"post-image-link post-image-link--text\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-recycling-code.png\" data-image-alt=\"Annotated ESMFold trunk code showing folding, structure prediction, and recycling\" data-image-caption=\"ESMFold folding-block iteration, structure-module call, and recycling.\">View annotated code.</a></li></ol><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-architecture.png\" aria-label=\"Open full-size image: ESMFold architecture with ESM-2, folding trunk, structure module, and recycling\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-architecture.png\" alt=\"ESMFold architecture with ESM-2, folding trunk, structure module, and recycling\" loading=\"lazy\"></a><figcaption>ESMFold architecture: ESM-2 representations pass through a folding trunk and an AlphaFold-derived structure module, with recycling. Source figure: <a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin et al. (2022)</a> annotations added for this article.</figcaption></figure><p>The supporting figures connect the structure-module diagram to implementation details. Select any image to open the full-resolution version.</p><div class=\"post-gallery\"><figure class=\"post-asset-figure\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/alphafold-structure-module.png\" aria-label=\"Open full-size image: Annotated AlphaFold structure module and invariant point attention diagram\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/alphafold-structure-module.png\" alt=\"Annotated AlphaFold structure module and invariant point attention diagram\" loading=\"lazy\"></a><figcaption>AlphaFold’s structure module and invariant point attention. Source figures: <a href=\"https://doi.org/10.1038/s41586-021-03819-2\">Jumper et al. (2021)</a>.</figcaption></figure><figure class=\"post-asset-figure\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-folding-trunk-code.png\" aria-label=\"Open full-size image: Annotated ESMFold folding-trunk and triangular-attention source code\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-folding-trunk-code.png\" alt=\"Annotated ESMFold folding-trunk and triangular-attention source code\" loading=\"lazy\"></a><figcaption>Mapping the folding trunk to its triangular self-attention block.</figcaption></figure><figure class=\"post-asset-figure\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-recycling-code.png\" aria-label=\"Open full-size image: Annotated ESMFold trunk code showing folding, structure prediction, and recycling\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-recycling-code.png\" alt=\"Annotated ESMFold trunk code showing folding, structure prediction, and recycling\" loading=\"lazy\"></a><figcaption>Folding-block iteration, the structure-module call, and recycling.</figcaption></figure></div><p><strong>Training:</strong> To train the structure model to obtain spatial coordinates, the authors use experimentally determined structures from the <a href=\"https://www.rcsb.org/\">Protein Data Bank</a>—approximately 25,000 clusters covering around 325,000 structures. This is augmented with 12 million structures predicted by AlphaFold2.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-10\" id=\"fnref-10\">10</a></sup><span class=\"marginnote\" id=\"fn-10\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-10\">10</a></sup> During training, predicted structures are sampled 75% of the time and real structures 25% of the time.</span></p><p><strong>Evaluation:</strong> 194 CAMEO proteins and 51 CASP14 proteins.</p><p>This language model based approach vastly simplifies the usual SOTA structure prediction process by eliminating the need for the following <span role=\"math\"><svg style=\"overflow: visible; width: 0.444em; height: 0.683em; display: block\" viewBox=\"0 0 4.884 7.513\" width=\"4.884pt\" height=\"7.513pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:h5=\"http://www.w3.org/1999/xhtml\"><g transform=\"matrix(1 0 0 -1 0 7.513)\"><use xlink:href=\"#g81528D04D7440E72A1EF226F0FBB6B39\" x=\"0\" y=\"0\" fill=\"#000000\" fill-rule=\"nonzero\"/></g><defs><symbol id=\"g81528D04D7440E72A1EF226F0FBB6B39\" overflow=\"visible\"><path d=\"M 0 0m 4.257 4.708c 0 0.275 -0.143 0.418 -0.44 0.418c -0.253 0 -0.891 -0.198 -1.232 -0.253c 0.011 0.264 0.055 0.616 0.121 1.056l 0.011 0.121c 0.077 0.539 0.121 0.946 0.121 1.21c 0 0.33 -0.132 0.495 -0.396 0.495c -0.275 0 -0.407 -0.165 -0.407 -0.495c 0 -0.462 0.231 -1.749 0.253 -2.387c -0.341 0.044 -1.001 0.253 -1.232 0.253c -0.253 0 -0.44 -0.176 -0.44 -0.407c 0 -0.275 0.143 -0.407 0.44 -0.407c 0.253 0 0.891 0.198 1.232 0.253c -0.022 -0.231 -0.055 -0.473 -0.099 -0.704c -0.099 -0.539 -0.154 -1.023 -0.154 -1.463c 0 -1.408 0.066 -2.915 0.209 -4.521c 0.022 -0.165 0.088 -0.253 0.187 -0.253c 0.077 0 0.132 0.033 0.165 0.11c 0.154 1.386 0.242 3.487 0.242 4.664c 0 0.462 -0.055 0.946 -0.154 1.452c -0.044 0.242 -0.077 0.484 -0.099 0.715c 0.341 -0.044 1.001 -0.253 1.232 -0.253c 0.242 0 0.44 0.154 0.44 0.396Z \"/></symbol></defs></svg></span>,</p><ul><li>External evolutionary databases</li><li>Multiple sequence alignments (MSAs)</li><li>Templates</li></ul><p>For example, <a href=\"https://doi.org/10.1038/s41586-021-03819-2\">AlphaFold</a> requires access to these resources.</p><h3>3. Results</h3><h4>3.1 — How well does it predict structures?</h4><p>As mentioned before, they evaluate performance on CAMEO and CASP14 proteins and check how well the structure was predicted using the TM-Score.</p><p>In predicting the structure just by single sequences, ESMFold achieves very good performance compared to AlphaFold and RoseTTAFold.</p><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-structure-performance.png\" aria-label=\"Open full-size image: ESMFold, AlphaFold2, and RoseTTAFold TM-score comparisons on CAMEO and CASP14\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-structure-performance.png\" alt=\"ESMFold, AlphaFold2, and RoseTTAFold TM-score comparisons on CAMEO and CASP14\" loading=\"lazy\"></a><figcaption>Single-sequence and full-pipeline TM-score comparisons on CAMEO and CASP14; point color encodes perplexity. Source: Figure 2B in <a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin et al. (2022)</a> annotations added for this article.</figcaption></figure><h4>3.2 — How important is the language model in the pipeline?</h4><p>The key question that arises is <strong>how important is the representation learnt by the LM for the task of structure prediction</strong> . To quantify this we need several metrics.</p><p>First, we need to characterize how well the language model understands protein sequences. This is where perplexity comes in. We already have the TM-score to measure how closely a predicted structure matches the ground truth.</p><p><strong>Thus, the graph to the right in Fig. 2B shows that,</strong></p><ul><li><strong>High ESMFold TM-Scores</strong> have <strong>low perplexity</strong> scores (numerically speaking, on CAMEO, Pearson correlation coefficient is −0.55 and in CASP14 it’s −0.67)</li></ul><aside class=\"post-callout post-callout--warning\"><div class=\"post-callout__icon\" aria-hidden=\"true\">✏️</div><div class=\"post-callout__body\"><p><strong>What’s perplexity?</strong></p><p>Perplexity describes how well a language model can predict a protein sequence. It ranges from 1 for a perfect model to 20 for random predictions; intuitively, it is the number of amino acids the model is choosing between at each prediction.</p></div></aside><h5>How can we achieve lower perplexity?</h5><p>We now know that a <em>better language model representation</em>—with lower perplexity—leads to better structure prediction. How can we obtain a better representation? 🤔 Is scaling all you need?</p><p>To answer this question, authors explore the effect of scaling and look at what happens to the following :</p><ul><li>Precision @ L</li><li>Change in perplexity</li></ul><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-scaling-contact-precision.png\" aria-label=\"Open full-size image: Scatter plots comparing long-range contact precision across ESM-2 model sizes\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-scaling-contact-precision.png\" alt=\"Scatter plots comparing long-range contact precision across ESM-2 model sizes\" loading=\"lazy\"></a><figcaption>Effect of scaling ESM-2 on long-range contact precision; point color shows the change in perplexity. Source: Figure 1D in <a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin et al. (2022)</a> annotations added for this article.</figcaption></figure><p>The authors plot how long-range precision at L changes when moving from a smaller model on the x-axis to a larger model on the y-axis. Points above the diagonal suggest that scaling improves <em>long-range precision at L</em> for some proteins.</p><h5>Is scaling the answer?</h5><p>It is not that simple. Although P@L increases with scale for some proteins, the number of evolutionarily related sequences tells another story. Language models struggle when less relevant training data is available for a query. This is intuitive—more study, better results—but does it reflect memorization rather than understanding?</p><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-sequence-depth-contact-precision.png\" aria-label=\"Open full-size image: Long-range contact precision plotted against the number of related sequences\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-sequence-depth-contact-precision.png\" alt=\"Long-range contact precision plotted against the number of related sequences\" loading=\"lazy\"></a><figcaption>Long-range precision at L as a function of the number of related sequences for several ESM-2 model sizes. Source: <a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin et al. (2022)</a> annotations added for this article.</figcaption></figure><p>The authors could have used a different color scheme: white points indicate no change in perplexity, while a point on the diagonal indicates no improvement in long-range precision at L.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-11\" id=\"fnref-11\">11</a></sup><span class=\"marginnote\" id=\"fn-11\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-11\">11</a></sup> It would be useful if the plot made the proportion of proteins with improved performance directly visible, although that might make it too cluttered.</span></p><h4>3.3 — What about prediction speed?</h4><ul><li>A protein with 384 residues on one NVIDIA V100 GPU: 14.2 seconds.<sup class=\"footnote-ref\"><a class=\"footnote-ref-link\" href=\"#fn-12\" id=\"fnref-12\">12</a></sup><span class=\"marginnote\" id=\"fn-12\"><sup><a class=\"footnote-ref-link\" href=\"#fnref-12\">12</a></sup> This is a 6× speedup compared with AlphaFold2.</span></li><li>Shorter sequences  60x speedup</li></ul><figure class=\"post-asset-figure\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-inference-speed.png\" aria-label=\"Open full-size image: Log-scale inference time comparison for ESMFold, AlphaFold, and RoseTTAFold\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esmfold-inference-speed.png\" alt=\"Log-scale inference time comparison for ESMFold, AlphaFold, and RoseTTAFold\" loading=\"lazy\"></a><figcaption>Inference time versus sequence length. ESMFold is fastest for shorter sequences, while its pair representation makes long sequences more expensive. MSA search time for the other methods is not included.</figcaption></figure><h4>3.4 — Comparison with other protein language models</h4><figure class=\"post-asset-figure fullwidth\"><a class=\"post-image-link post-image-link--figure\" href=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-model-comparison.png\" aria-label=\"Open full-size image: Table comparing ESM-2 sizes and other protein language models\"><img src=\"https://new.ramith.fyi/assets/posts/2023-02-10-esm-2-evolutionary-scale-prediction-of-atomic-level-protein-structure-with-a-language-model/esm2-model-comparison.png\" alt=\"Table comparing ESM-2 sizes and other protein language models\" loading=\"lazy\"></a><figcaption>Validation perplexity, long-range contact precision, and structure-prediction results across ESM-2 sizes and comparison protein language models. Source: <a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin et al. (2022)</a> annotations added for this article.</figcaption></figure><h3>4. Conclusion</h3><p>It’s remarkable that these authors scale protein language models and it has resulted in learning structure hidden through databases of sequences, and thus we do not need to depend onto the MSA.</p><p>Is it because, the model has learnt to obtain the signal which we previously obtained through MSAs? What can we tell about the performance of sequences that had less number of evolutionary sequences in training data? why does it still struggle to obtain decent performance. It would be very interesting to analyze these directions.</p><p>Thanks for reading this, hope you found it useful. If you have any suggestions/ comments please share below.</p><h3>References</h3><ol><li><a href=\"https://doi.org/10.1101/2022.07.20.500902\">Lin, Zeming, et al. “Evolutionary-scale prediction of atomic level protein structure with a language model.” bioRxiv (2022): 2022-07.</a></li><li><a href=\"https://twitter.com/Eric_Wallace_/status/1592929060539469824\"><a href=\"https://twitter.com/Eric_Wallace_/status/1592929060539469824\">https://twitter.com/Eric_Wallace_/status/1592929060539469824</a></a></li></ol><footer class=\"scholarly-license\">Unless otherwise noted, the original text of this post is licensed under the <a href=\"https://creativecommons.org/licenses/by/4.0/\">Creative Commons Attribution 4.0 International License</a>. Separately credited material may have different rights. <a href=\"https://new.ramith.fyi/license/\">Licensing details</a>.</footer>",
      "date_published": "2023-02-10T00:00:00Z",
      "authors": [
        {
          "name": "Ramith Hettiarachchi",
          "url": "https://new.ramith.fyi"
        }
      ],
      "language": "en",
      "tags": [
        "scholarly"
      ]
    }
  ]
}
