RSI-Anything Cuts Expensive AI Feedback Calls by Predicting Actions First
A new framework lets AI agents improve themselves across code, GUI, lab planning, and chemistry by using predictive world models to filter their own actions.
Takeaways
- RSI-Anything uses predictive world models to filter agent actions before expensive external evaluation
- Code repair success climbs from 26.3% to 31.2% on CodeContests with a fixed coder
- GUI agents complete more tasks while cutting average actions per episode by 39.4%
- Lab planning scores on LabHorizon F200 more than double across five self-improvement rounds
- Beats Bayesian optimization 96.15% vs 82.16% yield on a 40-experiment chemistry screen
- Code available at github.com/Gen-Verse/RSI-Anything, built on JEPA-Anything
Recursive self-improvement asks an agent to revise its policy or supporting models across repeated rounds, then use the revised system to generate the next round of behavior. Feedback makes that loop expensive: each candidate may require a hidden test suite, a grader call, an environment interaction, or a physical experiment. The RSI-Anything paper proposes using a predictive world model to rank candidates before execution, reducing the number of calls to the external evaluator.
The framework builds on the group’s earlier JEPA-Anything paper, a domain-agnostic architecture based on Yann LeCun’s joint-embedding predictive approach. A JEPA learns to predict a target’s latent representation from context. JEPA-Anything adds orthogonal predictive factorization, which splits latent targets into complementary factors, learns them through dedicated pathways, and recombines them in a shared predictor. RSI-Anything places an agent-improvement loop around that model.
Feedback is the expensive part
External evaluators limit conventional self-improvement loops in two ways. Graders, tests, simulations, and experiments constrain how many candidates the agent can assess. Meanwhile, policy updates change the agent’s behavior, gradually moving it away from the data distribution used to train its world model. Predictions can become unreliable as that gap grows.
RSI-Anything keeps the external evaluator in the loop while narrowing its workload. The policy generates candidate actions, the world model predicts their outcomes, and the system executes the highest-ranked candidate. The resulting observation supports a policy update and provides a reliability signal for the world model. Component-level and compatibility checks determine whether the updated policy-model pair advances to the next round or rolls back.
Five steps, one grounded result
- Generate candidates. The current policy proposes several actions for the current state.
- Predict outcomes. The world model estimates each candidate’s result and ranks the options.
- Execute one action. The selected candidate runs against the environment, test suite, grader, or experiment.
- Use the observation. The prediction-observation pair informs policy revision and measures model reliability.
- Test the new pair. Component and compatibility checks retain or roll back the updated policy and world model.
Only the executed action produces grounded feedback. Scores assigned to unexecuted candidates remain model estimates, so selection quality depends on calibration and on whether the policy proposed a strong candidate in the first place.
World-model retraining depends on prediction reliability, accumulated data, and the available compute budget. This conditional update addresses distribution drift without paying the cost of retraining after every action. Compatibility tests then catch updates that improve one component while degrading the combined system.
Benchmarks reward selective execution
The paper reports results across code, GUI control, laboratory planning, and chemistry. Each domain uses its own metric and evaluation budget.
| Domain | Setup | Reported result | Budget or efficiency measure |
|---|---|---|---|
| Code repair | CodeContests with a fixed coder | Success rises from 26.3% with a static verifier to 29.2% with predictive selection and 31.2% with world-model adaptation. | Comparable test usage across the three variants |
| Code evaluation | Fixed CURE-WM-Lite world model | 29.2% hidden all-pass rate, meaning all hidden tests pass for that share of tasks | 3.71 online calls per task |
| GUI control | MiniWoB++ and OSWorld | Task completion improves while average actions per episode fall by 39.4%. | Fewer environment interactions per episode |
| Laboratory planning | LabHorizon F200 | Score rises from 21.80% to 46.01% across five policy versions. | Five successive improvement rounds |
| Reaction optimization | Flow-chemistry Suzuki coupling screen | Mean best observed yield reaches 96.15%, compared with 82.16% for Bayesian optimization. | 40 experiments for each method |
Benchmark metrics differ across domains and cannot be combined into one aggregate measure. The values are author-reported under the paper’s configurations. The chemistry comparison covers one reaction screen and one 40-experiment budget; performance across other reaction spaces and budgets remains an open empirical question.
Where prediction pays
Prediction-guided selection has the clearest economic case when execution costs far exceed model inference costs. A wet-lab reaction consumes materials, equipment time, and operator effort. Hidden code tests can add minutes of compute and limited evaluator access. GUI actions add latency and can move an agent into difficult recovery states. In each case, inexpensive ranking can conserve the scarce evaluation budget.
Cheap, fast environments weaken that advantage because direct exploration may cost less than candidate generation, world-model training, monitoring, and adaptation. A useful break-even analysis should include inference latency, retraining cost, evaluator calls, failure recovery, and the engineering needed to maintain compatible policy-model versions.
Bayesian optimization remains a relevant baseline for low-budget sequential search. It fits a surrogate model to previous observations and uses an acquisition rule to select the next experiment. RSI-Anything broadens that pattern into an agent loop that can update both its action policy and predictive model.
Failure modes to measure
- Candidate ceiling: The world model can rank only the actions produced by the policy. A missing action cannot be recovered through better scoring.
- Distribution shift: Policy updates may move the agent into states poorly represented in the world model’s training data, causing systematic misranking.
- Selection bias: Executing top-ranked actions concentrates feedback on the model’s preferred region. Controlled exploration can reveal errors elsewhere.
- Weak compatibility tests: Rollback quality depends on test coverage and acceptance criteria. Narrow checks may retain a pair that fails on untested states.
- Irreversible actions: A rollback occurs after evidence arrives. Sandboxes, permissions, and domain constraints remain necessary when an action can cause lasting effects.
Instrument before adapting
- Establish a static baseline. Record success rate, evaluator calls, latency, and cost for a fixed verifier or best-of-N system.
- Define the candidate contract. Log the state, proposed action, predicted outcome, uncertainty, selected action, and observed result.
- Measure ranking quality. Track prediction error, calibration, and action-ranking accuracy on held-out traces and newly visited states.
- Set adaptation triggers. Specify reliability thresholds, minimum sample counts, compute limits, and update frequency before enabling retraining.
- Version policy-model pairs. Test components independently and together, then retain artifacts needed for deterministic rollback.
- Reserve controlled exploration. Sample lower-ranked candidates at a bounded rate when the environment permits it, reducing blind spots in the feedback data.
- Compare under equal budgets. Hold evaluator calls, wall-clock time, or experiment count constant across RSI-Anything and simpler baselines.
Repositories and comparison points
The authors provide the agent framework in the RSI-Anything code repository and the predictive backbone in the JEPA-Anything code repository. Relevant evaluation baselines include a static verifier, best-of-N selection, Bayesian optimization, fixed-world-model selection, and the fully adaptive policy-model loop.