[Paper Review] Injecting Prior Knowledge for Transfer Learning into Reinforcement Learning Algorithms using Logic Tensor Networks
This paper proposes integrating first-order logic priors grounded in deep neural networks—via Logic Tensor Networks (LTN)—into deep reinforcement learning (DRL) agents to enable faster, more transferable learning. By jointly processing raw image inputs and symbolic facts (e.g., object types, semantic roles), the agent learns to dynamically exploit prior knowledge, significantly reducing retraining needs across scenario changes and improving generalization, especially when priors include derived facts about object semantics.
Human ability at solving complex tasks is helped by priors on object and event semantics of their environment. This paper investigates the use of similar prior knowledge for transfer learning in Reinforcement Learning agents. In particular, the paper proposes to use a first-order-logic language grounded in deep neural networks to represent facts about objects and their semantics in the real world. Facts are provided as background knowledge a priori to learning a policy for how to act in the world. The priors are injected with the conventional input in a single agent architecture. As proof-of-concept, the paper tests the system in simple experiments that show the importance of symbolic abstraction and flexible fact derivation. The paper shows that the proposed system can learn to take advantage of both the symbolic layer and the image layer in a single decision selection module.
Motivation & Objective
- To improve sample efficiency and transfer learning in deep reinforcement learning by incorporating human-provided symbolic priors.
- To investigate how grounding first-order logic facts in neural networks enhances policy generalization across task and environment variations.
- To demonstrate that symbolic abstraction and flexible fact derivation can be jointly learned with perception in a single decision module.
- To evaluate the impact of prior knowledge—especially derived facts—on exploration and learning stability in changing environments.
- To explore the role of exploration hyperparameters (e.g., ε) in knowledge-injected RL systems.
Proposed method
- Uses Logic Tensor Networks (LTN) to represent and ground first-order logic facts (e.g., 'x is an enemy', 'y is a key') in deep neural networks.
- Integrates symbolic priors directly into the input stream of a DRL agent, enabling joint learning from pixels and symbolic facts.
- Employs a differentiable logic framework to allow end-to-end training where symbolic knowledge influences policy learning.
- Applies a DQN-based agent to a grid-world environment with varying object colors and semantic roles to test transferability.
- Uses both object-type priors and semantic fact priors (e.g., 'enemies should be avoided') to evaluate knowledge utilization.
- Trains the agent with and without ε-exploration reset to assess the impact of exploration strategy on knowledge transfer.
Experimental results
Research questions
- RQ1Can symbolic priors grounded in neural networks improve sample efficiency and transfer learning in DRL?
- RQ2How does the inclusion of derived semantic facts (e.g., 'enemies must be avoided') affect generalization across environment changes?
- RQ3Does the integration of symbolic and perceptual inputs in a single module enable the agent to learn to selectively use prior knowledge?
- RQ4How does the choice of exploration strategy (e.g., ε-reset) interact with prior knowledge in transfer learning?
- RQ5Can agents learn to rely on symbolic abstractions rather than raw pixel patterns when task semantics change?
Key findings
- The inclusion of symbolic priors—especially semantic facts—reduced performance drops during scenario changes, indicating improved transferability.
- Agents with both object-type and fact-based priors learned faster and maintained higher performance across environment shifts, even when object colors changed.
- Performance degradation at each scenario change diminished over time, showing the agent learned to generalize using symbolic knowledge.
- Resetting ε hurt performance in the knowledge-injected agent, suggesting that exploration should be preserved when the agent has learned to transfer knowledge.
- Object-type priors alone were insufficient when object semantics changed (e.g., a circle was an enemy in one scenario and a collectible in another), but fact-based priors enabled robust adaptation.
- The system demonstrated dynamic knowledge selection, learning to exploit symbolic facts when beneficial and relying on raw vision when symbolic cues were ambiguous or misleading.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.