InsightEmb: Learning Action-Intent Embeddings for Agentic Insight Retrieval

arXiv cs.CL Papers

Summary

InsightEmb is a contrastive embedding framework for agentic insight retrieval that learns progress-oriented retrieval geometry from mathematical reasoning data alone, improving retrieval for LLM agents without environment-specific training.

arXiv:2608.04761v1 Announce Type: new Abstract: Self-improving agents accumulate reusable insights from prior trajectories, making retrieval increasingly important for turning accumulated experience into actionable guidance. At each decision step, retrieving the right insight can help the agent progress toward its goal, a setting we refer to as agentic insight retrieval. However, existing retrieval methods primarily model semantic similarity, while overlooking whether a retrieved insight resolves the agent's current decision bottleneck. We propose InsightEmb, a contrastive embedding framework that learns transferable progress-oriented retrieval geometry using only mathematical reasoning data. InsightEmb jointly learns to align concrete situations with abstract heuristic rules and to cluster reasoning trajectories with similar progress structures. We evaluate InsightEmb on dynamic agent tasks and a static skill-retrieval benchmark. Without any environment-specific training, InsightEmb improves over all these evaluations, surpassing the performance of existing reasoning embedding models. These results suggest that the geometry of state-insight matching can transfer across domains, enabling effective training from publicly available reasoning data without expensive environment-specific supervision.
Original Article
View Cached Full Text

Cached at: 08/06/26, 07:50 AM

# Learning Action-Intent Embeddings for Agentic Insight Retrieval
Source: [https://arxiv.org/html/2608.04761](https://arxiv.org/html/2608.04761)
Tsz Ting Chung1Jiangnan Li2Jie Zhou2Mo Yu2,†\\dagger 1The Hong Kong University of Science and Technology 2WeChat AI, Tencent

###### Abstract

Self\-improving agents accumulate reusable insights from prior trajectories, making retrieval increasingly important for turning accumulated experience into actionable guidance\. At each decision step, retrieving the right insight can help the agent progress toward its goal, a setting we refer to asagentic insight retrieval\. However, existing retrieval methods primarily model semantic similarity, while overlooking whether a retrieved insight resolves the agent’s current decision bottleneck\. We proposeInsightEmb, a contrastive embedding framework that learns transferable progress\-oriented retrieval geometry using*only*mathematical reasoning data\. InsightEmb jointly learns to align concrete situations with abstract heuristic rules and to cluster reasoning trajectories with similar progress structures\. We evaluate InsightEmb on dynamic agent tasks and a static skill\-retrieval benchmark\. Without any environment\-specific training, InsightEmb improves over all these evaluations, surpassing the performance of existing reasoning embedding models\. These results suggest that the geometry of state\-insight matching can transfer across domains, enabling effective training from publicly available reasoning data without expensive environment\-specific supervision\.

InsightEmb: Learning Action\-Intent Embeddings for Agentic Insight Retrieval

## 1Introduction

LLM\-based agents in interactive environments \(for example, web navigation\(Yaoet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib32)\), embodied tasks\(Shridharet al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib23)\), and tool use\(Schicket al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib21)\)\) interleave reasoning and action through frameworks such as ReAct\(Yaoet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib33)\)\. They must select actions under large action spaces where the optimal strategy depends on abstract reasoning rather than surface\-level pattern matching\. Providing agents with*insights*, abstract rules distilled from past experience \(e\.g\., “check likely locations before exploring randomly”\), has proven effective\(Majumderet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib19); Wanget al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib28); Zhaoet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib29)\), but the agent must dynamically retrieve the most pertinent insight at each step\. We focus on this under\-specified retrieval problem: the relevant insight is the one that is*operationally useful now*, given the agent’s current state, goal, and action history\.

