cs.AIOct 10, 2026

CB-Agent: Concept-Based In-Context Learning for Sequential Action Selection

Authors: Qingyue Zhang, Huaze Tang, Minyu Zhang, Yuxiang Yan, Wenbo Ding, Shao-Lun Huang

Organizations: Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen, China

Abstract

In-context learning (ICL) allows large language models to use demonstrations without updating their parameters. For interactive agents, demonstrations are trajectories of reasoning, actions, and observations that illustrate how to complete a task. Reusing demonstrations in new situations is challenging: directly inputting full trajectories consumes limited prompt space and constrains the overall effectiveness, while natural-language summaries require the agent to translate general guidance into specific action choices. Therefore, we study whether expert action choices can directly supervise a reusable scoring rule. We propose CB-Agent, which extends concept-based ICL to sequential action selection. We extract environment-action decisions from expert trajectories and fit a concept vector by maximum likelihood to model the conditional distribution over candidate actions given the context. This model combines the concept with frozen language-model features and priors. During ReAct interaction, the agent uses this distribution to select environment actions without including demonstrations in the action-scoring context. Across TextWorld, ALFWorld, and ScienceWorld, CB-Agent achieves the highest cross-benchmark average among the evaluated methods at all three tested model sizes and ranks first on TextWorld and ScienceWorld at each size. ALFWorld experiments support the learned concept's contribution beyond prior-only scoring and show further gains when combined with Reflexion. Code is available at https://anonymous.4open.science/r/CB-Agent-DFF9/.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. ActICL: Post-Training for Agentic Multimodal In-Context Learning

    Oct 14, 2026Yanshu Li, Ruixiang Tang, Junyi Jessy Li +1Multimodal ICLRetrieval-Augmented ICL

  2. Downstream-Aware Context Selection for Online In-Context Reinforcement Learning

    Sep 27, 2026Ruihan A. Li, Shangtong Zhang, Rohan ChandraIn-Context RLIn-Context Learning

  3. Do LLMs Learn from Rewards in Context? : Rethinking the role of reward in In-Context RL

    Oct 8, 2026Minchan Kwon, Seunghee Koh, Sunghyun Baek +2In-Context RLContextual RL