Loading Now

In-Context Learning: Powering Adaptable AI from Drug Discovery to Walkability!

Latest 28 papers on in-context learning: Aug. 22, 2026

In-context learning (ICL) has rapidly emerged as a cornerstone of modern AI, allowing large language models (LLMs) and foundation models to adapt to new tasks with few or even zero examples, bypassing computationally expensive fine-tuning. This ability to ‘learn on the fly’ is transforming how we approach complex problems across diverse domains. Recent research showcases remarkable breakthroughs, pushing the boundaries of what ICL can achieve, from enhancing clinical decision-making and robotic security to optimizing drug discovery and urban planning.

The Big Ideas & Core Innovations

One of the most exciting trends is the application of ICL to domain-specific, structured data, moving beyond its traditional stronghold in natural language. For instance, in “RecPFN: Prior-Fitted Networks for In-Context-Based Recommendations,” SAP SE researchers demonstrate that training a prior-fitted network entirely on synthetic clickstream data can achieve state-of-the-art zero-shot sequential recommendations. This counter-intuitive finding highlights that synthetic priors can teach amortized inference, outperforming real-world data pretraining for zero-shot transfer by avoiding memorization of domain-specific patterns. Similarly, “LLM as Detector: An In-context Learning Approach for Tabular Anomaly Detection” from Deakin University proposes using LLMs as code synthesizers for tabular anomaly detection. Instead of fine-tuning, their LLM-Detector framework leverages structured normal-state knowledge (statistical profiles, causal dependencies, distilled prototypes) to generate executable scoring engines, achieving superior performance on 24 diverse datasets with significant computational efficiency.

Bridging the gap between powerful but slow foundation models and efficient deployment is another critical theme. Renmin University of China and Ant Digital Technologies, in their paper “GEAR: Generative Expansion and Real Anchoring for Two-Stage Distillation of Tabular Foundation Models,” introduce a two-stage knowledge distillation framework. GEAR uses synthetic covariate generation to expand teacher-query coverage, followed by anchoring to real data, leading to substantial AUC improvements and massive inference speedups (57-2866x). This approach is shown to work across various tabular foundation models and student architectures. Relatedly, “TACTICL: Task-Aware Compression of Tabular ICL Models” by TU Dortmund University optimizes tabular ICL models by jointly pruning transformer layers and replacing them with lightweight adapters. This blends in-context with in-weight learning, achieving up to 85% layer substitution with minimal performance degradation and significant speedups.

For LLM reliability and safety, researchers are tackling fundamental limitations. Northeastern University and EmbodyX Inc. delve into the internal workings of LLMs in “Mechanistic Interpretability of Structure-Aware Numerical Reasoning in LLaMA 3.1 8B.” They reveal that LLaMA 3.1-8B spontaneously computes and stores first differences for numerical sequence modeling through an induction-like mechanism, offering crucial insights into how LLMs perform structural reasoning. Furthermore, “When State Becomes an Attack Surface: State-Semantic Injection in LLM-Driven Embodied Agents” from Wuhan University uncovers a novel attack vector, ESTI, that manipulates robot behavior by corrupting planner-facing state representations, underscoring the need for robust security in LLM-driven agents. For enhancing LLM reasoning, “Structure-Internalized Rule Language Model for Faithful Knowledge Graph Reasoning” by Hefei University of Technology introduces SIRLM, which uses a Structural Relation Memory mechanism to align LLM knowledge with KG structures, mitigating ‘reasoning evidence perception drift’ and achieving state-of-the-art results on 36 datasets.

ICL is also being enhanced for specific applications. For drug discovery, Memorial Sloan Kettering Cancer Center’s “ScreenShot: A Foundation Model for Few-Shot Combination Drug Screening” introduces a hierarchical transformer pretrained on 40 drug screening datasets. ScreenShot enables few-shot drug response prediction without molecular profiling and includes an active learning strategy that reduces experimental budgets by two-thirds. In GeoAI, CNRS@CREATE and Singapore-ETH Centre’s “In-Context Learning to Assess Built Environment Impacts on Perceived Neighborhood Walkability Among Mobility-impaired Older Adults” uses TabPFN with SHAP-IQ to analyze walkability perception, finding synergistic feature interactions (e.g., street circuity and drivable road ratio) are key discriminators, even on small datasets.

