NeSyKC: Neurosymbolic Knowledge Compilation For Lifelong Learning Embodied Agents
Abstract
Lifelong learning in embodied agents requires continually building an understanding of the environment and turning that understanding into effective behavior, allowing experience from past tasks to improve future performance. We introduce Neurosymbolic Knowledge Compilation (NeSyKC), a lifelong learning framework for embodied agents in open-ended environments. NeSyKC maintains reusable knowledge in two forms: declarative knowledge that describes interactions with the environment and procedural knowledge that encodes learned ways of acting. It continually expands and refines declarative knowledge and incrementally compiles it into procedural knowledge. Specifically, accumulated experience is generalized into symbolic rules, which are used to derive verified procedures for compilation into neural adapters. This creates a feedback loop in which symbolic rules support deliberate reasoning, compiled neural adapters progressively enable efficient reasoning within a language model, and subsequent interactions provide new experience for learning. Across open-ended environments instantiated from four established embodied benchmarks, NeSyKC improves task performance during lifelong learning, while demonstrating generalization to unseen tasks and improved inference efficiency. Real-world experiments on two robots further show that NeSyKC continues to learn from post-deployment experience by revising its rule base and compiling procedures for reuse across task variants.