Internships 2026–2027

All our internships share the same format:

  • Location: Paris (8th arrondissement), on-site
  • Duration: 6 months
  • Focus: research
  • Profile: Master’s students, with an internship agreement (convention de stage) from their school or university
  • Contact: ludovic.denoyer@imec.be

Each internship is a research project at the frontier of our work on agents, learning and discovery, and can lead to a publication. To apply, see the Join us page.

State-Space Models for Forecasting from Long Histories

State-Space Models for Forecasting from Long Histories

State-space modelsForecastingLong contextHealthcare

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

Many forecasting problems require predicting future outcomes from a long history of past events. For example, predicting the outcome of a patient from the full history of their medical reports. Transformers have proven to be viable predictors for such tasks, but long histories often exceed the context limits of even frontier models, and when they fit, cost and latency are high. Transformers also struggle to use information buried in the middle of long contexts [1].

State-space models (SSMs) such as S4 [2], Mamba [3] and Mamba-2 [4] process sequences in linear time with a fixed-size state, and can in principle digest arbitrarily long histories. Hybrid architectures combining attention and SSM layers [5] and first applications to electronic health records [6, 7] are promising. However, SSMs remain much less explored than transformers, their fixed-size state limits exact recall from the context [8], and current SSM foundation models lag behind transformer models in quality.

Objective

Assess whether SSMs can become a practical alternative to transformers for forecasting from very long histories, and develop techniques that make them scalable and accurate. Key questions are:

  • When do SSMs match or outperform transformers as history length grows?
  • What is lost because of the fixed-size state?
  • How can hybrid designs or training strategies close the gap?

Methodology

  1. Literature and baselines. Review SSM, hybrid and long-context transformer architectures. Set up baselines on public long-sequence forecasting tasks (EHR-style event sequences, time series [9]) and on internal Future Querying use-cases.
  2. Controlled comparison. Compare transformers, SSMs and hybrids at equal compute while varying history length. Measure prediction quality, calibration, cost and latency, following evaluation protocols from recent long-context EHR studies [7].
  3. Diagnosis. Probe recall and copying weaknesses [8] with synthetic tasks, and identify which parts of long histories each model actually uses.
  4. Improvement. Explore techniques to make SSMs more effective: hybrid layers, fine-tuning existing SSM foundation models, history compression or summarisation, and retrieval of relevant past events.
  5. Reporting. Release a reproducible codebase, a benchmark of the trade-offs, and a technical report or publication.

References

  • [1] N. F. Liu, K. Lin, J. Hewitt, et al. Lost in the Middle: How Language Models Use Long Contexts. TACL 2024. arXiv:2307.03172.
  • [2] A. Gu, K. Goel, C. Ré. Efficiently Modeling Long Sequences with Structured State Spaces. ICLR 2022. arXiv:2111.00396.
  • [3] A. Gu, T. Dao. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. COLM 2024. arXiv:2312.00752.
  • [4] T. Dao, A. Gu. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. ICML 2024. arXiv:2405.21060.
  • [5] O. Lieber, B. Lenz, H. Bata, et al. Jamba: A Hybrid Transformer-Mamba Language Model. arXiv:2403.19887, 2024.
  • [6] A. Fallahpour, M. Alinoori, W. Ye, et al. EHRMamba: Towards Generalizable and Scalable Foundation Models for Electronic Health Records. arXiv:2405.14567, 2024.
  • [7] M. Wornow, S. Bedi, M. A. Fuentes Hernandez, et al. Context Clues: Evaluating Long Context Models for Clinical Prediction Tasks on EHRs. ICLR 2025. arXiv:2412.16178.
  • [8] S. Jelassi, D. Brandfonbrener, S. M. Kakade, E. Malach. Repeat After Me: Transformers are Better than State Space Models at Copying. ICML 2024. arXiv:2402.01032.
  • [9] Z. Wang, F. Kong, S. Feng, et al. Is Mamba Effective for Time Series Forecasting? arXiv:2403.11144, 2024.

Retrieval-Augmented Generation over Continual Streams of Documents and Questions

