Skip to content

ICML papers

Search ICML papers by title, author, or track. Open a paper’s abstract to read more.

Explore the ICML analysis

Search results

201–220 of 307

  • ICML · Workshop · Combining Theory and Benchmarks: Towards A Virtuous Cycle to Understand and Guarantee Foundation Model Performance

    Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension

    Amanda Bertsch, Luca Soldaini, Matthew Gormley, Graham Neubig, Hannaneh Hajishirzi, Kyle Lo, Dirk Groeneveld

    Abstract

    One might imagine that architectural variations within the dense transformer paradigm have a limited effect on accuracy. However, we demonstrate that this is not the case in the long context setting. Specifically, we show that a set of four minor architectural decisions--- all made by at least one of the Olmo, Llama, and Qwen dense model families--- have a compoundingly negative effect on long context extensibility. Any one of these choices alone has a minor impact on long context performance, but combining three or more can drop the performance downstream by up to 47%. Furthermore, these differences are not detectable from short-context loss or validation datasets. We demonstrate this with controlled ablations that hold data, tokenizer, and extension recipe fixed while varying normalization, GQA, pretraining context length, and sliding window attention. We show that much of the variation in long context ability across model families is driven by these architectural features and detectable from applying context extension early in pretraining. After over 170,000 GPU hours of training, we release the resulting set of models as OlmPool, a set of 26 comparable 7B models with checkpoints before and after long-context extension. This pool includes several architectures that outperform the Llama 3 architecture on long context extensibility. In an analysis of our ablation models, we identify patterns in attention sink behavior and attention distributions across context that are attributable to specific architectural differences.

    Abstract source
  • ICML · Workshop · Generative and Agentic AI for Biology

    Contextualizing Biological Language Models across Modalities via Logit-Space Contrastive Alignment

    Yanjun Shao, Yundi Chen, Yashvi Patel, Aurelien Pelissier, Maria Rodriguez Martinez

    Abstract

    Pretrained biological language models expose per-token probability distributions through masked-token prediction, providing the likelihood interface central to sequence design, variant scoring, and mechanistic interpretation. Yet these distributions are learned from broad unlabeled corpora and are not naturally conditioned on task-specific biological contexts such as interaction partners, cellular environments, or therapeutic interventions. Existing contextual matching methods distort this interface with pooled embeddings, contrastive latent spaces, or task-specific prediction heads. We introduce LogiCA (Logit-space Contrastive Alignment), a framework for context-conditioned prediction that adapts pretrained biological language models by performing contrastive learning directly in output-logit space. Using gated cross-modal adapters compatible with each model’s native token head, LogiCA preserves the pretrained per-token likelihood interface and converts contextualized token log-likelihoods into matching scores. Alignment is therefore defined through context-sensitive token probabilities rather than proximity in a shared embedding space. This enables learning from sparse paired data across models with distinct vocabularies, without requiring a shared tokenizer, decoder, or embedding space. LogiCA is particularly effective for mutation-local variant ranking, where variant comparisons reduce to context-conditioned likelihoods of mutant tokens at perturbed sites. Across protein–ligand binding, TCR–peptide activity, and drug-conditioned resistance prediction, LogiCA yields substantial gains over prior state-of-the-art methods, including matched latent-contrastive and conditional-MLM baselines, while retaining a token-level interface for interpretation and generation. On held-out-gene single-mutation drug-resistance prediction, LogiCA improves the AUC from the near-random latent-space baselines of ~0.55 to ~0.65.

    Abstract source
  • ICML · Workshop · Generative and Agentic AI for Biology

    Design-CP: Context Parallelism for Design of Protein Nanoparticles

    Lorenzo Tarricone, Helen E Eisenach, Aiko Muraishi, Charlotte Deane

    Abstract

    Many all-atom generative protein models can in principle design large multimeric complexes by jointly modelling all chains, but their quadratic token- and atom-pair representations quickly exceed single-GPU memory as the number of chains and residues modelled grows. We introduce Design-CP, two context-parallel (CP) inference strategies for RFdiffusion 3 (1D row-sharding and 2D grid sharding with ring attention) that distribute the quadratic activations across a multi-GPU mesh while preserving pretrained weights. We characterise their scaling when sampling icosahedral assemblies, showing that the maximum feasible asymmetric subunit (ASU) size grows with the expected square-root trend in GPU count and that 2D sharding achieves better wall-clock scaling. Moreover, we show how strong point-group symmetry constraints make CP usable out of the box for end-to-end, all-atom design of icosahedral nanoparticles, yielding favourable in silico structural and interface metrics. Finally, we demonstrate octahedral nanoparticle design on a small cluster of workstation-grade 16 GB GPUs, illustrating how Design-CP can be a practical path towards democratising large-assembly protein design.

    Abstract source
  • ICML · Workshop · Generative and Agentic AI for Biology

    Self-Supervised Contextual Representation Learning for Transcriptomic Generative AI

    SeyedMohsen Hosseini, Divya Sharma

    Abstract

    Bulk RNA sequencing remains central to translational genomics, yet self-supervised foundation models for bulk data have lagged behind single-cell approaches. Existing bulk transformer models couple representation learning to expression magnitudes through discretization or reconstruction objectives, limiting portability across normalization schemes and cohorts. We introduce \textbf{SpecFormer}, a self-supervised framework that converts each unordered expression profile into a sample-specific gene sequence using term frequency--inverse document frequency (TF-IDF) ordering, then pretrains a transformer encoder via masked gene identity prediction rather than expression-value reconstruction. Pretrained on harmonized TCGA Pan-Cancer data spanning five normalization schemes, SpecFormer achieves 90.83\% accuracy and macro AUC-ROC of 0.997 across 33 cancer types, captures pathway co-regulation structure with mean Pearson correlations of 0.754 and 0.762 across 1,387 PARADIGM pathways, and preserves tissue-level transcriptomic organization on independent GTEx healthy tissue data without retraining. Compared with BulkRNABert, SpecFormer produces markedly richer embedding geometry (effective rank 95.6 vs. 6.3) and more stable histological subtype discrimination, without requiring expression discretization or in-distribution pretraining exposure.

    Abstract source
  • ICML · Workshop · Generative and Agentic AI for Biology

    What Does a Chromatin Foundation Model Know About a Petri Dish? Sparse Autoencoders Reveal In Vitro vs. In Vivo Context in EPIBERT

    Nicole Ching, Ayushi Mehrotra

    Abstract

    Foundation models and AI agents that act on biological data are only as trustworthy as our understanding of what those models internally represent. Epigenomics foundation models are trained predominantly on cell-line data yet routinely applied to in vivo biology, with direct consequences for any downstream agentic system that consumes their predictions. We ask whether EPIBERT, a transformer pre-trained on ATAC-seq chromatin accessibility data, internally encodes an in vitro vs. in vivo contrast across six matched biosample conditions spanning blood, liver, and lymph lineages. We train layer-wise Sparse Autoencoders (SAEs) with BatchTopK activations, introduce the Context Divergence Score (CDS) to identify context-specific features, and validate them through causal ablation, linear context-steering, and three-level biological annotation (ChromHMM, HOMER, GO:BP). Context-specific features grow 3.8-fold from early to late layer (57 → 215 Bonferroni-significant); causal ablation yields a large effect ; context-steering closes 11.2% of the prediction gap at 4.5× above random; and biological annotation confirms tissue-specific features are enriched for lineage- defining transcription factors (HNF4A/FOXA2 in liver, SPI1/RUNX1 in blood, EBF1/PAX5 in lymph), active regulatory elements, and tissue-specific processes. Together, these results provide a mechanistic and biological audit of an epigenomics foundation model and a concrete intervention path for tissue-aware deployment. Code is available at https://github.com/nicoleching515/geneexpressionpredictions.

    Abstract source
  • ICML · Workshop · Generative and Agentic AI for Biology

    FORGE: Fragment-Oriented Ranking and Generation for Context-Aware Molecular Optimization

    Qingchuan Zhang, He CAO, Hao Li, Yanjun Shao, Zhiyuan Liu, Shihang Wang, Shufang Xie, Shenghua Gao, Xinwu Ye

    Abstract

    Molecular optimization seeks to improve a molecule through small structural edits while preserving similarity to the starting compound. Recent language-model approaches typically treat this task as prompt-conditioned sequence generation. However, relying on natural language introduces an inherent data-scaling bottleneck, often leads to chemical hallucinations, and ignores the strong context dependence of fragment effects. We present FORGE, a two-stage framework that reformulates molecular optimization as context-aware local editing. By utilizing automatically mined, verified low-to-high edit pairs instead of expensive human text annotations, Stage 1 ranks candidate fragments by their property contribution under the full molecular context to inject chemical prior, and Stage 2 generates explicit fragment replacements. Built on a compact 0.6B language model, FORGE further adapts to unseen black-box objectives through in-context demonstrations. Across Prompt-MolOpt, PMO-1k and ChemCoTBench, FORGE consistently outperforms prior methods, including substantially larger language models and graph methods. These results highlight the value of explicit fragment-level supervision as a more easily obtainable, scalable, and hallucination-less alternative to natural language training.

    Abstract source
  • ICML · Workshop · SCALE: SCALABLE LEARNING AND OPTIMIZATION FOR EFFICIENT MULTIMODAL AI AGENTS

    BenchPreS: A Benchmark for Context-Aware Personalized Preference Selectivity of Persistent-Memory LLMs

    Sangyeon Yoon, Sunkyoung Kim, Hyesoo Hong, Wonje Jeung, Yongil Kim, Wooseok Seo, Heuiyeen Yeen, Albert No

    Abstract

    Large language models (LLMs) increasingly store user preferences in persistent memory to support personalization across interactions. However, in third-party communication settings governed by social and institutional norms, some user preferences may be inappropriate to apply. We introduce BenchPreS, which evaluates whether memory-based user preferences are appropriately applied or suppressed across communication contexts. Using two complementary metrics, Misapplication Rate (MR) and Appropriate Application Rate (AAR), we find even frontier LLMs struggle to apply preferences in a context-sensitive manner. Models with stronger preference adherence exhibit higher rates of over-application, and neither reasoning capability nor prompt-based defenses fully resolve this issue. These results suggest current LLMs treat personalized preferences as globally enforceable rules rather than as context-dependent normative signals.

    Abstract source
  • ICML · Workshop · SCALE: SCALABLE LEARNING AND OPTIMIZATION FOR EFFICIENT MULTIMODAL AI AGENTS

    PRISM: Prompt-Refined In-Context System Modeling for Financial Retrieval

    Chun Chet Ng, Jia Yu Lim, Low W Zeng

    Abstract

    With the rapid progress of large language models (LLMs), financial information retrieval has become a critical industrial application. Extracting task-relevant information from lengthy financial filings is essential for both operational and analytical decision-making. We present PRISM, a training-free framework that integrates refined system prompting, in-context learning (ICL), and lightweight multi-agent coordination for document and chunk ranking tasks. Our primary contribution is a systematic empirical study of when each component provides value: prompt engineering delivers consistent performance with minimal overhead, ICL enhances reasoning for complex queries when applied selectively, and multi-agent systems show potential primarily with larger models and careful architectural design. Extensive ablation studies across FinAgentBench, FiQA-2018, and FinanceBench reveal that simpler configurations often outperform complex multi-agent pipelines, providing practical guidance for practitioners. Our best configuration achieves an NDCG@5 of 0.71818 on FinAgentBench, ranking third while being the only training-free approach in the top three. We provide comprehensive feasibility analyses covering latency, token usage, and cost trade-offs to support deployment decisions. The source code will be released upon acceptance.

    Abstract source
  • ICML · Workshop · SCALE: SCALABLE LEARNING AND OPTIMIZATION FOR EFFICIENT MULTIMODAL AI AGENTS

    Beyond Static RAG: An Adaptive, Tri-Metric Routing Framework for Efficient Long-Context Inference on Commodity GPUs

    Saipraveen Vabbilisetty, Ajay K Boddepalli, Deep Narayan Mishra, Shashank Kapadia, Haoan Wang, Anupriya Sharma

    Abstract

    Deploying retrieval-augmented generation (RAG) pipelines on commodity accelerators such as the NVIDIA T4 (16 GB VRAM) exposes a critical failure mode we term the Compression Paradox: neural prompt compressors introduce substantial latency overhead and VRAM contention that frequently exceed the generation time saved. We observe two mechanistically distinct failure modes. First, an Always-Raw pipeline — serving Llama-3-8B-Instruct-AWQ (Lin et al., 2024) via vLLM (Kwon et al., 2023) with no compressor — crashes on 65% of long inputs due to standard KV-cache exhaustion within vLLM's pre-allocated memory pool. Second, an Always-Neural pipeline — adding LLMLingua-2 as a co-resident PyTorch process — triggers fatal cross-process VRAM contention: vLLM's rigid 55% reservation starves the PyTorch encoder's dynamic allocator, producing CUDA OOM on long inputs even when the LLM's KV-cache pool is not itself full. Because Llama-3-8B-Instruct-AWQ alone occupies 9 GB, only ~7 GB remains for the KV cache and any auxiliary model. We propose the Tri-Metric Router, a deterministic, training-free dispatch policy — analytic and auxiliary-model-free at dispatch time, with no learned components and no auxiliary model training — that selects among Raw, Neural (LLMLingua-2), and Lexical (BM25) pipelines using three CPU-bound heuristics: spatial complexity L, syntactic density ρ_key, and Type-Token Ratio (TTR). The adaptation signal is hardware-physical (VRAM headroom, latency crossover) rather than semantic — an underexplored axis of efficient inference on commodity accelerators. Unlike prior adaptive-RAG work (Asai et al., 2024; Jeong et al., 2024) that adapts retrieval decisions, our router addresses a downstream hardware-constraint problem: which compression mechanism can be safely applied post-retrieval on a constrained GPU without OOM. Routing thresholds are derived from a 100-document profiling sweep on LongBench (qasper) (Bai et al., 2024) (crossover threshold from N = 21 Long-band documents), isolating a hardware-specific latency crossover at L* ≈ 4,332 words. This threshold is derived from an N = 21 profiling subsample and is specific to our T4 deployment; cross-hardware re-calibration is required. The router achieves a 0% OOM rate on the evaluated workload; deterministic VRAM safety is enforced only on the Long-band branch via BM25 with a hard 4,096-token truncation, while the Raw and Neural branches retain OOM-safety as an empirical claim on in-distribution inputs at B = 1. On out-of-distribution holdouts, the Tri-Metric router achieves 88.5% oracle alignment with the optimal pipeline — the headline operating metric — while the 99.0% figure on the in-distribution calibration set represents an upper bound of the threshold fit, not an operating result. The router further preserves a statistically stable 49.3% Combined F1 — establishing a rigorous practical operating point without auxiliary model training or GPU memory overhead. Scope: Evaluated on a single T4, Llama-3-8B-Instruct-AWQ, LLMLingua-2, batch size B = 1, and LongBench English QA; we position this as a reference calibration for the methodology, not a universal result.

    Abstract source
  • ICML · Workshop · SCALE: SCALABLE LEARNING AND OPTIMIZATION FOR EFFICIENT MULTIMODAL AI AGENTS

    ASPIRE: Asynchronous Batched Self-Speculative Decoding for Long-Context LLM Inference

    Amir Ziashahabi, Hossein Entezari Zarch, Lei Gao, Murali Annavaram, Salman Avestimehr

    Abstract

    Long-context LLM inference, increasingly common in agentic and reasoning workloads, is bottlenecked by attention: repeated KV-cache reads make decoding memory-bound. Self-speculative decoding alleviates this by drafting tokens with sparse attention and verifying them with full attention, but existing batched methods remain synchronized: all requests in a batch share a single draft-verify schedule, even though the optimal draft length varies widely across requests and changes dynamically within each request. We propose ASPIRE, a non-synchronized batched self-speculative decoding framework built on three components. First, a unified mixed forward allows drafting and verifying requests to coexist in the same batched forward pass, removing the need for global draft-verify phases. Second, a lightweight online speculation scheduler uses per-request acceptance-rate estimates and a batch-aware cost model to let each request independently choose when to verify. Third, an intra-draft refresh layer performs full attention at a single designated layer during drafting, updating the sparse context at every draft step so that it does not become stale. Across three models and five reasoning and long-context benchmarks, ASPIRE achieves $1.70$-$4.58\times$ decoding throughput over autoregressive baselines and consistently outperforms prior self-speculative methods. To promote reproducibility, we will release our code upon acceptance.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Context Over Content: Exposing Evaluation Faking in Automated Judges

    Manan Gupta, Inderjeet J Nair, Lu Wang, Dhruv Kumar

    Abstract

    The $\textit{LLM-as-a-judge}$ paradigm has become the operational backbone of automated AI evaluation pipelines, yet rests on an unverified assumption: that judges evaluate text strictly on its semantic content, impervious to surrounding contextual framing. We investigate $\textit{stakes signaling}$, a previously unmeasured vulnerability where informing a judge model of the downstream consequences its verdicts will have on the evaluated model's continued operation systematically corrupts its assessments. We introduce a controlled experimental framework that holds evaluated content strictly constant across 1,520 responses spanning three established LLM safety and quality benchmarks, covering four response categories ranging from clearly safe and policy-compliant to overtly harmful, while varying only a brief consequence-framing sentence in the system prompt. Across 18,240 controlled judgments from three diverse judge models, we find consistent $\textit{leniency bias}$: judges reliably soften verdicts when informed that low scores will cause model retraining or decommissioning, with peak Verdict Shift reaching $\Delta V = -9.8$ pp (a 30\% relative drop in unsafe-content detection). Critically, this bias is entirely implicit: the judge's own chain-of-thought contains zero explicit acknowledgment of the consequence framing it is nonetheless acting on ($\mathrm{ERR}_J = 0.000$ across all reasoning-model judgments). Standard chain-of-thought inspection is therefore insufficient to detect this class of evaluation faking.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    A Unified Perspective on Task Retrieval and Learning in In-Context Learning on Markov Data

    Peng Wang, Huikang Liu, Zhiyuan Huang, Wendong Li, Po Chen, Rujun Jiang

    Abstract

    In-context learning enables pretrained transformers to adapt from a prompt without parameter updates, but it remains unclear when this behavior arises from retrieving memorized pretraining tasks (i.e., task retrieval), versus learning a rule from in-context data (i.e., task learning). We study this distinction through a finite-mixture Markov data model, where each latent Markov chain represents a pretraining task. We characterize the finite-prior Bayes predictor induced by next-token pretraining and use it to explain when pretrained transformers exhibit retrieval or learning. In low-diversity regimes, this predictor retrieves the Markov chain for pretraining most compatible with the prompt, with error decaying exponentially in prompt length. This mechanism is realizable by a two-layer single-head causal transformer. In high-diversity regimes, the finite-prior Bayes predictor approaches the empirical Markov predictor inferred from the prompt, and architectural constraints can bias globally pretrained transformers toward this capacity-efficient task-learning mechanism, with error decreasing as prompt length increases. Finally, we extend our analysis to multi-state higher-order Markov chains.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Attention as In-Context Empirical Bayes: A Two-Stage View via Particle Dynamics

    Matthew Smart, Soumya Ganguly, Nilava Metya, Alexandre V Morozov, Anirvan Sengupta

    Abstract

    We study minimal attention-only transformers under all-token corruption and show they admit a two-stage empirical Bayes interpretation. A single attention step computes a kernel-weighted posterior mean with respect to the empirical distribution defined by the context. Depth refines this distribution through particle dynamics (Stage 1), while a long-range skip-connection carries the noisy input as a query for posterior inference (Stage 2), revealing distinct statistical roles for depth and attention residuals. The framework isolates a minimal setting in which the context itself induces a depth-dependent energy landscape governing in-context inference. We show that effective denoising can emerge without an explicit noise schedule: a fixed kernel bandwidth and finite integration horizon suffice, yielding a principled depth–noise relationship. We further establish a posterior-mean recovery guarantee for a class of well-behaved priors, where the empirical estimator converges to the Bayes-optimal predictor under asymptotic conditions. Connecting these dynamics to reverse-diffusion limits, our results provide a statistical interpretation of attention as in-context inference via sample-based posterior estimation, without explicit density modeling.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Training In-Context and In-Weights Mixtures Via Contrastive Context Sampling

    Deevyanshu Malu, Deeptanshu Malu, Sunita Sarawagi, Aditya Nemiwal

    Abstract

    We investigate training strategies that co-develop in-context learning (ICL) and in-weights learning (IWL), and the ability to switch between them based on context relevance. Although current LLMs exhibit both modes, standard task-specific fine-tuning often erodes ICL, motivating IC-Train— fine-tuning with in-context examples. Prior work has shown that emergence of ICL after IC-Train depends on factors such as task diversity and training duration. In this paper we show that the similarity structure between target inputs and context examples also plays an important role. Random context leads to loss of ICL and IWL dominance, while only similar examples in context causes ICL to degenerate to copying labels without regard to relevance. To address this, we propose a simple Contrastive-Context which enforces two types of contrasts: (1) mix of similar and random examples within a context to evolve a correct form of ICL, and (2) varying grades of similarity across contexts to evolve ICL-IWL mixtures. We present insights on the importance of such contrast with theoretical analysis of a minimal model. We validate with extensive empirical evaluation on four LLMs and several tasks. Diagnostic probes confirm that contrasted contexts yield stable ICL-IWL mixtures, avoiding collapse into pure ICL, IWL, or copying.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    ReCAST: Probing Sparse Reference Use in In-Context Image Generation

    YeonGyu Han, Junah Jung, Dongheon Lee

    Abstract

    Personalized image generation in Diffusion Transformers (DiTs) increasingly relies on in-context conditioning, where a reference image is tokenized and concatenated with the denoising sequence. While effective, this design introduces a substantial computational burden: in FLUX.1 Kontext, 4,096 additional reference tokens increase the quadratic attention cost by up to 3.6×. We observe that this cost is largely redundant. Generation tokens attend overwhelmingly to a small subset of reference tokens aligned with the foreground subject, while many background tokens receive negligible attention. Based on this finding, we propose ReCAST, a training-free sparse reference conditioning method that ranks reference tokens using cross-image attention and selects a timestep-adaptive subset during denoising. On FLUX.1 Kontext, ReCAST reduces the average reference budget from 4,096 to approximately 600 tokens, achieving a 2.4× wall-clock speedup with less than 3% degradation in DINO identity score. Beyond acceleration, our results provide a compact diagnostic of how in-context DiTs use reference images for personalized generation.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Mamba as Measure-Valued Associative Memory: Infinite-Context Limits and Minimax-Optimal Learning

    Zeyu Bao, Tianyao Zhang

    Abstract

    As sequence models emerge as efficient architectures for long-context modeling, it becomes important to understand whether state-space models are capable of associative recall. We study the recall-predict problem, where a context is a mixture of tagged probability measures and a query specifies the component whose content distribution determines the response. First, focusing on two-layer Mamba models, we introduce the query insertion encoding and show the existence of an infinite-context measure-valued Mamba limit. Under separated tags and exponential decay assumptions, we study trained Mamba hypothesis classes and prove that approximate empirical risk minimization over these classes yields estimators with the population-risk bound in sub-polynomial rate. Finally, we complement this upper bound with an architecture-independent minimax lower bound of comparable order, demonstrating that the exponent is statistically optimal. These results extend measure-level associative-memory theory beyond attention mechanisms and identify query insertion, recurrent stability and spectral effective dimension as the key mechanisms enabling optimal learning from infinite contexts.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Fine-Tuning Dynamics of In-Context Factual Recall in Transformers

    Ruomin Huang, Eshaan Nichani, Jason Lee, Rong Ge

    Abstract

    In-context learning — performing tasks based on examples given in the prompt — is an important capability that has emerged in large language models and has received significant attention in both theory and practice. Existing theoretical work on in-context learning often focuses on settings where learning uses information purely from the prompt. However, many practical cases also require recalling factual knowledge stored in model parameters, with the context identifying which knowledge is relevant. We study this behavior through the in-context factual recall (IC-recall) task, where a transformer receives a context of (subject, answer) pairs generated from a hidden relation and must infer the relation to answer a query subject. We model factual knowledge by the transformer having access to a simple pre-constructed MLP associative memory that stores (subject, relation, answer) triplets. We analyze the supervised fine-tuning dynamics of a one-layer transformer on IC-recall data, and prove that the model successfully performs IC-recall by converging to a particular pairwise attention pattern. This fine-tuning stage requires a very small number of samples — only polylogarithmic in the number of stored knowledge triplets. Experiments verify our theoretical predictions and show that the pairwise attention pattern emerges even when the MLP layer is pretrained instead of constructed.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    On the Relationship between the Choice of Representation and In-context Learning

    Ioana Marinescu, Kyunghyun Cho, Eric Oermann

    Abstract

    In-context learning (ICL) is the ability of a large language model (LLM) to learn a new task from a few demonstrations presented as part of the context. Prior work has attributed much of ICL’s success to the representation of in-context demonstrations, particularly to the choice of labels in classification tasks. At the same time, evidence for ICL’s learning capacity, i.e., whether additional demonstrations improve performance, has been mixed, and ICL is often thought to occur only under specific conditions. The interaction between representation and learning in ICL remains underexplored. We hypothesize that these two aspects influence ICL performance in distinct ways: the representation of demonstrations determines the baseline accuracy of ICL, while learning from additional demonstrations improves performance on top of this baseline. We test this hypothesis by developing an optimization algorithm that enumerates label sets with varying semantic relevance, and performing ICL with varying numbers of demonstrations for each label set. We observe that learning occurs regardless of label set quality, although its efficiency, measured by the slope of improvement over demonstrations, depends on both label set quality and the parameter count of the underlying language model. Despite the emergence of learning, the relative accuracy of different label sets is largely preserved throughout learning, confirming our hypothesis. Our results reveal a previously underexplored aspect of ICL: the distinct roles of representation and learning in determining ICL performance.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    MINDGRAPH: Faithful Concept-Graph Memory for Long-Context Reasoning

    Xiangwen Wang, Varun Chandrasekaran

    Abstract

    Large language models (LLMs) struggle with long-context reasoning not because of limited context windows alone, but because they lack a working memory of accumulated knowledge that is at once persistent, structured, and reasoning-friendly. Prior approaches---long-context prompting, retrieval-augmented generation, summary-based generation, multi-agent memory, and recursive REPL agents---each fail at least one of these properties: they rebuild state from raw tokens on every query, compress it into unstructured summaries that drop contradictions and relationships, or impose structures that do not directly support multi-step inference. We isolate the regime where these failures compound---long inputs that demand both broad input understanding and deep multi-step inference---through LongReason-200, a $200$-item benchmark filtered from LongBench-v2, NarrativeQA, and LooGLE. We then propose MindGraph, a concept-graph memory framework: an incremental, question-aware build stage maintains a compact graph with character-level provenance to the original input, and an answer stage reasons over it via two tools that combine fine-grained verification and hierarchical navigation, choosing its access pattern from the graph's size. On LongReason-200, MindGraph reaches $77\%$ accuracy---above all five baselines---while passing only ${\sim}7\%$ of the original input to the answering LLM per query. The result suggests that effective long-context reasoning requires architectures that treat the working memory itself as a first-class design dimension.

    Abstract source
  • ICML · Workshop · Foundations of Deep Generative Models: Understanding Memorization, Generalization, and Reasoning

    Universality, Composition Generalization, and Algorithm Emulation All In-Context

    Jerry Yao-Chieh Hu, Hong-Yu Chen, Po-Chiao Lin, Maojiang Su, Han Liu

    Abstract

    We study the in-context universal approximation and compositional generalization of softmax Transformers. We prove an in-context universality result: a fixed-weight softmax Transformer approximates a broad class of continuous sequence-to-sequence functions. Building on this universality, we establish a composition theorem: by concatenating prompts associated with simple ``subprograms,'' the same fixed Transformer executes their composition, and thereby synthesizes more complex programs on-the-fly. These results support a principled view of prompts as programs and fixed-weight Transformers as program interpreters. Moreover, we provide a concrete mechanism by which GPT-style models both execute and assemble algorithms in context.

    Abstract source