TL;DR
NeSyPr is a novel neurosymbolic framework that "compiles" complex, multi-step symbolic planning into efficient, single-step language model (LM) inference. By utilizing a vector-quantized procedural memory and test-time contrastive decoding, it enables compact LMs to perform fast, adaptive, and structured embodied reasoning on resource-constrained edge devices without online access to heavy symbolic planners.
What Problem Does This Paper Address?
Deploying language model (LM)-based agents to control robots or virtual assistants in dynamic, real-world environments is incredibly challenging. Current approaches typically fall into two camps, both of which fail under strict resource or latency constraints:
- Large-scale reasoning models or agentic workflows: These rely on massive models or iterative, multi-step prompting (like Chain-of-Thought). They are computationally heavy, slow, and expensive.
- Neurosymbolic methods: These offload planning to external symbolic solvers. While highly accurate, these solvers grow exponentially slower as task complexity increases and are brittle when environments change unless continuously updated.
Physical systems need a way to reason that is structured (logically sound), adaptive (resilient to environmental changes), and timely (low latency). NeSyPr bridges this gap by mimicking how humans learn skills: turning explicit, slow rules into fast, automatic procedural habits.
Methods
Inspired by the psychological Adaptive Control of Thought (ACT) theory, NeSyPr introduces neurosymbolic proceduralization. It converts declarative knowledge (explicit facts and rules) into procedural knowledge (automatic condition-action rules) across two distinct phases:
1. Compositional NeSy Procedure Learning (Training Phase)
During training, a symbolic solver generates optimal reference plans from offline data. NeSyPr internalizes the solver's search logic, state transitions, and goal evaluations into an internal procedural memory.
- Vector Quantization (VQ): The framework uses a discrete "procedure-book" ($C$) to quantize continuous working memory representations into discrete, composable procedure-units. This abstracts multi-step symbolic path-finding into a single-step LM inference pass.
2. NeSy Procedure Contrastive Planning (Test Phase)
At test time, the agent has no access to symbolic tools. Instead, it interacts with the environment and dynamically adapts using feedback:
- Procedure Banks: It maintains two memory banks: one for successful procedures ($M^+$) and one for failures ($M^-$).
- Contrastive Decoding: By comparing the current plan against reconstructed positive and negative procedures, the model reshapes its next-token distribution. This suppresses known failure patterns and amplifies successful behaviors on the fly without updating the model's weights.
Datasets
The authors evaluated NeSyPr across three standard embodied reasoning benchmarks configured for continual, dynamic task sequences:
- PDDLGym: Evaluated on three relational planning domains (Minecraft, Rearrangement, and GlibRearrangement) using symbolic inputs.
- VirtualHome: A household simulation platform where tasks were grouped into behavior-incremental and environment-incremental setups.
- ALFWorld: A text-based environment requiring long-horizon, compositional household task execution.
The training sets used were remarkably small (e.g., just 29 instances for Minecraft and 77 for VirtualHome), testing the model's ability to generalize efficiently from minimal symbolic guidance.
Key Insights and Ideas
- Knowledge Compilation over CoT: Instead of forcing an LM to generate long, slow reasoning chains at test time, NeSyPr compiles the structural constraints of a symbolic planner directly into a specialized memory architecture. This shifts the computational burden from test-time generation to training-time compilation.
- Test-Time Adaptation Without Fine-Tuning: Traditional fine-tuning is too slow for real-time robotics. NeSyPr achieves rapid adaptation purely through contrastive decoding guided by environmental success/failure feedback stored in its procedural banks.
- Discrete Compositionality: By partitioning memory slots into discrete vector-quantized chunks, the model can flexibly recombine learned "procedure-units" to solve entirely unseen tasks.
Key Results
NeSyPr demonstrates that smaller models equipped with structured memory can outperform massive reasoning models:
- Better than DeepSeek-R1: On structured reasoning tasks, NeSyPr achieved a 46.7% higher task success rate than
DeepSeek-R1-Distill-70Bwhile using an LM that is 70 times smaller. - Outperforming Symbolic Planners: In dynamic, unseen environments where symbolic planners fail due to incomplete information, NeSyPr achieved a 62.1% higher success rate.
- Massive Latency Reductions: Compared to the
Buffer of Thoughts (BoT)baseline, NeSyPr reduced inference latency by more than 90.0% while improving the task success rate by 36.0%. - Edge Device Deployment: When tested on an embedded NVIDIA Jetson Orin, NeSyPr maintained stable performance with an average inference latency of approximately 5 seconds, proving its viability for real-world physical systems.
Limitations and Future Work
While NeSyPr drastically reduces the need for large models, its performance still partially relies on the foundational capabilities and pretrained knowledge of its backbone LM.
To address this, the authors propose exploring a joint learning strategy in the future. This would combine knowledge distillation from massive LMs with neurosymbolic proceduralization, potentially unlocking even stronger generalization for highly complex, real-world robotic deployments.
Summary updated