Skip navigation
Language models can learn new tasks from just a few examples in their prompt, with no retraining.
0:00 / 0:20

Language models can learn new tasks from just a few examples in their prompt, with no retraining.

Garyk Brixi

@garykbrixi1.8K followers

Visit on X
364 likesDownloadOriginal post

39,582 views

Language models can learn new tasks from just a few examples in their prompt, with no retraining. This is called in-context learning (ICL). Now genome language models can do it too. With a handful of examples, Evo 2 ICL generates proteins, de novo antibodies, CRISPR-Cas9 loci, mitochondrial genomes and entire bacteriophages. We can even use the synthetic sequences iteratively to construct a chain-of-thought (CoT) and achieve harder design goals. New work with Yukun A. Hao, Brian Hie and team 🧵

27 Comments

Comments from the original post on X (Twitter)

  • Garyk Brixi's profile picture

    @garykbrixi

    Genome language models learn from DNA shaped by billions of years of evolution, but steering them can be challenging. Designing phages with Evo 2 previously meant fine-tuning on thousands of genomes, but ICL succeeds with just four examples across tasks.

    11 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    By concatenating a handful of related sequences in the prompt, Evo 2 appears to learn algorithms to recombine and mutate them, enabling efficient biological design across modalities.

    10 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Proteins: lanmodulins bind rare-earth metals and have been revolutionary for mining. The Hans family has only 14 examples. Prompted with these, up to 15% of generations pass HMM, novelty and diversity filters, and drawing more samples yields progressively more novel designs. The same holds for rubisco and for highly diverse families like anti-CRISPRs, where the diversity of the prompt trades yield against novelty.

    6 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Protein-RNA systems: neither Evo 1 nor Evo 2 could generate Cas9 from partial loci, and making EvoCas9 required fine-tuning on tens of thousands of loci. With four natural loci in the prompt, Evo 2 generates complete loci with a CRISPR array, tracrRNA and Cas9. The per-sample pass rate is lower than fine-tuning, but generating a library costs about 10× less compute with more diverse designs.

    7 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Antibodies: with 8 de novo binders in the prompt and no structural information, ICL produced the most passing designs per GPU-hour of any method we tested. Tt was the only method to find a unique hit for all 7 antigens, with designs contacting the intended epitope.

    6 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Whole genomes: four to eight natural ΦX174-like genomes in the prompt worked better than previous fine-tuning on thousands. 52% of designs pass the correctness filters, against 13% for the fine-tuned model, and a library of 64 novel genomes takes 2.1 GPU-hours instead of about 200. Just changing the prompt extends this to MS2, an RNA phage, and to M13, a filamentous phage.

    5 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Genome language models never see reasoning traces in training, but we can feed filtered designs back into the prompt to create a genomic chain-of-thought. This recursive approach helps designs reach regions of sequence space that neither natural prompts nor fine-tuning reach, the share of novel genomes rises from 0.25% to 2.9%, and predicted capsids still fold like ΦX174's.

    5 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    To make long prompts practical, we tasked Claude and GPT to build a vLLM implementation of Evo 2. Generation is up to 35× faster, and a single H100 handles prompts up to 1 Mb. Evo 2 can now even run on Colab GPUs.

    8 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    and yes, this is a lot faster than the evo2 kit from Fable

    8 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    What I shared in this thread was in silico, but Alex actually designed and tested cell-type specific enhancers with the same method! Read Brian's thread to learn more about our companion paper led by Alex, where we present ICL-designed enhancers that work in specific neurons, and how post-training can help enhance genomic learning and design capabilities.

    6 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    I think genomic ICL and CoT is a exciting new approach for generative biology. Beyond that, it points to new horizons for genomic modeling and reasoning. Links Genomic ICL: ICL design of enhancers: code: web app:

    12 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Alex is incredible: someone who will do mouse work, post-train, use agents to optimize infra, and read theoretical math in the same day, and it shows in the work to go from algorithms to mouse brain imaging. It was a pleasure working on this with the team Yukun Alex Hao, @divnori @matthewjzliu @aditimerch @talaldotpdb @samuelhking Katie Shalvarjian, Dan Mcfarland Park, @BrianHie

    7 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Now on biorxiv:

    9 likes

  • Eric Nguyen's profile picture

    @exnx

    amazing work @garykbrixi!!!

    4 likes

  • Michael Hla's profile picture

    @hla_michael

    Very clever, seems to generalize across modality as well!

    3 likes

  • Garyk Brixi's profile picture

    @garykbrixi

    Thank you Michael!

    2 likes

  • Rahul Rane's profile picture

    @rahulvrane

    This is brilliant. You reckon it will work on insect species or species whose data evo2 has not seen?

    1 like

  • Garyk Brixi's profile picture

    @garykbrixi

    I haven’t tested how pre-training data distribution affects ICL behavior, but several examples shown are rare in training w poor base model performance. I expect insect genes will work

  • Dominik's profile picture

    @EternitiesAI

    four natural genomes as the prompt. what does the model pick up from them, style or function?

    1 like

  • Talu Güloglu's profile picture

    @gueloglut

    This reminds me quite a lot of the ProtMamba paper were they specifically trained the model on concatenated proteins from similar protein classes. If I understand it seems like that this "knowledge" emerges natively in EVO-2. Would be interesting to know if this transfers to autoregressive protein models

    1 like