Skip to main content
QUICK REVIEW

[Paper Review] In-context learning agents are asymmetric belief updaters

Johannes A. Schubert, Akshay K. Jagadish|arXiv (Cornell University)|Feb 6, 2024
Data Stream Mining TechniquesComputer Science4 citations
TL;DR

This paper demonstrates that in-context learning in large language models (LLMs) exhibits asymmetric belief updating, where models learn more from positive prediction errors (better-than-expected outcomes) than from negative ones—especially when agency is implied. This optimism bias reverses for counterfactual feedback on unchosen options and vanishes without agency, mirroring human cognitive patterns and emerging in meta-reinforcement learning agents trained for optimal learning, suggesting such asymmetry may be rational under specific framing.

ABSTRACT

We study the in-context learning dynamics of large language models (LLMs) using three instrumental learning tasks adapted from cognitive psychology. We find that LLMs update their beliefs in an asymmetric manner and learn more from better-than-expected outcomes than from worse-than-expected ones. Furthermore, we show that this effect reverses when learning about counterfactual feedback and disappears when no agency is implied. We corroborate these findings by investigating idealized in-context learning agents derived through meta-reinforcement learning, where we observe similar patterns. Taken together, our results contribute to our understanding of how in-context learning works by highlighting that the framing of a problem significantly influences how learning occurs, a phenomenon also observed in human cognition.

Motivation & Objective

  • To investigate how in-context learning dynamics in LLMs compare to human cognitive processes in controlled reinforcement learning tasks.
  • To determine whether asymmetric belief updating in LLMs is a rational strategy or a cognitive bias by testing under different problem framings.
  • To evaluate whether idealized in-context learning agents derived via meta-reinforcement learning (Meta-RL) replicate the same asymmetric learning patterns observed in LLMs and humans.
  • To assess the role of agency and counterfactual feedback in shaping learning asymmetries in both artificial and human agents.
  • To explore the implications of these findings for designing effective in-context learning prompts in real-world applications.

Proposed method

  • Adapted two-alternative forced choice (2AFC) tasks from cognitive psychology to study in-context learning dynamics in LLMs, humans, and meta-reinforcement learning (Meta-RL) agents.
  • Fitted variants of the Rescorla-Wagner model to behavioral data to estimate learning rates and infer belief-updating rules.
  • Trained Transformer-based Meta-RL agents on 2AFC tasks using actor-critic reinforcement learning with ADAM optimization, enabling Bayes-optimal in-context learning upon convergence.
  • Compared learning dynamics across three conditions: partial feedback (only chosen option), full feedback (both options), and forced-choice (no agency).
  • Used computational modeling to extract and compare learning rate parameters, focusing on asymmetry between positive and negative prediction errors.
  • Evaluated all agents without further weight updates after training to isolate in-context learning behavior.
Figure 1: Schematic of our methodology, where we evaluate the learning dynamics of LLMs, humans, and meta-reinforcement learning (Meta-RL) agents on two-alternative forced choice tasks. After evaluating the agents on the tasks, we fit variants of cognitive models based on the Rescorla-Wagner (RW) mo
Figure 1: Schematic of our methodology, where we evaluate the learning dynamics of LLMs, humans, and meta-reinforcement learning (Meta-RL) agents on two-alternative forced choice tasks. After evaluating the agents on the tasks, we fit variants of cognitive models based on the Rescorla-Wagner (RW) mo

Experimental results

Research questions

  • RQ1Does in-context learning in LLMs exhibit asymmetric belief updating, favoring positive over negative prediction errors?
  • RQ2How does the presence or absence of agency in the task framing affect learning asymmetry in LLMs?
  • RQ3Does the learning pattern reverse when feedback about unchosen (counterfactual) options is provided?
  • RQ4Do idealized Meta-RL agents trained for optimal learning reproduce the same asymmetric learning patterns as LLMs and humans?
  • RQ5Is asymmetric belief updating rational under the task conditions studied, as suggested by Meta-RL agent behavior?

Key findings

  • LLMs exhibit an optimism bias in in-context learning, learning more from better-than-expected outcomes (positive prediction errors) than from worse-than-expected ones (negative prediction errors) when agency is implied.
  • When feedback about the unchosen option is provided, the learning asymmetry reverses: LLMs learn more from negative than positive prediction errors for that option.
  • The optimism bias disappears in forced-choice trials where no agency is implied, indicating that the framing of choice and control is critical to the emergence of asymmetric updating.
  • Meta-RL agents trained for Bayes-optimal learning in 2AFC tasks replicate the same asymmetric learning patterns as LLMs and humans, confirming that such behavior can be rational under the task structure.
  • The observed learning asymmetries are not artifacts of model architecture but are driven by problem framing, particularly agency and counterfactual feedback, suggesting design choices significantly influence learning outcomes.
  • These findings suggest that the optimism bias in both humans and LLMs may not be a cognitive flaw but a rational response to specific task structures, especially when only chosen outcomes are observed.
Figure 2: 2AFC task with partial feedback. (a) Presentation of a single trial. First, two slot machines, shown as symbols, are presented. After a choice is made, the outcome is shown. (b) Average performance of the LLM and humans measured in terms of regret. Performance improves over trials. (c) Mod
Figure 2: 2AFC task with partial feedback. (a) Presentation of a single trial. First, two slot machines, shown as symbols, are presented. After a choice is made, the outcome is shown. (b) Average performance of the LLM and humans measured in terms of regret. Performance improves over trials. (c) Mod

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.