Reproduce “AffinityNet: semi-supervised few-shot learning for disease type prediction” 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

Tianle Ma, Aidong Zhang

AffinityNet, a deep learning model, is introduced to address challenges in high-dimensional biological data with limited samples, particularly for disease type prediction. The model achieves 98.2% test accuracy on synthetic data using just 1% training examples and consistently outperforms other methods in cancer classification and survival analysis on TCGA datasets.

Key insights

  • Dynamically learning object affinities through kNN attention pooling acts as an implicit regularizer, promoting robust representation learning even with limited labeled data.
  • Explicit feature attention allows the model to automatically identify and weight relevant input features, improving interpretability and reducing the impact of noisy or irrelevant dimensions.
  • Combining attention mechanisms with semi-supervised training enables deep learning to generalize effectively from very few labeled examples in high-dimensional, noisy data environments.

Summary by alphaXiv.

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