Retrieval-Augmented Generation over Continual Streams of Documents and Questions

RAGContinual learningStreaming dataLLMs

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

Retrieval-augmented generation (RAG) augments a large language model (LLM) with an external memory. It performs well on knowledge-intensive tasks, and its knowledge can be updated by replacing the memory without retraining the model [1]. However, RAG systems are usually designed and evaluated with a fixed memory.

In many applications, new information arrives continuously and must be used as soon as it is available. Examples include recursively self-improving systems, court records, medical examinations and video games. Documents and questions are interleaved, facts are revised or superseded, and the system must stay accurate and efficient as its memory grows. Benchmarks on evolving news and facts show that models struggle to keep up [2, 3, 4], and simply growing a memory eventually degrades retrieval [5].

This internship focuses on the retrieval system itself in a streaming setting: how the memory is ingested, organised, refreshed and served over time.

Objective

Design and evaluate RAG methods that stay accurate, fast and cheap over a continual stream of documents and questions. As a second step, study how the structure such a system builds can be reused to select and organise data for continued pre-training.

Methodology

  1. Streaming RAG methods. Survey and implement methods that update their memory incrementally: vector indexes, graph-based memories [5, 6], and handling of revised or contradictory facts. Optimise them for accuracy, latency and cost, for example through prompt optimisation and caching of retrieved knowledge [7].
  2. Evaluation. Build or adapt streaming evaluation scenarios from existing benchmarks [2, 3, 4]. These should include facts that change over time, questions that are asked repeatedly, and corpora that keep growing. Measure accuracy over time, staleness, latency and cost.
  3. From memory to pre-training data. While answering questions, a RAG system finds nearest neighbours, builds graphs of entities and links, and records what changed and which documents answered which questions. Grouping related documents in the same training context improves pre-training [8, 9]. Training only on what changed between corpus snapshots matches full retraining at a fraction of the cost [4]. Data selection also strongly affects model quality [10]. Building on these results, investigate how this structure can select, order and group data for continued pre-training [11].
  4. Reporting. Release an open-source streaming RAG testbed, run an empirical study, and write a technical report or publication.

References

  • [1] P. Lewis, E. Perez, A. Piktus, et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 2020. arXiv:2005.11401.
  • [2] A. Liška, T. Kočiský, E. Gribovskaya, et al. StreamingQA: A Benchmark for Adaptation to New Knowledge over Time in Question Answering Models. ICML 2022. arXiv:2205.11388.
  • [3] J. Kasai, K. Sakaguchi, Y. Takahashi, et al. RealTime QA: What’s the Answer Right Now? NeurIPS 2023 (Datasets & Benchmarks). arXiv:2207.13332.
  • [4] J. Jang, S. Ye, C. Lee, et al. TemporalWiki: A Lifelong Benchmark for Training and Evaluating Ever-Evolving Language Models. EMNLP 2022. arXiv:2204.14211.
  • [5] B. Jiménez Gutiérrez, Y. Shu, W. Qi, et al. From RAG to Memory: Non-Parametric Continual Learning for Large Language Models. ICML 2025. arXiv:2502.14802.
  • [6] D. Edge, H. Trinh, N. Cheng, et al. From Local to Global: A Graph RAG Approach to Query-Focused Summarization. arXiv:2404.16130, 2024.
  • [7] C. Jin, Z. Zhang, X. Jiang, et al. RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generation. arXiv:2404.12457, 2024.
  • [8] W. Shi, S. Min, M. Lomeli, et al. In-context Pretraining: Language Modeling Beyond Document Boundaries. ICLR 2024. arXiv:2310.10638.
  • [9] M. Yasunaga, J. Leskovec, P. Liang. LinkBERT: Pretraining Language Models with Document Links. ACL 2022. arXiv:2203.15827.
  • [10] T. Thrush, C. Potts, T. Hashimoto. Improving Pretraining Data Using Perplexity Correlations. ICLR 2025. arXiv:2409.05816.
  • [11] A. Ibrahim, B. Thérien, K. Gupta, et al. Simple and Scalable Strategies to Continually Pre-train Large Language Models. TMLR 2024. arXiv:2403.08763.

