potentialpaper

Dyad: Extending Large Language Models with Native Typed Decision-Making

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Dyad gives LLMs a native, dynamic action head so they can reason in language and make typed decisions directly.

Abstract. We study how to build more capable general-purpose agents by extending large language models (LLMs) with native typed decision-making. We introduce Dyad, an architecture that augments a pretrained LLM with an environment-conditioned action encoder that embeds each candidate action description in parallel, then scores these embeddings against the LLM's internal state to yield a distribution over typed actions. By factorizing decision-making into representations of the evolving interaction state and environment-specific action semantics, Dyad introduces an inductive bias for learning reusable representations while keeping action scoring efficient even as the action space grows. We investigate two complementary reinforcement learning settings driven by environment interaction. With the LLM frozen, training the action encoder alone achieves consistent gains across four unseen environments, enabling modular adaptation without modifying any LLM parameters. Jointly optimizing both components outperforms conventional RL post-training across diverse interactive tasks and model scales, including a 3.80% average absolute gain on ALFWorld with a 9B model, while improving general knowledge, reasoning, and coding.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
19 Sep 2026ICLR 2027submittedICLR 2027Under reviewreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Under review · 3 reviews · OpenReview

Updated 25 Nov 2026, 10:37 UTC.

Reviewer 6DSEOpenReview ↗
Rating
2/4
Confidence
3/4
Soundness
2/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

This paper introduces Dyad, an architecture that augments a pretrained LLM with an action encoder for direct typed decision-making over runtime-provided action sets. Dyad independently encodes candidate action descriptions and scores them against the LLM’s state representation, while retaining autoregressive language generation. The model is initialized through supervised representation alignment and then trained with agentic RL. Experiments report improvements over GRPO/GiGPO baselines across in-domain and cross-environment evaluations.

Strengths
  1. Dyad provides a conceptually clean factorization of typed decision-making into an evolving LLM state representation and independently encoded action representations. This design integrates direct action selection with autoregressive reasoning in a single policy and enables parallel, potentially reusable action encoding.
Weaknesses
  1. The necessity of description-conditioned dynamic action encoding is not established. If the global action inventory is known in advance and only the permissible subset changes over time, a fixed action head with an AtA_t-dependent mask already supports the setting. Dyad becomes necessary only when previously unseen action schemas are introduced at deployment. However, the paper neither compares against a matched fixed action head with dynamic masking nor establishes strict action-schema disjointness between training and evaluation that makes fixed action head incompatible.

  2. Dyad introduces a separate pretrained Transformer action encoder and an additional GPT-5.5-generated alignment dataset, whereas the GRPO/GiGPO baselines use only the original LLM. Since alignment substantially improves performance in Figure 6(b), the reported gains conflate the proposed factorization with additional model capacity, supervision, and computation. The action encoder architecture, parameter count, and total training/inference cost are also insufficiently reported.

Questions for the authors
  1. Does πact\pi^{act} select complete executable actions including arguments, or only action/tool types while the LM autoregressively generates arguments? Please clarify how argument generation is incorporated into the policy and training, particularly for single-interface environments such as SWE-bench.
2 comments
Authors · CommentOpenReview ↗

W1: Necessity of description-conditioned action encoding

Thanks for your insightful observation. Our goal is to generalize to action schemas first encountered at deployment. A fixed head with a dynamic mask handles changing subsets of a known inventory. ExpA, for example, allocates an output row to each predefined action, initializes it from the action description, and restricts selection to actions valid in the active environment (Yue et al., 2026, §4.1 and Appendix B). A mask selects among existing rows. Dyad can score a newly supplied operation because the same learned encoder generates its row from the environment and action descriptions, without fitting new action-specific parameters (Eqs. 1–3).

W2: Additional capacity, alignment supervision, and cost

