feat: add GiGPO anchor state computation to WAADesktopEnv#122
Merged
Conversation
Add compute_anchor_state() function that produces a state key for GiGPO cross-rollout grouping. Uses a11y tree SHA256 hash (primary) with screenshot MD5 fallback. The state_key is included in the info dict from both reset() and step() so VAGEN/verl can use it for O(1) anchor grouping instead of recomputing perceptual hashes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add dated addendum (2026-03-16) correcting the earlier conflation of VAGEN and verl-agent as a single project. Key findings: VAGEN-Lite dropped Bi-Level GAE (only vanilla GRPO/PPO), GiGPO lives exclusively in verl-agent which uses its own env_base.py interface (not GymImageEnv), and our train_verl_e2e.py targets the wrong entry point. Outlines a corrected two-phase path: standalone GRPO first, then direct verl-agent integration if per-step credit is needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Covers desktop RL landscape (30+ projects), per-step credit assignment alternatives (HCAPO recommended over GiGPO), scaling architectures (ComputerRL, DART-GUI), and synthetic environment feasibility (GUI-Genesis). Includes revised architecture recommendation: standalone GRPO + HCAPO first, then dense rewards + API-GUI hybrid, then async scaling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ng math HCAPO and per-step credit are Phase 3 optimizations, not Phase 1. The bottleneck is rollout success rate (getting non-zero rewards), not loss computation. Dense partial-credit rewards and API-GUI hybrid actions directly increase gradient signal and should come first. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compute_anchor_state()function using a11y tree SHA256 hash (primary) with screenshot MD5 fallbackstate_keyininfodict from bothreset()andstep()for efficient cross-rollout groupinghashlibContext
GiGPO groups identical intermediate states across rollouts to assign per-action advantages. The
state_keyenables O(1) grouping instead of VAGEN recomputing perceptual hashes across all rollout steps.Test plan
state_keyis present ininfofromreset()andstep()WAADesktopEnv🤖 Generated with Claude Code