Multi-Agent LLM Optimization of Any Workload, on Any Hardware

Multi-Agent LLM Optimization of Any Workload, on Any Hardware

GPU kernelsHPCMulti-agentAMD / Trainium

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

LLM-driven agents are now able to write and optimise high-performance code. Evolutionary program search with LLMs has produced new algorithms and faster kernels [1, 2]. Benchmarks such as KernelBench [3] and agentic CUDA engineering systems [4] show that LLMs can generate GPU kernels that beat standard implementations. Our team has built a multi-agent Discovery framework whose kernel use-case optimises AI kernels on NVIDIA GPUs.

Most of this work, however, targets AI workloads (matrix multiplications, attention) on NVIDIA hardware. Scientific HPC codes such as molecular dynamics or finite element methods have different structures, such as irregular memory access, sparse data and complex numerics. Alternative accelerators (AMD GPUs with ROCm/HIP, AWS Trainium) have different programming models and much less training data available to LLMs. First evaluations of LLMs on parallel HPC code show they still struggle there [5].

Objective

Extend the Discovery framework beyond AI workloads and NVIDIA systems, and measure how well multi-agent LLM search optimises:

  • (A) non-AI HPC kernels on GPUs;
  • (B) kernels on non-NVIDIA hardware.

Results are compared against expert code and classical autotuners [6, 7].

Methodology

  1. Benchmark design. Select representative HPC kernels from molecular dynamics, finite elements and stencils, plus AI kernels ported to AMD and Trainium. Each has a reference implementation and correctness checks, inspired by KernelBench and ParEval [3, 5].
  2. Framework extension. Add backends for new languages and toolchains (HIP, NKI), hardware-specific profiling feedback, and documentation that agents can retrieve to compensate for the limited training data on these platforms.
  3. Robust evaluation. Implement strict numerical-correctness checks and reproducible timing, and guard against agents gaming the benchmarks [4]. Compare against expert libraries, existing autotuners and single-agent baselines.
  4. Analysis. Study which agent strategies transfer across workloads and hardware, and where the agents fail. Examples include irregular memory access, numerical stability, and unfamiliar programming models.
  5. Outcome. Deliver a codebase integrated into the Discovery framework, benchmark results, and a publication.

References

  • [1] B. Romera-Paredes, M. Barekatain, A. Novikov, et al. Mathematical Discoveries from Program Search with Large Language Models. Nature 625, 2024. DOI:10.1038/s41586-023-06924-6.
  • [2] A. Novikov, N. Vũ, M. Eisenberger, et al. AlphaEvolve: A Coding Agent for Scientific and Algorithmic Discovery. arXiv:2506.13131, 2025.
  • [3] A. Ouyang, S. Guo, S. Arora, et al. KernelBench: Can LLMs Write Efficient GPU Kernels? ICML 2025. arXiv:2502.10517.
  • [4] R. T. Lange, Q. Sun, A. Prasad, et al. Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization. arXiv:2509.14279, 2025.
  • [5] D. Nichols, J. H. Davis, Z. Xie, et al. Can Large Language Models Write Parallel Code? HPDC 2024. arXiv:2401.12554.
  • [6] T. Chen, L. Zheng, E. Yan, et al. Learning to Optimize Tensor Programs. NeurIPS 2018. arXiv:1805.08166.
  • [7] L. Zheng, C. Jia, M. Sun, et al. Ansor: Generating High-Performance Tensor Programs for Deep Learning. OSDI 2020. arXiv:2006.06762.
  • [8] A. Shypula, A. Madaan, Y. Zeng, et al. Learning Performance-Improving Code Edits. ICLR 2024. arXiv:2302.07867.

Multi-Agent LLM Framework for Hardware–Software Co-Optimization

Multi-Agent LLM Framework for Hardware–Software Co-Optimization

HW-SW co-designComputer architectureSimulationMulti-agent

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