![Refer to caption](https://arxiv.org/html/2608.04761v1/figures/overview.png)Figure 1:InsightEmb retrieves insights that resolve the agent’s*current*procedural bottleneck rather than topical overlap alone\.Left:the abstraction gap and shared situation\-to\-insight structure across math and embodied tasks\.Right:on an ALFWorld “hot potato” task, Base favors heating rules before the object is found, whereas InsightEmb retrieves search\-first guidance\.This dynamic retrieval poses a challenge we call the*abstraction gap*: the query \(the agent’s current observation and action history\) and the target \(an abstract insight\) live at different levels of abstraction, and relevance depends on the agent’s*next\-step intent*\(what bottleneck must be resolved before progress\) rather than topical similarity\. Standard embedding models match surface semantics, so off\-the\-shelf retrievers return topically related but procedurally premature insights, e\.g\. state\-transformation rules before the agent has located the target object \(Figure[1](https://arxiv.org/html/2608.04761#S1.F1)\)\.

Our key observation is that this*situation\-to\-insight*matching problem is not domain\-specific: both a math query \(e\.g\. matching “P​\(at least one red\)P\(\\text\{at least one red\}\)” to complementary counting, with no lexical overlap\) and an embodied task \(first resolving the*locate\-object*bottleneck before heating or placement insights apply\) require inferring the latent bottleneck of a concrete situation and retrieving the abstract rule that enables the next effective step\.

We proposeInsightEmb, a contrastive training framework that exploits this domain\-agnostic structure\. InsightEmb trains an embedding model in two stages,*entirely on publicly available mathematical reasoning data*: \(1\)*Situation\-to\-insight matching*teaches the model to bridge the abstraction gap by mapping math problems and \(partial\) chain\-of\-thought trajectories to their relevant heuristic rules\. \(2\)*Situation\-to\-experience matching*teaches structural similarity recognition between reasoning trajectories, reinforcing the model’s ability to identify when different\-looking situations require the same underlying strategy\. At inference time, the trained model retrieves insights for LLM agents in ALFWorld\(Shridharet al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib23)\), WebShop\(Yaoet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib32)\), and ScienceWorld\(Wanget al\.,[2022b](https://arxiv.org/html/2608.04761#bib.bib24)\), and we use SRA\-Bench as a static skill\-retrieval diagnostic\. These evaluations test dynamic state\-conditioned retrieval and static skill applicability without any environment\-specific training data\. Our contributions are threefold:

- •We formulate agentic insight retrieval as goal\-conditioned action\-intent matching\. Relevance is defined by whether an insight resolves the current bottleneck and enables progress, rather than by semantic similarity alone\.
- •We introduce InsightEmb, a cross\-domain contrastive training framework for action\-oriented retrieval geometry with empirical validation\.
- •Our empirical results across static and dynamic evaluations show the effectiveness of InsightEmb with fewer steps taken\. Analyses reinforce the gains come from action\-intended retrieval\.

## 2Related Work

##### Retrieval\-Augmented LLM Agents\.

RAG\(Lewiset al\.,[2020](https://arxiv.org/html/2608.04761#bib.bib18); Guuet al\.,[2020](https://arxiv.org/html/2608.04761#bib.bib15)\)has been extended to agents that retrieve past experiences\(Shinnet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib22); Majumderet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib19); Packeret al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib55)\), tool docs\(Qinet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib20)\), and skills\(Wanget al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib28)\)\. These systems target*concrete*artifacts where surface similarity often suffices, whereas we retrieve*abstract*heuristic rules with little lexical overlap, where standard retrievers fail and off\-the\-shelf or in\-domain embedders miss the agentic objective\. A complementary line manages the retrieved context itself, e\.g\. prompt compression\(Chunget al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib11)\)and long\-context activation approximation\(Liet al\.,[2026b](https://arxiv.org/html/2608.04761#bib.bib5)\), which is orthogonal to*which*insight to retrieve\.

##### Experience\-Based Agent Learning\.

Reflexion\(Shinnet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib22)\), CLIN\(Majumderet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib19)\), and Voyager\(Wanget al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib28)\)accumulate episodic memory, causal abstractions, or skills, while ExpeL\(Zhaoet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib29)\)and AutoGuide\(Fuet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib56)\)distill trajectories into text rules without weight updates\. They focus on*what*to store, whereas we address*when*to retrieve the right stored knowledge and are agnostic to how insights are produced\. The value of surfacing the right prior experience is further underscored by in\-context learning at scale, where retrieved demonstrations drive learning gains\(Chunget al\.,[2026](https://arxiv.org/html/2608.04761#bib.bib12)\)\.

##### Reasoning\-Oriented Dense Retrieval\.

Dense retrievers\(Karpukhinet al\.,[2020](https://arxiv.org/html/2608.04761#bib.bib16); Xionget al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib31); Wanget al\.,[2022a](https://arxiv.org/html/2608.04761#bib.bib27); Suet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib26); Xiaoet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib57)\)and benchmarks such as MTEB\(Muennighoffet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib52)\)and BRIGHT\(Suet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib48)\)show that strong semantic matching still leaves reasoning\-intensive retrieval far from solved\. ReasonIR\(Shaoet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib49)\), Llama\-NV\-Embed\-Reasoning\(NVIDIA,[2026](https://arxiv.org/html/2608.04761#bib.bib50)\)\(top open\-source*single\-model*embedder on BRIGHT\), and ReasonEmbed\(Chenet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib51)\)train contrastive embedders for static query–passage support\. Other work makes retrieval*context\-aware*through embedding models\(Wuet al\.,[2025c](https://arxiv.org/html/2608.04761#bib.bib1),[b](https://arxiv.org/html/2608.04761#bib.bib2)\)and memory\-aware reranking\(Liet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib3),[2026a](https://arxiv.org/html/2608.04761#bib.bib4)\), but relevance there is still defined by matching a fixed query, not by whether a retrieved item advances an agent toward its goal\. We instead target*next\-step utility*under an evolving agent state: whether an insight resolves the current bottleneck, not merely whether it entails a fixed query\.

##### Agentic Benchmarks\.

ALFWorld\(Shridharet al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib23)\), WebShop\(Yaoet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib32)\), ScienceWorld\(Wanget al\.,[2022b](https://arxiv.org/html/2608.04761#bib.bib24)\), Mind2Web\(Denget al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib13)\), and WebArena\(Zhouet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib14)\)evaluate embodied, scientific, and web control with state\-conditioned queries, and AgentBench\(Liuet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib46)\)spans additional interactive environments\. Prior evaluation efforts largely fall into two separate camps: retrieval over long contexts\(Yuet al\.,[2025a](https://arxiv.org/html/2608.04761#bib.bib7)\)and reasoning or understanding benchmarks\(Yuet al\.,[2025b](https://arxiv.org/html/2608.04761#bib.bib8); Chunget al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib9); Wuet al\.,[2025a](https://arxiv.org/html/2608.04761#bib.bib10)\)\. A benchmark that jointly targets*retrieval for reasoning and action guidance*is largely missing, BRIGHT\(Suet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib48)\)and SRA\-Bench\(Suet al\.,[2026](https://arxiv.org/html/2608.04761#bib.bib47)\)begin to address this gap, the latter testing static task\-to\-skill retrieval over mixed gold and distractor skills and complementing dynamic agent benchmarks by isolating retrieval from online execution\.

## 3Method

### 3\.1Problem Setting

An LLM agent operates in an interactive environment where, at each steptt, it observes a statests\_\{t\}\(task description, action history, current observation\) and must select an actionata\_\{t\}toward a goalgg, following a reasoning\-and\-acting loop\(Yaoet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib33)\)\. The agent has access to an insight corpusℐ=\{I1,…,IN\}\\mathcal\{I\}=\\\{I\_\{1\},\\ldots,I\_\{N\}\\\}, where each insightIiI\_\{i\}is a natural\-language description of abstract rules and strategies\. We view this task as*goal\-conditioned abductive retrieval*: given the current state and goal, retrieve the insight that best identifies which intervention would make progress possible\. Our notion of relevance is*progress\-oriented*: an insight is useful if it is expected to reduce the gap to the goal, not merely if it is semantically similar to the query\. We express this target as,

I∗=arg⁡maxI∈ℐ⁡𝔼​\[Δ​\(st,g\)∣agent uses​I\],I^\{\*\}=\\arg\\max\_\{I\\in\\mathcal\{I\}\}\\;\\mathbb\{E\}\\left\[\\Delta\(s\_\{t\},g\)\\mid\\text\{agent uses \}I\\right\],\(1\)whereΔ​\(st,g\)\\Delta\(s\_\{t\},g\)measures progress toward goalggfrom statests\_\{t\}\. Equation \([1](https://arxiv.org/html/2608.04761#S3.E1)\) is*not*the training objective, and we do not estimate𝔼​\[Δ∣I\]\\mathbb\{E\}\[\\Delta\\mid I\]inside the contrastive loss\. Instead, it guides*how we curate supervision*: for each training problem we run five rollouts, distill candidate insights from random trajectory subsets, and assign an insight toI\+I^\{\+\}for problemqqonly if prepending it toqq’s query improves solve rate over a no\-insight baseline on that same problem \(and toI−I^\{\-\}otherwise\)\. See Appendix[A\.2](https://arxiv.org/html/2608.04761#A1.SS2)\. At inference, we deploy an embedding retriever that approximates the same criterion by similarity:

I∗=arg⁡maxI∈ℐ⁡sim​\(fθ​\(st\),fθ​\(I\)\),I^\{\*\}=\\arg\\max\_\{I\\in\\mathcal\{I\}\}\\;\\text\{sim\}\\bigl\(f\_\{\\theta\}\(s\_\{t\}\),\\;f\_\{\\theta\}\(I\)\\bigr\),\(2\)withfθf\_\{\\theta\}trained by InfoNCE on the curated\(q,I\+,I−\)\(q,I^\{\+\},I^\{\-\}\)pairs \(§[3\.3](https://arxiv.org/html/2608.04761#S3.SS3)\)\.

The core difficulty is the*abstraction gap*:sts\_\{t\}contains concrete details \(specific objects, locations, actions\) whileI∗I^\{\*\}contains abstract rules \(general strategies, heuristics\)\. For agentic tasks, this gap is also temporal: the relevant insight is the one that addresses the agent’s current bottleneck, not necessarily the one most topically related to the final task goal\. For example, before the target object is found, a search insight is more useful than an insight about how to transform or place that object\.

We thus define*action\-intent*not as a supervised action label but as a progress\-conditioned relevance signal tied to Equation \([1](https://arxiv.org/html/2608.04761#S3.E1)\):

###### Definition\(Action\-intent embedding\)\.

For a situations=\(g,h,o\)s=\(g,h,o\)\(goalgg, action historyhh, observationoo\), the*action\-intent*ofssis the latent bottleneck that must be resolved before progress towardgg\. An insightIIis*action\-intent–relevant*tossif it raises expected progress𝔼​\[Δ​\(s,g\)∣I\]\\mathbb\{E\}\[\\Delta\(s,g\)\\mid I\], and an*action\-intent embedding*fθf\_\{\\theta\}ranks insights bysim​\(fθ​\(s\),fθ​\(I\)\)\\mathrm\{sim\}\(f\_\{\\theta\}\(s\),f\_\{\\theta\}\(I\)\)under this progress\-conditioned relevance rather than topical similarity\.

We address this gap through a two\-stage contrastive curriculum trained entirely on mathematical reasoning data\(Hendryckset al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib53); Weiet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib30)\)\. Our training design rests on a single claim: math heuristic retrieval and agentic insight retrieval instantiate the same action\-intent matching problem as illustrated in Table[1](https://arxiv.org/html/2608.04761#S3.T1)\.

### 3\.2Structural Analogy for Action\-Intent Retrieval

We propose that an agentic action\-intent embedding can be learned from math\-only data because both settings share the same retrieval structure: a concrete situation must be matched to the abstract rule that resolves the*current*bottleneck, not merely to topically related text\.

Table 1:Structural analogy between math reasoning and agentic execution, our design claim for building action\-intent embeddings from math\-only contrastive training\.Under this parallel, contrastive training on math should teach a domain\-agnostic geometric property: embed a situation near the abstract rule that makes the next useful step apparent\. The instruction prefix at inference \(§[3\.5](https://arxiv.org/html/2608.04761#S3.SS5)\) frames queries in domain\-neutral terms so this property can activate on the target agentic environments without environment\-specific fine\-tuning\. The experiments below test whether this claim holds in practice\.

##### Shared bottleneck categories\.

What transfers is not a shared “step” format but a*situation→\\rightarrowbottleneck\-resolving\-rule*geometry organized by a small set of recurring bottleneck*types*that both domains instantiate\. These categories are never specified in the pipeline: the distillation prompts \(Appendix[A\.2\.2](https://arxiv.org/html/2608.04761#A1.SS2.SSS2)\) ask only for general, task\-agnostic rules and never mention any category scheme\. On inspecting the generated math and agentic insights, we find their content maps cleanly onto the same recurring bottleneck types, an emergent property of the distilled insights rather than an artifact engineered into the pipeline\. Reading such a correspondence left\-to\-right shows the same operation: at a mid\-progress state, retrieve the rule that resolves the current bottleneck\. For instance, in the ALFWorld “put a hot potato in fridge” case, Base retrieves a topically related but premature heating rule while InsightEmb retrieves the search\-priority rule and succeeds, the exact analogue of retrieving “converta∣ba\\mid bintob≡0\(moda\)b\\equiv 0\\pmod\{a\}” to resolve the current bottleneck\. Appendix Table[8](https://arxiv.org/html/2608.04761#A1.T8)lists the six emergent bottleneck categories with paired math and agentic examples\.

### 3\.3Stage 1: Situation\-to\-Insight Matching

Stage 1 teaches the embedding model to bridge the abstraction gap by matching mathematical problems to their relevant heuristic rules\.

##### Training data\.

Each training example is a triplet\(q,I\+,I−\)\(q,I^\{\+\},I^\{\-\}\)whereqqis a query in one of three forms: \(i\) a raw math problem statement \(*query\-only*\), \(ii\) a problem concatenated with its full chain\-of\-thought solution \(*full trajectory*\), or \(iii\) a problem with a truncated solution \(*partial trajectory*\)\. The positive setI\+I^\{\+\}contains distilled heuristic rules that pass the utility filter implied by Equation \([1](https://arxiv.org/html/2608.04761#S3.E1)\): for each problem in a trajectory subset, a rule is inI\+I^\{\+\}only if prepending it to that problem’s query improved solve rate on validation attempts for that same problem, compared with attempts without the rule\. Rules that fail this check, or hurt performance, are placed inI−I^\{\-\}\. This ties contrastive labels to*demonstrated progress*rather than author judgment or lexical overlap alone\. For a given trajectory subset, the sameI\+I^\{\+\}andI−I^\{\-\}are reused across all three query forms, and only the situation anchorqqchanges\. Insights are provided at two granularities used jointly in training:Bundleinsights \(multi\-rule summaries distilled from successful and contrasting trajectories\) andAtomicinsights \(single rules split from those bundles\)\. Stage 1 therefore learns from both coarse strategy sets and fine\-grained rules, totaling 11,950 contrastive pairs over counting & probability, number theory, and geometry problems from the MATH dataset\(Hendryckset al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib53)\)\. Appendix[A\.1](https://arxiv.org/html/2608.04761#A1.SS1)lists pair counts and domain breakdowns\.

##### Training objective\.

Given curated\(q,I\+,I−\)\(q,I^\{\+\},I^\{\-\}\), we trainfθf\_\{\\theta\}with InfoNCE\(Chenet al\.,[2020](https://arxiv.org/html/2608.04761#bib.bib54)\)and in\-batch negatives:

ℒ1=−log⁡exp⁡\(sim​\(fθ​\(q\),fθ​\(I\+\)\)/τ\)∑I∈\{I\+\}∪𝒩exp⁡\(sim​\(fθ​\(q\),fθ​\(I\)\)/τ\)\\mathcal\{L\}\_\{1\}=\-\\log\\frac\{\\exp\\bigl\(\\text\{sim\}\(f\_\{\\theta\}\(q\),f\_\{\\theta\}\(I^\{\+\}\)\)/\\tau\\bigr\)\}\{\\sum\_\{I\\in\\\{I^\{\+\}\\\}\\cup\\mathcal\{N\}\}\\exp\\bigl\(\\text\{sim\}\(f\_\{\\theta\}\(q\),f\_\{\\theta\}\(I\)\)/\\tau\\bigr\)\}\(3\)whereτ=0\.01\\tau=0\.01and𝒩\\mathcal\{N\}includes in\-batch negatives \(training group size 11\)\. The loss implements Equation \([2](https://arxiv.org/html/2608.04761#S3.E2)\) on pairs whose positives were chosen by the progress criterion in Equation \([1](https://arxiv.org/html/2608.04761#S3.E1)\), not by optimizing𝔼​\[Δ∣I\]\\mathbb\{E\}\[\\Delta\\mid I\]end\-to\-end\.

### 3\.4Stage 2: Situation\-to\-Experience Matching

Both stages share the*same*contrastive objective \(Equation \([3](https://arxiv.org/html/2608.04761#S3.E3)\)\) and the same math data, differing only in*what the situation is matched against*, which fixes the level of abstraction the model must bridge:

- •Stage 1 \(situation→\\rightarrowabstract rule\)matches a situation*across*abstraction levels, to a distilled heuristic that names the bottleneck to resolve\.
- •Stage 2 \(situation→\\rightarrowconcrete experience\)matches a situation*at*its own abstraction level, to a structurally similar solved problem, teaching the model to recognize when two different\-looking situations require the same reasoning approach\.

The two targets are complementary rather than redundant: Stage 1 supplies the concrete\-to\-abstract mapping needed to retrieve rules, while Stage 2 sharpens the situation representation itself so that structurally analogous states cluster together, which stabilizes the abstract matching learned in Stage 1\.

Concretely, Stage 2 uses triplets\(q,T\+,T−\)\(q,T^\{\+\},T^\{\-\}\)whereqqis a raw problem or a full trajectory,T\+T^\{\+\}is a structurally similar solved problem, andT−T^\{\-\}is a dissimilar one, with insights in Stage 1 simply replaced by trajectories\. This stage uses 2,896 examples across the same three math domains\.

### 3\.5Inference: Dynamic Insight Retrieval

At inference time, the trained embedding model is deployed for dynamic insight retrieval in target interactive environments*without any domain\-specific fine\-tuning*\. At each steptt, \(1\) the agent’s current statests\_\{t\}is encoded with a task\-specific instruction prefix,111E\.g\.,*“Given an AlfWorld task observation, retrieve relevant insights or strategies that can help the agent solve the task effectively\.”*\(2\) the top\-kkmost similar insights are retrieved from the pre\-encoded corpus, and \(3\) the retrieved insights are prepended to the LLM’s prompt for action generation\.

## 4Experimental Setup

We fine\-tune Qwen3\-Embedding\-4B\(Zhanget al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib35)\)with the two\-stage curriculum in §[3](https://arxiv.org/html/2608.04761#S3)\. Appendix[B\.1](https://arxiv.org/html/2608.04761#A2.SS1)specifies learning rate, batching, contrastive temperature, and hardware, and Table[11](https://arxiv.org/html/2608.04761#A2.T11)summarizes the full configuration\.

### 4\.1Evaluation Overview

Our goal is to test the design claim in Table[1](https://arxiv.org/html/2608.04761#S3.T1): whether math\-only training yields progress\-oriented, action\-intent retrieval in ALFWorld, WebShop, ScienceWorld, and SRA\-Bench\. We use two complementary metrics:*end\-task performance*on interactive agent environments and*retrieval recall*on a static benchmark\. On ALFWorld, WebShop, and ScienceWorld, an LLM agent executes full trajectories with dynamic insight retrieval, and we measure whether retrieval improves task completion \(success rate and average task score\), not ranking accuracy in isolation\. On SRA\-Bench, no agent is run\. We score task\-to\-skill matching directly with recall@kkand nDCG@kk\. The three agentic environments \(detailed in §[4](https://arxiv.org/html/2608.04761#S4)\) stress complementary procedural skills\. Following AgentBench\(Liuet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib46)\), we report success rate for ALFWorld and ScienceWorld and average task score for WebShop\.

### 4\.2Evaluation with Agentic Environment

We evaluate dynamic insight retrieval on three text\-based interactive environments that stress complementary procedural skills: ALFWorld\(Shridharet al\.,[2021](https://arxiv.org/html/2608.04761#bib.bib23)\)\(embodied search and manipulation for household tasks\), WebShop\(Yaoet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib32)\)\(product comparison, variant selection, and multi\-step purchase workflows\), and ScienceWorld\(Wanget al\.,[2022b](https://arxiv.org/html/2608.04761#bib.bib24)\)\(long\-horizon scientific procedures such as measuring melting or boiling points, testing conductivity, and locating living or non\-living things\)\. Each requires a sequence of navigation and interaction actions, making all three direct tests of whether retrieval can select insights that unblock the agent’s current procedural phase\.

##### Common agent configuration\.

Across all three environments we use the same protocol: Qwen3\-8B\(Qwen Team,[2025](https://arxiv.org/html/2608.04761#bib.bib34)\)as the action\-generating LLM with greedy decoding, a history window of 3 steps, a maximum of 50 steps per game, and top\-1 dynamic insight retrieval, comparing the same two embedding variants \(Base and InsightEmb\)\. We evaluate ALFWorld on its test split, WebShop on 500 test games, and ScienceWorld on a fixed, seed\-42, task\-balanced subset of 500 test variations \(reused across all experiments\)\. ScienceWorld uses a 700\-bundle / 6,265\-atomic insight pool, and its task\-type counts are in Appendix Table[17](https://arxiv.org/html/2608.04761#A4.T17)\.

#### 4\.2\.1Insight corpora

We evaluate two insight corpus granularities per environment to disentangle the effect of the embedding model from the insight content\.Bundleinsights are multi\-rule summaries, each containing several rules with full chain\-of\-thought reasoning\.Atomicsplits each bundle into individual rules with chain\-of\-thought removed\. Appendix Table[9](https://arxiv.org/html/2608.04761#A1.T9)summarises corpus sizes and rule lengths for each environment\. Appendix[A\.2](https://arxiv.org/html/2608.04761#A1.SS2)documents trajectory collection, DeepSeek\-R1/GPT\-5\.2 distillation prompts, and howBundleandAtomiccorpora are built\.

### 4\.3SRA\-Bench Retrieval Evaluation

To isolate retrieval quality from downstream action generation, we additionally evaluate on SRA\-Bench\(Suet al\.,[2026](https://arxiv.org/html/2608.04761#bib.bib47)\), spanning theorem proving, logical reasoning, tool use, contest math, medical calculation, and code generation\. Each query uses the full instancequestionfield with a Qwen3\-style retrieval instruction prefix\(Zhanget al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib35)\), and each candidate encodes the skill name, description, and body\. Appendix[E\.1](https://arxiv.org/html/2608.04761#A5.SS1)gives the exactInstruct/Querytemplate and skill\-passage format used in evaluation\. Unlike the agent environments above, the primary metrics here are retrieval recall \(R@kk\) and ranking quality \(N@kk\) fork∈\{1,3,5,7,10\}k\\in\\\{1,3,5,7,10\\\}, macro\-averaged across task families \(§[5\.4](https://arxiv.org/html/2608.04761#S5.SS4)\)\.

## 5Results

### 5\.1ALFWorld Results

We first evaluate whether retrieved insights improve online agent execution in ALFWorld, where the query changes after every observation and action, and on WebShop \(§[5\.2](https://arxiv.org/html/2608.04761#S5.SS2)\), where the agent must search product pages and complete purchases\. Table[2](https://arxiv.org/html/2608.04761#S5.T2)reports both metrics under the same retrieval protocol\.

Table 2:Dynamic agent evaluation on ALFWorld \(ALF\), WebShop \(WS\), and ScienceWorld \(SW\) \(top\-1 retrieval, Qwen3\-8B agent\)\. All columns are reported as percentages \(success rate for ALF and SW, average task score for WS\)\. The no\-insight baseline for SW is only2\.402\.40, so every insight setting more than triples it\. Separate SW top\-kkcurves appear in Appendix Table[15](https://arxiv.org/html/2608.04761#A4.T15)\.##### InsightEmb transfers to embodied control\.

All InsightEmb variants outperform the Base embedding model on test success rate in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\. With bothBundleandAtomicinsights, InsightEmb achieves about a 5\-point improvement over Base\. ForBundle, per\-game\-level retrieval turnover, step counts, and zero\-score rates are in Appendix Table[13](https://arxiv.org/html/2608.04761#A4.T13)\(§[D\.1\.2](https://arxiv.org/html/2608.04761#A4.SS1.SSS2)\)\. Since InsightEmb is trained exclusively on mathematical reasoning data, these gains are entirely from cross\-domain transfer\. Comparison with an ALFWorld\-trained in\-domain retriever is deferred to §[6\.3](https://arxiv.org/html/2608.04761#S6.SS3)\.

##### Per\-task\-type breakdown\.

Appendix Table[14](https://arxiv.org/html/2608.04761#A4.T14)\(within §[D\.2](https://arxiv.org/html/2608.04761#A4.SS2)\) breaks down test success rates by ALFWorld task type\. InsightEmb leads on 4 of 6 types, with the largest gains on*clean*and*find\_two*, indicating a general structural\-matching gain rather than a single\-task shortcut\.

##### Mechanistic analysis\.

Appendix §[D\.1](https://arxiv.org/html/2608.04761#A4.SS1)–§[D\.3](https://arxiv.org/html/2608.04761#A4.SS3)analyzes why retrieval helps on ALFWorld: per\-game statistics, qualitative cases, topical vs\. procedural rule matching, and step\-conditioned retrieval dynamics\. InsightEmb shows a better retrieval diversity, step counts, and lower zero\-score rates, and a state\-aware transition from search to verification and state transformation\.

### 5\.2WebShop Results

WebShop results are summarized in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\(right column\)\. We report average task score as a percentage, which reflects partial credit for attribute matching under the AgentBench evaluation protocol\.

##### InsightEmb transfers to web shopping\.

On WebShop, retrieval quality matters:Bundlewith Base \(18\.42%\) falls well below the no\-insight baseline \(31\.03%\), while InsightEmb achieves a better performance \(Bundle31\.74%,Atomic32\.05%\)\. InsightEmb outperforms Base on both corpora \(e\.g\., \+72% relative onBundle\)\. Per\-game\-level statistics forBundleare in Appendix Table[13](https://arxiv.org/html/2608.04761#A4.T13)\(§[D\.1\.3](https://arxiv.org/html/2608.04761#A4.SS1.SSS3)\)\.

##### Retrieval safety under a noisy insight pool\.

The WebShopBundleregime highlights a distinct property beyond average relevance: a progress\-blind retriever can be*worse than no retrieval at all*\(BaseBundle18\.42% vs\. 31\.03% no\-retrieval\), because it surfaces premature or topically\-related but procedurally irrelevant insights from a largely unhelpful pool\. InsightEmb learns to filter such premature insights and select the state\-appropriate one, turning a net\-harmful retrieval setting into a net\-useful one \(31\.74%\)\. Making agentic insight retrieval*safe*under a noisy corpus is itself a useful property, not only improving average relevance but also avoiding active degradation of the base agent\.

##### Qualitative patterns\.

Manual inspection of divergent games reveals three recurring patterns \(variant\-selection awareness, loop prevention, and procedural sequencing\), indicating that InsightEmb performs*procedural matching*, retrieving insights that address the agent’s current bottleneck\. Appendix[D\.5](https://arxiv.org/html/2608.04761#A4.SS5)details each pattern with side\-by\-side Base vs\. InsightEmb trajectories\.

### 5\.3ScienceWorld Results

##### InsightEmb transfers to scientific procedures\.

ScienceWorld results \(top\-1 retrieval\) are summarized in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\(right column\)\. This environment is substantially harder for the base agent: the no\-insight baseline reaches only2\.40%2\.40\\%success, reflecting the long\-horizon, multi\-step nature of scientific procedures \(measurement, classification, and controlled experiments\)\. Against this backdrop InsightEmb wins or ties Base in both corpora at top\-1 \(10\.20%10\.20\\%vs\.7\.40%7\.40\\%onAtomicand8\.00%8\.00\\%vs\.7\.40%7\.40\\%onBundle\), and every insight setting more than triples the no\-insight baseline\. Since InsightEmb is trained only on mathematical reasoning data, these gains on a third, procedurally distinct environment are again entirely from cross\-domain transfer\.

##### Robustness across budget and action model\.

The advantage persists across retrieval budgetsk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\(Appendix Table[15](https://arxiv.org/html/2608.04761#A4.T15)\) and under a stronger closed\-source action model \(GPT\-5\.2, Appendix Table[16](https://arxiv.org/html/2608.04761#A4.T16)\), mirroring the budget\- and model\-robustness checks reported for ALFWorld and WebShop\.

##### Per\-task\-type grouping\.

The ScienceWorld task types span complementary functional families \(search/identify, measurement/verification, state\-transform/experiment, and multi\-step reasoning, detailed in Appendix[D\.6\.5](https://arxiv.org/html/2608.04761#A4.SS6.SSS5)\), so the aggregate gain reflects broad procedural coverage rather than a single task shortcut\.

##### Mechanistic analysis\.

Per\-game\-level statistics \(Bundle, top\-1\) are reported alongside ALFWorld and WebShop in Appendix Table[13](https://arxiv.org/html/2608.04761#A4.T13)\(§[D\.1\.4](https://arxiv.org/html/2608.04761#A4.SS1.SSS4)\)\. Aside from the task metric, InsightEmb lowers the negative\-score rate from55\.4%55\.4\\%to52\.0%52\.0\\%and raises mean distinct insights from 2\.04 to 2\.37\. Notably, on ScienceWorld InsightEmb more often locks onto a single procedurally complete workflow insight and reuses it across an experiment\. Its higher mean step count \(40\.96→43\.5940\.96\\rightarrow 43\.59\) indicates it more often persists through the multi\-step protocol rather than terminating early without completing the required state transition\.

##### Qualitative patterns\.

Manual inspection of divergent games reveals three recurring patterns \(state\-variable awareness, action sequencing, and failure\-mode avoidance\), mirroring the procedural\-matching behavior seen on ALFWorld and WebShop\. Appendix[D\.6\.7](https://arxiv.org/html/2608.04761#A4.SS6.SSS7)details each pattern with side\-by\-side Base vs\. InsightEmb trajectories and worked examples\.

### 5\.4Static Skill Retrieval on SRA\-Bench

Following the static protocol in §[4\.3](https://arxiv.org/html/2608.04761#S4.SS3), we test whether math\-only training improves*task\-to\-skill*matching before any action model runs\. Table[3](https://arxiv.org/html/2608.04761#S5.T3)reports macro\-averaged results over the 636 gold skills and 26,262 distractors, and the per\-task\-family breakdown at @1 and @10 is in Appendix Table[21](https://arxiv.org/html/2608.04761#A5.T21)\(§[E\.2](https://arxiv.org/html/2608.04761#A5.SS2)\)\. InsightEmb improves over Base on every cutoff, with small gains at R@1 and substantially larger gains at higher cutoffs \(\+8\.90 R@10\)\. This pattern indicates that the training primarily improves the ranking of relevant skills beyond the first position, which is especially useful when an agent can inspect or condition on multiple retrieved skills\.

Table 3:SRA\-Bench macro\-average retrieval results across six task families\. Queries use task information and candidates use the full skill content\. R@kkis recall atkkand N@kkis normalized discounted cumulative gain atkk\. Appendix Table[21](https://arxiv.org/html/2608.04761#A5.T21)breaks down per\-task\-family results at @1 and @10, and the macro\-average is computed by averaging those task families equally\.Across families, InsightEmb improves clearly on theorem proving, tool use, contest math, and code generation, where queries and useful skills differ in wording while sharing procedural structure\. The only clear negative outlier is MedCalcBench at small cutoffs, whose highly template\-like, lexically specialized skills favor the Base embedder’s entity\-level cues at rank 1 \(Appendix Table[21](https://arxiv.org/html/2608.04761#A5.T21)\)\. Appendix[E\.2](https://arxiv.org/html/2608.04761#A5.SS2)discusses the per\-family breakdown and the MedCalcBench outlier, lexical vs\. structural retrieval bottlenecks, and implications for reranker\-limited skill pipelines, and Appendix[E\.2\.1](https://arxiv.org/html/2608.04761#A5.SS2.SSS1)provides a lightweight BM25\-hybrid remedy that recovers R@1 and reaches100%100\\%recall at R@5/R@10 on this family, together with an explicit applicability scope\.

## 6Analysis and Comparisons

The results above establish that math\-trained InsightEmb improves dynamic agent execution and static skill retrieval over the Base embedder\. This section asks*why*: we compare reasoning\-oriented embedders and alternative insight generators, validate in\-domain fine\-tuning against cross\-domain training, then analyze whether the learned geometry matches our structural\-analogy claim\.

### 6\.1Scaling with Comparison to Reasoning\-Oriented Retrievers

We focus this analysis on ALFWorld and WebShop because they represent the two opposite*insight\-pool regimes*that a retriever must handle, as revealed by comparing the no\-insight baseline \(\{\}\) with Base\-selected insights in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\. On ALFWorld, retrieval is*helpful even with an untrained retriever*: adding Base\-selectedBundleinsights already raises success over no insight \(52\.86→54\.2952\.86\\rightarrow 54\.29\), so the corpus is a largely*useful*insight pool and the question is how much better a progress\-aware retriever can do\. On WebShop, the same Base\-selected insights are*harmful*:Bundle\+Base drops well below no insight \(31\.03→18\.4231\.03\\rightarrow 18\.42\), indicating a corpus that is largely*unhelpful or premature*, where a progress\-blind retriever surfaces net\-negative insights\. Studying both regimes together therefore tests two distinct demands, extracting more value from a useful pool \(ALFWorld\) and staying safe under a noisy pool \(WebShop\), which is why we concentrate the scaling comparison here rather than on a single environment\.

A natural question is whether reasoning\-oriented retrievers trained for static, query–document matching can serve as drop\-in replacements for InsightEmb in these two regimes\. Using the same ALFWorld and WebShop agent protocol as Table[2](https://arxiv.org/html/2608.04761#S5.T2), we compare Base, InsightEmb, and two reasoning\-oriented embedding baselines: \(i\)Llama\-NV\-Embed\-Reasoning\-3B\(NVIDIA,[2026](https://arxiv.org/html/2608.04761#bib.bib50)\)\(3\.2B, Llama\-3\.2\-3B\), the top\-ranked open\-source single\-model embedder on BRIGHT, and \(ii\)ReasonIR\-8B\(Shaoet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib49)\)\(8B, Llama\-3\.1\-8B\), trained with contrastive learning on synthetic reasoning\-intensive pairs, showing the setting closest to ours\. Both differ from InsightEmb \(4B, Qwen3\-Embedding\-4B\(Zhanget al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib35)\)\), which is trained only on math data\. Beyond the top\-1 results in Table[2](https://arxiv.org/html/2608.04761#S5.T2), we sweep retrieval budgetsk∈\{1,3,5\}k\\in\\\{1,3,5\\\}only for all four embedders on both environments and both insight corpora \(BundleandAtomic\)\. Atk=5k\{=\}5, top\-Bundleretrieval already prepends about 25 instruction\-level rules to the agent prompt \(roughly five rules per bundle\), so we do not evaluate largerkk\. Figure[2](https://arxiv.org/html/2608.04761#S6.F2)plots ALFWorld \(left\) and WebShop \(right\) performances as a function ofkk, using the arithmetic mean ofBundleandAtomicat eachk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\. We also ablate Stage 1 with a*no half\-traj*variant that drops partial\-trajectory queries \(dashed curve\)\. It lies between Base and full InsightEmb, accounting for most of the Base\-to\-InsightEmb gain \(Appendix[C\.1\.1](https://arxiv.org/html/2608.04761#A3.SS1.SSS1)\)\. Appendix[C\.1](https://arxiv.org/html/2608.04761#A3.SS1)also provides separate ALFWorld/WebShop top\-kkcurves by corpus\.

![Refer to caption](https://arxiv.org/html/2608.04761v1/x1.png)Figure 2:Top\-kkscaling for reasoning\-oriented retrievers\.Left:ALFWorld success rate \.Right:WebShop average task score \. Curves show the arithmetic mean ofBundleandAtomicretrieval at eachk∈\{1,3,5\}k\\in\\\{1,3,5\\\}for Base, ReasonIR, Llama\-NV\-Reasoning, and InsightEmb \(solid\)\. The dashed line \(InsightEmb color\) is the*no half\-traj*ablation, which removes partial\-trajectory queries from Stage 1\.On the corpus\-averaged curves in Figure[2](https://arxiv.org/html/2608.04761#S6.F2), InsightEmb surpasses ReasonIR and Llama\-NV\-Reasoning in both ALFWorld and WebShop at eachk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\. This gap is not explained by stronger static matching alone: reasoning\-oriented retrievers are trained for*static*query–passage matching, whereas agentic insight retrieval requires*dynamic action\-intent*matching against an evolving state to retrieve the rule that unblocks the current procedural step, the geometry InsightEmb is trained for and they are not\.

### 6\.2Robustness to Insight Generator and Action Model

Our main results use DeepSeek\-R1\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\)to distill insights and Qwen3\-8B as the action model\. We verify that the gains are not tied to either choice\.*Alternative insight generator:*repeating the dynamic\-agent evaluation with GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\)\-generated corpora \(same action model and top\-kkprotocol\), InsightEmb consistently outperforms Base on both ALFWorld and WebShop acrossk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\(Appendix[A\.4](https://arxiv.org/html/2608.04761#A1.SS4), Figure[3](https://arxiv.org/html/2608.04761#A1.F3)\)\.*Alternative action model:*replacing Qwen3\-8B with the stronger closed\-source GPT\-5\.2 as the action model preserves the advantage across all three environments \(Appendix[D\.6\.3](https://arxiv.org/html/2608.04761#A4.SS6.SSS3), Table[16](https://arxiv.org/html/2608.04761#A4.T16)\)\. Together, the improvement holds across insight source and action model\.

### 6\.3Validating the Structural\-Analogy Claim

##### Math\-to\-agentic transfer\.

Table[1](https://arxiv.org/html/2608.04761#S3.T1)predicts*bidirectional*transfer: math training should improve agentic retrieval \(tested in §[5](https://arxiv.org/html/2608.04761#S5)\), and with this hypothesis, embodied training should improve math retrieval also\. We validate both directions and compare against the natural alternative of in\-environment fine\-tuning\.

##### Finetuning With ALFWorld

A standard alternative to cross\-domain training is to fine\-tune the embedder on ALFWorld situation\-to\-insight pairs \(same backbone, pipeline, and top\-1 agent stack as §[4](https://arxiv.org/html/2608.04761#S4)\)\. As Table[4](https://arxiv.org/html/2608.04761#S6.T4)shows, InsightEmb exceeds this*In\-domain*retriever on both corpora despite using no ALFWorld data, and despite the in\-domain set being*larger*\(21,318 vs\. 14,846 math pairs\), so the gap reflects the supervision source, not scale\. Appendix[C\.2](https://arxiv.org/html/2608.04761#A3.SS2)makes this precise by*measuring*the geometric diversity of the two sources \(pairwise/nearest\-neighbor cosine distance and covariance effective rank\), replacing the informal notion of “structural diversity”\.

Table 4:ALFWorld test success rate for an ALFWorld\-trained in\-domain retriever \(Bundleonly\) vs\. Base and math\-trained InsightEmb \(top\-1 retrieval, Qwen3\-8B agent\)\. The in\-domain model is trained and evaluated on the same environment\.
##### Agentic\-to\-math transfer\.

For the reverse direction, we evaluate all model variants on*math insight retrieval*, retrieve the correct heuristic rule for a held\-out math problem\. Table[5](https://arxiv.org/html/2608.04761#S6.T5)presents accuracy on four math domains\. Three domains \(number theory, geometry, and counting & probability\) overlap with the training distribution \(same domains, different problems from the test split with a separate insight corpus\), while algebra is entirely out\-of\-distribution and never appears in training\. InsightEmb consistently improves over Base on the held\-out math test set and the unseen math domain\. This confirms that the contrastive curriculum does not sacrifice in\-domain math retrieval while learning the claimed geometry\. More importantly, the ALFWorld\-trained model \(ALF\) also improves over Base on math insight retrieval across all four domains\. This reverse\-direction gain supports Table[1](https://arxiv.org/html/2608.04761#S3.T1): the geometry is shared, not a one\-way math\-to\-agent shortcut\.

Table 5:Math*insight*retrieval accuracy\. ALF = ALFWorld\-trained model\.∗In\-domain \(same domains as training, held\-out test split with separate insight pool\)\.

## 7Conclusion

We studied*agentic insight retrieval*: at each decision step, an agent must retrieve an abstract rule that resolves its*current*procedural bottleneck, not merely text similar to the observation\. We introducedInsightEmb, a contrastive framework that learns goal\-conditioned action\-intent matching from mathematical reasoning data alone\. On ALFWorld, WebShop, and ScienceWorld it raises*end\-task*success under dynamic top\-kkinsight injection, and on SRA\-Bench it raises*retrieval recall*and nDCG for task\-to\-skill matching, outperforming the Base embedder, an ALFWorld\-trained in\-domain retriever, and strong reasoning\-oriented embedders\. The gains are consistent across environment, action model \(Qwen3\-8B and GPT\-5\.2\), insight source \(DeepSeek\-R1, GPT\-5\.2, prebuilt skills\), corpus granularity, and retrieval budget\. InsightEmb further makes retrieval*safe*under a noisy insight pool where a progress\-blind retriever can be worse than no retrieval at all\. Together, these results support a simple design claim: math heuristic retrieval and agentic insight retrieval share the same progress\-oriented matching structure\.

##### Limitations\.

Our dynamic agent experiments primarily use Qwen3\-8B as the action model and DeepSeek\-R1 \(with a GPT\-5\.2 robustness check\) for insight distillation\. We additionally validate on a third environment \(ScienceWorld\) and with a stronger closed\-source action model \(GPT\-5\.2\) across all three environments \(Appendix[D\.6](https://arxiv.org/html/2608.04761#A4.SS6)\), and extending to still more environments and LLMs would further strengthen the generality claim\. Although SRA\-Bench isolates static retrieval quality, dynamic agentic retrieval still lacks gold labels for which insight is optimal at each state, so downstream success remains an important but indirect measure of retrieval utility and closely aligns with our objective\. Finally, for Stage 1 partial\-trajectory queries we reuse the same\(I\+,I−\)\(I^\{\+\},I^\{\-\}\)sets as for query\-only and full\-trajectory pairs\. Generating state\-specific pairs that reflect what is helpful*at that point*in the rollout would likely improve state awareness, which we leave to future work\.

## References

- ReasonEmbed: enhanced text embeddings for reasoning\-intensive document retrieval\.arXiv preprint arXiv:2510\.08252\.Note:Describes the BGE\-Reasoner\-Embed embedding models \(released under the BGE\-Reasoner framework\)External Links:[Link](https://arxiv.org/abs/2510.08252)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- T\. Chen, S\. Kornblith, M\. Norouzi, and G\. Hinton \(2020\)A simple framework for contrastive learning of visual representations\.InProceedings of the 37th International Conference on Machine Learning,Cited by:[§3\.3](https://arxiv.org/html/2608.04761#S3.SS3.SSS0.Px2.p1.2)\.
- T\. T\. Chung, L\. Cui, L\. Liu, X\. Huang, S\. Shi, and D\. Yeung \(2024\)Selection\-p: self\-supervised task\-agnostic prompt compression for faithfulness and transferability\.InFindings of the Association for Computational Linguistics: EMNLP 2024,pp\. 11057–11070\.External Links:[Link](https://aclanthology.org/2024.findings-emnlp.646/)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- T\. T\. Chung, L\. Liu, M\. Yu, and D\. Yeung \(2025\)DivLogicEval: a framework for benchmarking logical reasoning evaluation in large language models\.InFindings of the Association for Computational Linguistics: EMNLP 2025,External Links:[Link](https://arxiv.org/abs/2509.15587)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- T\. T\. Chung, L\. Liu, M\. Yu, and D\. Yeung \(2026\)Many\-shot CoT\-ICL: making in\-context learning truly learn\.InProceedings of the 43rd International Conference on Machine Learning \(ICML\),External Links:[Link](https://arxiv.org/abs/2605.13511)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- DeepSeek\-AI \(2025\)DeepSeek\-R1: incentivizing reasoning capability in LLMs via reinforcement learning\.arXiv preprint arXiv:2501\.12948\.External Links:[Link](https://arxiv.org/abs/2501.12948)Cited by:[§A\.2\.1](https://arxiv.org/html/2608.04761#A1.SS2.SSS1.p2.1),[§A\.3](https://arxiv.org/html/2608.04761#A1.SS3.p1.1),[§A\.4\.1](https://arxiv.org/html/2608.04761#A1.SS4.SSS1.p1.1),[Table 9](https://arxiv.org/html/2608.04761#A1.T9),[§C\.2\.1](https://arxiv.org/html/2608.04761#A3.SS2.SSS1.p3.1),[§6\.2](https://arxiv.org/html/2608.04761#S6.SS2.p1.2)\.
- X\. Deng, Y\. Gu, B\. Zheng, S\. Chen, S\. Stevens, B\. Wang, H\. Sun, and Y\. Su \(2023\)Mind2Web: towards a generalist agent for the web\.InAdvances in Neural Information Processing Systems,External Links:[Link](https://arxiv.org/abs/2306.06070)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- Y\. Fu, D\. Kim, J\. Kim, S\. Sohn, L\. Logeswaran, K\. Bae, and H\. Lee \(2024\)AutoGuide: automated generation and selection of context\-aware guidelines for large language model agents\.InAdvances in Neural Information Processing Systems,External Links:[Link](https://arxiv.org/abs/2403.08978)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- K\. Guu, K\. Lee, Z\. Tung, P\. Pasupat, and M\. Chang \(2020\)REALM: retrieval\-augmented language model pre\-training\.InProceedings of the 37th International Conference on Machine Learning,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- D\. Hendrycks, C\. Burns, S\. Kadavath, A\. Arora, S\. Basart, E\. Tang, D\. Song, and J\. Steinhardt \(2021\)Measuring mathematical problem solving with the MATH dataset\.arXiv preprint arXiv:2103\.03874\.Cited by:[§3\.1](https://arxiv.org/html/2608.04761#S3.SS1.p4.1),[§3\.3](https://arxiv.org/html/2608.04761#S3.SS3.SSS0.Px1.p1.8)\.
- M\. Huan, Y\. Li, T\. Zheng, X\. Xu, S\. Kim, M\. Du, R\. Poovendran, G\. Neubig, and X\. Yue \(2025\)Does math reasoning improve general LLM capabilities? understanding transferability of LLM reasoning\.External Links:2507\.00432,[Link](https://arxiv.org/abs/2507.00432)Cited by:[§C\.2\.1](https://arxiv.org/html/2608.04761#A3.SS2.SSS1.p3.1)\.
- V\. Karpukhin, B\. Oguz, S\. Min, P\. Lewis, L\. Wu, S\. Edunov, D\. Chen, and W\. Yih \(2020\)Dense passage retrieval for open\-domain question answering\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- P\. Lewis, E\. Perez, A\. Piktus, F\. Petroni, V\. Karpukhin, N\. Goyal, H\. Küttler, M\. Lewis, W\. Yih, T\. Rocktäschel, S\. Riedel, and D\. Kiela \(2020\)Retrieval\-augmented generation for knowledge\-intensive NLP tasks\.InAdvances in Neural Information Processing Systems,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- Y\. Li, J\. Li, Z\. Lin, Z\. Zhou, J\. Wu, W\. Wang, J\. Zhou, and M\. Yu \(2025\)Mindscape\-aware retrieval augmented generation for improved long context understanding\.External Links:2512\.17220,[Link](https://arxiv.org/abs/2512.17220)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- Y\. Li, J\. Li, M\. Yu, G\. Ding, Z\. Lin, W\. Wang, and J\. Zhou \(2026a\)Query\-focused and memory\-aware reranker for long context processing\.External Links:2602\.12192,[Link](https://arxiv.org/abs/2602.12192)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- Y\. Li, J\. Li, M\. Yu, Z\. Lin, W\. Wang, and J\. Zhou \(2026b\)MiA\-Signature: approximating global activation for long\-context understanding\.External Links:2605\.06416,[Link](https://arxiv.org/abs/2605.06416)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- X\. Liu, H\. Yu, H\. Zhang, Y\. Xu, X\. Lei, H\. Lai, Y\. Gu, H\. Ding, K\. Men, K\. Yang,et al\.\(2024\)AgentBench: evaluating LLMs as agents\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2308.03688)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1),[§4\.1](https://arxiv.org/html/2608.04761#S4.SS1.p1.2)\.
- B\. P\. Majumder, B\. D\. Mishra, P\. Jansen, O\. Tafjord, N\. Tandon, L\. Zhang, C\. Callison\-Burch, and P\. Clark \(2023\)CLIN: a continually learning language agent for rapid task adaptation and generalization\.arXiv preprint arXiv:2310\.10134\.Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- N\. Muennighoff, N\. Tazi, L\. Magne, and N\. Reimers \(2023\)MTEB: massive text embedding benchmark\.InProceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics,External Links:[Link](https://arxiv.org/abs/2210.07316)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- NVIDIA \(2026\)Llama\-NV\-Embed\-Reasoning\-3B\.Note:Hugging Face model card3\.2B\-parameter reasoning embedding model built on Llama\-3\.2\-3B; top\-ranked open\-source retriever on BRIGHTExternal Links:[Link](https://huggingface.co/nvidia/llama-nv-embed-reasoning-3b)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1),[§6\.1](https://arxiv.org/html/2608.04761#S6.SS1.p2.6)\.
- OpenAI \(2025\)Update to GPT\-5 system card: GPT\-5\.2\.Note:Technical reportExternal Links:[Link](https://openai.com/index/gpt-5-system-card-update-gpt-5-2/)Cited by:[§A\.2\.1](https://arxiv.org/html/2608.04761#A1.SS2.SSS1.p2.1),[§A\.4\.1](https://arxiv.org/html/2608.04761#A1.SS4.SSS1.p1.1),[§D\.2\.4](https://arxiv.org/html/2608.04761#A4.SS2.SSS4.p1.1),[§D\.3](https://arxiv.org/html/2608.04761#A4.SS3.p1.1),[§D\.6\.3](https://arxiv.org/html/2608.04761#A4.SS6.SSS3.p1.1),[§6\.2](https://arxiv.org/html/2608.04761#S6.SS2.p1.2)\.
- C\. Packer, S\. Wooders, K\. Lin, V\. Fang, V\. Patil, I\. Stoica, and J\. E\. Gonzalez \(2023\)MemGPT: towards LLMs as operating systems\.arXiv preprint arXiv:2310\.08560\.Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- J\. Panget al\.\(2025\)Bootstrapping broad LLM reasoning from math\.Note:arXiv preprintMath\-first elicitation for broad multi\-domain reasoningCited by:[§C\.2\.1](https://arxiv.org/html/2608.04761#A3.SS2.SSS1.p3.1)\.
- Y\. Qin, S\. Liang, Y\. Ye, K\. Zhu, L\. Yan, Y\. Lu, Y\. Lin, X\. Cong, X\. Tang, B\. Qian,et al\.\(2024\)ToolLLM: facilitating large language models to master 16000\+ real\-world APIs\.InProceedings of the Twelfth International Conference on Learning Representations,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1)\.
- Qwen Team \(2025\)Qwen3 technical report\.arXiv preprint arXiv:2505\.09388\.External Links:[Link](https://arxiv.org/abs/2505.09388)Cited by:[§4\.2](https://arxiv.org/html/2608.04761#S4.SS2.SSS0.Px1.p1.1)\.
- S\. Robertson and H\. Zaragoza \(2009\)The probabilistic relevance framework: BM25 and beyond\.Foundations and Trends in Information Retrieval3\(4\),pp\. 333–389\.Cited by:[§E\.2\.1](https://arxiv.org/html/2608.04761#A5.SS2.SSS1.p1.1)\.
- T\. Schick, J\. Dwivedi\-Yu, R\. Dessì, R\. Raileanu, M\. Lomeli, E\. Hambro, L\. Zettlemoyer, N\. Cancedda, and T\. Scialom \(2023\)Toolformer: language models can teach themselves to use tools\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1)\.
- R\. Shao, R\. Qiao, V\. Kishore, N\. Muennighoff, X\. V\. Lin, D\. Rus, B\. K\. H\. Low, S\. Min, W\. Yih, P\. W\. Koh, and L\. Zettlemoyer \(2025\)ReasonIR: training retrievers for reasoning tasks\.arXiv preprint arXiv:2504\.20595\.External Links:[Link](https://arxiv.org/abs/2504.20595)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1),[§6\.1](https://arxiv.org/html/2608.04761#S6.SS1.p2.6)\.
- N\. Shinn, F\. Cassano, A\. Gopinath, K\. Narasimhan, and S\. Yao \(2023\)Reflexion: language agents with verbal reinforcement learning\.InAdvances in Neural Information Processing Systems,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- M\. Shridhar, X\. Yuan, M\. Côté, Y\. Bisk, A\. Trischler, and M\. Hausknecht \(2021\)ALFWorld: aligning text and embodied environments for interactive learning\.InProceedings of the Ninth International Conference on Learning Representations,Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§1](https://arxiv.org/html/2608.04761#S1.p4.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1),[§4\.2](https://arxiv.org/html/2608.04761#S4.SS2.p1.1)\.
- H\. Su, W\. Shi, J\. Kasai, Y\. Wang, Y\. Hu, M\. Ostendorf, W\. Yih, N\. A\. Smith, L\. Zettlemoyer, and T\. Yu \(2023\)One embedder, any task: instruction\-finetuned text embeddings\.InFindings of the Association for Computational Linguistics: ACL 2023,Cited by:[§B\.1](https://arxiv.org/html/2608.04761#A2.SS1.p1.2),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- H\. Su, H\. Yen, M\. Xia, W\. Shi, N\. Muennighoff, V\. Kishore, L\. Zettlemoyer, W\. Yih, D\. Chen, and T\. Yu \(2025\)BRIGHT: a realistic and challenging benchmark for reasoning\-intensive retrieval\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2407.12883)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- W\. Su, J\. Long, Q\. Ai, Y\. Tang, C\. Wang, Y\. Tu, and Y\. Liu \(2026\)Skill retrieval augmentation for agentic AI\.arXiv preprint arXiv:2604\.24594\.External Links:[Link](https://arxiv.org/abs/2604.24594)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1),[§4\.3](https://arxiv.org/html/2608.04761#S4.SS3.p1.3)\.
- G\. Wang, Y\. Xie, Y\. Jiang, A\. Mandlekar, C\. Xiao, Y\. Zhu, L\. Fan, and A\. Anandkumar \(2024\)Voyager: an open\-ended embodied agent with large language models\.Transactions on Machine Learning Research\.Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- L\. Wang, N\. Yang, X\. Huang, B\. Jiao, L\. Yang, D\. Jiang, R\. Majumder, and F\. Wei \(2022a\)Text embeddings by weakly\-supervised contrastive pre\-training\.arXiv preprint arXiv:2212\.03533\.Cited by:[§B\.1](https://arxiv.org/html/2608.04761#A2.SS1.p1.2),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- R\. Wang, P\. Jansen, M\. Côté, and P\. Ammanabrolu \(2022b\)ScienceWorld: is your agent smarter than a 5th grader?\.InProceedings of the 2022 Conference on Empirical Methods in Natural Language Processing,pp\. 11279–11298\.External Links:[Link](https://aclanthology.org/2022.emnlp-main.775/)Cited by:[§D\.6\.1](https://arxiv.org/html/2608.04761#A4.SS6.SSS1.p1.2),[§1](https://arxiv.org/html/2608.04761#S1.p4.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1),[§4\.2](https://arxiv.org/html/2608.04761#S4.SS2.p1.1)\.
- J\. Wei, X\. Wang, D\. Schuurmans, M\. Bosma, B\. Ichter, F\. Xia, E\. Chi, Q\. V\. Le, and D\. Zhou \(2022\)Chain\-of\-thought prompting elicits reasoning in large language models\.InAdvances in Neural Information Processing Systems,Cited by:[§3\.1](https://arxiv.org/html/2608.04761#S3.SS1.p4.1)\.
- J\. Wu, T\. T\. Chung, K\. Chen, and D\. Yeung \(2025a\)Unified triplet\-level hallucination evaluation for large vision\-language models\.Transactions on Machine Learning Research \(TMLR\)\.External Links:[Link](https://arxiv.org/abs/2410.23114)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- J\. Wu, J\. Li, Y\. Li, L\. Liu, L\. Xu, J\. Li, D\. Yeung, J\. Zhou, and M\. Yu \(2025b\)SitEmb\-v1\.5: improved context\-aware dense retrieval for semantic association and long story comprehension\.External Links:2508\.01959,[Link](https://arxiv.org/abs/2508.01959)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- J\. Wu, J\. Li, Y\. Li, L\. Liu, L\. Xu, J\. Li, D\. Yeung, J\. Zhou, and M\. Yu \(2025c\)Situated embedding models for context\-aware dense retrieval\.External Links:2508\.01959,[Link](https://arxiv.org/abs/2508.01959)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- S\. Xiao, Z\. Liu, P\. Zhang, and N\. Muennighoff \(2023\)C\-Pack: packaged resources to advance general Chinese embedding\.arXiv preprint arXiv:2309\.07597\.Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- L\. Xiong, C\. Xiong, Y\. Li, K\. Tang, J\. Liu, P\. N\. Bennett, J\. Ahmed, and A\. Overwijk \(2021\)Approximate nearest neighbor negative contrastive learning for dense text retrieval\.InProceedings of the Ninth International Conference on Learning Representations,Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px3.p1.1)\.
- S\. Yao, H\. Chen, J\. Yang, and K\. Narasimhan \(2022\)WebShop: towards scalable real\-world web interaction with grounded language agents\.InAdvances in Neural Information Processing Systems,Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§1](https://arxiv.org/html/2608.04761#S1.p4.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1),[§4\.2](https://arxiv.org/html/2608.04761#S4.SS2.p1.1)\.
- S\. Yao, J\. Zhao, D\. Yu, N\. Du, I\. Shafran, K\. Narasimhan, and Y\. Cao \(2023\)ReAct: synergizing reasoning and acting in language models\.InProceedings of the Eleventh International Conference on Learning Representations,Cited by:[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§3\.1](https://arxiv.org/html/2608.04761#S3.SS1.p1.6)\.
- M\. Yu, T\. T\. Chung, C\. Zhou, T\. Li, R\. Lu, J\. Li, L\. Xu, H\. Lu, N\. Zhang, J\. Li, and J\. Zhou \(2025a\)PRELUDE: a benchmark designed to require global comprehension and reasoning over long contexts\.External Links:2508\.09848,[Link](https://arxiv.org/abs/2508.09848)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- M\. Yu, L\. Liu, J\. Wu, T\. T\. Chung, S\. Zhang, J\. Li, D\. Yeung, and J\. Zhou \(2025b\)The stochastic parrot on LLM’s shoulder: a summative assessment of physical concept understanding\.InProceedings of the 2025 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(NAACL\),External Links:[Link](https://arxiv.org/abs/2502.08946)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.
- E\. Zelikman, Y\. Wu, J\. Mu, and N\. D\. Goodman \(2022\)STaR: bootstrapping reasoning with reasoning\.Advances in Neural Information Processing Systems\.Cited by:[§A\.2\.1](https://arxiv.org/html/2608.04761#A1.SS2.SSS1.p1.1)\.
- Y\. Zhang, M\. Li, D\. Long, X\. Zhang, H\. Lin, B\. Yang, P\. Xie, A\. Yang, D\. Liu, J\. Lin, F\. Huang, and J\. Zhou \(2025\)Qwen3 embedding: advancing text embedding and reranking through foundation models\.arXiv preprint arXiv:2506\.05176\.External Links:[Link](https://arxiv.org/abs/2506.05176)Cited by:[§B\.1](https://arxiv.org/html/2608.04761#A2.SS1.p1.2),[§4\.3](https://arxiv.org/html/2608.04761#S4.SS3.p1.3),[§4](https://arxiv.org/html/2608.04761#S4.p1.1),[§6\.1](https://arxiv.org/html/2608.04761#S6.SS1.p2.6)\.
- A\. Zhao, D\. Huang, Q\. Xu, M\. Lin, Y\. Liu, and G\. Huang \(2024\)ExpeL: LLM agents are experiential learners\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.38,pp\. 19632–19642\.External Links:[Link](https://arxiv.org/abs/2308.10144)Cited by:[§A\.2\.1](https://arxiv.org/html/2608.04761#A1.SS2.SSS1.p1.1),[§1](https://arxiv.org/html/2608.04761#S1.p1.1),[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px2.p1.1)\.
- S\. Zhou, F\. F\. Xu, H\. Zhu, X\. Zhou, R\. Lo, A\. Sridhar, X\. Cheng, Y\. Bisk, D\. Fried, S\. Alikhani,et al\.\(2024\)WebArena: a realistic web environment for building autonomous agents\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2307.13854)Cited by:[§2](https://arxiv.org/html/2608.04761#S2.SS0.SSS0.Px4.p1.1)\.

## Appendix ATraining Data and Insight Corpora

### A\.1Training Data Statistics

InsightEmb is trained only on mathematical reasoning data \(Stage 1: situation\-to\-insight, Stage 2: situation\-to\-experience, §[3\.3](https://arxiv.org/html/2608.04761#S3.SS3)–[3\.4](https://arxiv.org/html/2608.04761#S3.SS4)\)\. Table[6](https://arxiv.org/html/2608.04761#A1.T6)summarizes contrastive training examples per stage\. Stage 1 combinesbundleinsight pairs \(7,740 unique rules in the insight pool\) andatomicpairs \(22,243 unique rules\)\. “Query” = query\-only samples, and “Traj” = query concatenated with a full or partial CoT trajectory\. Table[7](https://arxiv.org/html/2608.04761#A1.T7)gives the per\-domain Stage 1 breakdown \(bundle \+ atomic\)\.

Table 6:Training data statistics\. Stage 1 totals combine bundle and atomic insight pairs\.Table 7:Per\-domain training counts\. Stage 1 = bundle \+ atomic insight pairs, Stage 2 = CoT experience pairs\.
### A\.2Insight Corpus Construction

This appendix documents how agentic and math insight corpora are built and how they are converted into InsightEmb training data\.

#### A\.2\.1Pipeline Overview

Step 1: Collect training trajectories\.For each math training problem \(or ALFWorld/WebShop training game\), we run the task model five times on the training split and log full interaction histories, following trajectory\-collection practice in self\-improvement methods\(Zelikmanet al\.,[2022](https://arxiv.org/html/2608.04761#bib.bib58); Zhaoet al\.,[2024](https://arxiv.org/html/2608.04761#bib.bib29)\)\. Successful and failed rollouts are grouped by problem, retaining all five responses per instance together with labels indicating which rollouts succeeded\.

Step 2: Distill insights\.We apply a multi\-subset genetic search over trajectory subsets\. For each subset, an LLM \(DeepSeek\-R1\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\)for main experiments, GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\)for the robustness check\) receives a distillation prompt \(§[A\.2\.2](https://arxiv.org/html/2608.04761#A1.SS2.SSS2)\) and produces aBundleinsight: a numbered list of general, task\-agnostic rules\. Each candidate insight is validated on the problems represented in that subset: we prepend the rules to each problem’s query, re\-run the solver, and keep the insight only if it improves solve rate over a no\-insight baseline on those problems\. Chromosomes that yield helpful bundles are kept, andAtomicrules are obtained by splitting each bundle into individual numbered rules \(chain\-of\-thought removed\)\. For ALFWorld and WebShop, each trajectory step is first compressed into a one\-sentence summary before distillation\.

Step 3: Build Stage 1 embedding training pairs\.Validated bundle and atomic insights are paired with math problems in two query forms: query\-only \(problem statement\) and query\+trajectory \(problem with full or partial chain\-of\-thought\)\. Each pair assignsI\+I^\{\+\}to insights that improved solve rate on that problem in the subset\-validation check above, andI−I^\{\-\}to insights that did not \(Equation \([1](https://arxiv.org/html/2608.04761#S3.E1)\)\), then filters pairs to ensure enough contrastive negatives per training group\.

Step 4: Build Stage 2 CoT training pairs\.We construct situation\-to\-experience pairs from structurally similar solved problems, pairing each query with helpful and unhelpful demonstration trajectories\.

#### A\.2\.2Insight\-Generation Prompts

##### Math \(successful trials\)\.

Used when all trajectories in a subset succeeded:

> You are an advanced reasoning agent that can create rules based on forming new critiques of past task trajectories\. You will be given successful tasks trials in which you are doing math derivation\. Here are the trails\. \{trajs\} By examining the successful trials, you can create the new rules are GENERAL and HIGH LEVEL insights of the successful trials or proposed way of Thought so they can be used as helpful tips to different tasks in the future\. Have an emphasis on tips that help the agent perform better Thought and Action\. Do not mention the trials in the rules because all the rules should be GENERALLY APPLICABLE\. Each rule should be concise and easy to follow\. Any operation can be used MULTIPLE times\.

##### Math \(mixed success and failure\)\.

Used when a subset contains both correct and incorrect solutions, with trajectories wrapped as`<correct\_trial\_i\>`or`<wrong\_trial\_i\>`:

> You are an advanced reasoning agent that can create rules based on forming new critiques of past task trajectories\. You will be given multiple tasks trials in which you are doing math derivation\. Here are the trails\. \{trajs\} By examining and contrasting between failed and successful trials, you can create the new rules are GENERAL and HIGH LEVEL critiques of the failed trials or proposed way of Thought so they can be used as helpful tips or to avoid similar failures when encountered with different questions in the future\. Have an emphasis on critiquing how to perform better Thought and Action\. Do not mention the trials in the rules because all the rules should be GENERALLY APPLICABLE\. Each rule should be concise and easy to follow\. Any operation can be used MULTIPLE times\.

##### ALFWorld \(successful trials\)\.

After step\-level summarization, used when all trajectories in a subset succeeded:

> You are an advanced reasoning agent that can create rules based on forming new critiques of past AlfWorld task trajectories\. You will be given successful AlfWorld task trials involving multi\-turn conversations with an environment\. Here are the trajectories: \{trajs\} By examining the successful trials, you can create new rules that are GENERAL and HIGH LEVEL insights about successful AlfWorld task completion strategies\. Focus on insights that help the agent perform better in multi\-turn dialogue with environments\. Key aspects to consider: \- Effective communication strategies with the environment \- Problem\-solving approaches in interactive settings \- Handling of multi\-step reasoning in dialogue \- Adaptation to environment feedback \- Efficient exploration and action selection Do not mention specific trials in the rules because all rules should be GENERALLY APPLICABLE to AlfWorld tasks\. Each rule should be concise and easy to follow\. Any operation can be used MULTIPLE times\.

##### ALFWorld \(mixed success and failure\)\.

> You are an advanced reasoning agent that can create rules based on forming new critiques of past AlfWorld task trajectories\. You will be given multiple AlfWorld task trials involving multi\-turn conversations\. Here are the trajectories: \{trajs\} By examining and contrasting between failed and successful trials, you can create new rules that are GENERAL and HIGH LEVEL critiques of failed strategies or proposed ways of thinking\. Focus on critiquing how to perform better in multi\-turn dialogue with environments\. Key aspects to consider: \- Communication breakdowns with the environment \- Ineffective problem\-solving approaches \- Poor handling of multi\-step reasoning \- Failure to adapt to environment feedback \- Inefficient exploration strategies Do not mention specific trials in the rules because all rules should be GENERALLY APPLICABLE\. Each rule should be concise and easy to follow\.

##### WebShop \(successful trials\)\.

After step\-level summarization, used when all trajectories in a subset succeeded:

> You are an advanced reasoning agent that can create rules based on forming new critiques of past WebShop task trajectories\. You will be given successful WebShop task trials involving multi\-turn conversations with a web shopping environment\. Here are the trajectories: \{trajs\} By examining the successful trials, you can create new rules that are HIGH LEVEL insights about successful WebShop task completion strategies\. Focus on insights that help the agent perform better in multi\-turn dialogue with web shopping environments\. Key aspects to consider: \- Effective search query formulation strategies \- Product selection and comparison approaches \- Handling of product attributes \(size, color, price, etc\.\) \- Navigation strategies \(search, click, back, buy\) \- Efficient exploration of product listings \- Matching user requirements to product descriptions \- Decision\-making on when to buy vs\. continue searching Do not mention specific trials in the rules\. Each rule should be concise and easy to follow\. Any operation can be used MULTIPLE times\.

##### WebShop \(mixed success and failure\)\.

> You are an advanced reasoning agent that can create rules based on forming new critiques of past WebShop task trajectories\. You will be given multiple WebShop task trials involving multi\-turn conversations\. Here are the trajectories: \{trajs\} By examining and contrasting between failed and successful trials, you can create new rules that are HIGH LEVEL critiques of failed strategies or proposed ways of thinking\. Focus on critiquing how to perform better in multi\-turn dialogue with web shopping environments\. Key aspects to consider: \- Ineffective search query formulation \- Poor product selection and comparison decisions \- Failure to match product attributes to requirements \- Inefficient navigation patterns \- Premature or delayed purchase decisions \- Misinterpretation of product descriptions \- Failure to adapt search strategy based on results Do not mention specific trials in the rules\. Each rule should be concise and easy to follow\.

##### Insight validation \(math\)\.

For a subset of trajectories, the distillation prompt produces a candidate rule set, which we then test on every problem in that subset by prepending the rules to the problem query and re\-running the solver:

> Below is an instruction that describes a task\. Write a response that appropriately completes the request and wrap the final answer inside \\boxed\{\{\}\}\. \{generated insight rules\} \#\#\# Problem: \{problem from the subset\} \#\#\# Solution: Let’s think step by step\.

For each problemqqin the subset, we record whether the solver succeeds with vs\. without the prepended rules\. The insight is assigned toI\+I^\{\+\}on problems where it helps and toI−I^\{\-\}on problems where it does not, which defines the Stage 1 contrastive labels\.

#### A\.2\.3Example Generated Insights

##### Math \(counting & probability\)\.

> \-Define Variables & Relationships: Start by defining variables for unknown quantities and establish mathematical relationships based on given conditions to structure the problem\. \-Complementary Probability for “Not” Events: When calculating the probability of an eventnotoccurring \(e\.g\., not sitting together\), compute the probability of the complementary event and subtract it from 1\. \-Leverage Standard Combinatorial Formulas: Recognize scenarios like distributing identical items \(stars and bars\) or non\-colinear points \(triangles in a cube\) and apply the appropriate formulas directly\.

##### ALFWorld\.

> 1\.Maintain a Goal\-Driven Action Sequence: Successful agents follow a clear path toward the goal, while failed ones get sidetracked\. 2\.Adapt Exploration Based on Feedback: If an object isn’t found where expected, systematically check other plausible locations instead of repeating the same action\. 3\.Verify Object Presence Before Interaction: Avoid assuming an object is present, and check first to prevent unnecessary actions\. 4\.Prioritize Common Storage Areas First: Check typical locations \(like countertops or stove burners\) mentioned in the task before deep cabinet search\.

##### WebShop\.

> 1\. Formulate search queries with all key user specifications \(e\.g\., “gluten free chai orca spice flavor under $20”\)\. 2\. If initial results are irrelevant, refine search terms by adding or rephrasing keywords\. 3\. Before selecting a product, cross\-check all attributes \(price, features, specs\) against user requirements\. 4\. Use systematic navigation: proceed through pages methodically and backtrack if no matches are found\. 5\. Compare multiple products on the same page to identify the best match before clicking\.

##### Emergent bottleneck\-category correspondence\.

Inspecting the distilled math and agentic insights above \(and across the full corpora\), their content maps cleanly onto the same small set of recurring bottleneck*types*, even though the distillation prompts \(§[A\.2\.2](https://arxiv.org/html/2608.04761#A1.SS2.SSS2)\) never mention any category scheme\. Table[8](https://arxiv.org/html/2608.04761#A1.T8)makes this post\-hoc correspondence explicit: each row pairs a math state→\\rightarrowrule with an analogous agent insight, and reading it left\-to\-right shows the same operation, namely that at a mid\-progress state, we retrieve the rule that resolves the current bottleneck\. This supports the design claim in §[3\.2](https://arxiv.org/html/2608.04761#S3.SS2)that the analogy is an emergent property of the distilled insights, not an artifact engineered into the pipeline\.

Table 8:Emergent correspondence between math and agentic insights across six recurring bottleneck categories\. The categories are a post\-hoc observation over distilled insights, not a label scheme imposed during generation, and each row instantiates the same situation→\\rightarrowbottleneck\-resolving\-rule operation\.

### A\.3Insight Corpus Statistics

Main experiments \(§[4](https://arxiv.org/html/2608.04761#S4), §[5](https://arxiv.org/html/2608.04761#S5)\) use DeepSeek\-R1\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\)generated insight corpora for ALFWorld and WebShop, and DeepSeek\-V4\-Flash generated insights for ScienceWorld, each at two granularities:Bundle\(multi\-rule summaries with chain\-of\-thought\) andAtomic\(single rules split from bundles\)\. Table[9](https://arxiv.org/html/2608.04761#A1.T9)reports corpus size and length statistics for each environment, and these corpora are referenced throughout the dynamic\-agent evaluation\.

Table 9:Insight corpus statistics \(main experiments\)\. ALFWorld and WebShop insights are generated by DeepSeek\-R1\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\), and ScienceWorld insights are generated by DeepSeek\-V4\-Flash\.Bundle= multi\-rule insights,Atomic= individual rules extracted from bundles\. Range = min–max words per insight\.
### A\.4Alternative Insight\-Generator Robustness

#### A\.4\.1Corpus Statistics

Table[10](https://arxiv.org/html/2608.04761#A1.T10)summarizes GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\)\-generated insight corpora used in the robustness check \(§[6\.2](https://arxiv.org/html/2608.04761#S6.SS2)\)\.Bundlefiles contain one multi\-rule summary per past trajectories subset, andAtomicfiles expand each bundle into individual rules\. Compared with the DeepSeek\-R1\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\)corpora in Table[9](https://arxiv.org/html/2608.04761#A1.T9), GPT\-5\.2 bundles are shorter on average while atomic rules are similar in length\.

Table 10:GPT\-5\.2 insight corpus statistics\. Range = min–max words per non\-empty insight, and WebShop has 10 empty bundle summaries \(word count 0\)\. Atomic = single rules split from bundles\.
#### A\.4\.2Top\-kkScaling Details

Figure[3](https://arxiv.org/html/2608.04761#A1.F3)averagesBundleandAtomicat eachkk\(Qwen3\-8B agent, GPT\-5\.2\-generated insights\), and InsightEmb consistently outperforms Base on both environments, confirming the improvement persists under an alternative insight generator\. Figures[4](https://arxiv.org/html/2608.04761#A1.F4)and[5](https://arxiv.org/html/2608.04761#A1.F5)show the per\-corpus breakdown\.

![Refer to caption](https://arxiv.org/html/2608.04761v1/x2.png)Figure 3:Robustness check with GPT\-5\.2\-generated insight corpora\.Left:ALFWorld\.Right:WebShop\. Curves averageBundleandAtomicat eachkkfor Base and InsightEmb\.![Refer to caption](https://arxiv.org/html/2608.04761v1/x3.png)Figure 4:ALFWorld success rate vs\.k∈\{1,3,5\}k\\in\\\{1,3,5\\\}with GPT\-5\.2\-generated insights\.![Refer to caption](https://arxiv.org/html/2608.04761v1/x4.png)Figure 5:WebShop average task score vs\.k∈\{1,3,5\}k\\in\\\{1,3,5\\\}with GPT\-5\.2\-generated insights\.

## Appendix BTraining Setup and Hyperparameters

### B\.1Training Setup

We fine\-tune Qwen3\-Embedding\-4B\(Zhanget al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib35)\), building on contrastive embedding practice\(Wanget al\.,[2022a](https://arxiv.org/html/2608.04761#bib.bib27); Suet al\.,[2023](https://arxiv.org/html/2608.04761#bib.bib26)\), using DeepSpeed ZeRO\-3 on 8 GPUs\. Both stages use learning rate1×10−51\{\\times\}10^\{\-5\}with cosine scheduling, per\-device batch size 8 with 2 gradient accumulation steps, temperatureτ=0\.01\\tau\{=\}0\.01, training group size 11, maximum passage length 1,536 tokens, 6 epochs, and warmup ratio 0\.1\. Stage 2 initializes from the Stage 1 checkpoint\. Table[11](https://arxiv.org/html/2608.04761#A2.T11)lists the full configuration\.

### B\.2Hyperparameters

Both training stages share the settings in Appendix[B\.1](https://arxiv.org/html/2608.04761#A2.SS1)\. Table[11](https://arxiv.org/html/2608.04761#A2.T11)lists the full configuration\.

Table 11:Training hyperparameters for both stages\.

## Appendix CReasoning\-Oriented Retrievers and Supervision Diversity

### C\.1Reasoning\-Oriented Retriever Top\-kkDetails

Figure[2](https://arxiv.org/html/2608.04761#S6.F2)in the main text averagesBundleandAtomicat eachk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\. Figures[6](https://arxiv.org/html/2608.04761#A3.F6)and[7](https://arxiv.org/html/2608.04761#A3.F7)show the per\-corpus breakdown\. The dashed*no half\-traj*curve \(InsightEmb color\) removes partial\-trajectory queries from Stage 1 while keeping the sameI\+I^\{\+\}andI−I^\{\-\}sets\.

![Refer to caption](https://arxiv.org/html/2608.04761v1/x5.png)Figure 6:ALFWorld test success rate vs\. retrieval budgetk∈\{1,3,5\}k\\in\\\{1,3,5\\\}for Base, ReasonIR, Llama\-NV\-Reasoning, InsightEmb, and the*no half\-traj*ablation \(dashed, InsightEmb color\)\.![Refer to caption](https://arxiv.org/html/2608.04761v1/x6.png)Figure 7:WebShop average task score at eachkkfor the same models and corpora\.#### C\.1\.1Effect of Partial\-Trajectory Queries

The*no half\-traj*ablation removes pairs whose queryqqis a partial \(incomplete\) solution trace, leaving query\-only and full\-trajectory anchors\. The dashed curve in Figure[2](https://arxiv.org/html/2608.04761#S6.F2)lies between Base and full InsightEmb on both environments\. At thekkthat maximizes corpus\-averaged InsightEmb on each environment, the step from*no half\-traj*to full InsightEmb accounts for about83%83\\%of the total Base\-to\-InsightEmb gain on ALFWorld and about49%49\\%on WebShop, indicating that much of InsightEmb’s gains over Base come from partial\-trajectory situation anchors with sharedI\+I^\{\+\}andI−I^\{\-\}\. This also helps explain why InsightEmb outperforms static reasoning retrievers that are not trained on such mid\-inference anchors\.

### C\.2Why Math Training Outperforms In\-Domain Fine\-Tuning

As shown in §[6\.3](https://arxiv.org/html/2608.04761#S6.SS3)in Table[4](https://arxiv.org/html/2608.04761#S6.T4), the ALFWorld\-trained retriever underperforms math\-trained InsightEmb despite task\-matched supervision\. The intuition is that ALFWorld is a comparatively narrow source: its tasks are built from a small set of recurring procedural patterns \(the standard ALFWorld task types:*find*,*go\-to*,*take*,*heat*/*clean*/*cool*, and*place*\), so its situation\-to\-rule pairs concentrate on a few structures\. Math traces, by contrast, span counting & probability, number theory, and geometry, yielding a wider variety of situation\-to\-rule mappings\. We make this precise and measurable below, replacing the informal phrase “structural diversity” used in earlier drafts\.

#### C\.2\.1Quantifying Structural Diversity

For each situation\-to\-rule pair we form a normalized pair embeddingp=normalize​\(\[s,r,r−s\]\)p=\\mathrm\{normalize\}\(\[s,r,r\-s\]\)with InsightEmb, wheressandrrare the normalized situation and rule embeddings andr−sr\-sis their difference vector\. Within each source we randomly draw2,0002\{,\}000sampled pairs and compute three geometry statistics:

- •Mean pairwise cosine distance: the average of1−cos⁡\(pi,pj\)1\-\\cos\(p\_\{i\},p\_\{j\}\)over5,0005\{,\}000random pair\-pair comparisons among the sampled pairs\. Larger means the pairs are more spread out\.
- •Mean nearest\-neighbor distance: the average of1−maxj≠i⁡cos⁡\(pi,pj\)1\-\\max\_\{j\\neq i\}\\cos\(p\_\{i\},p\_\{j\}\)over all sampled pairs, i\.e\. each pair’s cosine distance to its single closest neighbor\. Larger means pairs sit farther from their nearest neighbor\.
- •Covariance effective rank:exp⁡\(H\)\\exp\(H\), whereH=−∑kqk​log⁡qkH=\-\\sum\_\{k\}q\_\{k\}\\log q\_\{k\}is the entropy of the normalized singular\-value spectrumqk=σk2/∑σ2q\_\{k\}=\\sigma\_\{k\}^\{2\}/\\sum\\sigma^\{2\}of the covariance of the centered sampled pair embeddings\. Larger means the embeddings occupy more independent directions\.

On all three statistics, math pairs are more spread out than ALFWorld pairs \(Table[12](https://arxiv.org/html/2608.04761#A3.T12)\)\.

Table 12:Geometric diversity of situation\-to\-rule pair embeddings\[s,r,r−s\]\[s,r,r\-s\]under InsightEmb \(2,0002\{,\}000sampled pairs per source\)\. Math pairs occupy a broader, higher\-rank region and sit farther from their nearest neighbors than ALFWorld pairs, consistent with the narrow set of recurring ALFWorld task patterns\.Math situation\-to\-rule pairs occupy a broader, higher\-rank region of the embedding geometry and are farther from their nearest neighbors, whereas ALFWorld pairs are more concentrated\. A retriever trained on the broader source therefore generalizes to bottleneck configurations that are rare or absent in ALFWorld’s own games\. This is also consistent with the literature, where math reasoning is a recognized springboard for cross\-domain transfer: reasoning trained on math/code with verifiable rewards yields general reasoning behaviors that transfer to STEM and other tasks\(DeepSeek\-AI,[2025](https://arxiv.org/html/2608.04761#bib.bib36)\), math\-only training generalizes across scientific QA, agent planning, and coding\(Huanet al\.,[2025](https://arxiv.org/html/2608.04761#bib.bib38)\), and math\-first elicitation seeds broad multi\-domain reasoning\(Pang and others,[2025](https://arxiv.org/html/2608.04761#bib.bib39)\)\. Our contribution brings this recognized property to the*retrieval*side\.

#### C\.2\.2Transfer Despite Different Step Granularities

The transfer does not require math and embodied tasks to share the same notion of a “step”, relying only on the shared situation\-to\-rule structure \(§[3\.2](https://arxiv.org/html/2608.04761#S3.SS2), Table[8](https://arxiv.org/html/2608.04761#A1.T8)\)\. We do impose an explicit step decomposition on math traces: a chain\-of\-thought solution is not one atomic block, and we take*prefixes*of the derivation to form partial\-trajectory queries \(query form \(iii\), §[3\.3](https://arxiv.org/html/2608.04761#S3.SS3)\), so a single problem yields several situation\-to\-rule pairs at different points of progress, the math counterpart of an agent’s mid\-episode state\. At inference we do not require matching step boundaries: the agent’s state \(task \+ action history \+ observation\) is encoded with a domain\-neutral instruction prefix \(§[3\.5](https://arxiv.org/html/2608.04761#S3.SS5)\) into the*same*embedding space and matched to the nearest rule\. What crosses domains is the geometry and its shared bottleneck categories, not a step schema\. Two empirical checks confirm this despite the different step granularities\. First, the*no half\-traj*ablation removes exactly the partial \(mid\-progress\) math anchors and erases most of the agentic gain, showing it is the mid\-progress math*states*that teach the transferable property\. Second, the transfer is bidirectional \(Table[5](https://arxiv.org/html/2608.04761#S6.T5)\): an ALFWorld\-trained model, whose “steps” are embodied actions, improves math insight retrieval on all math domains, which could not occur if the two step structures were genuinely incompatible for this purpose\. The reverse direction is weaker than math\-to\-ALFWorld, exactly as expected if ALFWorld data covers a narrower slice of the shared geometry\.

## Appendix DPer\-Environment Analysis

### D\.1Per\-Game\-Level Agent Statistics

This appendix supplements the aggregate results in Table[2](https://arxiv.org/html/2608.04761#S5.T2)with*per\-game\-level*analysis: for each ALFWorld or WebShop test game, we log the final task score, the number of environment steps until termination, and how many*distinct*insight blocks were injected over the course of that game\. All numbers use Qwen3\-8B with top\-1*dynamic*insight retrieval onBundlesummary insights, the same protocol as theBundlerows in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\. The goal is to show that InsightEmb’s gains are not only a higher mean success rate, but also more varied retrieval within each game, shorter successful trajectories, and fewer complete failures\.

#### D\.1\.1Metrics and computation

Each evaluated game is one independent rollout from the initial observation until success, failure, or the 50\-step cap\. At every step, the current agent state is embedded and the top\-1 insight is retrieved from the pre\-encodedBundlecorpus, and that text block is prepended to the action prompt\.

Stepscounts the environment steps in that rollout\.

Distinct insights per gamecounts how many*different*insight strings were injected over the inference\. Retrieval is recomputed at*every*step \(up to 50\), so each step could return a different top\-1 neighbor, the count is therefore bounded by the number of steps \(≤50\\leq 50\)\. The statistic measures how often the top\-1 neighbor*changes*, not corpus size\.

Avg\. task scoreis the mean of per\-game\-level outcomes: on ALFWorld and ScienceWorld,11for a win and0otherwise \(equivalent to success rate\), and on WebShop, the environment’stask\_score∈\[0,1\]\\texttt\{task\\\_score\}\\in\[0,1\]converted to a percentage\.

Failed gamesare rollouts with no positive reward\. ALFWorld and WebShop task scores are bounded below by0, so a failed rollout is a zero\-score game \(task\_score=0\\texttt\{task\\\_score\}=0\), whereas ScienceWorld task scores can be*negative*\(the environment penalizes some invalid trajectories\), so failed ScienceWorld rollouts are zero\-or\-negative\-score\. We report all three under a singlefailed\-gamecount, with thefailed\-game rateequal to this count divided by the number of games\.

Retrieval turnoveris the fraction of decision steps at which the top\-1 retrieved insight differs from the previous step, a step\-normalized measure of how often retrieval changes as the state evolves\.

Games with\>\>1 distinct insightis the count \(and rate\) of games where retrieval changed at least once\.

Table 13:Per\-game\-level statistics \(Qwen3\-8B, top\-1 dynamic retrieval\)\. ALFWorld, WebShop, and ScienceWorld all useBundleinsights over the seed\-42 balanced 500\-instance subset\. A*failed game*is a rollout with no positive reward: for ALFWorld and WebShop, whose scores are bounded below by0, this is a zero\-score game, whereas ScienceWorld task scores can be negative, so failed ScienceWorld games are zero\-or\-negative\-score\.*Retrieval turnover*is the fraction of steps at which the top\-1 neighbor changes\. Failed ALFWorld/WebShop games typically reach the 50\-step cap, whereas ScienceWorld rollouts terminate earlier on average \(median 7 steps\)\.
#### D\.1\.2ALFWorld \(140 test games\)

On ALFWorld, InsightEmb improves every column in Table[13](https://arxiv.org/html/2608.04761#A4.T13)\.

##### Retrieval turnover\.

Retrieval runs at every step, so distinct insights per game is bounded by steps \(≤50\\leq 50\)\. Base nevertheless uses only 1\.82 distinct strings on average \(max 4\) while InsightEmb averages 5\.79 \(max 22\)\. The comparison is about how often top\-1 changes as the state evolves, not about injecting a new corpus block every step\.

##### Efficiency\.

Mean steps decrease from 30\.3 to 28\.2 and the*median*drops from 30 to 24, so at least half of InsightEmb games finish in≤\\leq24 steps whereas Base’s median sits at the cap for unsuccessful search\-heavy runs\. Shorter medians co\-occur with higher success: InsightEmb avoids prolonged cabinet\-by\-cabinet loops documented in Appendix[D\.2\.3](https://arxiv.org/html/2608.04761#A4.SS2.SSS3)\.

##### Failures\.

Zero\-score games \(failed rollouts\) decrease from 64 to 55, showing gains even in completely failed games\.

#### D\.1\.3WebShop \(500 test games\)

##### Retrieval turnover\.

With per\-step top\-1 retrieval over up to 50 steps, distinct insights per game could be as large as the step count, and Base averages 1\.85 \(max 4\) while InsightEmb averages 5\.98 \(max 18\)\. InsightEmb changes the retrieved block in 487/500 games \(97%97\\%\) vs\. 295 \(59%59\\%\) for Base, so different steps can surface search, variant\-selection, and checkout rules from theBundlecorpus\.

##### Efficiency\.

Average steps drop from 40\.8 to 33\.9 \(mean rollout∼\{\\sim\}41 steps\) while both medians remain at 50, because many games still hit the cap, so InsightEmb shortens trajectories it completes rather than shifting the median below the horizon\. Appendix[D\.5](https://arxiv.org/html/2608.04761#A4.SS5)illustrates loop\-heavy Base runs vs\. earlier termination when purchase rules are retrieved\.

##### Failures\.

Zero\-score games decrease from 309 to 258 \(−51\-51\), the gain comes from converting full failures into partial or full purchase credit\.

#### D\.1\.4ScienceWorld \(500 test games\)

ScienceWorld statistics in Table[13](https://arxiv.org/html/2608.04761#A4.T13)use theBundlecorpus and the seed\-42 balanced 500\-instance subset \(top\-1, Qwen3\-8B\)\.

##### Failures\.

Negative\-score games decrease from 277 to 260 \(−17\-17\), lowering the negative\-score rate from55\.4%55\.4\\%to52\.0%52\.0\\%, so InsightEmb reduces complete failures even on this hard environment, consistent with its small but positive success gain \(7\.40%→8\.00%7\.40\\%\\rightarrow 8\.00\\%\)\.

##### Retrieval turnover\.

On ScienceWorld the retrieval\-diversity pattern differs from ALFWorld and WebShop\. When normalized by trajectory length, retrieval turnover*rises*from0\.2680\.268to0\.3800\.380and the mean distinct insights per game from2\.042\.04to2\.372\.37\(both medians at2\.02\.0, max77for both\), so InsightEmb still updates its top\-1 neighbor more often*per step*as the experimental state evolves\. At the same time, the raw count of games with more than one distinct insight*falls*from330/500330/500\(66\.0%66\.0\\%\) for Base to224/500224/500\(44\.8%44\.8\\%\) for InsightEmb\. These are consistent rather than contradictory: InsightEmb more often locks onto a single procedurally complete workflow insight and reuses it across many steps of an experiment \(§[D\.6\.6](https://arxiv.org/html/2608.04761#A4.SS6.SSS6)\), so within a game it changes insights less often overall, but the changes it does make track the current sub\-procedure more tightly\. In other words, ScienceWorld rewards*procedural completeness*of a retrieved insight over per\-observation novelty, unlike the search\-heavy ALFWorld/WebShop trajectories where higher raw turnover co\-occurs with success\.

##### Efficiency\.

The median rollout length is short \(77steps for both\), reflecting many quickly\-terminating games, and InsightEmb’s higher*mean*steps \(40\.96→43\.5940\.96\\rightarrow 43\.59\) indicate it more often persists through the multi\-step experimental protocol rather than terminating early without completing the required state transition\.

### D\.2ALFWorld Per\-Task and Mechanistic Analysis

This section expands the ALFWorld mechanistic claims summarized in §[5](https://arxiv.org/html/2608.04761#S5): per\-task\-type breakdown, multi\-granularity invariance, qualitative retrieval examples, rule\-level topical vs\. procedural matching, and step\-conditioned retrieval dynamics\.

#### D\.2\.1Per\-Task\-Type Breakdown

Table[14](https://arxiv.org/html/2608.04761#A4.T14)supplements the aggregate ALFWorld results in Table[2](https://arxiv.org/html/2608.04761#S5.T2)by reporting test success counts for each ALFWorld task family \(Atomiccorpus, top\-1 retrieval, Qwen3\-8B\)\. Counts are out of the games listed in parentheses per type, and bold marks the higher count between Base and InsightEmb\.

Table 14:ALFWorld success rates by task type \(top\-1 retrieval, Qwen3\-8B\)\. Base =Atomic/Base, and Ours =Atomic/InsightEmb\. Numbers in parentheses indicate total games per type\.
#### D\.2\.2Multi\-Granularity Query Invariance

Our Stage 1 design enforces that query\-only, partial\-trajectory, and full\-trajectory versions of the same problem all retrieve the same insight\. This directly maps to the agentic setting: at step 0 the agent has only the task description \(analogous to query\-only\), at mid\-game it has partial action history \(partial trajectory\), and at late steps it has extensive history \(full trajectory\)\. The multi\-granularity training ensures that the correct insight is retrievable at every stage of task execution, not just at the beginning\.

#### D\.2\.3Qualitative Example: Insight\-Guided Search

Figure[8](https://arxiv.org/html/2608.04761#A4.F8)illustrates how InsightEmb’s retrieved insights lead to better action selection on a representative task \(“put a hot potato in fridge”\)\.

Task: “put a hot potato in fridge”Base model retrieves\(Atomic/Base\):*“Apply Task\-Specific Physics Reasoning: Heat transfers require closed appliances\. Objects in containers remain inaccessible until explicit retrieval\.”*→\\rightarrowAgent focuses on heating procedure but cannot locate the potato→\\rightarrowTimeout at 50 stepsInsightEmb retrieves\(Atomic/InsightEmb\):*“Prioritize Task\-Relevant Locations First: Always check object containers/destinations mentioned in the task \(e\.g\., stoveburner, sidetable\)\.”*→\\rightarrowAgent locates potato→\\rightarrowheat→\\rightarrowplace in fridge→\\rightarrowSuccess in 37 steps

Figure 8:Qualitative comparison on Game 0 \(test, top\-5 retrieval\)\. The base model’s insight describes the heating*procedure*but not*where to find*the potato, whereas InsightEmb retrieves a search\-priority rule that addresses the actual bottleneck\.The base model’s insight is topically relevant but strategically vacuous, as it does not indicate*where*to find the potato\. InsightEmb retrieves a structurally matched search\-priority rule, directly determining the agent’s first action\. This pattern of generic vs\. structurally specific retrieval recurs across the 16 games that InsightEmb wins uniquely under top\-1 retrieval \(see also §[D\.4](https://arxiv.org/html/2608.04761#A4.SS4)\)\.

#### D\.2\.4Topical vs\. Procedural Retrieval: Rule\-Level Analysis

Because eachAtomicinsight is a single rule, we can examine which*type*of rule each embedding model prioritizes for the same query\. We classify retrieved rules with GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\)into functional categories:Where\(search strategy\),How\(state\-change procedures\),Place\(destination logic\), andVerify\(state checks\)\.

The Base model retrieves rules about*how to heat*\(“Apply Task\-Specific Physics Reasoning,” “Apply Thermodynamic Context Filtering,” “Appliance Function Mapping”\), which describe the heating*procedure*but not*where to find the potato*\. InsightEmb retrieves rules about*where to search*\(“Prioritize Task\-Relevant Locations First,” “Prioritize Direct Affordances,” “Prioritize Immediate Target Interaction”\), which address the actual bottleneck: the agent’s first action must be to*locate*the target object\.

This reveals a key difference in how the two models understand task structure:

- •Basematches the query to rules that share the task’s*topic*\(heating→\\rightarrowheating rules\)\. This is*topical matching*\.
- •InsightEmbmatches the query to rules that address the task’s*current bottleneck*\(the agent hasn’t found the object yet→\\rightarrowsearch rules\)\. This is*action\-intent matching*: retrieving the rule implied by what the agent needs to do next\.

The action\-intent match is correct: in ALFWorld, the agent must first*find*the target object before it can apply any state transformation\. InsightEmb has learned this sequential dependency from the structural parallel in math, where a problem must first be*understood*\(matched to the right strategy\) before it can be*solved*\(executed step by step\)\.

### D\.3Step\-Conditioned Retrieval Details

The rule\-level analysis above examines*which*rules are retrieved, and we now examine*when*they are retrieved\. We extract the top\-1 retrievedAtomicinsight at every step of all 140 test games, classify each rule with GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\), and plot the per\-step category mix in Figure[9](https://arxiv.org/html/2608.04761#A4.F9)with 3\-step rolling average\. For readability we mergeSearch & LocatewithNavigationintoSearch, andState TrackingwithTask PlanningintoState checking\(six categories total, with definitions and examples below\)\.

##### Base vs\. InsightEmb dynamics\.

Base shows almost no step\-wise change:Searchis 49\.7% on average over steps 1–4 vs\. 51\.0% over steps 20–25 \(Δ=\+1\.3\\Delta\{=\}\{\+\}1\.3pp\),State Transform23\.0%→\\rightarrow23\.6%, andVerification14\.8%→\\rightarrow16\.1%\. InsightEmb instead shows a clear*state\-aware*shift along the episode:Searchfalls from 78\.1% \(steps 1–4\) to 61\.7% \(steps 20–25,Δ=−16\.4\\Delta\{=\}\{\-\}16\.4pp\), whileVerificationrises from 16\.9% to 31\.5% \(Δ=\+14\.6\\Delta\{=\}\{\+\}14\.6pp\) andState Transformfrom 1\.9% to 5\.9% \(Δ=\+3\.9\\Delta\{=\}\{\+\}3\.9pp\)\. That is, InsightEmb retrieval tracks procedural phase \(heavy search while the object is still missing, then more checks and state\-change rules as the agent approaches completion\), whereas Base remains roughly uniform\.

##### Category definitions and illustrative rules\.

Each label denotes the*procedural role*of a single atomic rule \(not the ALFWorld task type\):

SearchRules for finding the target or reaching the right place before manipulation\.*Example:*“Prioritize Task\-Relevant Locations First: Always check object containers/destinations mentioned in the task \(e\.g\., stoveburner, sidetable\)\.”

State TransformRules for changing object state \(clean, heat, cool\) at the correct appliance\.*Example:*“Apply Contextual Cleaning Protocol: When ‘clean’ is specified in the task, automatically prioritize sinkbasin interaction after obtaining the target object, before any placement attempts\.”

VerificationRules for confirming prerequisites or completion before the next action\.*Example:*“Ensure Cooling Completion Before Placement: Verify the cooling action \(e\.g\., fridge interaction\) is fully executed and acknowledged by the environment before attempting to move the object to its final destination\.”

State checkingRules for tracking progress, ordering sub\-goals, or maintaining awareness of what was already searched or carried\.*Example:*“Maintain a Dynamic Search Tracker: Systematically record searched locations and their contents to avoid redundant checks and focus exploration on unexamined areas\.”

Error RecoveryRules for escaping loops or reformulating strategy after failed attempts\.*Example:*“Implement Loop Detection: Establish a threshold \(3–5 attempts\) for repeated unsuccessful navigation patterns, then trigger systematic re\-evaluation of object location hypotheses\.”

PlacementRules for putting the object at its final receptacle\.*Example:*“Container Proximity Hierarchy: When storing objects, first navigate to the nearest valid container type specified in the task \(drawer/cabinet\) before considering distant alternatives\.”

![Refer to caption](https://arxiv.org/html/2608.04761v1/x7.png)Figure 9:Per\-step retrieved insight category distribution \(Atomic, test, top\-1 dynamic retrieval, 3\-step rolling average\)\.Left:Base embedder\.Right:InsightEmb\. Base changes little across steps, whereas InsightEmb shifts from Search toward Verification and State Transform\.

### D\.4ALFWorld Qualitative Case Studies

We present two additional examples where InsightEmb succeeds while Base fails \(top\-1 retrieval\)\.

##### Game 9: “clean some ladle and put it in countertop\.”

InsightEmb checkscabinet 1\-\-3, thensinkbasin 1, openscabinet 4, finds the ladle oncountertop 1, cleans it at the sink, and places it on the countertop, completing in12 steps\. Base loops through cabinets and the sink without taking the ladle, timing out at 50 steps\. This illustrates task\-focused search: InsightEmb reaches the sink and visible surfaces early, while Base’s generic “check fridges first” heuristic delays locating the ladle\.

##### Game 33: “put a cool lettuce in countertop\.”

InsightEmb opens the fridge, scanscountertop 1\-\-3, takes the lettuce fromcountertop 3, cools it in the fridge, and places it on the countertop, completing in10 steps\. Base opens the fridge but then wanders through drawers and cabinets, never retrieving the lettuce, timing out at 50 steps\. Base’s retrieved summary rule prioritizes “common storage areas” broadly, whereas InsightEmb’s rule set emphasizes checking task\-mentioned surfaces \(countertops\) before deep cabinet search\.

### D\.5WebShop Qualitative Examples

We present illustrative examples from the WebShop evaluation where InsightEmb withAtomicinsights succeeds while Base fails, or achieves substantially higher task scores\. Manual inspection of divergent games \(summarized in §[5\.2](https://arxiv.org/html/2608.04761#S5.SS2)\) reveals three recurring qualitative patterns, which the examples below demonstrate with side\-by\-side Base vs\. InsightEmb trajectories:

1. 1\.Variant selection awareness\.InsightEmb’s insights guide the agent to explicitly select product variants \(color, size\) before purchasing, while Base frequently skips this step, resulting in partial scores instead of perfect scores\.
2. 2\.Loop prevention\.Base gets stuck in search–browse–back loops for 21–50 steps, whereas InsightEmb’s insights about session management and error recovery help the agent break out of unproductive cycles\.
3. 3\.Procedural sequencing\.InsightEmb retrieves insights that encode a sequential workflow \(search→\\rightarrowverify→\\rightarrowselect variants→\\rightarrowbuy\), while Base retrieves topically relevant but procedurally vague insights\.

Together these show InsightEmb performs*procedural matching*, retrieving insights that address the agent’s current bottleneck\.

#### D\.5\.1Example 1: Office Chair \(Game 226, Atomic\)

Task:*“Find me height adjustable, high density, easy install, easy assemble home office chairs for living room with color: type 7\-pink, and price lower than 120\.00 dollars\.”*

InsightEmb: WON in 6 steps \(score = 1\.0\)\.Base: LOST in 3 steps \(score = 0\.857\)\.

##### InsightEmb insight:

> *Progressive Filter Strategy*: When initial search yields partial matches, systematically add missing requirements to subsequent queries\.

##### Base insight:

> *Precision\-First Search*: Always include all critical attributes in the initial search query using AND logic for better filtering\.

##### Action comparison\.

Both models find the same product \(b08p8lrfz4\), but:

- •InsightEmb: search→\\rightarrowclick product→\\rightarrowcheck features→\\rightarrowgo back→\\rightarrowselect “type 7\-pink”→\\rightarrowbuy now✓
- •Base: search \(with AND syntax\)→\\rightarrowclick product→\\rightarrowbuy now immediately\(without selecting color variant\)×\\times

##### Analysis\.

InsightEmb’s “Progressive Filter Strategy” guides the agent to inspect product features and select the correct variant before purchasing\. Base’s “Precision\-First Search” focuses on query formulation but does not instruct variant selection, causing premature purchase with a partial score\.

#### D\.5\.2Example 2: Women’s Sweater \(Game 479, Atomic\)

Task:*“Find me women’s sweaters with relaxed fit, long sleeve with color: light heather grey, and size: large, and price lower than 50\.00 dollars\.”*

InsightEmb: WON in 8 steps \(score = 1\.0\)\.Base: LOST in 3 steps \(score = 0\.600\)\.

##### InsightEmb insight:

> *Attribute Cross\-Checking*: Before any click, verify that the product matches all specified attributes \(price, color, size, etc\.\)\.

##### Action comparison\.

Both find the same product \(b07dkgjr74\), but:

- •InsightEmb: search→\\rightarrowexplore first result→\\rightarrowback to search→\\rightarrowre\-search→\\rightarrowclick product→\\rightarrowselect “light heather grey”→\\rightarrowselect “large”→\\rightarrowbuy now✓
- •Base: search→\\rightarrowclick product→\\rightarrowbuy now immediately\(without selecting color or size\)×\\times

##### Analysis\.

This is the clearest example of the*variant selection awareness*pattern\. InsightEmb’s “Attribute Cross\-Checking” rule explicitly guides the agent to verify and select each product variant before purchasing\. Base’s generic search\-formulation rule does not encode this procedural constraint, and the agent buys immediately without selecting the required color and size variants\.

#### D\.5\.3Example 3: Dining Set \(Game 287, Atomic\)

Task:*“Find me button tufted, mid century, high density, easy assemble dining sets with solid wood, wood frame for dining room with color: light grey, and price lower than 250\.00 dollars\.”*

InsightEmb: WON in 4 steps \(score = 1\.0\)\.Base: LOST in 50 steps \(score = 0\.000\)\.

This is the most dramatic example \(Δ=\+1\.000\\Delta=\+1\.000\)\.

##### InsightEmb insight:

> *Precision\-First Search*: Always include all critical attributes \(type, color, size, price limit\) in the initial search query using AND logic for better filtering\.

##### Action comparison\.

- •InsightEmb: search \(comprehensive query\)→\\rightarrowclick product \(b09gy58gdh\)→\\rightarrowselect “light grey”→\\rightarrowbuy now✓\(4 steps\)
- •Base: search→\\rightarrowback to search→\\rightarrowre\-search→\\rightarrowback to search→\\rightarrowre\-search→\\rightarrowclick next→\\rightarrowclick next→\\rightarrowback to search→\\rightarrow… \(50 steps, never clicks a product to purchase\)

##### Analysis\.

InsightEmb’s concise insight produces an effective search query that finds the product immediately\. Base gets stuck in a search–refine–next–back loop for all 50 steps, illustrating the*loop prevention*failure: without a clear recovery strategy, the agent exhaustively re\-searches without ever committing to a product\.

#### D\.5\.4Example 4: iPad Case \(Game 190, Bundle\)

Task:*“Find me compatible apple online game services with case cover with color: coast coconut trees, and price lower than 50\.00 dollars\.”*

InsightEmb: WON in 6 steps \(score = 1\.0\)\.Base: LOST in 50 steps \(score = 0\.000\)\.

##### Action comparison\.

- •InsightEmb: search “apple game case cover”→\\rightarrowback to search→\\rightarrowre\-search “iPad case coconut tree design”→\\rightarrowclick product \(b07vvvdrcx\)→\\rightarrowselect “coast coconut trees”→\\rightarrowbuy now✓\(6 steps\)
- •Base: search “Apple case cover”→\\rightarrowclick next→\\rightarrownext→\\rightarrownext→\\rightarrownext→\\rightarrowback to search→\\rightarrowre\-search→\\rightarrownext→\\rightarrownext→\\rightarrownext→\\rightarrow… \(50 steps, navigating pages without clicking any product\)

##### Analysis\.

InsightEmb’s agent reformulates the search query after the first attempt fails, switching from the literal task wording to a more product\-oriented query \(“iPad case coconut tree design”\)\. Base’s agent repeatedly paginates through results without reformulating, illustrating the*loop prevention*pattern: InsightEmb’s retrieval surfaces strategies for query refinement and error recovery\.

#### D\.5\.5Example 5: Men’s Sleepwear \(Game 166, Atomic\)

Task:*“Find me men’s sleep & lounge with long sleeve, elastic waistband for daily wear with color: multi 10, and size: xx\-large, and price lower than 80\.00 dollars\.”*

InsightEmb: WON in 9 steps \(score = 1\.0\)\.Base: LOST in 7 steps \(score = 0\.667\)\.

##### InsightEmb insight:

> *Compound Feature Recognition*: For combined requirements, search for the most distinctive pairing first, then check secondary attributes in product details\.

##### Action comparison\.

- •InsightEmb: search→\\rightarrowclick product \(b09nd9dp7j\)→\\rightarrowcheck description→\\rightarrowback to search→\\rightarrowre\-search with exact attributes→\\rightarrowclick same product→\\rightarrowselect “multi 10”→\\rightarrowselect “xx\-large”→\\rightarrowbuy now✓
- •Base: search→\\rightarrowclick product \(b09nd8p2qr\)→\\rightarrowcheck features→\\rightarrowback to search→\\rightarrowre\-search→\\rightarrowclick same product→\\rightarrowbuy now without selecting variants×\\times

##### Analysis\.

InsightEmb’s “Compound Feature Recognition” guides the agent through a verify\-then\-select workflow: first confirm the product matches, then explicitly select each variant before purchase\. Base’s agent finds a similar product but purchases without selecting the required color and size, resulting in a partial score\. This combines*variant selection awareness*with*procedural sequencing*: InsightEmb encodes a sequential workflow \(search→\\rightarrowverify→\\rightarrowselect variants→\\rightarrowbuy\)\.

#### D\.5\.6Summary of WebShop Qualitative Patterns

Across all divergent games, three consistent patterns emerge\. The qualitative cases above and the main WebShop column in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\.

1. 1\.Variant selection awareness\(Games 226, 479, 393, 166\): InsightEmb consistently guides the agent to select product variants \(color, size\) before purchasing\. Base frequently skips this step, resulting in partial scores \(0\.600–0\.857\) instead of perfect scores\. This is the single most impactful behavioral difference\.
2. 2\.Loop prevention\(Games 287, 190\): Base gets stuck in search–browse–back loops for 50 steps, scoring zero\. InsightEmb’s insights about query reformulation and error recovery help the agent find the product and complete the purchase\.
3. 3\.Procedural sequencing\(Game 166\): InsightEmb retrieves insights that encode a sequential workflow \(search→\\rightarrowverify→\\rightarrowselect variants→\\rightarrowbuy\), while Base retrieves topically relevant but procedurally vague insights\. This mirrors the ALFWorld finding where InsightEmb performs*procedural matching*rather than*topical matching*\.

### D\.6ScienceWorld Evaluation Details

This appendix supplements the ScienceWorld results in Table[2](https://arxiv.org/html/2608.04761#S5.T2)\(§[5\.3](https://arxiv.org/html/2608.04761#S5.SS3)\) with the full top\-kkbreakdown, a stronger closed\-source action model across all three environments, and the task distribution of the evaluation subset\.

#### D\.6\.1Setup

We run ScienceWorld\(Wanget al\.,[2022b](https://arxiv.org/html/2608.04761#bib.bib24)\)with the identical insight\-retrieval pipeline used for ALFWorld and WebShop: Qwen3\-8B as the action\-generating LLM with greedy decoding, a history window of 3 steps, and dynamic top\-kkinsight retrieval over the ScienceWorld insight corpus \(700Bundle/ 6,265Atomicinsights, Appendix Table[9](https://arxiv.org/html/2608.04761#A1.T9)\)\. The 500 evaluation instances are a fixed, seed\-42, task\-balanced subset of all ScienceWorld test variations, saved once and reused across all experiments for comparability\. We report success rate \(%\)\. The no\-insight baseline \(no retrieval at all\) scores only2\.402\.40\.

#### D\.6\.2Top\-kkRetrieval Budgets

Table[15](https://arxiv.org/html/2608.04761#A4.T15)reports ScienceWorld success rate for Base and InsightEmb across corpus granularities and retrieval budgetsk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\. InsightEmb wins or ties Base on all six cells, and every insight setting more than triples the no\-insight baseline \(2\.402\.40\)\. Because ScienceWorld does not add a qualitatively new insight\-pool regime beyond the good/bad pools already illustrated by ALFWorld and WebShop, the main\-text top\-kkfigure \(Figure[2](https://arxiv.org/html/2608.04761#S6.F2)\) retains only ALFWorld and WebShop, and the ScienceWorld top\-kkresults are presented here in tabular form\.

Table 15:ScienceWorld success rate \(%\) across retrieval budgetsk∈\{1,3,5\}k\\in\\\{1,3,5\\\}\(Qwen3\-8B agent, 500 seed\-42 task\-balanced test instances\)\. The no\-insight baseline is2\.402\.40, so every insight setting more than triples it\. Bold marks the better value within each row, and ties are bolded for both\.
#### D\.6\.3Stronger Closed\-Source Action Model \(GPT\-5\.2\)

To test whether the advantage depends on the Qwen3\-8B action model, we replace it with a stronger, closed\-source action model \(GPT\-5\.2\(OpenAI,[2025](https://arxiv.org/html/2608.04761#bib.bib37)\)\) and re\-run all three environments with top\-1 retrieval\. As shown in Table[16](https://arxiv.org/html/2608.04761#A4.T16), InsightEmb improves over Base across ScienceWorld, ALFWorld, and WebShop, indicating that the gains are not tied to a specific action model\.

Table 16:Dynamic agent evaluation with a stronger closed\-source action model \(GPT\-5\.2, top\-1 retrieval\) across all three environments\. Reported as success rate \(%\) for ScienceWorld and ALFWorld, and average task score \(%\) for WebShop\. Replacing the Qwen3\-8B action model with GPT\-5\.2 preserves the InsightEmb advantage\.
#### D\.6\.4Task Distribution of the 500\-Instance Subset

Table[17](https://arxiv.org/html/2608.04761#A4.T17)lists the most frequent ScienceWorld task types in the fixed seed\-42 balanced subset used for all ScienceWorld experiments\.

Table 17:Top task\-type counts in the fixed, seed\-42, task\-balanced 500\-instance ScienceWorld test subset \(saved once and reused across all experiments for comparability\)\.
#### D\.6\.5Task\-Type Grouping

To parallel the ALFWorld per\-task\-type analysis \(Table[14](https://arxiv.org/html/2608.04761#A4.T14)\), the most frequent ScienceWorld task types \(Table[17](https://arxiv.org/html/2608.04761#A4.T17)\) fall into the functional categories the agent must resolve:*search/identify*\(find\-animal, find\-plant, find\-non\-living\-thing\),*measurement/verification*\(use\-thermometer, measure\-melting\-point\),*state\-transform/experiment*\(test\-conductivity\), and*multi\-step reasoning*\(inclined\-plane\-friction, mendelian\-genetics\), mirroring theWhere/How/Verifyrule taxonomy used for ALFWorld \(§[D\.2\.4](https://arxiv.org/html/2608.04761#A4.SS2.SSS4)\)\.

#### D\.6\.6Step\-Conditioned Retrieval Dynamics

Although retrieval is performed at each decision step, the most useful retrieved insights are not always narrowly tied to a single observation\. In ScienceWorld, many tasks require executing a stable multi\-step procedure across changing observations\. For example, an insight such as “to solve inclined\-plane friction tasks, place the object on the ramp, vary the relevant surface or angle, observe whether it slides, then compare outcomes” can guide several consecutive actions: setting up the apparatus, manipulating the relevant variable, observing the outcome, and making a comparison\. Thus a single high\-level procedural insight may remain useful across many environment steps, even as the observation changes\.

This helps explain why InsightEmb does not necessarily require more diverse or more state\-specific retrievals\. Instead of retrieving a different insight for every local observation, it often retrieves a general but actionable workflow that covers the full experimental structure\. In this sense the retrieved insight acts less like a one\-step hint and more like a compact policy sketch\. This is consistent with Table[13](https://arxiv.org/html/2608.04761#A4.T13), where the mean distinct retrieved insights are broadly similar between Base and InsightEmb \(2\.042\.04vs\.2\.372\.37\), while InsightEmb appears to retrieve insights that are more procedurally complete and reusable across steps \(higher retrieval turnover,0\.268→0\.3800\.268\\rightarrow 0\.380\)\.

#### D\.6\.7Illustrative Examples: How an Insight Guides the Next Step

Manual inspection of divergent games \(summarized in §[5\.3](https://arxiv.org/html/2608.04761#S5.SS3)\) reveals three recurring qualitative patterns:

1. 1\.State\-variable awareness\.InsightEmb more often retrieves insights that name the latent state variable to manipulate \(ramp angle, surface friction, object category\), helping the agent convert a high\-level goal into a concrete next operation, e\.g\. setting up the ramp and observing motion rather than inspecting nearby objects\.
2. 2\.Action sequencing\.InsightEmb retrieves procedural insights encoding an ordered workflow \(prepare apparatus→\\rightarrowmanipulate variable→\\rightarrowobserve outcome→\\rightarrowcompare→\\rightarrowanswer\), whereas Base retrieves semantically relevant but order\-free insights that leave the agent inspecting objects without completing the protocol\.
3. 3\.Failure\-mode avoidance\.Base frequently alternates between generic exploration actions without committing to the required state transition, whereas InsightEmb more often retrieves insights specifying*when to stop exploring and act*\(place an object on a ramp, change an angle, test conductivity\), which reduces failed games even when the task is not fully solved\.

As in ALFWorld and WebShop, these show InsightEmb performs*procedural matching*, retrieving the insight that addresses the agent’s current bottleneck\. The following side\-by\-side examples \(Base vs\. InsightEmb,Atomic, top\-1\) illustrate these patterns\.

##### Example 1: inclined\-plane task\.

*Goal: determine which ramp setup makes an object slide\.*

Table 18:Inclined\-plane task\. Both retrieve ramp\-related insights, but Base retrieves a topical rule identifying only the domain while InsightEmb retrieves a procedural rule specifying the next experimental operation, turning passive observation into active intervention\.
##### Example 2: find living/non\-living entity task\.

*Goal: find an animal, plant, living thing, or non\-living thing\.*

Table 19:Entity\-identification task\. The key challenge is matching the goal category to the current observation\. InsightEmb retrieves an insight that turns the task into a classification procedure \(list candidates, classify, choose\), producing a more deliberate next step than Base’s general fact about living things\.
##### Example 3: procedural workflow vs\. topical match\.

*Goal: complete a multi\-step science experiment \(conductivity test\)\.*

Table 20:Conductivity task\. Base retrieves scientifically correct but operationally incomplete rules, whereas InsightEmb’s insight includes the required interaction protocol, bridging conceptual knowledge to executable environment actions\.

## Appendix ESRA\-Bench Details

### E\.1SRA\-Bench Query and Skill Encoding

We evaluate SRA\-Bench with the same Qwen3\-style query prefix used for Base and InsightEmb at inference\. For each instance, the query text is the fullquestionfield from the benchmark \(background context plus task description\)\. Skills are encoded without an instruction prefix\.

##### Retrieval instruction\.

The fixed task description prepended to every query is:

> Given an agent task question, retrieve the reusable skill that helps solve the task\. The skill may describe a theorem, logic pattern, tool workflow, medical calculator, math concept, or software library\.

##### Query format\.

Each query is embedded as:

> Instruct: Given an agent task question, retrieve the reusable skill that helps solve the task\. The skill may describe a theorem, logic pattern, tool workflow, medical calculator, math concept, or software library\. Query:\{question\}

where\{question\}is the full SRA\-Bench instance text\. This matches the Qwen3Instruct: …Query:convention used for our embedding models\.

##### Skill \(passage\) format\.

Each candidate skill in the mixed corpus \(636 gold and 26,262 distractor skills\) is embedded as:

> \{name\} \{description\} \{content\}

using thename,description, andcontentfields from the benchmark corpus JSON\. We rank all corpus skills against each query by cosine similarity over normalized embeddings\.

### E\.2SRA\-Bench Retrieval Analysis

Table[21](https://arxiv.org/html/2608.04761#A5.T21)gives the per\-task\-family breakdown of the SRA\-Bench results at @1 and @10, supplementing the macro\-average in Table[3](https://arxiv.org/html/2608.04761#S5.T3)\.

Table 21:Per\-task SRA\-Bench retrieval results at @1 and @10\. Queries use task information and candidates use full skill content\. Bold marks the better value within each task family, and ties are bolded for both embeddings\.MedCalcBench is the only task family where InsightEmb underperforms Base at small cutoffs \(Table[21](https://arxiv.org/html/2608.04761#A5.T21)\)\. Medical calculation skills are highly template\-like, lexically specialized, and domain\-specific: correct retrieval often depends on exact medical score names, disease terms, biomarker or variable names, units, and other clinical terminology\. The Base embedding model appears to preserve these fine\-grained biomedical and entity\-level cues, whereas InsightEmb’s cross\-domain training encourages more abstract structural matching and may therefore downweight or smooth over such terminology at rank 1\. This interpretation is also consistent with the original SRA\-Bench results, where MedCalcBench already achieves about 90% R@1 and over 90% R@10 after reranking the BM25 top\-50 candidates with different reranker models, indicating that lexical candidate generation is less of a bottleneck for this task\. In contrast, task families such as theorem proving, tool use, contest math, and code generation benefit from abstraction\-aware ranking because the query and useful skill can differ substantially in wording while sharing a reasoning or procedural structure\. This distinction matters in practical retrieval\-augmented skill selection pipelines: an LLM reranker can only inspect a limited candidate set, such as the BM25 top\-50 skills, due to context\-window constraints\. Thus, task families for which lexical retrieval fails to place the correct skill within this window constitute the more important bottleneck\. From this perspective, the strong results on LogicBench and CHAMP are especially encouraging, because they require more semantic or reasoning\-oriented matching between task descriptions and skill content, where surface lexical overlap is weak\. InsightEmb therefore improves the recall of relevant skills before reranking, expanding the effective coverage of downstream LLM\-based selection\.

#### E\.2\.1A BM25\-Hybrid Remedy for MedCalcBench

Rather than only explaining the MedCalcBench regression, we provide a concrete remedy\. Our diagnosis is that medical\-calculator skills carry dense domain\-specific terminology \(score names, disease terms, biomarkers, and units\), so lexical overlap between the query and the correct skill is an important relevance signal in this family\. A retriever whose training pushes toward abstract, structural matching \(as InsightEmb’s does\) tends to under\-weight this terminology\-level overlap, which is why its R@1 drops here even though it helps on the structure\-dominant families\. We therefore apply a lightweight hybrid retriever: a BM25\(Robertson and Zaragoza,[2009](https://arxiv.org/html/2608.04761#bib.bib25)\)pre\-filter at top\-50 followed by InsightEmb reranking, which reintroduces exactly the lexical\-overlap signal that pure dense retrieval under\-weighted\. As shown in Table[22](https://arxiv.org/html/2608.04761#A5.T22), on MedCalcBench this lifts InsightEmb’s R@1 back up and reaches perfect recall at R@5, matching or exceeding Base at every cutoff beyond rank 1\.

Table 22:MedCalcBench recall under a BM25 top\-50 pre\-filter followed by dense reranking \(Base = Qwen3\-Embedding\-4B\)\. The hybrid recovers InsightEmb’s R@1 from63\.2763\.27\(without pre\-filter, Table[21](https://arxiv.org/html/2608.04761#A5.T21)\) to70\.9170\.91, and reaches100%100\\%at both R@5 and R@10, edging ahead of Base at R@5 \(100\.00100\.00vs\.98\.1898\.18\)\.Under the BM25 top\-50 pre\-filter, InsightEmb reaches100%100\\%recall at both R@5 and R@10 and recovers R@1 to70\.9170\.91, closing the practical gap for downstream reranker\-limited pipelines\. The residual R@1 difference reflects the terminology\-dense nature of medical\-calculator skills, where high lexical overlap between query and skill makes lexical matching a strong signal that favors Base at rank 1\.

##### Applicability scope\.

We place this in context: across all our evaluations, MedCalcBench is the only setting where InsightEmb does not clearly lead, and every other task family and every agentic environment \(ALFWorld, WebShop, ScienceWorld\) shows strong, consistent gains\. Far from undermining the method, this single exception gives a clean applicability condition\. InsightEmb is designed for state\-aware, action\-guided agentic retrieval where relevance is procedural or structural, and it is not the right tool to use*alone*for terminology\-dense retrieval where lexical overlap between query and skill is the dominant signal \(e\.g\., medical calculators keyed on score names, biomarkers, and units\)\. In that regime the BM25 hybrid supplies the missing lexical signal\.

Similar Articles

Q-RAG: Long Context Multi-step Retrieval via Value-based Embedder Training

Hugging Face Daily Papers

Q-RAG introduces a reinforcement learning-based fine-tuning approach for embedder models to enable efficient multi-step retrieval, achieving state-of-the-art results on long-context benchmarks up to 10M tokens. This method provides a resource-efficient alternative to fine-tuning small LLMs for complex multi-step search tasks.

Your Embedding Model is SMARTer Than You Think

Hugging Face Daily Papers

SMART is a framework that unlocks latent multi-vector capabilities in single-vector models for multimodal retrieval, improving state-of-the-art performance with reduced computational costs via contrastive training and late-interaction inference.