TL;DR
Think about the first time you drove a manual car: you consciously calculated every clutch release and gear shift, until one day, your hands and feet just knew what to do. NeSyKC (Neurosymbolic Knowledge Compilation) brings this exact cognitive transition to language-model-based robots. By turning slow, deliberate rule-learning into fast, intuitive "muscle memory" inside a frozen language model, it lets embodied agents continuously adapt to messy, open-ended worlds while becoming over 10x faster at making decisions.
What Problem Does This Paper Address?
Language models (LMs) are great brains for embodied agents, but teaching them to learn continuously over a lifetime in dynamic environments is tough. Because you can't constantly retrain a massive LM on sparse feedback from isolated tasks, researchers usually bolt on external memory systems.
Currently, these memories fall into two camps, each with a catch:
- Declarative memory stores what is true about the world (facts, constraints, physics). It’s great for reasoning through novel situations, but it forces the agent to deliberate from scratch every single time, making inference painfully slow.
- Procedural memory stores how to act (skills, action templates). It’s fast, but brittle—habits learned in one context are hard to verify or revise when the environment changes.
Inspired by human cognitive science—specifically Adaptive Control of Thought (ACT) theory—the authors ask: instead of choosing one, how can an agent continually build an explicit understanding of its world and compile that understanding into fast, reusable intuition?
Methods
NeSyKC bridges these two memory types using a shared symbolic representation—specifically, PDDL (Planning Domain Definition Language), a classic AI format that defines actions by their preconditions (what must be true before acting) and effects (what changes after).
The framework operates as a continuous feedback loop powered by two novel processes:
- Neurosymbolic Generalization (Building the Rulebook): As the agent interacts with the world, the LM observes state transitions and proposes general symbolic rules. Crucially, the LM isn't trusted blindly. A symbolic validator checks candidate rules against all past experiences—rewarding rules that explain past successes and penalizing those that align with failures. Only verified improvements update the declarative rule base.
- Neurosymbolic Proceduralization (Building Muscle Memory): Early on, the agent relies on slow symbolic planning tools over its rulebook to pick actions. As rules stabilize, symbolic planners generate verified, step-by-step action sequences. NeSyKC incrementally compiles these procedures into lightweight neural adapters attached to the frozen LM. Using autoencoder "descriptors" to check if a procedure is genuinely new, it adds adapters only when needed and routes between them dynamically—no replaying old data or retraining the base model required.
Datasets
To test lifelong learning fairly, the authors built a standardized, PDDL-style simulation testbed instantiated from four established embodied benchmarks:
- VirtualHome (306 seen stream tasks; 228 unseen evaluation tasks)
- ALFWorld (300 seen tasks; 300 unseen tasks)
- EB-Habitat (48 tasks)
- PDDLGym (387 tasks in Minecraft and 400 in Rearrangement domains)
They also evaluated real-world post-deployment learning on two physical robotic arms—a Franka Research 3 (FR3) and a UR7e—performing office desk-cleaning and kitchen meal-prep tasks.
Key Insights and Ideas
- The "System 2 to System 1" Shift: NeSyKC organically transitions from slow, symbolic deliberation to fast, neural execution. Over 10 compilation rounds in VirtualHome, reliance on compiled adapters went from 0% to 100%, slashing average inference time while accuracy climbed.
- Tiny Models Punch Above Their Weight: Equipped with NeSyKC, a tiny 0.6B-parameter LM handily outperformed declarative-memory baselines running on a 3x larger (1.7B) model. Explicit symbolic verification + adapter compilation beats raw parameter scale for multi-hop reasoning.
- Failures Become Fuel: When the physical FR3 robot failed to pick up a wide keyboard due to gripper size limits, NeSyKC didn't just log an error—it revised its symbolic preconditions for graspability, replanned to push the keyboard aside instead, and compiled that new strategy into an adapter for future desk layouts.
Key Results
Across all simulated benchmarks, NeSyKC achieved the highest non-oracle performance and showed steady, monotonic improvement across lifelong learning blocks.
- VirtualHome: Achieved 81.5% success rate (SR) on seen tasks (vs. 67.6% for the strongest procedural baseline, BoT) and 75.1% on unseen tasks.
- ALFWorld: Where multi-hop object relations caused pure-LM memory baselines to collapse below 13% SR, NeSyKC hit 76.8% on seen tasks and 65.8% on unseen tasks (beating the best neurosymbolic baseline, NeSyC, at 43.7%).
- Speedup: Across compilation rounds, average SR across seen and unseen tasks jumped from 23.5% to 80.5%, while average inference time dropped more than 12x, from 7.6s down to 0.6s.
- Real-World Robotics: Adding proceduralization to rule generalization boosted FR3 desk-cleaning success across task variants from 80.0% to 97.8%. On the UR7e, updating rules from a single cross-robot demonstration yielded 100.0% success across meal-prep variants.
Limitations and Future Work
The authors note that their lifelong learning evaluation focuses primarily on single-agent settings, where one agent gathers experience and updates its own mind. While they showed an intriguing proof-of-concept where a UR7e robot learned from a Franka robot's demonstration, systematically sharing knowledge across multi-agent teams remains an open challenge—especially when robots have different physical bodies, grippers, and environments. Future work aims to formalize this cross-agent knowledge validation and transfer.
Summary updated