The performance of a computing system depends jointly on the software it runs and on its architecture: core counts, memory hierarchy, caches and dataflow. Accelerator studies show that co-designing the mapping and the architecture largely determines efficiency [1]. Yet software and hardware are usually optimised separately, because the design space is huge and evaluating a design requires slow simulators. Examples are Accel-Sim for GPUs [2], gem5 for CPUs [3], and open RISC-V GPUs such as Vortex [4].

Machine-learning methods for design-space exploration have been unified in environments such as ArchGym [5], and LLMs are increasingly capable on hardware tasks [6]. Recent work shows that LLM agents that reason over simulator bottlenecks can explore architectures with far fewer simulations than classical search [7, 8]. Combining this ability with our multi-agent Discovery framework, which already optimises software, opens the way to optimising workloads and architectures together.

Objective

Build and evaluate a multi-agent LLM framework that jointly optimises software and hardware:

  • (A) workloads together with a parameterised architecture, for example modern GPUs modelled in Accel-Sim, or RISC-V CPU/GPU designs;
  • (B) co-design of heterogeneous systems, combining CPUs, GPUs and accelerators.

The framework is compared with classical design-space exploration baselines.

Methodology

  1. Environment. Wrap one or two simulators (Accel-Sim, gem5 or Vortex) behind an agent-friendly interface that exposes architecture parameters, workload code and performance, power and area metrics. Possibly reuse ArchGym conventions [5].
  2. Agents. Design cooperating agents: a software agent that rewrites kernels, a hardware agent that proposes architecture changes, and an analyst agent that reads simulator statistics to find bottlenecks [7, 8].
  3. Baselines. Compare against random search, Bayesian optimisation, genetic algorithms and reinforcement learning, as well as software-only and hardware-only optimisation, under equal simulation budgets.
  4. Heterogeneous co-design. Extend to partitioning a workload across heterogeneous components and jointly sizing those components.
  5. Outcome. Deliver a codebase, results on Pareto fronts and sample efficiency, and a publication.

References

  • [1] A. Parashar, P. Raina, Y. S. Shao, et al. Timeloop: A Systematic Approach to DNN Accelerator Evaluation. ISPASS 2019. DOI:10.1109/ISPASS.2019.00042.
  • [2] M. Khairy, Z. Shen, T. M. Aamodt, T. G. Rogers. Accel-Sim: An Extensible Simulation Framework for Validated GPU Modeling. ISCA 2020. DOI:10.1109/ISCA45697.2020.00047.
  • [3] J. Lowe-Power, A. M. Ahmad, A. Akram, et al. The gem5 Simulator: Version 20.0+. arXiv:2007.03152, 2020.
  • [4] B. Tine, K. P. Yalamarthy, F. Elsabbagh, et al. Vortex: Extending the RISC-V ISA for GPGPU and 3D-Graphics. MICRO 2021. arXiv:2110.10857.
  • [5] S. Krishnan, A. Yazdanbakhsh, S. Prakash, et al. ArchGym: An Open-Source Gymnasium for Machine Learning Assisted Architecture Design. ISCA 2023. arXiv:2306.08888.
  • [6] M. Liu, N. Pinckney, B. Khailany, H. Ren. VerilogEval: Evaluating Large Language Models for Verilog Code Generation. ICCAD 2023. arXiv:2309.07544.
  • [7] T. Zhang, R. Ma, S. Xu, et al. LUMINA: LLM-Guided GPU Architecture Exploration via Bottleneck Analysis. arXiv:2603.05904, 2026.
  • [8] C. Wang, J. C. Shi, D. Kong, et al. AgentDSE: Reasoning-Augmented Architectural Design Space Exploration. MLArchSys Workshop @ ISCA 2026. arXiv:2606.21836.

AI Scientist meets Auto-Discovery: Learning to Search Efficiently

AI Scientist meets Auto-Discovery: Learning to Search Efficiently

AI ScientistEvolutionary searchMeta-learningAuto-discovery

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