Thank you for raising this important concern. To make the comparison as fair as possible while preserving each method’s action interface, we match the pretrained policy LM, RL algorithm, training environment, and evaluation tasks for each Dyad–baseline pair (§5.1). The textual baselines generate action names through their vocabulary head. Dyad’s separate pretrained Transformer encoder generates one weight vector per candidate, and these vectors form its action head (Eq. 3).

GPT-5.5 examples initialize only Dyad’s projector, with both backbones frozen (§3.1). Matching this initialization exactly would require adding an action projector to the textual baselines. We therefore test the effect of alignment within Dyad. With the architecture held fixed, alignment improves CodeGym validation reward over RL alone (Figure 6b). For the full-policy comparison, we report encoder parameter counts in ksc8 W1/Q1 and training and inference cost estimates in D69P W2/Q2.

Q1: What πact\pi^{\mathrm{act}} selects and how arguments are trained

Thank you for this question. πact\pi^{\mathrm{act}} selects only the operation type; the LM then generates its arguments autoregressively to complete the executable call (Appendix A.1). The probability of an executable call is thus the product of πact\pi^{\mathrm{act}} for the operation and πLM\pi^{\mathrm{LM}} for its argument tokens. In SWE-bench, Bash is the only candidate, so πact=1\pi^{\mathrm{act}}=1 and the LM generates open-ended command strings. With a frozen LM, encoder updates therefore cannot change command generation (see our response to Reviewer ksc8, W2 & Q2).

Authors · CommentOpenReview ↗

We hope that our responses and additional experimental results have helped clarify your concerns. As the discussion period draws to a close, we would welcome any further feedback. If you find our responses satisfactory, we kindly invite you to reconsider your evaluation. Thank you for your time and consideration.

Reviewer ksc8OpenReview ↗
Rating
3/4(+1)
Confidence
3/4
Soundness
2/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

Dyad adds an action encoder to a pretrained LLM, allowing the model to interleave language generation with direct selection from a set of described actions. The encoder represents each action independently, and a dot product with the LLM hidden state produces action probabilities. The authors train the action encoder alone or jointly with the LLM using agentic RL. They report gains over GRPO and GiGPO on several interactive benchmarks, including cross-environment transfer, as well as generally better retention of knowledge, reasoning, and coding performance.

Strengths
  1. The separation of language generation and candidate-action selection is a useful interface for LLM agents. In particular, the ability to reuse action representations when tool definitions stay fixed is practically appealing.

  2. The evaluation is fairly broad. Tables 2–4 cover two RL algorithms, several LLM sizes and families, and both in-domain and transfer settings. Dyad improves on the corresponding RL baseline in 41 of 48 cross-environment comparisons. The frozen-LLM results are also promising for modular adaptation.

Weaknesses
  1. The comparisons do not isolate the benefit of the proposed factorization. Dyad adds a separately pretrained transformer, a teacher-generated alignment stage (Appendix A.2), and a decision restricted to admissible actions, while GRPO and GiGPO generate action text. Tables 2–3 therefore cannot distinguish the architectural benefit from extra model capacity, supervision, or constrained action selection. A matched candidate-scoring or constrained-decoding baseline is important here. Also, separate state/action text encoders with inner-product scoring were already explored by DRRN (He et al., ACL 2016). The novelty beyond integrating this idea into LLM post-training needs to be clearer.

  2. The actual scope of native action selection is narrower than the presentation suggests. Appendix A.1 states that the LLM still generates tool arguments. On SWE-bench, only one Bash interface is available (Appendix B.1 and Table 9), so Eq. (3) gives πact=1\pi^{\mathrm{act}}=1 regardless of the action encoder. With the LLM frozen and the same prompting, changing the encoder cannot change the distribution over Bash commands. Yet Table 4 reports nonzero SWE differences for frozen-LLM adaptation. These may arise from a changed action interface or evaluation variation, but they cannot by themselves demonstrate learning in the action encoder. This matters for both the transfer claim and the claimed coverage of dynamically provided typed actions.

