Skip to content

In-Context Learning

Definition
AI-generated

In-context learning is the ability of a large language model to adapt its behavior from examples or instructions placed in the prompt (the “context”) without gradient updates—sometimes called few-shot or many-shot prompting when several labeled examples are provided.

Why it matters in GWAS

Few-shot prompts can standardize extraction of fields from heterogeneous supplementary tables or map free-text phenotypes to ontologies, but performance varies by model and prompt; evaluation on held-out curated examples reduces silent failure modes.

Example usage

"A replication analysis checks whether In-Context Learning assumptions hold across cohorts."

References

  • Brown T, et al. (2020). Language models are few-shot learners. NeurIPS.

Last updated (UTC · Git history)