LLM-driven evolutionary search has become a powerful engine for automated discovery. Systems such as FunSearch [1], AlphaEvolve [2] and Evolution through Large Models [3] repeatedly ask an LLM to modify programs, evaluate them, and keep the best or most diverse ones [4]. Our Discovery framework follows this paradigm to optimise programs and kernels. Each evaluation, however, can be expensive (compilation, benchmarking, simulation), and current search loops waste many of them on uninformative candidates. Recent work starts to address this sample-efficiency problem [5].

In parallel, “AI Scientist” systems run research loops end to end: they formulate hypotheses, design experiments and analyse results [6]. Other work shows that the search process itself can be learned and improved, by evolving mutation prompts [7], by searching over agent designs [8], or by agents that rewrite their own code [9]. Bringing these ideas into auto-discovery could make search far more efficient: an agent would decide what to explore next, based on accumulated evidence, instead of mutating candidates blindly.

Objective

Improve the search efficiency of the Discovery framework on its existing benchmarks (for example, kernel optimisation) by:

  1. adding hypothesis-driven, AI-Scientist-style exploration;
  2. using meta-learning to learn search strategies (mutation operators, parent selection, prompts, choice of LLM) that transfer across tasks.

Success is measured as better solutions for a fixed evaluation budget.

Methodology

  1. Baseline and metrics. Reproduce the current search loop on a selection of benchmarks, and define sample-efficiency metrics such as best score vs. number of evaluations, and cost.
  2. Hypothesis-driven search. Add an agent that keeps a record of experiments, proposes explicit hypotheses (for example, “memory tiling is the bottleneck”), and designs targeted candidates to test them [6].
  3. Meta-learned search. Learn search components across tasks: evolved mutation prompts [7], adaptive parent selection and LLM choice [5], and search strategies discovered by a meta-agent [8, 9].
  4. Evaluation. Compare the methods on held-out benchmarks under equal budgets, and analyse which components drive the gains.
  5. Outcome. Deliver code integrated into the Discovery framework, an empirical study, and a publication.

Note: the team is also actively working on these questions. The exact scope will be defined at the start of the internship to complement ongoing work.

References

  • [1] B. Romera-Paredes, M. Barekatain, A. Novikov, et al. Mathematical Discoveries from Program Search with Large Language Models. Nature 625, 2024. DOI:10.1038/s41586-023-06924-6.
  • [2] A. Novikov, N. Vũ, M. Eisenberger, et al. AlphaEvolve: A Coding Agent for Scientific and Algorithmic Discovery. arXiv:2506.13131, 2025.
  • [3] J. Lehman, J. Gordon, S. Jain, et al. Evolution through Large Models. arXiv:2206.08896, 2022.
  • [4] J.-B. Mouret, J. Clune. Illuminating Search Spaces by Mapping Elites. arXiv:1504.04909, 2015.
  • [5] R. T. Lange, Y. Imajuku, E. Cetin. ShinkaEvolve: Towards Open-Ended and Sample-Efficient Program Evolution. ICLR 2026. arXiv:2509.19349.
  • [6] C. Lu, C. Lu, R. T. Lange, et al. The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery. arXiv:2408.06292, 2024.
  • [7] C. Fernando, D. Banarse, H. Michalewski, et al. Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution. ICML 2024. arXiv:2309.16797.
  • [8] S. Hu, C. Lu, J. Clune. Automated Design of Agentic Systems. ICLR 2025. arXiv:2408.08435.
  • [9] J. Zhang, S. Hu, C. Lu, et al. Darwin Gödel Machine: Open-Ended Evolution of Self-Improving Agents. ICLR 2026. arXiv:2505.22954.

Choosing How to Learn: Knowledge Update Mechanisms for Continual Learning Agents

Choosing How to Learn: Knowledge Update Mechanisms for Continual Learning Agents

Continual learningLLM agentsMemoryFine-tuning

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

LLM-based agents can now acquire new knowledge in many different ways:

  • in the prompt, through instructions or optimised demonstrations [1];
  • in the harness, through tools and reusable skill libraries [2];
  • in the context or a self-managed memory [3, 4];
  • in external databases queried through retrieval [5];
  • directly in the weights, through fine-tuning, adapters [6] or targeted knowledge editing [7, 8].

