Reproduce “Few-shot Protein Fitness Prediction via In-context Learning and Test-time Training” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Felix Teufel, Aaron W. Kollasch, Yining Huang, Ole Winther, Kevin K. Yang, Pascal Notin, Debora S. Marks

PRIMO, a transformer-based framework, introduces a method for few-shot protein fitness prediction by combining in-context learning with test-time training, achieving superior performance in low-data settings and handling diverse mutation types including insertions and deletions. The model significantly improves prediction accuracy, with average Spearman correlation increasing from 0.51 to 0.67 on a curated benchmark with 128 labeled samples.

Key insights

  • Test-time training (TTT) is essential for effectively adapting pre-trained models to novel protein tasks and mitigating distribution shifts in few-shot scenarios, while direct in-context learning alone shows limited improvement.
  • Careful curation of benchmarks with strict protein-level hold-out is critical to avoid data leakage and provide realistic evaluations of model generalizability.
  • The model's ability to handle both substitution and indel mutations is vital for exploring broader, more biologically relevant protein sequence spaces.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.