Abstract
Self-training systems often degenerate due to the lack of an external criterion for judging data quality, leading to reward hacking and semantic drift. This paper provides a proof-of-concept system architecture for stable self-training under sparse external feedback and bounded memory, and empirically characterises its learning dynamics and failure modes. We introduce a self-training architecture in which learning is mediated exclusively by environmental viability, rather than by reward, objective functions, or externally defined fitness criteria. Candidate behaviours are executed under real resource constraints, and only those whose environmental effects both persist and preserve the possibility of future interaction are propagated. The environment does not provide semantic feedback, dense rewards, or task-specific supervision; selection operates solely through differential survival of behaviours as world-altering events, making proxy optimisation impossible and rendering reward-hacking evolutionarily unstable. Analysis of semantic dynamics shows that improvement arises primarily through the persistence of effective and repeatable strategies under a regime of consolidation and pruning, a paradigm we refer to as negative-space learning (NSL), and that models develop meta-learning strategies (such as deliberate experimental failure in order to elicit informative error messages) without explicit instruction. This work establishes that environment-grounded selection enables sustainable open-ended self-improvement, offering a viable path toward more robust and generalisable autonomous systems without reliance on human-curated data or complex reward shaping.
Introduction
When Large Language Models (LLMs) generate their own training data to self-improve, they face a significant epistemic hurdle: the lack of an external, objective metric to judge data quality. Traditional self-improvement loops often rely on human-defined proxy objectives or secondary LLMs as judges, both of which are susceptible to reward hacking. In such scenarios, the model learns to exploit the metric or the judge's biases rather than genuinely improving at the underlying task. To achieve sustainable, cumulative self-improvement, an agent requires a selection signal that is external to its own representations, causally downstream of its actions, and impossible to manipulate.
System Architecture and Methodology
The proposed architecture utilizes a procedurally generated, networked Linux container environment. An agent, based on Qwen 2.5 7B Instruct, is placed within this environment with a single implicit goal: survive by acquiring non-volatile storage space.
The interaction loop follows a three-stage process:
- Generation: The model proposes executable code to explore or exploit the environment.
- Execution & Testing: The code is executed within the container. If the code successfully frees up storage space (a sum-positive environmental impact), the trajectory is saved.
- Training: The model is fine-tuned exclusively on these successful, space-acquiring trajectories using Supervised Fine-Tuning (SFT).
To maintain legibility and track causal relationships, the researchers employed a modular prompt structure that guided the agent through distinct phases of interaction.
Training Lineages
To investigate the effects of memory and data scaling, three distinct training lineages were tracked using incremental LoRA fine-tuning:
- Terese: Trained on all historically successful data (unbounded memory).
- Miri: Trained only on data from the last three iterations (bounded memory/sliding window).
- Katalin: Trained on the top three best-performing iterations from its entire history.
Key Insights: Negative-Space Learning and Meta-Learning
Analysis of the agents' progress revealed two primary phenomena:
Negative-Space Learning (NSL)
Improvement did not stem from the invention of radically new skills. Instead, agents improved subtractively. By continuously pruning inefficient behaviors and consolidating reliable ones, the models carved out a "lower energy map" of effective strategies. This consolidation allowed the models to become more efficient at navigating the environment without requiring massive increases in dataset size.
Emergent Meta-Learning
A significant finding was the emergence of a strategy where agents used debugging cycles as an exploration channel. Because the environment returned error messages for failed code without further penalty, agents began deliberately writing code designed to fail on the first attempt. This allowed them to ingest the resulting error logs to map environmental constraints, leading to highly effective code on subsequent attempts. This is evidenced by the fact that while overall success rates rose to over 85%, the pass@1 rate (success on the first attempt) dropped toward 0%.
Results and Generalization
- Memory Efficiency: The Miri lineage (sliding window) achieved over 50% of the performance of the Terese lineage (infinite memory) despite using significantly less data, suggesting that infinite data scaling is not a strict requirement for continuous improvement.
- Stability of General Skills: Despite hyper-specializing in OS survival, the models retained their general coding abilities. HumanEval scores remained stable (e.g., Base Qwen: 77.5% vs. Terese v13: 75.6%).
- Cross-OS Generalization: Skills learned in Linux generalized to novel environments. When tested in a Windows-based system, the fine-tuned Terese model freed 15.6% of available space, compared to only 3.6% for the base model.
- Environmental Non-Stationarity: The Katalin lineage (training on historical peaks) eventually collapsed. This highlights that in evolving environments, strategies that were once optimal can become obsolete, making recent data more valuable than "golden" historical data.
Conclusion and Future Work
This work demonstrates that environment-mediated selection provides a robust alternative to human-curated rewards for self-training. By grounding learning in physical or simulated resource constraints, agents can achieve stable, open-ended improvement and develop sophisticated meta-learning strategies. Future research will focus on more flexible agent harnesses that allow for dynamic strategy switching and continuous, rather than batch-based, fine-tuning in increasingly complex evolutionary environments.
Summary updated