Each mechanism has its own trade-offs. Prompt and harness updates are cheap, immediate and reversible, but limited in size. Context grows costly and is used poorly at length. Retrieval scales but depends on retrieval quality. Weight updates make knowledge fast to use and can teach skills, but they are expensive, hard to undo, and prone to catastrophic forgetting [9, 10]. Empirical comparisons show that the best choice depends on the type of knowledge [11]. These mechanisms are still mostly studied in isolation [12].

Unlike work on streaming retrieval systems, this internship looks at the decision layer: where a piece of knowledge should live, and when it should move.

Objective

Study how a continual learning agent can choose, combine and move knowledge across update mechanisms over its lifetime. The choice depends on the type of knowledge (facts, skills, preferences, procedures), how often it is used, how often it changes, and the compute budget. The goal is an agent that uses the right mechanism at the right time.

Methodology

  1. Characterisation. Build a common protocol to compare the mechanisms on accuracy, generalisation, update cost, inference cost, latency, forgetting, reversibility and interpretability, across knowledge types and numbers of updates.
  2. Benchmark. Design a stream of new information and tasks that includes changing facts, reusable skills and knowledge that becomes obsolete.
  3. Selection policies. Develop strategies that decide where each new piece of knowledge goes, from hand-crafted rules to LLM-based or learned policies (for example, a budget-constrained bandit or reinforcement learning problem).
  4. Consolidation. Study how knowledge can move between mechanisms over time: from context to database, from database to prompt or tools, and from external memory to weights. This draws on reflection-based memory [4] and on how humans consolidate memories.
  5. Outcome. Deliver an open-source library with a common interface for all mechanisms, a benchmark, a prototype agent, and a publication.

References

  • [1] O. Khattab, A. Singhvi, P. Maheshwari, et al. DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelines. ICLR 2024. arXiv:2310.03714.
  • [2] G. Wang, Y. Xie, Y. Jiang, et al. Voyager: An Open-Ended Embodied Agent with Large Language Models. TMLR 2024. arXiv:2305.16291.
  • [3] C. Packer, S. Wooders, K. Lin, et al. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560, 2023.
  • [4] J. S. Park, J. C. O’Brien, C. J. Cai, et al. Generative Agents: Interactive Simulacra of Human Behavior. UIST 2023. arXiv:2304.03442.
  • [5] P. Lewis, E. Perez, A. Piktus, et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 2020. arXiv:2005.11401.
  • [6] E. J. Hu, Y. Shen, P. Wallis, et al. LoRA: Low-Rank Adaptation of Large Language Models. ICLR 2022. arXiv:2106.09685.
  • [7] K. Meng, D. Bau, A. Andonian, Y. Belinkov. Locating and Editing Factual Associations in GPT. NeurIPS 2022. arXiv:2202.05262.
  • [8] K. Meng, A. Sen Sharma, A. Andonian, et al. Mass-Editing Memory in a Transformer. ICLR 2023. arXiv:2210.07229.
  • [9] D. Biderman, J. Portes, J. J. Gonzalez Ortiz, et al. LoRA Learns Less and Forgets Less. TMLR 2024. arXiv:2405.09673.
  • [10] Y. Luo, Z. Yang, F. Meng, et al. An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning. arXiv:2308.08747, 2023.
  • [11] O. Ovadia, M. Brief, M. Mishaeli, O. Elisha. Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. EMNLP 2024. arXiv:2312.05934.
  • [12] T. Wu, L. Luo, Y.-F. Li, et al. Continual Learning for Large Language Models: A Survey. arXiv:2402.01364, 2024.

Agentic World Models: Learning from Coding Trajectories

Agentic World Models: Learning from Coding Trajectories

World modelsCoding agentsSelf-supervised learningTrajectories

Profile: AI Master’s student · Duration: 6 months · Location: Paris (mandatory)

Context