Questions for the authors
  1. Can the authors compare against a candidate-constrained LLM baseline with comparable alignment supervision and training budget? Please also specify the action encoder backbone, parameter count, and end-to-end inference cost.

  2. Does AtA_t contain operation names or fully instantiated calls in each benchmark? In particular, how can the trained action encoder affect SWE-bench behavior when there is only one Bash interface and the LLM is frozen? A comparison with an initialized but untrained Dyad under identical prompts would help.

  3. Do the three reported seeds correspond to independent RL training runs or evaluation sampling? How variable are the smaller gains in Table 3?

3 comments
Authors · CommentOpenReview ↗

W1 & Q1: Isolating the benefit of the factorization

Thank you for this important comment. DRRN established factorized state–action scoring for text-based decision-making. Dyad extends a pretrained generative LLM into a unified reasoning-and-acting policy, retaining open-ended generation while supporting native typed decisions and frozen-LLM adaptation. We further compare text generation, constrained decoding, and Dyad using Qwen3.5-4B with GRPO on ALFWorld. The constrained baseline uses the same candidate set and selection granularity as Dyad under a comparable RL budget.

The action encoder uses a separate Qwen3.5 backbone with a projector replacing the vocabulary LM head, and its parameter counts are provided below. Matched-hardware training and end-to-end inference costs for Qwen3.5-4B are reported in our response to Reviewer D69P, W2/Q2. As shown below, Dyad outperforms constrained decoding by 3.31%, indicating that candidate restriction alone does not explain the improvement.

Method Candidate-Constrained Selection ALFWorld (%)
Text Generation No 64.11
Constrained Decoding Yes 66.80
Dyad Yes 70.11
Policy LM Action Encoder Backbone Policy Model Params (B) Action Encoder Params (B) Total Params (B)
Qwen3.5-4B Qwen3.5-4B 4.54 4.56 9.10
Qwen3.5-9B Qwen3.5-9B 9.41 8.44 17.85

W2 & Q2: Scope of native action selection and SWE-bench under a frozen LLM

Thank you for requesting this clarification. Dyad selects operation types from AtA_t, while the LM generates their arguments autoregressively. In SWE-bench, At={Bash}A_t=\{\mathrm{Bash}\}, so Bash is selected deterministically once the LM emits vactv_{\mathrm{act}}.

Even with the LM frozen, Dyad's native typed interface can improve the reliability of Bash invocation. Similar to constrained decoding, Dyad directly supplies the valid operation type rather than requiring the LM to generate and correctly format the tool name, while retaining open-ended shell command generation. Moreover, Dyad executes one call per interaction, allowing subsequent commands to incorporate actual execution feedback.

Q3: Seeding protocol and variability of smaller gains

Thank you for this question. For each model and method, the three seeds are three evaluation runs of the same trained checkpoint, not three independent RL training runs. We will state this explicitly and report the standard deviation over these evaluation runs in all result tables. The complete Table 3 results below report mean ± SD (%) across the three evaluation runs.

