Can In-Context Learning Support Intrinsic Curiosity?
Eric Elmoznino, Sangnie Bhardwaj, Johannes von Oswald, Rajai Nasser, Blaise Aguera y Arcas, Joao Sacramento, Rif A. Saurous, Guillaume Lajoie
TL;DR. We investigate the use of in-context learners for implement intrinsic curiosity rewards, in particular those based on learning progress.
Abstract. Effective machine learning depends not only on how we model data, but also on what data we choose to collect. While large sequence models have revolutionized data modeling, the problem of automated data selection, or "intrinsic curiosity", remains a significant challenge. Classic approaches incentivize exploration by rewarding an agent based on its "learning progress", which measures how much a newly acquired observation improves a world model's predictive ability. However, evaluating these rewards traditionally requires expensive inner loops of gradient descent updates within each trajectory, rendering them computationally impractical at scale. In this work, we investigate whether the emergent in-context learning (ICL) capabilities of sequence models can eliminate this bottleneck by serving as immediate, update-free world models. Specifically, we evaluate whether an exploration policy can be trained to maximize learning progress, using solely the prediction errors and counterfactual context manipulations of an in-context learner. We first prove that in general Markov decision processes, this is in fact impossible in an unbiased way: the resulting intrinsic rewards either suffer from nuisance terms that bias their estimation of true learning progress, or they cannot be implemented using an in-context learner's prediction errors. Conversely, we prove a positive result for a broad subclass of non-temporal settings, encompassing active learning and Bayesian Experimental Design: here, ICL-derived rewards successfully bound and asymptotically converge to the true learning progress. We corroborate our theory with controlled experiments across continuous and symbolic environments, demonstrating that our ICL-driven framework successfully trains curious data-collection policies that explore optimally.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (oral) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:46 UTC.
- Decision
- Accept (oral)
Read decision
Meta-review
The paper’s main contribution is its investigation of a fundamental question concerning the capabilities and limitations of in-context learning for automated data collection. A key strength is the analysis of both general and specialized settings, identifying when in-context learning is effective and when it faces inherent limitations depending on whether the observations are conditionally independent or conditionally dependent. The paper also integrates theory and experiments elegantly, with the empirical results providing support for the theoretical findings.
I would be particularly interested in the authors’ response to Reviewer sJkn’s concern regarding how the paper’s technical contributions are distinguished from those of prior work.
Final justification
The authors successfully addressed the concerns regarding the related work and supplemented the paper with additional experiments. As a result, reviewer sJkn increased their score to 5. Based on the reviews, the paper makes a solid contribution.
Read meta-review
Meta-review
The paper’s main contribution is its investigation of a fundamental question concerning the capabilities and limitations of in-context learning for automated data collection. A key strength is the analysis of both general and specialized settings, identifying when in-context learning is effective and when it faces inherent limitations depending on whether the observations are conditionally independent or conditionally dependent. The paper also integrates theory and experiments elegantly, with the empirical results providing support for the theoretical findings.
I would be particularly interested in the authors’ response to Reviewer sJkn’s concern regarding how the paper’s technical contributions are distinguished from those of prior work.
Final justification
The authors successfully addressed the concerns regarding the related work and supplemented the paper with additional experiments. As a result, reviewer sJkn increased their score to 5. Based on the reviews, the paper makes a solid contribution.
1 comment
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Models should use curiosity to learn about the world, but how exactly curiosity should be implemented, remains unclear. The authors implement several measures of curiosity in a sequence model. They investigate if these measures approximate Bayesian information gain, and if they perform well empirically for models to explore useful parts of their world. They find that a measure of learning progress performs well in both respects, at least when trials are sequentially independent.
Strengths and weaknesses
A strength is the complementary approach with both theory and experiments, demonstrating that surprisal is not a useful measure of curiosity, but (description-length-based) learning progress is. That being said, I think that empirically a few more settings could have been explored. For example, the model is only tested in a BED framework, but why not test it in more general BAMDP settings? Even though the theory shows that the two curiosity measures do not converge to BIG, they could still provide useful measures of curiosity, and experiments could demonstrate the size of the misfit.
Also, currently, the single goal of the policy is to learn about its world, which indeed makes sense in the chosen tasks. But in general, a policy is aimed to maximize (extrinsic) reward; the intrinsic reward is used to optimally learn about the world so that (extrinsic) rewards can be obtained from this world. How would the authors integrate their approach in this more general setting?
I also wondered why the GP is not tested in the low-noise setting, to demonstrate the feasibility of surprise in this case (as done for the other tasks).
Currently the sequence model is pretrained—what is the performance if the two models are trained jointly? The information provided by the sequence model is initially likely very bad (random). The authors report an analysis for not completely correct sequence models, but that’s not the same as completely starting the two models together from scratch.
Questions
I think it would be nice to explore a few more settings, as mentioned above. The easiest seems to be the low-noise setting in the GP environment. A second option is an environment that doesn't adhere to the BED assumption. A third one (possibly outside the scope of this paper), is to jointly train the two models.
Limitations
Yes
Final justification
The authors provide clear and convincing answers to all questions. I maintain my positive score.
Formatting concerns
N/A
3 comments
Rebuttal
Thank you for your feedback, which we hope we have addressed.
in general, a policy is aimed to maximize (extrinsic) reward; the intrinsic reward is used to optimally learn about the world so that (extrinsic) rewards can be obtained from this world. How would the authors integrate their approach in this more general setting?
Great question. We believe that there are several options which future work can explore.
The first is that the data collected by the intrinsic reward policy can be used in a general (in-context) model-based RL framework. Conditioned on the informative data collected by the intrinsic reward policy, the in-context learner specifies a strong world model. This world model can be used to optimize an extrinsic reward policy in simulation, or it can be used in planning algorithms to maximize the extrinsic reward, or in any other way that the model-based RL community has found to be effective.
A second approach is to train in-context policies on extrinsic rewards, but to prompt them with trajectories first collected by the policy trained with an intrinsic reward. These prompts could seed the extrinsic reward policy with good trajectory examples that are informative about the environment’s dynamics, reducing the burden of exploration.
A third option is to optimize a reward that combines both the intrinsic reward and the extrinsic reward, such that the intrinsic component functions as an exploration regularizer (such approaches are common with simpler exploration regularizers, such as entropy regularization).
Finally, a fourth option is to initialize the extrinsic reward policy with weights trained from the intrinsic reward, rather than to randomly initialize it. The hypothesis is that the intrinsic reward policy has already learned good exploratory behaviour for the class of environments, and learning how to optimize most extrinsic rewards will often hinge on such exploration abilities. Crucially, the same intrinsic reward policy might support many different downstream extrinsic tasks.
This is an interesting discussion that we can add to our paper.
I also wondered why the GP is not tested in the low-noise setting, to demonstrate the feasibility of surprise in this case (as done for the other tasks).
Thank you for the suggestion, it would indeed make our experiments more systematic. We have now run this experiment (small 1e-3 uniform noise variance across the domain), and surprise turns out to be the best performing reward, demonstrating again that it is a perfectly viable reward (optimal and simple) when the environment has little alleatoric noise.
Currently the sequence model is pretrained—what is the performance if the two models are trained jointly?
This is a fascinating question that we think should be a high priority for future work. We do not study it here because our theory makes no predictions about the outcome, and getting such a system to work likely takes significant engineering effort. Nevertheless, we have speculated on this.
On the one hand, Azar et al. (2019) studied the NDIGO reward (which we show is a special case of r_sum) in exactly this setting — both policy and world model were trained in parallel — and obtained encouraging results. While they did not consider an in-context learning setting as we do, we see at the moment no reason to believe that different principles would apply.
On the other hand, as you say, the information provided initially by an untrained sequence model is initially random, and it is tempting to believe that this may cause problems. However, a crucial observation is that the sequence models in our experiments are actually trained on a uniform action (i.e., random) policy. So there is a means to successfully bootstrap the in-context learner using a randomly-initialized policy (in BED environments). If we alternate this process several times however with an imperfect world model or policy, it is easy to see how it can ultimately lead to collapse: the policy risks only exploring trajectories where the current sequence model happened to acquire in-context learning capabilities more quickly, which will in turn further specialize the sequence model on these limited trajectories, etc. This collapse is the most salient theoretical concern, but its significance should be investigated empirically and there may be simple methods for avoiding it (e.g., sampling from the policy with a higher temperature when collecting trajectories for training the in-context learner).
Since this is an interesting question, we will add some of these points to the existing Discussion paragraph on "Training the In-Context Learner”.
why not test it in more general BAMDP settings? Even though the theory shows that the two curiosity measures do not converge to BIG, they could still provide useful measures of curiosity, and experiments could demonstrate the size of the misfit.
We’re currently working on an experiment in a BAMDP setting that would demonstrate the size of the misfit empirically (by decomposing the rewards into their constituent bias terms), but supporting BAMDP environments requires substantial changes across our codebase. We will try our best to have this done by the end of the discussion period.
References
Azar, M. G., Piot, B., Pires, B. A., Grill, J. B., Altché, F., & Munos, R. (2019). World discovery models. arXiv preprint arXiv:1902.07685.
final comment
I thank the authors for their detailed reply, and for pointing out the importance of their approach. I have no further comments.
Authors' response with BAMDP results
We thank the reviewer again for the suggestion to test the reward in a BAMDP setting. We have now conducted the following experiment to address the decomposition of biases and the size of the misfit between and BIG.
We use a Dirichlet-Categorical MDP, a finite MDP with states and actions whose transition kernel is unknown to the agent. We chose this stripped down setting since computing analytical posteriors in order to obtain ground truth BIG, even in simple BAMDP environments, can rapidly become intractable. At the start of each episode, is sampled from a Dirichlet prior. We ran 50,000 random trajectories with , , and horizon , computing the exact decomposition from Theorem 3 by breaking into its BIG, abductive, and residual components using the true latent . All quantities are computed analytically on each trajectory by exploiting Dirichlet-Categorical conjugacy (closed-form posterior predictive and Dirichlet-Multinomial marginal likelihoods).
Across all time steps, the mean of the decomposed terms (BIG + Abductive − Residual) matches the mean to within nats, confirming the theoretical decomposition empirically. As an example, at the average values (in nats) are: , BIG=0.3171, Abductive=0.1735, Residual=0.3706, and so the difference in and the decomposition is . The difference decreases the more trajectories are used to compute the mean .
While the decomposition holds and confirms our theory, is a poor pointwise proxy for BIG on individual trajectories. The Pearson correlation between realized and the true BIG term is only at and degrades to by (combined: ). This experiment quantifies that the bias terms are significant, making an unreliable surrogate for BIG in this temporal setting. We note that it is possible that some BAMDP environments may lead to intrinsic rewards that behave better despite the general limitations brought forth in this paper, and that useful rewards may not need to capture BIG in general. Identifying the characteristics of temporal environments which are responsible for sensitivity in intrinsic rewards is an exciting and important direction for future work.
We will add details of the experiment and results in a future revision of the paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors use an implicit bayesian learner framework of in-context learning to evaluate whether prediction based intrinsic rewards can approximate Bayesian Information Gain (BIG). They theoretically show that in BAMDP setting, prediction based intrinsic rewards (surprisal, learning progress, and r_sum, their own proposed reward) are biased approximators of BIG and study the decomposition of the biases. In BED setting, they show r_sum and learning progress rewards can approximate BIG in long trajectory while surprisal still suffers from aleatoric noise.
Strengths and weaknesses
Strengths
-
The paper bridges in-context learning and intrinsic reward using bayesian framework, leveraging that ICL doesn’t have a compute bottleneck on exploration reward.
-
Their theory shows both negative and positive results, showing that whether intrinsic reward could approximate BIG depends on the environments.
-
The authors validates their theoretical understanding and prediction with experiments of multiple domains.
-
The authors provide comprehensive conclusion and limitation & future work.
Weaknesses
- The theoretical results assume a strict bayesian learner in-context – while there is a broad literature that shows icl as implicit bayesian inference, there are points that bayesian framework cannot explain such as sample ordering dependency, etc, especially in modern transformers. What would be the consequence of softening this assumption?
- It seems like the authors only conduct experiments on BED setting; it is understandable that the theory predicts BIG recovery is impossible but maybe there is a possible experiment to do regarding decomposition of the biases?
- Based on the previous work section, it seems like some theoretical results are mainly straightforward reframing of known results into in-context learning based on the assumption that in-context learning is a bayesian learner.
Questions
Most of my questions are implicitly discussed in weaknesses. Additionally:
- What is the intuitive description of r_sum, the proposed intrinsic reward? In noisy environment, r_sum seems to have better approximation power than r_dl in noisy case mastermind but not in noisy alchemy. Is it meaningful difference? If so, is there any conjecture on why?
Limitations
Yes
Final justification
The authors clarified my concern and the addditional experiment done during the rebuttal improves the coverage of experiment - theory connection, and thus I increase my score.
Formatting concerns
No
3 comments
Rebuttal
Thank you for your feedback, which we hope we have addressed.
Based on the previous work section, it seems like some theoretical results are mainly straightforward reframing of known results into in-context learning based on the assumption that in-context learning is a bayesian learner.
We actually disagree on this point. Prior work on curiosity has proposed several intrinsic rewards and argued for their validity, but no prior work has linked these various rewards together through the kind of theoretical analysis that we do here. In particular, prior to our work, the precise relationships between BIG, learning progress, r_sum (which we also introduced), and any similar reward constructed as a function of prediction errors, were in fact unknown. To take just one example, Theorem 4 shows that even if we assume a Bayes-optimal learner, learning progress deviates from BIG through a bias that we precisely characterize; this is a new result with a non-trivial proof, not a reframing of results from prior work. Therefore — quite independent of our consideration of in-context learning — our theoretical results provide genuinely novel insights for the field of intrinsic curiosity, and we are not aware of any similar results in prior literature.
We highlight the above discussion in particular, as it was raised as a question in the meta-review:
I would be particularly interested in the authors’ response to Reviewer sJkn’s concern regarding how the paper’s technical contributions are distinguished from those of prior work.
Summarizing our discussion above: prior literature has proposed these intrinsic curiosity objectives (BIG, surprise, learning progress, rewards constructed from differences in a model’s prediction errors), but our technical contribution is to show how they are related and the different bias terms through which each approximates BIG. These are novel contributions that help us understand the nature of intrinsic curiosity rewards. Further, the results gain in importance when considering ICL learners and pave the way to novel approaches to active learning and intrinsic reward that leverage pre-trained models.
The theoretical results assume a strict bayesian learner in-context [... and] there are points that bayesian framework cannot explain such as sample ordering dependency. [...] What would be the consequence of softening this assumption?
First, we would like to emphasize that we acknowledge these practical limitations, and highlight these points and more in our Discussion paragraph on “Training the In-Context Learner” and in the Appendix. The idealized assumption of an optimal Bayesian in-context learner makes it possible to derive otherwise unobtainable theoretical results, and idealizations like these are ubiquitous in theoretical work. We do not believe that it would have been possible to obtain our theoretical results with softened assumptions, at least not without introducing further assumptions or sacrificing the simplicity of the theory (although we welcome attempts to do so in future work).
Instead, we did ask the empirical question of whether this idealized theory still holds to some degree when using real, imperfectly-trained sequence models. As we showed in Figure E.1 for the Gaussian Process environment, despite training our PFN on many simulated trajectories and providing it with substantial capacity, its log-likelihood does not perfectly correlate with that of the Bayesian Oracle, and the deviations are at times significant. Despite this, the r_sum reward computed using the PFN correlates well with the Oracle’s r_sum, and the policy trained using the PFN obtains similar (although slightly degraded) validation performance to the one trained with the Oracle. These results are similar for our other environments, providing an empirical validation that our theory still has value even when its idealized assumptions are violated.
Future work certainly needs to study this more systematically: how much deviation can be tolerated before the policy fails to learn effective exploration strategies?; is the degradation in policy performance smooth or does it have abrupt phase transitions?; how do these questions depend on various properties of the environment? These are all fascinating questions that we believe are genuinely out of scope for the current paper.
It seems like the authors only conduct experiments on BED setting; it is understandable that the theory predicts BIG recovery is impossible but maybe there is a possible experiment to do regarding decomposition of the biases?
We’re currently working on an experiment in a BAMDP setting that would demonstrate this decomposition, but supporting BAMDP environments requires substantial changes across our codebase. We will try our best to have this done by the end of the discussion period.
What is the intuitive description of r_sum, the proposed intrinsic reward?
r_sum measures the degree to which each observation in a trajectory helps a model (in this work, an in-context learner) better predict future observations, compared to if that observation wasn’t there. It is analogous to a learning progress reward r_dl, except that r_dl asks how much an observation helps a model better predict that same observation. An intuitive example: if I removed some particular observation from your memory (e.g., a lecture on eigenvalues) how harmful would it be for your understanding of later observations in your life (e.g., a machine learning paper you read)? Useful observations should have this property of helping better explain new experiences, and therefore should contribute to high intrinsic reward.
In noisy environment, r_sum seems to have better approximation power than r_dl in noisy case mastermind but not in noisy alchemy. Is it meaningful difference? If so, is there any conjecture on why?
The difference is small, and also reverses for (noisy) Gaussian Processes (Fig. 1). In general, we expect r_sum and r_dl to each provide better performance depending on properties of the environment, but we flag this in the Discussion as future work. We believe that the small differences across the environments studied here provide too little basis for speculation in the paper. For the sake of discussion here, one plausible conjecture is that Mastermind has more compositional structure than alchemy, such that knowing the result of one new action is informative for the prediction of many other possible possible actions, which is what our reward is designed to measure. In contrast, as described above in response to your earlier question, r_dl measures how informative an action is for better predicting the results of that very same action in the future, and so is less sensitive to the compositional structure of an environment (hence why it might perform better in the Gaussian Process environment, where structure is highly local).
Thank you for your responses. One concern was about the significance of the work. My initial review was based on my understanding that many of the theoretical results are derived straightforwardly by following the popular framing of ICL as a Bayesian optimal learner and connecting BIG from there. The authors clarified precisely which part of their results are independently novel, and thus I am willing to raise my significance score to 3.
I still believe that the paper will be more complete with BAMDP setting and decomposition of biases, covering all aspects of the theoretical predictions; and the authors agreed they are working on this setting while it may take time. I will be happily increase the score to 5 if this experiment is demonstrated; but even if not, I believe my current score reflects my positive view on the paper, leaning toward acceptance.
Authors' response with BAMDP results
We thank the reviewer again for the suggestion to test the reward in a BAMDP setting. We have now conducted the following experiment to address the decomposition of biases and the size of the misfit between and BIG.
We use a Dirichlet-Categorical MDP, a finite MDP with states and actions whose transition kernel is unknown to the agent. We chose this stripped down setting since computing analytical posteriors in order to obtain ground truth BIG, even in simple BAMDP environments, can rapidly become intractable. At the start of each episode, is sampled from a Dirichlet prior. We ran 50,000 random trajectories with , , and horizon , computing the exact decomposition from Theorem 3 by breaking into its BIG, abductive, and residual components using the true latent . All quantities are computed analytically on each trajectory by exploiting Dirichlet-Categorical conjugacy (closed-form posterior predictive and Dirichlet-Multinomial marginal likelihoods).
Across all time steps, the mean of the decomposed terms (BIG + Abductive − Residual) matches the mean to within nats, confirming the theoretical decomposition empirically. As an example, at the average values (in nats) are: , BIG=0.3171, Abductive=0.1735, Residual=0.3706, and so the difference in and the decomposition is . The difference decreases the more trajectories are used to compute the mean .
While the decomposition holds and confirms our theory, is a poor pointwise proxy for BIG on individual trajectories. The Pearson correlation between realized and the true BIG term is only at and degrades to by (combined: ). This experiment quantifies that the bias terms are significant, making an unreliable surrogate for BIG in this temporal setting. We note that it is possible that some BAMDP environments may lead to intrinsic rewards that behave better despite the general limitations brought forth in this paper, and that useful rewards may not need to capture BIG in general. Identifying the characteristics of temporal environments which are responsible for sensitivity in intrinsic rewards is an exciting and important direction for future work.
We will add details of the experiment and results in a future revision of the paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper studies whether in-context learners can be used as fast, update-free world models for intrinsic curiosity and active data collection. The paper frames curiosity rewards through Bayesian information gain (BIG) and asks which prediction-based rewards can be computed through the predictive interface of an in-context learner. The main theoretical message is mixed: in general Bayes-adaptive MDPs, finite-horizon rewards built from the in-context learner's predictive log-likelihoods cannot provide an unbiased estimator of BIG, and classical surprisal and future-prediction rewards contain identifiable bias terms. In contrast, for Bayesian Experimental Design (BED) settings where observations are conditionally independent given the latent environment and chosen action, the paper shows that future-sum and description-length-style rewards can asymptotically approximate or bound BIG. The experiments use controlled GP, Mastermind, and Alchemy-style environments to compare surprisal, description-length, and the proposed future-sum reward, showing that surprisal fails in noisy settings while the other rewards more reliably drive informative data collection.
Strengths and weaknesses
Strengths
-
The paper addresses an important question at the intersection of in-context learning, intrinsic motivation, active learning, and reinforcement learning. The idea of replacing expensive online world-model updates with a frozen in-context predictor is timely and potentially impactful.
-
The theoretical framing is a strength. The paper does not simply propose another curiosity heuristic; it analyzes when predictive rewards can and cannot approximate BIG. The distinction between general BAMDPs and BED settings is useful, and the decompositions of surprisal, rsum, and rdl clarify the sources of bias rather than treating empirical performance as a black box.
-
The experiments are well aligned with the theory. The GP experiment with spatially varying noise directly demonstrates the noisy-TV failure of surprisal. Mastermind and Alchemy provide symbolic settings where the paper can compare oracle predictors and learned PFNs, and the noisy variants reinforce the distinction between aleatoric and epistemic uncertainty.
Weaknesses
-
The theoretical results rely on strong assumptions. The in-context learner is assumed to be an exact Bayesian posterior-predictive model under the correct prior, and several arguments additionally rely on correct behavior under masked or counterfactual contexts. These are precisely the properties that learned sequence models generally do not guarantee. The appendix discusses approximation error and masked training, but the main guarantees remain idealized.
-
The experiments are controlled and synthetic rather than realistic. There is no real-world active learning dataset, no realistic RL benchmark, and no experiment using a general-purpose LLM or large pretrained sequence model. The concern is not that the sample size is small in a conventional dataset sense, since the environments generate fresh synthetic trajectories; rather, the concern is that the environments are deliberately structured and small enough to fit the theoretical setup.
The scalability of the reward computation is not fully resolved. uses future trajectory terms and is naturally episodic; can require counterfactual or repeated queries; and the gap reward that recovers BIG in general BAMDPs is acknowledged as not feasible. The proposed framework is therefore more convincing as an analysis and proof-of-concept than as a scalable exploration method for long-horizon online RL.
Questions
- Can you state more precisely which support and finite-entropy assumptions are required for Theorem 1, given that rewards contain log predictive probabilities?
- How well calibrated are the PFNs on trajectories generated by the final trained policies, compared with trajectories generated by the random pretraining policy?
- In practice, when should one prefer over , given that the experiments show both can work and the best choice seems environment-dependent?
Limitations
YES
Final justification
Thank you to the authors for the detailed and thoughtful rebuttal. The responses satisfactorily address my questions and clarify the theoretical assumptions, empirical behavior of the learned predictors, and the scope of the proposed framework. I have no further concerns and will maintain my current positive score. For the final revision, I encourage the authors to further discuss the path toward practical applicability and scalable deployment in more realistic, long-horizon settings.
Formatting concerns
N/A
1 comment
Rebuttal
Thank you for your feedback, which we hope we have addressed.
The theoretical results rely on strong assumptions. The in-context learner is assumed to be an exact Bayesian posterior-predictive model [...]. These are precisely the properties that learned sequence models generally do not guarantee.
First, we would like to emphasize that we acknowledge these practical limitations, and highlight these points and more in our Discussion paragraph on “Training the In-Context Learner” and in the Appendix. The idealized assumption of an optimal Bayesian in-context learner makes it possible to derive otherwise unobtainable theoretical results, and idealizations like these are ubiquitous in theoretical work. We do not believe that it would have been possible to obtain our theoretical results with softened assumptions, at least not without introducing further assumptions or sacrificing the simplicity of the theory (although we welcome attempts to do so in future work).
Instead, we did ask the empirical question of whether this idealized theory still holds to some degree when using real, imperfectly-trained sequence models. As we showed in Figure E.1 for the Gaussian Process environment, despite training our PFN on many simulated trajectories and providing it with substantial capacity, its log-likelihood does not perfectly correlate with that of the Bayesian Oracle, and the deviations are at times significant. Despite this, the r_sum reward computed using the PFN correlates well with the Oracle’s r_sum, and the policy trained using the PFN obtains similar (although slightly degraded) validation performance to the one trained with the Oracle. These results are similar for our other environments, providing an empirical validation that our theory still has value even when its idealized assumptions are violated.
Future work certainly needs to study this more systematically: how much deviation can be tolerated before the policy fails to learn effective exploration strategies?; is the degradation in policy performance smooth or does it have abrupt phase transitions?; how do these questions depend on various properties of the environment? These are all fascinating questions that we believe are genuinely out of scope for the current paper.
The experiments are controlled and synthetic rather than realistic. [...] the concern is that the environments are deliberately structured and small enough to fit the theoretical setup.
We acknowledge this as a genuine limitation of our paper, and indeed we see our experiments as a promising empirical validation of our theory. We see the core challenges of scaling to real environments as: (a) sufficiently training the sequence model such that it can approximate optimal Bayesian inference and (b) scaling the context length so that the policy has sufficient time to learn interesting structure in complex environments. While both of these challenges are significant, they are luckily important goals for the ML community in their own right, on which substantial progress is being made.
The scalability of [r_sum] is not fully resolved [...] for long-horizon online RL.
Indeed, the episodic nature and future trajectory terms of r_sum pose significant challenges for scaling it, which we acknowledge and summarize in our Discussion paragraph on the “Online RL setting”. We did, however, also propose simple heuristics that we believe might be viable in practice, including truncated evaluation windows (reducing to r_one(K)) and stochastically subsampling the future trajectory terms.
It is worth noting, though, that these limitations apply to r_sum (whose introduction is indeed one of our contributions), whereas our more general theoretical contributions characterize many possible in-context learning based intrinsic rewards, including r_dl which does not suffer from these episodic or future trajectory bottlenecks (although it has different biases and cannot be implemented in BAMDPs).
How well calibrated are the PFNs on trajectories generated by the final trained policies, compared with trajectories generated by the random pretraining policy?
Thanks for the question. We have now run this analysis on our Gaussian Process environment, and found that the PFN likelihoods are highly calibrated on both final trained policies and random pretraining policies (person correlation of ~0.99 for both). This holds across all rewards we tested. Note that this is larger than the value reported in Fig. E.1 because the policies are trained over shorter trajectory lengths than the PFN originally is, and Fig. E.1 was reported using the PFN training trajectory lengths.
In practice, when should one prefer r_sum over r_dl, given that the experiments show both can work and the best choice seems environment-dependent?
The short answer is: we don't know. But we consider this a very interesting question for future work, given that both are structurally quite different and yet seem to lead to equally promising results across our environments. While we don’t provide an answer in the current paper, we do believe that we provide some promising and concrete directions in the Discussion that can guide future research:
- The bias in r_sum depends on the total trajectory length T, whereas the bias in r_dl depends on the agent’s current timestep t. This suggests a concrete large-scale analysis in which these two variables are simultaneously varied.
- The optimal choice might be to combine both rewards instead of picking only one, given that they appear to be potentially complementary: one bounds BIG from below, the other from above.
Assumptions on finite entropy and support
This is a great remark and we thank the reviewer for it. In step 2 of the proof we write where the coefficients can have mixed signs. If these conditional entropies are infinite the expression is a difference of infinities and is undefined. Step 2 therefore assumed implicitly that the entropies are finite, and we did not state this. The remark made us realize there is a simple fix. Instead of using the entropy formulation, we note that assumption (ii) already makes each predictive queried by the reward a conditional of the marginal trajectory law (see step 2), so the reward is computed from that law and averaged under it. This is exactly what step 3 needs, since two BAMDPs whose marginals agree over the finitely many steps used by the reward will have the same expected reward. The only conditions we now state explicitly in Definition 1 are that the queried predictives be almost surely positive so the logarithms are finite, and that the expected rewards exist. This is weaker than requiring the entropy terms to be finite, and both hold automatically for the construction in step 3. The revision also lets us state the result for a broader class — arbitrary measurable functions of finitely many predictives, rather than linear combinations of their logarithms — with the argument unchanged.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC,
First, we would like to communicate our appreciation for this review experience. All reviewers had constructive comments that led us to improve the paper and sharpen its scope. As instructed, we took good care in addressing Reveiwer sJkn’s, as well as the others’ comments about the positioning of our work in the broader literature of intrinsic curiosity. As you can read in more details below, our work brings considerable advancement to this field by characterizing hitherto unknown relationships between different intrinsic curiosity rewards and by providing a theoretical foundation for their use with in-context learners (ICL). There was significant and non-trivial work needed to achieve both of these theoretical results, which are genuinely novel.
We further argue the importance of this direction focusing on ICL. As powerful sequence models pretrained on vast amounts of data become ubiquitous, their use in open-ended and active learning applications will undoubtedly proliferate. For example, LLMs that must gather data about an environment or a group of users by emitting queries, or bespoke pretrained models being incorporated into scientific experimental loops, are applications that are currently central to the frontier of AI use cases. Our paper is a first step towards establishing theoretical foundations for open-ended ICL with clear guarantees and limitations. It also opens the door to necessary and exciting future work, such as studying the effect of temporal structure or partial observability. We believe the potential impact of this result is important, and politely argue that maximizing its visibility within the NeurIPS community would contribute to the advancement of this exciting subfield.
We thank you for your consideration