Coding agents interact with a sandbox: they read files, modify code, run commands and inspect the results. Each interaction produces a trajectory describing what the agent did and how the environment responded. Our team has collected such trajectories for offline learning of a routing policy—learning which model to use at different stages of a task. Recent projects such as MTRouter and MultiTurnRoute study how these sequential choices affect quality and cost [1, 2].

The idea of this internship is simple: reuse this data in a self-supervised setting to learn a model of how a coding workspace evolves under an agent’s actions. The input would be the current sandbox state—think of it primarily as the filesystem—and an action. The model would predict the next state of the files on the machine. The recorded transitions provide the supervision, including when the agent fails to solve the overall task.

Recent work supports this direction. Code World Model (CWM) learns from execution traces and agentic interactions in Docker environments [3]. ECHO uses the environment’s responses as an additional prediction target during agent training [4]. Resources such as UltraTerminal provide executable tasks for collecting and evaluating interactions [5], while Terminal-Universe explores reconstructing workspaces from existing trajectories [6].

Objective

Learn an agentic world model from existing coding trajectories, organised around two central questions:

  1. What can we learn from this data, and how much can we internalise into the model? By controlling the amount of workspace context, interaction history and tool access, study what the model can predict on its own and whether richer, tool-assisted behaviour can be distilled into its weights.
  2. How can we demonstrate the usefulness of this model downstream? Explore transfer to coding tasks, use as a world model for planning and improving coding agents, or representation learning for downstream tasks such as code classification.

The aim is to establish what is learnable and demonstrate one useful application.

Methodology

  1. Data and baselines. Review the relevant work and turn the collected trajectories into current-state, action and next-state examples. Identify which filesystem states can be recovered reliably, and define held-out tasks and repositories. Use public environments or trajectories where they complement the existing data [5, 6].
  2. Self-supervised learning. Adapt an existing code model to predict workspace changes from the current state and an action. Start with file changes, and investigate whether also predicting tool outputs—such as errors and test results—provides useful supervision [3, 4]. Compare against the original model and simple baselines.
  3. Controlled information and distillation. Vary the visible files, context length, interaction history and access to read, search or execution tools. Study how predictive quality changes as this assistance is reduced. Explore training a restricted-input student from a richer teacher, drawing on work that uses additional training-time information to improve deployable representations [7].
  4. Downstream evaluation. Select a focused demonstration: transfer to coding tasks, predicting the consequences of candidate actions for planning, or reusing the learned representations for classification or routing. Compare against a baseline without world-model training, and measure quality alongside compute and tool-use cost.
  5. Outcome. Deliver a reproducible training and evaluation pipeline, a prototype model, an empirical study of the information–performance trade-offs, and a technical report or publication.

References

  • [1] Y. Zhang, H. Li, Z. Wang, et al. MTRouter: Cost-Aware Multi-Turn LLM Routing with History-Model Joint Embeddings. ACL 2026. arXiv:2604.23530.
  • [2] J. Xue, M. Zheng, H. Huang, Q. Lou. MultiTurnRoute: A Platform for Building and Evaluating Multi-Turn LLM Routers. NeurIPS 2026. arXiv:2611.10848.
  • [3] FAIR CodeGen team et al. CWM: An Open-Weights LLM for Research on Code Generation with World Models. arXiv:2510.02387, 2025.
  • [4] V. Shrivastava, P. Kauffmann, A. Awadallah, D. Papailiopoulos. ECHO: Terminal Agents Learn World Models for Free. arXiv:2605.24517, 2026.
  • [5] Harness Hub. UltraTerminal: dataset and executable Harbor tasks. Hugging Face, 2026. https://huggingface.co/datasets/harness-hub/UltraTerminal.
  • [6] J. Wu, Z. Zhang, B. Zhang, et al. Terminal-Universe: Turning Agent Trajectories into Scalable Terminal Environments. arXiv:2609.04148, 2026.
  • [7] H. Yan, J. Liu, B. Jing, T. Yao. Response-Informed Value Estimation for Cost-Aware Multi-Turn LLM Routing. arXiv:2610.23239, 2026.