Introduction: The Reasoning Trilemma
Embodied agents—autonomous systems interacting with physical or simulated environments—must navigate a "reasoning trilemma." They require structural integrity to follow logical constraints, environmental adaptivity to respond to dynamic changes, and temporal efficiency to operate within strict latency bounds.
Current paradigms often fall short. Agentic frameworks like ReAct rely on expensive, iterative LLM calls. Purely neurosymbolic methods often depend on external symbolic solvers (e.g., PDDL) that are computationally heavy and fail under environmental uncertainty. NeSyPr addresses these challenges by drawing inspiration from the Adaptive Control of Thought (ACT) theory in cognitive science, which posits that humans "compile" declarative facts into automatic procedural skills through practice.
Methodology: The Proceduralization Pipeline
NeSyPr implements a two-phase framework to transform symbolic search into neural execution.
1. Compositional NeSy Procedure Learning
During the offline training phase, a symbolic solver acts as a "teacher," generating optimal plans for a variety of tasks. Rather than simple imitation learning, NeSyPr uses a Vector-Quantized (VQ) Procedural Memory. The model learns to decompose complex plans into discrete "procedure units"—analogous to IF-THEN production rules—stored in a "Procedure-book." This allows the agent to internalize the underlying logic of the symbolic solver into a compact, reusable vocabulary of actions.
2. NeSy Procedure Contrastive Planning
At inference time, the symbolic solver is removed. The agent generates plans in a single forward pass using its procedural memory. To ensure adaptivity, the system maintains dynamic memory banks of successful and failed procedures encountered during interaction. Through Contrastive Decoding, the model adjusts its token distribution to favor successful paths and suppress those associated with past failures, enabling real-time "online" learning without weight updates.
Architecture: Memory-Augmented Inference
The core of the NeSyPr architecture is a modified transformer block featuring a Memory-Augmented Module. This module integrates the VQ procedural memory directly into the decoder's hidden states. By using cross-attention between the working embeddings and the stored procedure-book, the model can retrieve and compose relevant procedural knowledge on the fly. The contrastive planning head then refines the output by comparing retrieved procedures against the success ($M^+$) and failure ($M^-$) banks.
Experimental Results
NeSyPr was evaluated across three challenging benchmarks: PDDLGym (Minecraft, Rearrangement), VirtualHome, and ALFWorld.
- Reasoning Performance: NeSyPr achieved a 46.7% higher success rate than DeepSeek-R1-Distill (70B) on PDDLGym, despite being 70x smaller.
- Efficiency: The framework achieved a 90% reduction in inference latency compared to state-of-the-art reasoning baselines like Buffer-of-Thoughts.
- Robustness: In dynamic environments where initial plans were invalidated (e.g., a required tool being moved), NeSyPr outperformed traditional symbolic planners by 62.1% due to its superior adaptivity.
- Hardware Deployment: The system demonstrated real-time feasibility on edge devices, maintaining a stable 5-second latency on an NVIDIA Jetson Orin.
Conclusion and Future Directions
NeSyPr demonstrates that "compiling" symbolic wisdom into neural weights is a viable path toward efficient, high-performance embodied agents. While the current implementation relies on symbolic observations (e.g., PDDL states), future work will focus on extending this proceduralization to raw visual inputs and exploring joint distillation strategies from larger foundation models. By moving from runtime search to procedural execution, NeSyPr paves the way for the next generation of responsive and intelligent robotic systems.
Summary updated