Model / Method DIVE: ALF DIVE: WebShop DIVE: τ² DIVE: SWE CodeGym: ALF CodeGym: WebShop CodeGym: τ² CodeGym: SWE
Qwen3.5-4B 23.45 ± 1.43 28.54 ± 0.68 61.05 ± 1.23 43.21 ± 1.74 23.45 ± 1.43 28.54 ± 0.68 61.05 ± 1.23 43.21 ± 1.74
+ GRPO 29.71 ± 2.12 30.42 ± 1.87 60.52 ± 0.93 45.67 ± 2.28 32.18 ± 2.34 33.65 ± 1.82 64.10 ± 0.76 47.98 ± 2.53
+ Dyad-GRPO 31.52 ± 1.23 31.22 ± 0.64 64.54 ± 1.47 44.28 ± 1.48 33.65 ± 1.02 35.71 ± 0.57 65.26 ± 1.72 45.02 ± 1.63
+ GiGPO 28.22 ± 2.58 29.54 ± 1.53 61.84 ± 0.48 45.02 ± 2.17 31.09 ± 2.47 27.97 ± 1.62 63.48 ± 0.73 46.64 ± 2.42
+ Dyad-GiGPO 33.07 ± 0.87 32.45 ± 0.83 61.86 ± 1.86 47.10 ± 0.94 31.72 ± 1.13 31.21 ± 1.97 64.78 ± 1.58 49.61 ± 1.37
Qwen3.5-9B 45.66 ± 2.77 33.43 ± 1.74 62.17 ± 0.83 44.56 ± 2.12 45.66 ± 2.77 33.43 ± 1.74 62.17 ± 0.83 44.56 ± 2.12
+ GRPO 52.67 ± 1.36 34.52 ± 0.82 62.06 ± 1.96 47.22 ± 1.43 51.55 ± 1.52 36.23 ± 0.58 61.31 ± 1.87 49.40 ± 1.48
+ Dyad-GRPO 53.82 ± 2.27 36.31 ± 1.63 64.88 ± 0.57 46.20 ± 2.64 55.13 ± 2.42 38.07 ± 2.76 63.02 ± 0.73 50.62 ± 2.26
+ GiGPO 50.98 ± 3.27 36.23 ± 2.68 63.52 ± 1.53 48.83 ± 0.92 52.08 ± 1.93 36.58 ± 1.04 64.21 ± 1.62 49.78 ± 1.17
+ Dyad-GiGPO 52.06 ± 1.63 37.02 ± 1.07 61.90 ± 0.84 50.42 ± 1.37 55.01 ± 2.28 35.10 ± 0.93 65.85 ± 0.67 51.25 ± 2.34
Qwen3.5-27B 68.45 ± 1.27 44.56 ± 0.83 68.21 ± 0.46 66.78 ± 0.93 68.45 ± 1.27 44.56 ± 0.83 68.21 ± 0.46 66.78 ± 0.93
+ GRPO 69.25 ± 0.93 46.68 ± 1.67 69.82 ± 1.43 68.92 ± 1.07 71.89 ± 2.03 42.13 ± 1.86 69.29 ± 1.48 67.91 ± 1.04
+ Dyad-GRPO 71.42 ± 2.04 48.81 ± 2.13 71.46 ± 0.63 70.24 ± 2.17 71.11 ± 0.77 48.29 ± 0.94 70.10 ± 0.57 68.34 ± 2.23
+ GiGPO 69.84 ± 1.47 47.20 ± 0.92 69.56 ± 1.18 68.02 ± 1.03 70.79 ± 1.13 45.91 ± 1.96 69.51 ± 1.43 67.90 ± 0.88
+ Dyad-GiGPO 72.30 ± 0.73 45.44 ± 1.27 71.87 ± 0.34 71.53 ± 0.83 73.21 ± 1.87 47.72 ± 2.14 72.30 ± 0.87 68.98 ± 1.93
Reviewer ksc8 · CommentOpenReview ↗

Thanks for the clarification, most of my concerns are resolved, I raise my score to 3.

Authors · CommentOpenReview ↗

We sincerely appreciate your constructive feedback and the updated rating. Your comments have been very helpful in improving our work. We welcome any further questions or discussion regarding the remaining concerns.

Reviewer D69POpenReview ↗
Rating
2/4
Confidence
2/4
Soundness
2/3
Presentation
2/3
Informativeness
2/3
Read review
Summary

The authors propose a technique for LLM post-training that augments an LLM with an environment-conditioned action encoder, which embeds each permitted candidate action description and enables direct scoring over the discrete space of permitted actions. The authors conduct training runs on DIVE and CodeGym, with evaluations on ALFWorld, WebShop, τ²-bench, and SWE-bench Verified, comparing against standard GRPO and GiGPO.

Strengths
  1. The authors evaluate the method on several benchmarks (ALFWorld, WebShop, τ2\tau^2-bench, and SWE-bench Verified), across in-domain and cross-environment settings, using multiple models.
  2. The method section clearly explains the approach’s architecture and implementation details.
  3. The empirical results are promising, with generally consistent improvements across benchmarks and models.