Addressing the practicalities of ICL deployment, “Handover of In-Context Learning State Across Session Boundaries” by Mizuho-DL Financial Technology and the University of Tokyo formulates ICL session handover as a predictive sufficiency problem, demonstrating that task-relevant information (not just text reproduction) is critical for efficient memory-constrained prediction. For improving existing models, Vanderbilt University’s “Policy Iteration with Human Feedback: Bringing Post-Training RL to In-context Learning” (PIHF) iteratively revises natural-language policy artifacts executed by frozen LLMs, leveraging expert and LLM critic feedback to achieve significant improvements in rare-disease diagnosis without weight updates.

Finally, the understanding of ICL itself is being deepened. Purdue University’s “Self-supervised In-context Operator Learning for Stochastic Mean-Field Control” presents NFIST, the first mesh-free, self-supervised neural operator for stochastic mean-field control, enabling zero-shot generalization across families of problems with O(d) computational cost. Polytechnique Montréal and Mila, in “Understanding the Surprising Generalization Properties of Tabular Foundation Models,” reveal that TFMs can achieve strong transfer learning from pre-training on a single real-world table, acting as learned retrieval-and-aggregation procedures, with feature count being the strongest predictor of usefulness. McMaster University’s “ARASH: Adaptive Retrieval And Shot Selection for Tabular Prediction” further refines this by adaptively selecting demonstrations based on feature-space locality and label purity, drastically reducing prompt length and memory usage while maintaining accuracy. For multi-modal ICL, National University of Singapore’s “MAG: MAnifold Guided Semi-Supervised Multi-modal In-Context Learning” leverages unlabeled data through graph-based relevance propagation for pseudo-labeling and demonstration selection, significantly boosting few-shot performance under label scarcity. Brown University’s “When Is a Task Vector Enough? An Empirical Theory of Implicit Multimodal ICL” proposes the Selection-Realization Hypothesis, providing a diagnostic framework to predict when simple task vectors suffice versus requiring more complex interventions, enabling cost-aware method selection. Lastly, LMU Munich’s “When Do Explanations Help In-Context Learning? A Comparative Study of Natural Language Explanation Types and Faithfulness” finds that externally LLM-generated explanations often yield the largest gains on classification benchmarks, and that faithfulness-based selection, while beneficial, is highly metric- and dataset-dependent. Charles Sturt University’s “When Less Is Enough: Context Selection and Prompting Strategies for Bengali News Headline Generation” shows that selective context conditioning with lead paragraphs can outperform full-document input for low-resource languages, reducing tokens by 52-65%.

Under the Hood: Models, Datasets, & Benchmarks

