Skip to content

ICLR papers

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

Explore the ICLR analysis

Search results

1,201–1,220 of 1,242

  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Experiential Reflective Learning for Self-Improving LLM Agents

    Allard Marc-Antoine, Arnaud Teinturier, Victor Xing, Gautier Viaud

    Abstract

    Recent advances in large language models (LLMs) have enabled the development of autonomous agents capable of complex reasoning and multi-step problem solving. However, these agents struggle to adapt to specialized environments and do not leverage past interactions, approaching each new task from scratch regardless of their accumulated experience. We introduce Experiential Reflective Learning (ERL), a simple self-improvement framework that enables rapid environment adaptation through experiential learning. ERL reflects on task trajectories and outcomes to generate heuristics, capturing actionable lessons that transfer across tasks. At test time, relevant heuristics are retrieved based on the current task and injected into the agent's context to guide execution. On the Gaia2 benchmark, ERL improves success rate by 7.8% over a ReAct baseline, with large gains in task completion reliability, and outperforms prior experiential learning methods. Through systematic ablations, we find that selective retrieval is essential and that heuristics provide more transferable abstractions than few-shot trajectory prompting. These results demonstrate that reflecting on single-attempt experiences to extract transferable heuristics enables effective agent self-improvement.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    From Lossy to Verified: A Provenance-Aware Tiered Memory for Agents

    Qiming Zhu, Shunian Chen, Rui Yu, Zhehao Wu, Wang Benyou

    Abstract

    Long-horizon agents often rely on write-time summaries to keep interaction histories manageable. But compression happens before the system knows what a future query will depend on. As a result, summary-only memory can remain topically relevant while omitting the query-critical detail required for a faithful answer. Always grounding on raw logs avoids this failure mode, but treating raw history as the default evidence source is costly and often unnecessary. We argue that long-horizon agent memory should therefore support \emph{inference-time evidence allocation}: for each query, the system should use the cheapest evidence that is still sufficient for faithful and traceable answering. We instantiate this principle in \textbf{TierMem}, a provenance-linked two-tier memory framework with three components: summary-first retrieval, selective escalation to immutable raw logs, and verified write-back of evidence-backed findings. Across two long-horizon memory benchmarks, TierMem improves the accuracy--efficiency frontier over summary-only memory while substantially reducing the cost of always-raw grounding. On LoCoMo, TierMem reaches 0.851 accuracy versus 0.873 for a raw-grounded, while reducing average input tokens by 54.1\% and latency by 60.7\%. Code is available at \url{https://github.com/FreedomIntelligence/Tiermem}.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Diagnosing Retrieval vs. Utilization Bottlenecks in LLM Agent Memory

    Boqin Yuan, Yue Su, Kun Yao

    Abstract

    Memory-augmented LLM agents store and retrieve information from prior interactions, yet the relative importance of how memories are written versus how they are retrieved remains unclear. We introduce a diagnostic framework that analyzes how performance differences manifest across write strategies, retrieval methods, and memory utilization behavior, and apply it to a $3 \times 3$ study crossing three write strategies (raw chunks, Mem0-style fact extraction, MemGPT-style summarization) with three retrieval methods (cosine, BM25, hybrid reranking). On LoCoMo, retrieval method is the dominant factor: average accuracy spans $20$ points across retrieval methods ($57.1\%$ to $77.2\%$) but only $3$-$8$ points across write strategies. Raw chunked storage, which requires zero LLM calls, matches or outperforms expensive lossy alternatives, suggesting that current memory pipelines may discard useful context that downstream retrieval mechanisms fail to compensate for. Failure analysis shows that performance breakdowns most often manifest at the retrieval stage rather than at utilization. We argue that, under current retrieval practices, improving retrieval quality yields larger gains than increasing write-time sophistication.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Belief Engine: Bayesian Memory for Configurable Opinion Dynamics in LLM Agents

    Joshua Yang, Damian Dailisan, Maurice Flechtner

    Abstract

    Large Language Model (LLM) agents can debate fluently, but they do not reliably maintain beliefs across long interactions. This makes it difficult to use them for opinion-dynamics studies where trajectories must be stable, interpretable, and reproducible. We introduce the Belief Engine, a configurable belief architecture that externalises belief state and updates it from extracted arguments. The engine stores adjudicated evidence in memory and updates a bounded stance score using a simple Bayesian log-odds rule with tunable parameters controlling evidence sensitivity, anchoring, and asymmetric weighting. In controlled two-agent debates across topics, we show that Belief Engine produces stance trajectories that are smoother and more reproducible than LLM-based (Agentic) updating, and that its parameters provide monotonic control over persuadability and resistance. By separating what an agent says from how its beliefs are updated, the framework enables traceable and controllable opinion dynamics in LLM-agent simulations.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    INFMEM: Learning System-2 Memory Control for Long-Context Agent

    Xinyu Wang, Mingze Li, Peng Lu, Xiao-Wen Chang, Lifeng Shang, Jinpeng Li, Fei Mi, Prasanna Parthasarathi, Yufei CUI

    Abstract

    Reasoning over ultra-long documents requires synthesizing sparse evidence scattered across distant segments under strict memory constraints. While streaming agents enable scalable processing, their passive memory update strategy often fails to preserve low-salience bridging evidence required for multi-hop reasoning. We propose InfMem, a control-centric agent that instantiates System-2-style control via a PreThink–Retrieve–Write protocol. InfMem actively monitors evidence sufficiency, performs targeted in-document retrieval, and applies evidence-aware joint compression to update a bounded memory. To ensure reliable control, we introduce a practical SFT→RL training recipe that aligns retrieval, writing, and stopping decisions with end-task correctness. On ultra-long QA benchmarks from 32k to 1M tokens, InfMem consistently outperforms MemAgent across backbones. Specifically, InfMem improves average absolute accuracy by +10.17, +11.84, and +8.23 points on Qwen3-1.7B, Qwen3-4B, and Qwen2.5-7B, respectively, while reducing inference time by 3.9× on average (up to 5.1×) via adaptive early stopping.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Just-In-Time Reinforcement Learning: Continual Learning in LLM Agents Without Gradient Updates

    Yibo Li, Zijie Lin, Ailin Deng, Xuan Zhang, Yufei He, Shuo Ji, Tri Cao, Bryan Hooi

    Abstract

    While Large Language Model (LLM) agents excel at general tasks, they inherently struggle with continual adaptation due to the frozen weights after deployment. Conventional reinforcement learning (RL) offers a solution but incurs prohibitive computational costs and the risk of catastrophic forgetting. We introduce Just-In-Time Reinforcement Learning (JitRL), a training-free framework that enables test-time policy optimization without any gradient updates. JitRL maintains a dynamic, non-parametric memory of experiences and retrieves relevant trajectories to estimate action advantages on-the-fly. These estimates are then used to directly modulate the LLM's output logits. We theoretically prove that this additive update rule is the exact closed-form solution to the KL-constrained policy optimization objective. Extensive experiments on WebArena and Jericho demonstrate that JitRL establishes a new state-of-the-art among training-free methods. Crucially, JitRL outperforms the performance of computationally expensive fine-tuning methods (e.g., WebRL) while reducing monetary costs by over 30 \times, offering a scalable path for continual learning agents. The code is available at https://anonymous.4open.science/r/JitRL-D485.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Log-Augmented Generation: Scaling Test-Time Reasoning with Reusable Computation

    Peter Baile Chen, Yi Zhang, Dan Roth, Samuel Madden, Jacob Andreas, Mike Cafarella

    Abstract

    While humans naturally learn and adapt from past experiences, large language models (LLMs) and their agentic counterparts often fail to retain reasoning from previous tasks and apply it to future contexts. We introduce Log-Augmented Generation (LAG), a novel framework that directly reuses prior computation and reasoning from past logs at test time, enabling models to learn from previous tasks to perform better on new, unseen challenges, without sacrificing efficiency or scalability. Our approach represents task logs as key-value (KV) caches that encode the reasoning context of prior tasks, while storing KV values for only a selected subset of tokens. When a new task arises, LAG retrieves KV values from relevant logs to augment generation. Unlike reflection-based memory mechanisms, which require additional extraction or distillation steps, LAG reuses prior reasoning verbatim. Moreover, it extends beyond existing KV caching techniques, primarily designed for efficiency, by explicitly improving accuracy through log reuse. Experiments on knowledge- and reasoning-intensive datasets demonstrate that our method significantly outperforms standard agentic systems without log utilization, as well as existing approaches based on reflection and KV cache techniques.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?

    Thibaud Gloaguen, Niels Mündler, Mark Mueller, Veselin Raychev, Martin Vechev

    Abstract

    A widespread practice in software development is to tailor coding agents to repositories using context files, such as `AGENTS.md`, by either manually or automatically generating them. Although this practice is strongly encouraged by agent developers, there is currently no rigorous investigation into whether such context files are actually effective for real-world tasks. In this work, we study this question and evaluate coding agents' task completion performance in two complementary settings: established SWE-bench tasks from popular repositories, with LLM-generated context files following agent-developer recommendations, and a novel collection of issues with developer-provided context files. Across multiple coding agents and LLMs, we find that context files result in *no improvement* in task success rates, while also *increasing inference cost* by over $20$%. Behaviorally, both LLM-generated and developer-provided context files encourage broader exploration (e.g., more thorough testing and file traversal), and coding agents tend to respect their instructions. Ultimately, we conclude that unnecessary requirements from context files make tasks harder, and human-written context files should describe only minimal requirements.

    Abstract source
  • ICLR · Workshop · ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems (MemAgents)

    GAM: Hierarchical Graph Memory for LLM-based Agents

    Zhaofen Wu, Hanrong Zhang, Fulin Lin, Wujiang Xu, Xinran Xu, Yankai Chen, Henry Peng Zou, shaowen chen, Weizhi Zhang, Xue Liu, Philip Yu, Hongwei Wang

    Abstract

    To sustain coherent long-term interactions, Large Language Model (LLM) agents must navigate the tension between acquiring new information and retaining prior knowledge. Current unified stream-based memory systems facilitate context updates but remain vulnerable to interference from transient noise. Conversely, discrete structured memory architectures provide robust knowledge retention but often struggle to adapt to fluid narrative evolution. To address this, we propose \textbf{\textsc{GAM}}, a hierarchical \textbf{G}raph-based \textbf{A}gentic \textbf{M}emory framework that explicitly decouples memory encoding from consolidation to effectively resolve the conflict between rapid context perception and stable knowledge retention. By isolating ongoing dialogue in a event progression graph and integrating it into a topic associative network only upon semantic shifts, our approach minimizes interference while preserving long-term consistency. Additionally, we introduce a Graph-guided, Multi-factor Retrieval strategy to enhance context precision. Experiments on LoCoMo and LongDialQA benchmarks indicate that our method consistently outperforms state-of-the-art baselines in both reasoning accuracy and efficiency.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Emotion is Not Just a Label: Latent Emotional Factors in LLM Processing

    Benjamin Reichman, Adar Avsian, Larry Heck

    Abstract

    Large language models are routinely deployed on text that varies widely in emotional tone, yet their reasoning behavior is typically evaluated without accounting for emotion as a source of representational variation. Prior work has largely treated emotion as a prediction target, for example in sentiment analysis or emotion classification. In contrast, we study emotion as a latent factor that shapes how models attend to and reason over text. We analyze how emotional tone systematically alters attention geometry in transformer models, showing that metrics such as locality, center-of-mass distance, and entropy vary across emotions and correlate with downstream question-answering performance. To facilitate controlled study of these effects, we introduce Affect-Uniform ReAding QA (AURA-QA), a question-answering dataset with emotionally balanced, human-authored context passages. Finally, an emotional regularization framework is proposed that constrains emotion-conditioned representational drift during training. Experiments across multiple QA benchmarks demonstrate that this approach improves reading comprehension in both emotionally-varying and non-emotionally varying datasets, yielding consistent gains under distribution shift and in-domain improvements on several benchmarks.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Constructive Circuit Amplification: Improving Math Reasoning in LLMs via Targeted Sub-Network Updates

    Nikhil Prakash, Donghao Ren, Dominik Moritz, Yannick Assogba

    Abstract

    Prior studies investigating the internal workings of LLMs have uncovered sparse subnetworks, referred to as circuits, that are responsible for performing specific tasks. Additionally, it has been shown that performance improvements of fine-tuning often results from the strengthening of existing circuits. Taken together, these findings suggest the possibility of intervening directly on such circuits to make precise, task-targeted updates. Motivated by these findings, we propose a novel method called Constructive Circuit Amplification which identifies pivotal tokens from model reasoning traces as well as model components responsible for the desired task, and updates only those components. Applied to mathematical reasoning, it improves accuracy by up to +11.4% across multiple models while modifying as little as 1.59% of model components, with minimal impact on other abilities as measured by MMLU, TriviaQA, and TruthfulQA. These results demonstrate that targeted capabilities can be reliably enhanced by selectively updating a sparse set of model components.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    LatentLens: Revealing Highly Interpretable Visual Tokens in LLMs

    Benno Krojer, Shravan Nayak, Oscar Mañas, Vaibhav Adlakha, Desmond Elliott, Siva Reddy, Marius Mosbach

    Abstract

    Transforming a large language model (LLM) into a Vision-Language Model (VLM) can be achieved by mapping the visual tokens from a vision encoder into the embedding space of an LLM. Intriguingly, this mapping can be as simple as a shallow MLP transformation. To understand why LLMs can so readily process visual tokens, we need interpretability methods that reveal what is encoded in the visual token representations at every layer of LLM processing. In this work, we introduce LatentLens, a novel approach for mapping latent representations to descriptions in natural language. LatentLens works by encoding a large text corpus and storing contextualized token representations for each token in that corpus. Visual token representations are then compared to their contextualized textual representations, with the top-k nearest neighbor representations providing descriptions of the visual token. We evaluate this method on 10 different VLMs, showing that commonly used methods, such as LogitLens, substantially underestimate the interpretability of visual tokens. With LatentLens instead, the majority of visual tokens are interpretable across all studied models and all layers. Qualitatively, we show that the descriptions produced by LatentLens are semantically meaningful and provide more fine-grained interpretations for humans compared to individual tokens. More broadly, our findings contribute new evidence on the alignment between vision and language representations, opening up new directions for analyzing latent representations.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Sparks of Rationality: Do Reasoning LLMs Align with Human Judgment and Choice?

    Ala N. Tak, Mohammadamin Banayeeanzade, Anahita Bolourani, Fatemeh Bahrani, Ashutosh Chaubey, Sai Karimireddy, Norbert Schwarz, Jonathan Gratch

    Abstract

    Large Language Models (LLMs) are increasingly positioned as decision engines for hiring, healthcare, and economic judgment, yet real-world human judgment reflects a balance between rational deliberation and emotion-driven bias. If LLMs are to participate in high-stakes decisions or serve as models of human behavior, it is critical to assess whether they exhibit analogous patterns of (ir)rationalities and biases. To this end, we evaluate multiple LLM families on (i) benchmarks testing core axioms of rational choice and (ii) classic decision domains from behavioral economics and social norms where emotions are known to shape judgment and choice. Across settings, we show that deliberate "thinking'' reliably improves rationality and pushes models toward expected-value maximization. To probe human-like affective distortions and their interaction with reasoning, we use two emotion-steering methods: in-context priming (ICP) and representation-level steering (RLS). ICP induces strong directional shifts that are often extreme and difficult to calibrate, whereas RLS produces more psychologically plausible patterns but with lower reliability. Our results suggest that the same mechanisms that improve rationality also amplify sensitivity to affective interventions, and that different steering methods trade off controllability against human-aligned behavior. Overall, this points to a tension between reasoning and affective steering, with implications for both human simulation and the safe deployment of LLM-based decision systems.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Safe Downstream Adaptation of LLMs via Refusal-Orthogonal Gated Editing

    Nayeema Nonta, Sirisha Rambhatla

    Abstract

    Parameter-efficient fine-tuning (PEFT) methods adapt large language models (LLMs) with limited data and compute, but can inadvertently degrade safety-critical refusal behavior. Prior work suggests refusal is concentrated in a small number of directions in representation space; we hypothesize that estimating these directions and restricting adaptation to their orthogonal complement can prevent downstream fine-tuning from making a model less safe. We propose Safety-Aware Gated Editing (SAGE), a two-stage method that (i) estimates a refusal subspace and (ii) fine-tunes sparse, gated additive and multiplicative activation edits for task performance while constraining all edits to the refusal-orthogonal subspace. On Llama-3.1-8B-Instruct, SAGE achieves competitive downstream task and MMLU-Pro accuracy while consistently lowering attack success rates on StrongREJECT, AdvBench, and JailbreakBench compared to standard PEFT and unconstrained activation editing. Overall, SAGE operationalizes refusal directions as a protected control primitive, enabling geometry-aware adaptation that preserves safety under low-resource fine-tuning.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Steered LLM Activations are Non-Surjective

    Aayush Mishra, Daniel Khashabi, Anqi Liu

    Abstract

    Activation steering is a popular white-box control technique that modifies model activations to elicit an abstract change in output behavior (like personas). It has also become a standard tool in interpretability (e.g., probing truthfulness, or translating internal activations into human-readable explanations (Pan et al., 2024)) and safety research (e.g., studying jailbreakability). However, it is unclear whether steered activation states are realizable by any textual prompt. In this work, we cast this question as a surjectivity problem: for a fixed model, does every steered activation admit a preimage under the model’s natural forward pass? Under practical assumptions, we prove that activation steering pushes the residual stream off the manifold of states reachable from discrete prompts. Almost surely, no prompt can reproduce the same internal behavior induced by steering. We also illustrate this finding empirically across three widely used LLMs. Our results establish a formal separation between white-box steerability and black-box prompting. We therefore caution against interpreting the ease and success of activation steering as evidence of prompt-based interpretability or vulnerability, and argue for evaluation protocols that explicitly decouple white-box and black-box interventions.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Steer2Adapt: Dynamically Composing Steering Vectors Elicits Efficient Adaptation of LLMs

    Pengrui Han, Xueqiang Xu, Keyang Xuan, Peiyang Song, Siru Ouyang, Runchu Tian, Yuqing Jiang, Cheng Qian, Pengcheng Jiang, Jiashuo Sun, Junxia Cui, Ming Zhong, Ge Liu, Jiawei Han, Jiaxuan You

    Abstract

    Activation steering has emerged as a promising method for efficiently adapting large language models (LLMs) to downstream behaviors. However, most existing steering approaches identify and steer the model from a single static direction for each task or concept, which is inflexible under task variation and insufficient for complex tasks requiring multiple coordinated capabilities. To address this gap, we propose Steer2Adapt, a lightweight framework that enables efficient LLM adaptation by composing steering vectors rather than learning new ones from scratch. In practice, tasks within the same domain (e.g., reasoning or safety) often share a small set of underlying concept dimensions. Steer2Adapt spans these dimensions into a reusable, low-dimensional semantic prior subspace and adapts to new tasks by dynamically discovering a linear combination of basis vectors using only a handful of examples. Experiments across 9 tasks and 3 models in both reasoning and safety domains demonstrate the effectiveness of Steer2Adapt, with an average of 8.2% improvement. Together with our analyses, we establish Steer2Adapt as a data-efficient, stable, and transparent inference-time adaptation method for LLMs.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Verbalizing LLMs' Assumptions to Reduce Sycophancy

    Myra Cheng, Sunny Yu, Lujain Ibrahim, Diyi Yang, Dan Jurafsky

    Abstract

    Conversation often requires inferring the speaker’s underlying goal rather than interpreting statements literally. For instance, asking “does my outfit look OK?” may seek reassurance, not objective assessment. LLMs similarly infer users’ intentions, but these internal assumptions are typically implicit and inaccessible. We demonstrate that verbalized assumptions – prompting LLMs for their implicit assumptions – can help understand and control downstream behavior. We present three case studies where verbalized assumptions help understand and address LLM sycophancy, i.e., perceptions of LLMs excessively affirming and validating users. First, we show a systematic mismatch of expectations: for queries that are typically validation-seeking in human conversation, users expect LLMs to respond objectively, while LLMs internally assume validation-seeking intent. Second, we link sycophancy to LLMs overwhelmingly assuming that users are validation-seeking. Finally, we show that these representations can be causally intervened on: by probing and steering assumption-level representations, we reduce sycophantic behavior without degrading task performance. These results show that verbalized assumptions are a useful primitive for controlling LLM behavior to align with user expectations.

    Abstract source
  • ICLR · Workshop · Representational Alignment

    Automated Concept Discovery for LLM-as-a-Judge Preference Analysis

    James Wedgwood, Chhavi Yadav, Virginia Smith

    Abstract

    Large Language Models (LLMs) are increasingly used as scalable evaluators of model outputs, but their preference judgments exhibit systematic biases and can diverge from human evaluations. Prior work on LLM-as-a-judge has largely focused on a small, predefined set of hypothesized biases, leaving open the problem of automatically discovering unknown drivers of LLM preferences. We address this gap by studying several embedding-level concept extraction methods for analyzing LLM judge behavior. We compare these methods in terms of interpretability and predictiveness, finding that sparse autoencoder–based approaches recover substantially more interpretable preference features than alternatives while remaining competitive in predicting LLM decisions. Using over 27k paired responses from multiple human preference datasets and judgments from three LLMs, we analyze LLM judgments and compare them to those of human annotators. Our method both validates existing results, such as the tendency for LLMs to prefer refusal of sensitive requests at higher rates than humans, and uncovers new trends across both general and domain-specific datasets, including biases toward responses that emphasize concreteness and empathy in approaching new situations, toward detail and formality in academic advice, and against legal guidance that promotes active steps like calling police and filing lawsuits. Our results show that automated concept discovery enables systematic analysis of LLM judge preferences without predefined bias taxonomies.

    Abstract source
  • ICLR · Workshop · Workshop on Multi-Agent Learning and Its Opportunities in the Era of Generative AI

    AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization

    Genghan Zhang, Shaowei Zhu, Anjiang Wei, Zhenyu Song, Allen Nie, Zhen Jia, Nandita Vijaykumar, Yida Wang, Kunle Olukotun

    Abstract

    We present AccelOpt, a self-improving large language model (LLM) agentic system that autonomously optimizes kernels for emerging AI acclerators, eliminating the need for expert-provided hardware-specific optimization knowledge. AccelOpt explores the kernel optimization space through iterative generation, informed by an optimization memory that curates experiences and insights from previously encountered slow-fast kernel pairs. We build NKIBench, a new benchmark suite of AWS Trainium accelerator kernels with varying complexity extracted from real-world LLM workloads to evaluate the effectiveness of AccelOpt. Our evaluation confirms that AccelOpt's capability improves over time, boosting the average percentage of peak throughput from $49\%$ to $61\%$ on Trainium 1 and from $45\%$ to $59\%$ on Trainium 2 for NKIBench kernels. Moreover, AccelOpt is highly cost-effective: using open-source models, it matches the kernel improvements of Claude Sonnet 4 while being $26\times$ cheaper.

    Abstract source
  • ICLR · Workshop · Workshop on Multi-Agent Learning and Its Opportunities in the Era of Generative AI

    AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization

    Genghan Zhang, Shaowei Zhu, Anjiang Wei, Zhenyu Song, Allen Nie, Zhen Jia, Nandita Vijaykumar, Yida Wang, Kunle Olukotun

    Abstract

    We present AccelOpt, a self-improving large language model (LLM) agentic system that autonomously optimizes kernels for emerging AI acclerators, eliminating the need for expert-provided hardware-specific optimization knowledge. AccelOpt explores the kernel optimization space through iterative generation, informed by an optimization memory that curates experiences and insights from previously encountered slow-fast kernel pairs. We build NKIBench, a new benchmark suite of AWS Trainium accelerator kernels with varying complexity extracted from real-world LLM workloads to evaluate the effectiveness of AccelOpt. Our evaluation confirms that AccelOpt's capability improves over time, boosting the average percentage of peak throughput from $49\%$ to $61\%$ on Trainium 1 and from $45\%$ to $59\%$ on Trainium 2 for NKIBench kernels. Moreover, AccelOpt is highly cost-effective: using open-source models, it matches the kernel improvements of Claude Sonnet 4 while being $26\times$ cheaper.

    Abstract source