Weaknesses
  1. The paper’s novelty appears more incremental and architectural than methodological. Direct action-set encoding and scoring have already been explored in preceding works such as Jev, Laya, and SemIf; the authors’ contribution seems primarily to lie in the state–action factorization. The authors also emphasize that, unlike preceding approaches, their action encoder does not condition on the evolving interaction state. However, this state could contain useful action-related information, and an ablation study comparing state-conditioned and state-independent action encoding would be useful.
  2. The method introduces additional computational overhead at the training phase, at least through joint training of the action encoder. However, the paper does not quantify this overhead relative to standard GRPO and GiGPO.
  3. The paper states that evaluations use three seeds, but does not clearly describe the seeding protocol or specify whether these correspond to independent training runs, evaluation randomness, or both. The benchmark tables also lack confidence intervals or other uncertainty estimates.
  4. Some concerns arise from the method’s reliance on the environment providing a valid candidate action set and action descriptions. How the method would transfer to settings where such information is unavailable remains unclear.
  5. Interpreting shorter responses as evidence of more efficient reasoning seems overstated, since Dyad’s replacement of textual action generation with direct action scoring may itself reduce response length. Separating reasoning-token counts from action-token counts and measuring computational cost would help substantiate this claim.
Questions for the authors
  1. Can you perform an ablation in which Dyad’s action encoder is conditioned on the evolving interaction state?
  2. Can you report the computational overhead relative to plain GRPO and GiGPO during both training and inference, using matched hardware and accounting for action-embedding caching?
  3. Can you add confidence intervals or other uncertainty estimates to the results tables and clarify whether the three seeds correspond to independent training runs, evaluation randomness, or both?
  4. Given the evaluation on SWE-bench Verified through a Bash interface, how does Dyad handle open-ended shell commands and arguments? What does it score directly in this setting, and what advantages does it offer over generating commands as text tokens?
Ethics concerns

I have no ethics concerns

4 comments
Authors · CommentOpenReview ↗

W1 & Q1: Novelty and state-conditioned action encoding

We appreciate your concern regarding novelty. In comparing Dyad with prior work on direct scoring over action sets (Jev, Laya, and SemIf), we would highlight two key architectural contributions:

  • Native action scoring. Dyad integrates typed action selection with language reasoning and open-ended generation in a single LLM policy.

  • State–action factorization. Dyad separates history-conditioned LM states from environment-conditioned action representations, enabling embedding reuse across steps.

To examine state conditioning, we add interaction history to the action encoder input and evaluate Qwen3.5-4B with GRPO on ALFWorld and WebShop, both with the original Dyad weights and after retraining. Neither setting improves over Dyad, while history conditioning requires re-encoding candidate actions at every step.

Action encoder input Encoder weights ALFWorld (%) WebShop (%)
Environment + action descriptions (Dyad) Dyad 70.11 64.20
+ interaction history Dyad (not retrained) 63.52 58.09
+ interaction history Retrained with history 66.44 61.87

W2 & Q2: Computational overhead

Thank you for this important question. We measure training and inference costs on ALFWorld with Qwen3.5-4B using the same 8×H200 node, with Dyad jointly optimizing the policy LM and a separate action encoder of comparable scale (parameter counts in Reviewer ksc8, W1 & Q1). Initial action encoding is included in cold-cache inference, while warm-cache inference reuses precomputed embeddings. Dyad incurs higher training costs but lower task-level inference time through embedding reuse and fewer reasoning tokens (see W5).

Method Training Time (s/iter) Initial Action Encoding (ms) Cold-Cache Inference (s/task) Warm-Cache Inference (s/task)
GRPO 274.66 N/A 29.40 29.40
Dyad-GRPO 360.22 679.32 25.31 24.63
GiGPO 263.92 N/A 27.93 27.93
Dyad-GiGPO 352.29 679.32 24.33 23.65