Innovations in ICL are often driven by new models, specialized datasets, and rigorous benchmarks. Here’s a glimpse:

  • RecPFN: A lightweight decoder-only transformer, pre-trained on synthetic clickstream environments sampled from structural causal models. Evaluated on 8 public benchmarks (e.g., Amazon Review categories) and utilizes BEIR datasets (Quora, MS MARCO) for embedding banks. Code: github.com/SAP-samples/tabular-ai-recpfn.
  • LLM-Detector: Leverages large language models (DeepSeek, GPT, Gemini) as code synthesizers, evaluated on 24 diverse tabular datasets from ODDS, ADBench, and Kaggle. Uses the PC algorithm for causal discovery.
  • GEAR: Compatible with diverse student families (MLP, LightGBM, XGBoost) and TFM teachers (TabICL, TabPFN, TabDPT). Utilizes generative models like TabPFGen, TabDiff, and CTGAN. Benchmarked on TALENT and TabArena.
  • Computational Measurement of Team-Process Phase Dynamics in Collaborative Virtual Reality: Employs a locally deployed Qwen3.5:9b LLM for phase interpretation and analyzes timestamped German speech transcripts from a collaborative VR training game dataset. URL: https://arxiv.org/pdf/2608.18660
  • Mechanistic Interpretability of Structure-Aware Numerical Reasoning in LLaMA 3.1 8B: Focuses on LLaMA 3.1-8B, using the NNsight and NDIF frameworks for activation tracing. Code: https://github.com/nnsight/nnsight, https://github.com/neural-network-interpreting/NDIF.
  • NFIST (Normalizing Flow Invertible Solution Transformer): The first neural operator for stochastic mean-field control, combining probability-flow ODE, invertible normalizing flows, and transformer-based ICL. URL: https://arxiv.org/pdf/2608.18282
  • Understanding the Surprising Generalization Properties of Tabular Foundation Models: Evaluates TFMs like TabDPT on TabArena and OpenML benchmarks. Code: TabDPT repository.
  • ARASH: Portable across TFMs (TabPFN, TabDPT) and LLMs (FLAN-T5, LLaMA-3.2, Qwen-2.5). Evaluated on OpenML-CC18 and Combo benchmark datasets. URL: https://arxiv.org/pdf/2608.17856
  • Vision-Language Models for Analog Gauge Reading: Systematically evaluates Qwen2.5-VL-7B-Instruct using zero-shot, ICL, and QLoRA on synthetic and industrial datasets (Kaggle’s Synthetic Data for Precision Gauge Reading, Pressure Gauge Reader Data). URL: https://arxiv.org/pdf/2608.17723
  • SIRLM: Integrates with standard LLM training (SFT, GRPO) and utilizes a KG tokenizer for universal structure representation. Achieves SOTA on 36 datasets. Code: https://github.com/lazyloafer/SIRLM.
  • Institution-Specific LLM Prompting Recovers PHI: Compares LLMs (Sonnet 4.6) against purpose-built systems (TiDE, OpenMed PII) on pediatric oncology clinical notes. Code: https://github.com/LiuzLab/phi-scrubber-evaluation.
  • PIHF: Tested across multiple executor backbones (3B to 49B parameters, e.g., GPT-5.4, Qwen3.6-35B) using rare-disease benchmarks like LIRICAL and UDN. URL: https://arxiv.org/pdf/2608.16831
  • ESTI-Bench: Evaluates LLM-driven embodied agents (ProgPrompt, VoxPoser) in environments like VirtualHome and AI2-THOR using models like DeepSeek-V4-Pro, GPT-5.6-luna, Qwen-3.6-Plus. URL: https://arxiv.org/pdf/2608.16806
  • VicEdit-400K Dataset and VicEdit Framework: The first large-scale dataset for visual in-context video editing (400K samples, 10 task types). VicEdit is a unified framework with Modality-Adaptive Semantic Distillation (MASD) and Dual-Context Injection (DCI). URL: https://rain152.github.io/VicEdit/.
  • When Do Explanations Help In-Context Learning?: Evaluates Llama-8B, Mistral-7B, Llama-70B across 6 benchmarks (ECQA, e-SNLI, GSM8K). Code and prompts to be released. URL: https://arxiv.org/pdf/2608.16627
  • When Less Is Enough: Compares Gemini, Llama, and fine-tuned BanglaT5 on Bengali news headline generation using BeliN and Shironaam datasets. Utilizes banBERT for sentence representations. URL: https://arxiv.org/pdf/2608.15879
  • MAPLE Benchmark: A multi-aspect full-paper scientific retrieval benchmark, evaluating lexical, scientific-domain, general-purpose text, and multimodal retrievers (e.g., GritLM-7B). Code: https://github.com/Ggballs/MAPLE. Dataset: https://huggingface.co/datasets/kai-02/MAPLE.
  • In-Context Learning to Assess Built Environment Impacts: Employs TabPFN (Tabular Prior-Data Fitted Network) and SHAP-IQ on a small dataset (N=257) integrating clinical context and built environment features (OpenStreetMap, OneMap API). URL: https://arxiv.org/pdf/2608.14663
  • Handover of In-Context Learning State Across Session Boundaries: Theoretical framework. URL: https://arxiv.org/pdf/2608.14528
  • FairTFM: Uses a fairness-aware transformer architecture with gradient reversal layers. Evaluated on 132 fairness tasks using ACS PUMS datasets. Code: https://github.com/patrikken/FairTFM-inference.
  • Identifiability and Order-Dimension Limits of In-Context Learning on Partial Orders: Theoretical framework, mentioning Python scripts for 4-element posets. URL: https://arxiv.org/pdf/2608.14004
  • LittleLearner: A 5B-parameter model trained from scratch on LITTLECURRICULUM, an 88B-token curated corpus filtered to K-5 elementary school material. Evaluated on CLEAR, CoMTA, Jeopardy, MathCAMPS. URL: https://arxiv.org/pdf/2608.13545
  • When Is a Task Vector Enough?: Experiments on OpenFlamingo-v2-9B, Idefics2-8B, LLaVA-NeXT-7B across VQAv2, GQA, OK-VQA, CVQA benchmarks. URL: https://arxiv.org/pdf/2608.13385
  • MAG: Evaluated across 8 multi-modal benchmarks (EmoSet, Emotion6, TextOCR, MMStar, MatchingMI, CLEVR, GQA, OK-VQA). URL: https://arxiv.org/pdf/2608.12724
  • ScreenShot: A hierarchical transformer pretrained on 40 pan-cancer drug screening datasets. Benchmarked on NCI-ALMANAC, GDSC-SQ, BATCHIE, PDO-Breast. Code: https://github.com/tansey-lab/screenshot.
  • TACTICL: Optimizes TabPFNv2.5 on 47 TabArena datasets. Code: https://github.com/Hebog/tfm_compression.
  • Optimal Stopping of Self-Refining Foundation Models: Validated on the EFFIBENCH coding benchmark with HAIKU 4.5, GEMINI FLASH-LITE 3.1, GPT CODEX MINI 5.1. Code: https://github.com/Kim-Hammar/optimal_stopping_foundation_models.
  • LiFT: Evaluates OLMo (1B/7B), LLaMA-8B, and Qwen (14B/32B) on longitudinal NLP tasks using AnnoMI, LRS, TalkLife MoC, Reddit MoC, CMV datasets. URL: https://arxiv.org/pdf/2604.16382

