OpenNARS is the open-source implementation of NARS. The reasoner “core” of OpenNARS is under the MIT license. OpenNARS 4 is a new version of OpenNARS with some new features, implemented in Python.
Foundations
A recent overview of NARS can be found here. This introduction of NARS is also recommended.
Narsese as a Formal Language
NARS is a reasoning system, while its knowledge representation is called Narsese 1, which defines the grammar and sentences acceptable by the system.
To interact with NARS, human users should express sentences in Narsese. OpenNARS 4 inherits the same grammar from previous versions. For details, please refer to:
- Narsese Grammar (Input Output Format), and
- Narsese symbol list (ASCII version)
- Non-axiomatic logic: A model of intelligent reasoning (book)
NAL as a Logic of Intelligence
Non-Axiomatic Logic (NAL) is a logic of intelligence in the sense that it “provides a unified explanation for many cognitive functions of the human mind, and is also concrete enough to guide the actual building of a general purpose ‘thinking machine’.” 2 For details, please refer to
- Non Axiomatic Logic (NAL) Overview
- The Logic of Intelligence (book chapter)
- Non-axiomatic logic: A model of intelligent reasoning (book)
NARS
Based on the formal language (Narsese) and the logic theory (NAL), at the topmost level, the newest architecture of NARS involves memory, an inference engine, channels as the interface with the environment, and a control mechanism that organizes inference steps together and modifies the inner states of memory and channels.
The memory of NARS can be viewed as a network of concepts, also called as conceptual network. It is implemented based on some data-structures.
OpenNARS 4 adopts the same memory design and basic data-structures (including Concept, Task and Belief, TaskLink and TermLink, etc.) as version 3.
However, OpenNARS 4 adopts different ways to implement the inference engine, and some new features (see here) are added to the control mechanism.
For the moment, there are two alternatives to the inference engine in OpenNARS 4 – a declarative approach to implement the inference engine (though not fully implemented), and the other that is similar to OpenNARS 3.
New Features in OpenNARS 4
- Architecture: The new architecture (see Fig. 1. below) contains a memory, an inference engine (both of which remain the same as the old version), an internal experience buffer, and an overall experience buffer. There are multiple channels that act as the interface between the system and the environment. For the moment, the following channels have been implemented or are under consideration:
- Multiple Channels
- Consle-Channel: An interface for admins to check the outputs and states of the system.
- User-Channel: An interface for common users to interact with the system using Narsese.
- Knowledge-Base-Channels (not implemented yet): An interface to knowledge bases, e.g., ConceptNet, other Knowledge Graphs, LLMs, etc.
- Sensorimotor-Channel (not implemented yet): This channel is specialized for sensorimotor procedures. For example, it helps the system to play the pong game.
- Buffers
- Internal experience buffer: It organizes the system’s internal experience of its thinking activity.
- Overall experience buffer: It organizes both internal experience (from the internal experience buffer) and external experience (from channels, which organize the experience from the outer environment).
- A critical role of the two buffers is learning temporal relations among events (not fully implemented yet).
- The new architecture was mentioned in the old versions’ technical reports but was not implemented successfully.
- Multiple Channels
- Global Evaluators: The four global evaluators mentioned in the old technical report are implemented in this version.
- Satisfaction: the extent to which the current situation meets the system’s desires,
- Alertness: the extent to which the system’s knowledge is insufficient,
- Busyness: the extent to which the system’s time resource is insufficient,
- Well-being: the extent to which the system’s “body” functions as expected.
- Declarative Inference Engine (in progress)
Fig. 1. The current architecture of NARS 3
Technical Report
The OpenNARS 4 Technical Report is in progress.
Links
References
-
Wang, Pei. Non-axiomatic logic: A model of intelligent reasoning. World Scientific, 2013. ↩
-
Wang, Pei. “The logic of intelligence.” Artificial general intelligence. Berlin, Heidelberg: Springer Berlin Heidelberg, 2007. 31-62. ↩
-
Wang, Pei, et al. The conceptual design of openNARS 3.1. Technical report, Temple University, Philadelphia, United States, 2020. ↩