W3 & Q3: Seeding protocol and uncertainty

Thank you for pointing out this ambiguity. The three seeds are three evaluation runs of the same trained checkpoint, capturing evaluation variance. We will clarify this protocol and report the standard deviation across the three evaluation runs in all result tables.

W4: Reliance on candidate actions and descriptions

Thank you for raising this concern. Many applications already expose the choices available to an agent, from routing a support request to one of several teams to selecting a tool from a documented API. Recent System 1 models such as Jev and Laya are designed for this kind of typed decision-making.

When a task does not expose a candidate action set, one can first abstract the task into an interactive environment with documented operations. CodeGym, one of Dyad’s training environments, does this by extracting functions from solutions to static coding problems and exposing them as callable tools. Similarly, RSI-Forge constructs executable environments from published research problems across 18 fields to support recursive self-improvement. Dyad can therefore serve a broad range of tasks, both where an action interface already exists and where one can be constructed through such an abstraction.

W5: Response length and reasoning efficiency

Thank you for raising this point. Dyad's shorter responses accompany improved task performance, suggesting more efficient problem-solving through concise reasoning and effective interaction (Fig. 4). We further measure reasoning tokens, action tokens, and interaction steps with Qwen3.5-4B on ALFWorld, accumulated over complete trajectories and averaged across tasks, with action tokens including arguments, formatting, and Dyad's inserted action text.

Method Reasoning Tokens/Task Reasoning Tokens/Step Action Tokens/Task Interaction Steps/Task
GRPO 6,026.87 199.17 225.94 30.26
Dyad-GRPO 4,988.36 174.24 216.69 28.63
GiGPO 5,711.21 198.72 213.75 28.74
Dyad-GiGPO 4,898.09 186.81 229.54 26.22

Q4: Open-ended shell commands in SWE-bench

Thank you for this question. On SWE-bench Verified, Bash is the sole candidate operation, while the LM generates the entire shell command autoregressively, preserving open-ended command generation (Appendix A.1). Moreover, Dyad better preserves the pretrained LLM's general capabilities during agentic RL while improving coding performance (Figure 3), which is particularly relevant to solving repository-level issues in SWE-bench. The frozen-LLM comparison is discussed in our response to Reviewer ksc8, W2/Q2.

Authors · CommentOpenReview ↗

We hope that our responses and additional experimental results have helped clarify your concerns. As the discussion period draws to a close, we would welcome any further feedback. If you find our responses satisfactory, we kindly invite you to reconsider your evaluation. Thank you for your time and consideration.

Reviewer D69P · CommentOpenReview ↗

Thank you for the detailed clarifications and additional experiments. The ablations and timing results address my questions about state conditioning and computational overhead. However, I remain unconvinced that Dyad’s architectural contributions are sufficiently distinct from prior work on direct action scoring. The method’s applicability also still depends on having a suitable candidate-action interface. I therefore keep my score at 2 (Weak rejection).

Authors · CommentOpenReview ↗

We respectfully disagree with the assessment of Dyad’s architectural novelty. We regard Jev and the cited open-source alternatives as contemporaneous work.

Dyad extends a pretrained LLM with an action encoder, enabling language generation and typed decision-making within a single policy. It factorizes typed decision-making into pretrained LLM state representations and independently encoded, environment-conditioned action representations, constructing a native decision head over dynamically provided actions. Action representations can be reused while their input descriptions and encoder parameters remain unchanged. Dyad supports frozen-LLM adaptation and joint optimization through agentic RL, with joint training improving agent performance while better preserving general knowledge, reasoning, and coding.

The candidate-action interface is also part of the setting of the cited decision models. For choice selection, Jev and the cited alternatives likewise predict distributions directly over provided choices. This setting encompasses support-request routing, tool use, and navigating unfamiliar software.

Could you point us to other closely related prior work beyond Jev and the cited open-source alternatives? We would be glad to strengthen our related-work discussion accordingly.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…

This paper is under review