Impact & The Road Ahead

The impact of these advancements is profound, promising more adaptable, efficient, and reliable AI systems. From enabling zero-shot precision medicine in drug discovery to making LLMs safer and more effective in clinical de-identification by recovering missed PHI, ICL is proving its versatility. The ability to distil powerful foundation models into lightweight, context-free predictors (GEAR, TACTICL) will democratize access to advanced AI, allowing deployment on commodity hardware.

However, challenges remain. The insights into LLM-driven agent security (ESTI) highlight critical vulnerabilities that must be addressed for real-world robotic deployments. The findings from analog gauge reading studies (Qwen2.5-VL-7B-Instruct) caution against over-reliance on model confidence for safety-critical tasks, emphasizing the need for robust verification. Research into knowledge boundaries (LittleLearner) suggests that pretraining distribution remains the dominant factor in capability, implying that while ICL offers incredible adaptation, it operates within the confines of learned knowledge.

Looking ahead, the research points towards more sophisticated ICL. We’ll see frameworks that can learn from unlabeled data (MAG), reason more faithfully by internalizing structural constraints (SIRLM), and adapt to temporal dynamics in complex sequences (LiFT). The theoretical underpinnings of ICL, such as identifiability on partial orders, will continue to guide the development of more robust and predictable systems. As models become more integrated into our daily lives, from personalized recommendations to critical infrastructure, the ability of ICL to provide adaptable, efficient, and context-aware intelligence will be paramount.

Share this content:

mailbox@3x In-Context Learning: Powering Adaptable AI from Drug Discovery to Walkability!
Hi there 👋

Get a roundup of the latest AI paper digests in a quick, clean weekly email.

Spread the love

Discover more from SciPapermill

Subscribe to get the latest posts sent to your email.

Post Comment

Discover more from SciPapermill

Subscribe now to keep reading and get access to the full archive.

Continue reading