Introduction
Large Language Models (LLMs) have demonstrated impressive capabilities in natural language processing, yet they frequently struggle with neural-symbolic tasks. These scenarios require the model to generate symbolic intermediate representations—such as executable code or formal logic steps—that must be processed by an external environment to achieve a correct result.
The primary obstacle to improving LLMs in these domains is the scarcity of high-quality, human-annotated symbolic data. Traditional solutions often rely on distillation (learning from larger models like GPT-4) or Reinforcement Learning (RL). However, distillation is limited by the teacher's ceiling and high costs, while RL is often unstable and computationally inefficient. To address these challenges, the ENVISIONS framework introduces a self-sustaining loop where models evolve through direct interaction with an environment, bypassing the need for human labels or complex RL optimization.
The ENVISIONS Framework
The authors propose ENVISIONS (ENV-guIded Self-traIning framework fOr Neural-Symbolic scenarios), a framework designed to enable "weak-to-strong" model evolution through iterative self-exploration.
The framework operates in three distinct stages per iteration:
- Online Exploration & Self-Refinement: The model generates multiple candidate solutions for a given task. These candidates are executed in an environment (e.g., a Python compiler or web browser) to verify correctness. The model also utilizes its previous attempts as references to refine and improve its subsequent generations.
- Self-Rewarding & Filtering: In the absence of an external reward model, ENVISIONS leverages the model’s own sequence output log-probabilities as a "soft reward." This allows the system to prioritize solutions that are both verified as correct by the environment and generated with high model confidence.
- Contrastive RL-free Training: The core innovation is a two-part loss function that avoids the instability of traditional RL. It combines standard Supervised Fine-Tuning (SFT) on successful solutions with a Contrastive Loss. This loss explicitly trains the model to distinguish between correct solutions and "hard negatives"—plausible-looking attempts that ultimately failed in the environment.
Experimental Evaluation and Results
ENVISIONS was evaluated across three symbolic domains: Web Agents (MiniWob++), Math Reasoning (GSM8K, MATH, etc.), and Logical Reasoning (ProofWriter, RuleTaker).
The results demonstrate significant performance gains:
- Substantial Growth: Starting from a base LLaMA2-Chat (7B), ENVISIONS improved average performance by 30.00%. The 13B variant saw a 24.95% increase.
- Surpassing the Teacher: In several benchmarks, the 7B model trained via ENVISIONS outperformed models fine-tuned on "gold" data distilled from GPT-4, proving that self-evolution can exceed the quality of external supervision.
- Generalization: The framework improved performance on "held-out" tasks, indicating that the model developed robust symbolic reasoning capabilities rather than simply memorizing training patterns.
- Iterative Sustainability: Unlike many self-training methods that plateau early, ENVISIONS showed continued improvement over as many as 10 iterations in mathematical tasks.
Discussion and Key Insights
The success of ENVISIONS highlights several critical principles for future LLM development:
- Environment as Ground Truth: Symbolic environments provide objective, binary feedback that prevents the "hallucination" issues common in natural language self-training.
- Value of Hard Negatives: By contrasting correct solutions with near-misses, the model learns the specific nuances required for success in symbolic logic.
- Efficiency of Contrastive Learning: Replacing complex policy gradients with a contrastive loss provides a more stable and efficient path for learning from mistakes in symbolic contexts.
Limitations and Future Work
While effective, iterative self-training is computationally intensive, requiring significant generation and fine-tuning resources. Additionally, the framework currently depends on the availability of a reliable, executable environment, making it less applicable to open-ended creative tasks. Future research may explore the synergy between ENVISIONS and traditional RL methods like Direct Preference Optimization (DPO) to further refine model performance.
Summary updated