mlsanityData to 14 Oct 2026

Cracking the Code of Action: a Generative Approach to Affordances for Reinforcement Learning

arXiv 2504.17282 ↗First posted 24 Apr 2025cs.AIcited by 1

On the map: Deep reinforcement learning methods → RL training of language and agent models

Abstract (arXiv)

Agents that can autonomously navigate the web through a graphical user interface (GUI) using a unified action space (e.g., mouse and keyboard actions) can require very large amounts of domain-specific expert demonstrations to achieve good performance. Low sample efficiency is often exacerbated in sparse-reward and large-action-space environments, such as a web GUI, where only a few actions are relevant in any given situation. In this work, we consider the low-data regime, with limited or no access to expert behavior. To enable sample-efficient learning, we explore the effect of constraining the action space through textitintent-based affordances -- i.e., considering in any situation only the subset of actions that achieve a desired outcome. We propose Code as Generative Affordances (textbftextttCoGA), a method that leverages pre-trained vision-language models (VLMs) to generate code that determines affordable actions through implicit intent-completion functions and using a fully-automated program generation and verification pipeline. These programs are then used in-the-loop of a reinforcement learning agent to return a set of affordances given a pixel observation. By greatly reducing the number of actions that an agent must consider, we demonstrate on a wide range of tasks in the MiniWob++ benchmark that: 1) textttCoGA is orders of magnitude more sample efficient than its RL agent, 2) textttCoGA's programs can generalize within a family of tasks, and 3) textttCoGA performs better or on par compared with behavior cloning when a small number of expert demonstrations is available.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in RL training of language and agent models, one of 15 directions in Deep reinforcement learning methods. Builds on 16 of its 29 references that are in the map. First posted on arXiv 24 Apr 2025.

Builds on

16 of 29 references.

References · 16

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2013Playing Atari with Deep Reinforcement Learningcited by 3,274
  5. 2015Deep Reinforcement Learning with Double Q-learningcited by 1,745
  6. 2015Prioritized Experience Replaycited by 1,099
  7. 2023VoxPoser: Composable 3D Value Maps for Robotic Manipulation with Language Modelscited by 750
  8. 2017Mastering Chess and Shogi by Self-Play with a General Reinforcement Learning Algorithmcited by 734
  9. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
  10. 2024SeeClick: Harnessing GUI Grounding for Advanced Visual GUI Agentscited by 567
  11. 2023Language Models can Solve Computer Taskscited by 372
  12. 2018Reinforcement Learning on Web Interfaces Using Workflow-Guided Explorationcited by 284
4 more
  1. 2024MOKA: Open-World Robotic Manipulation through Mark-Based Visual Promptingcited by 129
  2. 2023From Pixels to UI Actions: Learning to Follow Instructions via Graphical User Interfacescited by 68
  3. 2024AffordanceLLM: Grounding Affordance from Vision Language Modelscited by 55
  4. 2020What can I do here? A Theory of Affordances in Reinforcement Learningcited by 35

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Up and Down the Abstraction Ladder: Code-Based Skills for Language Agents
  2. 2025Beyond Syntax: Action Semantics Learning for App Agents
  3. 2026Afford-VLA: Action-Aligned Visual Planning via Internalized Affordance
  4. 2026INTACT: Isomorphic Intent-to-Action Learning for Search-Free World Models
  5. 2026GUI-GENESIS: Automated Synthesis of Efficient Environments with Verifiable Rewards for GUI Agent Post-Training
  6. 2026Reinforcement Learning for Computer-Use Agents with Autonomous Evaluation
  7. 2025VEM: Environment-Free Exploration for Training GUI Agent with Value Environment Model
  8. 2026Learn from Move: the Next Step for GUI Agents