Next Article in Journal
Passivity-Based Nonlinear Excitation Control of Power Systems with Structure Matrix Reassignment
Previous Article in Journal
Lightweight Proofs of Retrievability for Electronic Evidence in Cloud
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

The SP Theory of Intelligence: An Overview

CognitionResearch.org, Menai Bridge, UK
Information 2013, 4(3), 283-341; https://doi.org/10.3390/info4030283
Submission received: 5 June 2013 / Revised: 2 July 2013 / Accepted: 25 July 2013 / Published: 6 August 2013
(This article belongs to the Section Review)

Abstract

:
This article is an overview of the SP theory of intelligence, which aims to simplify and integrate concepts across artificial intelligence, mainstream computing and human perception and cognition, with information compression as a unifying theme. It is conceived of as a brain-like system that receives “New” information and stores some or all of it in compressed form as “Old” information; and it is realised in the form of a computer model, a first version of the SP machine. The matching and unification of patterns and the concept of multiple alignment are central ideas. Using heuristic techniques, the system builds multiple alignments that are “good” in terms of information compression. For each multiple alignment, probabilities may be calculated for associated inferences. Unsupervised learning is done by deriving new structures from partial matches between patterns and via heuristic search for sets of structures that are “good” in terms of information compression. These are normally ones that people judge to be “natural”, in accordance with the “DONSVIC” principle—the discovery of natural structures via information compression. The SP theory provides an interpretation for concepts and phenomena in several other areas, including “computing”, aspects of mathematics and logic, the representation of knowledge, natural language processing, pattern recognition, several kinds of reasoning, information storage and retrieval, planning and problem solving, information compression, neuroscience and human perception and cognition. Examples include the parsing and production of language with discontinuous dependencies in syntax, pattern recognition at multiple levels of abstraction and its integration with part-whole relations, nonmonotonic reasoning and reasoning with default values, reasoning in Bayesian networks, including “explaining away”, causal diagnosis, and the solving of a geometric analogy problem.

Graphical Abstract

1. Introduction

The SP theory of intelligence, which has been under development since about 1987 [1], aims to simplify and integrate concepts across artificial intelligence, mainstream computing and human perception and cognition, with information compression as a unifying theme.
The name “SP" is short for Simplicity and Power, because compression of any given body of information, I, may be seen as a process of reducing informational “redundancy" in I and thus increasing its “simplicity", whilst retaining as much as possible of its non-redundant expressive “power". Likewise with Occam’s Razor (Section 2.3, below).
Aspects of the theory, as it has developed, have been described in several peer-reviewed articles [2]. The most comprehensive description of the theory as it stands now, with many examples, is in [3]. But this book, with more than 450 pages, is too long to serve as an introduction to the theory. This article aims to meet that need, with a fairly full description of the theory and a selection of examples [4]. For the sake of brevity, the book will be referred to as “BK”.
The next section describes the origins and motivation for the SP theory. Section 3 introduces the theory. Section 4 and Section 5 fill in a lot of the details, while the following sections describe aspects of the theory and what it can do.

2. Origins and Motivation

The following subsections outline the origins of the SP theory, how it relates to some other research and how it has developed.

2.1. Information Compression

Much of the inspiration for the SP theory is a body of research, pioneered by Fred Attneave [5], Horace Barlow [6,7], and others, showing that several aspects of the workings of brains and nervous systems may be understood in terms of information compression [8].
For example, when we view a scene with two eyes, the image on the retina of the left eye is almost exactly the same as the image on the retina of right eye, but our brains merge the two images into a single percept and thus compress the information [7,9].
More immediately, the theory has grown out of my own research, developing models of the unsupervised learning of a first language, where the importance of information compression became increasingly clear (e.g., [10]. See also [11]).
The theory also draws on principles of “minimum length encoding” pioneered by Ray Solomonoff [12,13] and others. And it has become apparent that several aspects of computing, mathematics and logic may be understood in terms of information compression (BK, Chapters 2 and 10).
At an abstract level, information compression can bring two main benefits:
  • For any given body of information, I, information compression may reduce its size and thus facilitate the storage, processing and transmission of I.
  • Perhaps more important is the close connection between information compression and concepts of prediction and probability (see, for example, [14]). In the SP system, it is the basis for all kinds of inference and for calculations of probabilities.
In animals, we would expect these things to have been favoured by natural selection, because of the competitive advantage they can bring. Notwithstanding the “QWERTY” phenomenon—the dominance of the QWERTY keyboard despite its known inefficiencies—there is reason to believe that information compression, properly applied, may yield comparable advantages in artificial systems.

2.2. The Matching and Unification of Patterns

In the SP theory, the matching and unification of patterns is seen as being closer to the bedrock of information compression than more mathematical techniques such as wavelets or arithmetic coding, and closer to the bedrock of information processing and intelligence than, say, concepts of probability. A working hypothesis in this programme of research is that, by staying close to relatively simple, “primitive”, concepts of matching patterns and unifying them, there is a better chance of cutting through unnecessary complexity and in gaining new insights and better solutions to problems. The mathematical basis of wavelets, arithmetic coding and probabilities may itself be founded on the matching and unification of patterns (BK, Chapter 10).

2.3. Simplification and Integration of Concepts

In accordance with Occam’s Razor, the SP system aims to combine conceptual simplicity with descriptive and explanatory power. Apart from this widely-accepted principle, the drive for simplification and integration of concepts in this research programme has been motivated in part by Allen Newell’s critique [15] of some kinds of research in cognitive science and, in part, by the apparent fragmentation of research in artificial intelligence and mainstream computing, with their myriad of concepts and many specialisms.
In attempting to simplify and integrate ideas, the SP theory belongs in the same tradition as unified theories of cognition, such as Soar [16] and ACT-R [17]—both of them inspired by Allen Newell [15]. Furthermore, it chimes with the resurgence of interest in understanding artificial intelligence as a whole (see, for example [18]) and with research on “natural computation” [19].
Although the SP programme shares some objectives with projects such as the Gödel Machine [20] and “universal artificial intelligence” [21], the approach is very different.

2.4. Transparency in the Representation of Knowledge

In this research, it is assumed that knowledge in the SP system should normally be transparent or comprehensible, much as in the “symbolic” tradition in artificial intelligence (see also, Section 5.2), and distinct from the kind of “sub-symbolic” representation of knowledge that is the rule in, for example, “neural networks” as they are generally conceived in computer science.
As we shall see in Section 7 and elsewhere in this article, SP patterns in the multiple alignment framework may serve to represent a variety of kinds of knowledge, in symbolic forms.

2.5. Development of the Theory

In developing the theory, it was apparent at an early stage that existing systems—such as my models of language learning [11] and systems like Prolog—would need radical re-thinking to meet the goal of simplifying and integrating ideas across a wide area.
The first published version of the SP theory [22] described “some unifying ideas in computing”. Early work on the SP computer model concentrated on developing an improved version of the “dynamic programming” technique for the alignment of two sequences (see BK, Appendix A) as a possible route to modelling human-like flexibility in pattern recognition, analysis of language, and the like.
About 1992, it became apparent that the explanatory range of the theory could be greatly expanded by forming alignments of two, three or more sequences, much as in the “multiple alignment” concept of bioinformatics. That idea was developed and adapted in new versions of the SP model and incorporated in new procedures for unsupervised learning.
Aspects of the theory, with many examples, have been developed in the book [3].

3. Introduction to the SP Theory

The main elements of the SP theory are:
  • The SP theory is conceived as an abstract brain-like system that, in an “input” perspective, may receive “New” information via its senses and store some or all of it in its memory as “Old” information, as illustrated schematically in Figure 1. There is also an “output” perspective, described in Section 4.5.
  • The theory is realised in the form of a computer model, introduced in Section 3.1, below, and described more fully later.
  • All New and Old information is expressed as arrays (patterns) of atomic symbols in one or two dimensions. An example of an SP pattern may be seen in each row in Figure 4. Each symbol can be matched in an all-or-nothing manner with any other symbol. Any meaning that is associated with an atomic symbol or group of symbols must be expressed in the form of other atomic symbols.
  • Each pattern has an associated frequency of occurrence, which may be assigned by the user or derived via the processes for unsupervised learning. The default value for the frequency of any pattern is 1.
  • The system is designed for the unsupervised learning of Old patterns by compression of New patterns [23].
  • An important part of this process is, where possible, the economical (compressed) encoding of New patterns in terms of Old patterns. This may be seen to achieve such things as pattern recognition, parsing or understanding of natural language, or other kinds of interpretation of incoming information in terms of stored knowledge, including several kinds of reasoning.
  • In keeping with the remarks in Section 2.2, compression of information is achieved via the matching and unification (merging) of patterns. In this, there are key roles for the frequency of occurrence of patterns, and their sizes.
  • The concept of multiple alignment, described in Section 4, is a powerful central idea, similar to the concept of multiple alignment in bioinformatics, but with important differences.
  • Owing to the intimate connection, previously mentioned, between information compression and concepts of prediction and probability, it is relatively straightforward for the SP system to calculate probabilities for inferences made by the system and probabilities for parsings, recognition of patterns, and so on (Section 4.4).
  • In developing the theory, I have tried to take advantage of what is known about the psychological and neurophysiological aspects of human perception and cognition and to ensure that the theory is compatible with such knowledge (see Section 14).
Figure 1. Schematic representation of the SP system from an “input” perspective.
Figure 1. Schematic representation of the SP system from an “input” perspective.
Information 04 00283 g001

3.1. The SP Computer Model

The SP theory is realised most fully in the SP70 computer model, with capabilities in the building of multiple alignments and in unsupervised learning. This will be referred to as the SP model, although in some cases examples are from a subset of the model or slightly earlier precursors of it.
The SP model and its precursors have played a key part in the development of the theory:
  • As an antidote to vagueness. As with all computer programs, processes must be defined with sufficient detail to ensure that the program actually works.
  • By providing a convenient means of encoding the simple but important mathematics that underpins the SP theory, and performing relevant calculations, including calculations of probability.
  • By providing a means of seeing quickly the strengths and weaknesses of proposed mechanisms or processes. Many ideas that looked promising have been dropped as a result of this kind of testing.
  • By providing a means of demonstrating what can be achieved with the theory.
The workings of the SP model are described in some detail in BK (Sections 3.9, 3.10, and 9.2) and more briefly in Section 4 and Section 5, below [24].
The two main elements of the models, described in Section 4 and Section 5, are the building of multiple alignments and the unsupervised learning of Old patterns.

3.2. The SP Machine

The SP computer model may be regarded as a first version of the SP machine, an expression of the SP theory and a means for it to be applied.
A useful step forward in the development of the SP theory would be the creation of a high-parallel, open-source version of the SP machine, accessible via the web, and with a good user interface [25]. This would provide a means for researchers to explore what can be done with the system and to improve it. How things may develop is shown schematically in Figure 2.
Figure 2. Schematic representation of the development and application of the proposed SP machine.
Figure 2. Schematic representation of the development and application of the proposed SP machine.
Information 04 00283 g002
The high-parallel search mechanisms in any of the existing internet search engines would probably provide a good foundation for the proposed development.
Further ahead, there may be a case for the creation of new kinds of hardware, dedicated to the building of multiple alignments and other processes in the SP framework (Section 6.13 in [26]).

3.3. Unfinished Business

Like most theories, the SP theory has shortcomings, but it appears that they may be overcome. At present, the most immediate problems are:
  • Processing of information in two or more dimensions. No attempt has yet been made to generalise the SP model to work with patterns in two dimensions, although that appears to be feasible to do, as outlined in BK (Section 13.2.1). As noted in BK (Section 13.2.2), it is possible that information with dimensions higher than two may be encoded in terms of patterns in one or two dimensions, somewhat in the manner of architects’ drawings. A 3D structure may be stitched together from several partially-overlapping 2D views, in much the same way that, in digital photography, a panoramic view may be created from partially-overlapping pictures (Sections 6.1 and 6.2 in [27]).
  • Recognition of perceptual features in speech and visual images. For the SP system to be effective in the processing of speech or visual images, it seems likely that some kind of preliminary processing will be required to identify low-level perceptual features, such as, in the case of speech, phonemes, formant ratios or formant transitions, or, in the case of visual images, edges, angles, colours, luminances or textures. In vision, at least, it seems likely that the SP framework itself will prove relevant, since edges may be seen as zones of non-redundant information between uniform areas containing more redundancy and, likewise, angles may be seen to provide significant information where straight edges, with more redundancy, come together (Section 3 in [27]). As a stop-gap solution, the preliminary processing may be done using existing techniques for the identification of low-level perceptual features (Chapter 13 in [28]).
  • Unsupervised learning. A limitation of the SP computer model as it is now is that it cannot learn intermediate levels of abstraction in grammars (e.g., phrases and clauses), and it cannot learn the kinds of discontinuous dependencies in natural language syntax that are described in Section 8.1 to Section 8.3. I believe these problems are soluble and that solving them will greatly enhance the capabilities of the system for the unsupervised learning of structure in data (Section 5).
  • Processing of numbers. The SP model works with atomic symbols, such as ASCII characters or strings of characters with no intrinsic meaning. In itself, the SP system does not recognise the arithmetic meaning of numbers such as “37” or “652” and will not process them correctly. However, the system has the potential to handle mathematical concepts if it is supplied with patterns representing Peano’s axioms or similar information (BK, Chapter 10). As a stop-gap solution in the SP machine, existing technologies may provide whatever arithmetic processing may be required.

4. The Multiple Alignment Concept

The concept of multiple alignment in the SP theory has been adapted from a similar concept in bioinformatics, where it means a process of arranging, in rows or columns, two or more DNA sequences or amino-acid sequences, so that matching symbols—as many as possible—are aligned orthogonally in columns or rows.
Multiple alignments like these are normally used in the computational analysis of (symbolic representations of) sequences of DNA bases or sequences of amino acid residues as part of the process of elucidating the structure, functions or evolution of the corresponding molecules. An example of this kind of multiple alignment is shown in Figure 3.
Figure 3. A “good” alignment amongst five DNA sequences.
Figure 3. A “good” alignment amongst five DNA sequences.
Information 04 00283 g003
As in bioinformatics, a multiple alignment in the SP system is an arrangement of two or more patterns in rows (or columns), with one pattern in each row (or column) [29]. The main difference between the two concepts is that, in bioinformatics, all sequences have the same status, whereas in the SP theory, the system attempts to create a multiple alignment which enables one New pattern (sometimes more) to be encoded economically in terms of one or more Old patterns. Other differences are described in BK (Section 3.4.1).
In Figure 4, row 0 contains a New pattern representing a sentence: “t h i s b o y l o v e s t h a t g i r l”, while each of rows 1 to 8 contains an Old pattern representing a grammatical rule or a word with grammatical markers. This multiple alignment, which achieves the effect of parsing the sentence in terms of grammatical structures, is the best of several built by the model when it is supplied with the New pattern and a set of Old patterns that includes those shown in the figure and several others as well.
Figure 4. The best multiple alignment found by the SP model with the New pattern “t h i s b o y l o v e s t h a t g i r l” and a set of user-supplied Old patterns representing some of the grammatical forms of English, including words with their grammatical markers.
Figure 4. The best multiple alignment found by the SP model with the New pattern “t h i s b o y l o v e s t h a t g i r l” and a set of user-supplied Old patterns representing some of the grammatical forms of English, including words with their grammatical markers.
Information 04 00283 g004
In this example, and others in this article, “best” means that the multiple alignment in the figure is the one that enables the New pattern to be encoded most economically in terms of the Old patterns, as described in Section 4.1, below.

4.1. Coding and the Evaluation of an Alignment in Terms of Compression

This section describes in outline how multiple alignments are evaluated in the SP model. More detail may be found in BK (Section 3.5).
Each Old pattern in the SP system contains one or more “identification” symbols, or ID-symbols, which, as their name suggests, serve to identify the pattern. Examples of ID-symbols in Figure 4 are “D” and “0” at the beginning of “D 0 t h i s #D” (row 6) and “N” and “1” at the beginning of “N 1 b o y #N” (row 8).
Associated with each type of symbol (where a “type” of symbol is any one of a set of symbols that match each other exactly) is a notional code or bit pattern that serves to distinguish the given type from all the others. This is only notional, because the bit patterns are not actually constructed. All that is needed for the purpose of evaluating multiple alignments is the size of the notional bit pattern associated with each type. This is calculated via the Shannon-Fano-Elias coding scheme (described in [30]), using information about the frequency of occurrence of each Old pattern, so that the shortest codes represent the most frequent symbol types and vice versa [31]. Notice that these bit patterns and their sizes are totally independent of the names for symbols that are used in written accounts like this one: names that are chosen purely for their mnemonic value.
Given a multiple alignment like the one shown in Figure 4, one can derive a code pattern from the multiple alignment in the following way:
(1)
Scan the multiple alignment from left to right looking for columns that contain an ID-symbol by itself, not aligned with any other symbol.
(2)
Copy these symbols into a code pattern in the same order that they appear in the multiple alignment.
The code pattern derived in this way from the multiple alignment shown in Figure 4 is “S 0 1 0 1 0 #S”. This is, in effect, a compressed representation of those symbols in the New pattern that are aligned with Old symbols in the multiple alignment. In this case, the code pattern is a compressed representation of all the symbols in the New pattern, but it often happens that some of the symbols in the New pattern are not matched with any Old symbols and then the code pattern will represent only those New symbols that are aligned with Old symbols.
In the context of natural language processing, it is perhaps more plausible to suppose that the encoding of a sentence is some kind of representation of the meaning of the sentence, instead of a pattern like “S 0 1 0 1 0 #S”. How a meaning may be derived from a sentence via multiple alignment is described in BK (Section 5.7).

4.1.1. Compression Difference and Compression Ratio

Given a code pattern, like “S 0 1 0 1 0 #S”, we may calculate a “compression difference” as:
C D = B N - B E
or a “compression ratio” as:
C R = B N / B E
where B N is the total number of bits in those symbols in the New pattern that are aligned with Old symbols in the alignment and B E is the total number of bits in the symbols in the code pattern, and the number of bits for each symbol is calculated via the Shannon-Fano-Elias scheme, as mentioned above.
C D and C R are each an indication of how effectively the New pattern (or those parts of the New pattern that are aligned with symbols within Old patterns in the alignment) may be compressed in terms of the Old patterns that appear in the given multiple alignment. The C D of a multiple alignment—which has been found to be more useful than C R —may be referred to as the compression score of the multiple alignment.
In each of these equations, B N is calculated as:
B N = i = 1 h C i
where C i is the size of the code for the ith symbol in a sequence, H 1 . . . H h , comprising those symbols within the New pattern that are aligned with Old symbols within the multiple alignment.
B E is calculated as:
B E = i = 1 s C i
where C i is the size of the code for the ith symbol in the sequence of s symbols in the code pattern derived from the multiple alignment.

4.2. The Building of Multiple Alignments

This section describes in outline how the SP model builds multiple alignments. More detail may be found in BK (Section 3.10).
Multiple alignments are built in stages, with pairwise matching and alignment of patterns. At each stage, any partially-constructed multiple alignment may be processed as if it was a basic pattern and carried forward to later stages. This is broadly similar to some programs for the creation of multiple alignments in bioinformatics [32]. At all stages, the aim is to encode New information economically in terms of Old information and to weed out multiple alignments that score poorly in that regard.
The model may create Old patterns for itself, as described in Section 5, but when the formation of multiple alignments is the focus of interest, Old patterns may be supplied by the user. In all cases, New patterns must be supplied by the user.
At each stage of building multiple alignments, the operations are as follows:
(1)
Identify a set of “driving” patterns and a set of “target” patterns. At the beginning, the New pattern is the sole driving pattern, and the Old patterns are the target patterns. In all subsequent stages, the best of the multiple alignments formed so far (in terms of their C D scores) are chosen to be driving patterns, and the target patterns are the Old patterns together with a selection of the best multiple alignments formed so far, including all of those that are driving patterns.
(2)
Compare each driving pattern with each of the target patterns to find full matches and good partial matches between patterns. This is done with a process that is essentially a form of “dynamic programming” [33], somewhat like the WinMerge utility for finding similarities and differences between files [34]. The process is described quite fully in BK (Appendix A) and outlined in Section 4.2.1, below. The main difference between the SP process and others is that the former can deliver several alternative matches between a pair of patterns, while WinMerge and standard methods for finding alignments deliver one “best” result.
(3)
From the best of the matches found in the current stage, create corresponding multiple alignments and add them to the repository of multiple alignments created by the program.
This process of matching driving patterns against target patterns and building multiple alignments is repeated until no more multiple alignments can be found. For the best of the multiple alignments created since the start of processing, probabilities are calculated, as described in Section 4.4.

4.2.1. Finding Good Matches between Patterns

Figure 5 shows with a simple example how the SP model finds good full and partial matches between a “query” string of atomic symbols (alphabetic characters in this example) and a “database” string:
(1)
The query is processed left to right, one symbol at a time.
(2)
Each symbol in the query is, in effect, broadcast to every symbol in the database to make a yes/no match in each case.
(3)
Every positive match (hit) between a symbol from the query and a symbol in the database is recorded in a hit structure, illustrated in the figure.
(4)
If the memory space allocated to the hit structure is exhausted at any time, then the hit structure is purged: the leaf nodes of the tree are sorted in reverse order of their probability values, and each leaf node in the bottom half of the set is extracted from the hit structure, together with all nodes on its path which are not shared with any other path. After the hit structure has been purged, the recording of hits may continue using the space, which has been released.

4.2.2. Noisy Data

Because of the way each model searches for a global optimum in the building of multiple alignments, it does not depend on the presence or absence of any particular feature or combination of features. Up to a point, plausible results may be obtained in the face of errors of omission, commission and substitution in the data. This is illustrated in the two multiple alignments in Figure 6, where the New pattern in row 0 of (b) is the same sentence as in (a) (“t w o k i t t e n s p l a y”), but with the omission of the “w” in “t w o”, the substitution of “m” for “n” in “k i t t e n s” and the addition of “x” within the word “p l a y”. Despite these errors, the best multiple alignment created by the SP model is, as shown in (b), the one that we judge intuitively to be “correct”.
Figure 5. An example to show how the SP model finds good full and partial matches between patterns. A “query” string and a “database” string are shown at the top with the ordinal positions of symbols marked. Sequences of hits between the query and the database are shown in the middle with corresponding values of p n (described in BK, Section A.2). Each node in the hit structure shows the ordinal position of a query symbol and the ordinal position of a matching database symbol. Each path from the root node to a leaf node represents a sequence of hits.
Figure 5. An example to show how the SP model finds good full and partial matches between patterns. A “query” string and a “database” string are shown at the top with the ordinal positions of symbols marked. Sequences of hits between the query and the database are shown in the middle with corresponding values of p n (described in BK, Section A.2). Each node in the hit structure shows the ordinal position of a query symbol and the ordinal position of a matching database symbol. Each path from the root node to a leaf node represents a sequence of hits.
Information 04 00283 g005
Figure 6. (a) The best multiple alignment created by the SP model with a store of Old patterns, like those in rows 1 to 8 (representing grammatical structures, including words) and a New pattern (representing a sentence to be parsed) shown in row 0; (b) as in (a), but with errors of omission, commission and substitution, and with the same set of Old patterns as before. (a) and (b) are reproduced from Figures 1 and 2 in [35], with permission.
Figure 6. (a) The best multiple alignment created by the SP model with a store of Old patterns, like those in rows 1 to 8 (representing grammatical structures, including words) and a New pattern (representing a sentence to be parsed) shown in row 0; (b) as in (a), but with errors of omission, commission and substitution, and with the same set of Old patterns as before. (a) and (b) are reproduced from Figures 1 and 2 in [35], with permission.
Information 04 00283 g006
This kind of ability to cope gracefully with noisy data is very much in keeping with our ability to understand speech in noisy surroundings, to understand written language despite errors and to recognise people, trees, houses and the like, despite fog, snow, falling leaves, or other things that may obstruct our view. In a similar way, it is likely to prove useful in artificial systems for such applications as the processing of natural language and the recognition of patterns.

4.3. Computational Complexity

In considering the matching and unification of patterns, it not hard to see that, for any body of information I, except very small examples, there is a huge number of alternative ways in which patterns may be matched against each other, there will normally be many alternative ways in which patterns may be unified, and exhaustive search is not tractable (BK, Section 2.2.8.4).
However, with the kinds of heuristic techniques that are familiar in other artificial-intelligence applications—reducing the size of the search space by pruning the search tree at appropriate points, and being content with approximate solutions which are not necessarily perfect—this kind of matching becomes quite practical. Much the same can be said about the heuristic techniques used for the building of multiple alignments (Section 4.2) and for unsupervised learning (Section 5.1).
An example of how effective this rough-and-ready approach can be is the way colonies of ants can find reasonably good solutions to the travelling salesman problem via the simple technique of marking their routes with pheromones and choosing routes that are most strongly marked [36].
For the process of building multiple alignments in the SP model, the time complexity in a serial processing environment, with conservative assumptions, has been estimated to be O ( log 2 n × n m ) , where n is the size of the pattern from New (in bits) and m is the sum of the lengths of the patterns in Old (in bits). In a parallel processing environment, the time complexity may approach O ( log 2 n × n ) , depending on how well the parallel processing is applied. In serial and parallel environments, the space complexity has been estimated to be O ( m ) .
Although the data sets used with the current SP model have generally been small—because the main focus has been on the concepts being modelled and not the speed of processing—there is reason to be confident that the models can be scaled up to deal with large data sets because the kind of flexible matching of patterns, which is at the heart of the SP model, is done very fast and with huge volumes of data by all the leading internet search engines. As was suggested in Section 3.2, the relevant processes in any one of those search engines would probably provide a good basis for the creation of a high-parallel version of the SP machine.

4.4. Calculation of Probabilities Associated with Multiple Alignments

As described in BK (Chapter 7), the formation of multiple alignments in the SP framework supports several kinds of probabilistic reasoning. The core idea is that any Old symbol in a multiple alignment that is not aligned with a New symbol represents an inference that may be drawn from the multiple alignment. This section outlines how probabilities for such inferences may be calculated. There is more detail in BK (Section 3.7).

4.4.1. Absolute Probabilities

Any sequence of L symbols, drawn from an alphabet of | A | alphabetic types, represents one point in a set of N points, where N is calculated as:
N = | A | L
If we assume that the sequence is random or nearly so (see BK, Section 3.7.1.1)—which means that the N points are equi-probable or nearly so—the probability of any one point (which represents a sequence of length L) is close to:
p A B S = | A | - L
This equation may be used to calculate the absolute probability of the code pattern that may be derived from any given multiple alignment (as described in Section 4.1). That number may also be regarded as the absolute probability of any inferences that may be drawn from the multiple alignment. In this calculation, L is the sum of all the bits in the symbols of the code pattern, and | A | is 2.
As we shall see (Section 4.4.3), Equation 6 may, with advantage, be generalised by replacing L with a value, L g e n , calculated in a slightly different way.

4.4.2. Relative Probabilities

The absolute probabilities of multiple alignments, calculated as described in the last subsection, are normally very small and not very interesting in themselves. From the standpoint of practical applications, we are normally interested in the relative values of probabilities, calculated as follows.
(1)
For the multiple alignment which has the highest C D (which we shall call the reference multiple alignment), identify the reference set of symbols in New, meaning the symbols from New which are encoded by the multiple alignment.
(2)
Compile a reference set of multiple alignments, which includes the reference multiple alignment and all other multiple alignments (if any), which encode exactly the reference set of symbols from New, neither more nor less.
(3)
Calculate the sum of the values for p A B S in the reference set of multiple alignments:
p A _ S U M = i = 1 i = R p A B S i
where R is the size of the reference set of multiple alignments and p A B S i is the value of p A B S for the ith multiple alignment in the reference set.
(4)
For each multiple alignment in the reference set, calculate its relative probability as:
p R E L i = p A B S i / p A _ S U M
The values of p R E L , calculated as just described, provide an effective means of comparing the multiple alignments in the reference set.

4.4.3. A Generalisation of the Method for Calculating Absolute and Relative Probabilities

The value of L, calculated as described in Section 4.4.1, may be regarded as the informational “cost” of encoding the New symbol or symbols that appear in the multiple alignment, excluding those New symbols that have not appeared in the multiple alignment.
This is OK, but it is somewhat restrictive, because it means that if we want to calculate relative probabilities for two or more multiple alignments, they must all encode the same symbol or symbols from New. We cannot easily compare multiple alignments that encode different New symbols.
The generalisation proposed here is that, in the calculation of absolute probabilities, a new value, L g e n , would be used instead of L. This would be calculated as:
L g e n = L + N n o t
where L is the total number of bits in the symbols in the code patterns (as in Section 4.4.1) and N n o t is the total number of bits in the New symbols that have not appeared in the multiple alignment.
The rationale is that, to encode all the symbols in New, we can use the code pattern to encode those New symbols that do appear in the multiple alignment, and for each of the remaining New symbols, we can simply use its code. The advantage of this scheme is that we can compare any two or more multiple alignments, regardless of the number of New symbols that appear in the multiple alignment.

4.4.4. Relative Probabilities of Patterns and Symbols

It often happens that a given pattern from Old, or a given symbol type within patterns from Old, appears in more than one of the multiple alignments in the reference set. In cases like these, one would expect the relative probability of the pattern or symbol type to be higher than if it appeared in only one multiple alignment. To take account of this kind of situation, the SP model calculates relative probabilities for individual patterns and symbol types in the following way:
(1)
Compile a set of patterns from Old, each of which appears at least once in the reference set of multiple alignments. No single pattern from Old should appear more than once in the set.
(2)
For each pattern, calculate a value for its relative probability as the sum of the p R E L values for the multiple alignments in which it appears. If a pattern appears more than once in a multiple alignment, it is only counted once for that multiple alignment.
(3)
Compile a set of symbol types, which appear anywhere in the patterns identified in step 2.
(4)
For each alphabetic symbol type identified in step 3, calculate its relative probability as the sum of the relative probabilities of the patterns in which it appears. If it appears more than once in a given pattern, it is only counted once.
The foregoing applies only to symbol types, which do not appear in the New. Any symbol type that appears in the New necessarily has a probability of one—because it has been observed, not inferred.

4.5. One System for Both the Analysis and the Production of Information

A potentially useful feature of the SP system is that the processes which serve to analyse or parse a New pattern in terms of Old patterns and to create an economical encoding of the New pattern, may also work in reverse, to recreate the New pattern from its encoding. This is the “output” perspective, mentioned in Section 3.
If the New pattern is the code sequence “S 0 1 0 1 0 #S” (as described in Section 4), and if the Old patterns are the same as were used to create the multiple alignment shown in Figure 4, then the best multiple alignment found by the system is the one shown in Figure 7. This multiple alignment contains the same words as the original sentence (“t h i s b o y l o v e s t h a t g i r l”), in the same order as the original. Readers who are familiar with Prolog will recognise that this process of recreating the original sentence from its encoding is similar in some respects to the way in which an appropriately-constructed Prolog program may be run “backwards”, deriving “data” from “results”.
How is it possible to decompress the compressed code for the original sentence by using information compression? This apparent paradox—decompression by compression—may be resolved by ensuring that, when a code pattern like “S 0 1 0 1 0 #S” is used to recreate the original data, each symbol is treated, at least notionally, as if it contained a few more bits of information than is strictly necessary. That residual redundancy allows the system to recreate the original sentence by the same process of compression as was used to create the original parsing and encoding [37].
This process of creating a relatively large pattern from a relatively small encoding provides a model for the creation of sentences by a person or an artificial system. However, instead of the New pattern being a rather dry code, like “S 0 1 0 1 0 #S”, it would be more plausible if it were some kind of representation of the meaning of the sentence, like that mentioned in Section 4.1. How a sentence may be generated from a representation of meaning is outlined in BK (Section 5.7.1).
Figure 7. The best multiple alignment found by the SP model with the New pattern, “S 0 1 0 1 0 #S”, and the same Old patterns as were used to create the multiple alignment shown in Figure 4.
Figure 7. The best multiple alignment found by the SP model with the New pattern, “S 0 1 0 1 0 #S”, and the same Old patterns as were used to create the multiple alignment shown in Figure 4.
Information 04 00283 g007
Similar principles may apply to other kinds of “output”, such as planning an outing, cooking a meal, and so on.

5. Unsupervised Learning

As was mentioned in Section 2.1, part of the inspiration for the SP theory has been a programme of research developing models of the unsupervised learning of language. But although the SNPR model [38] is quite successful in deriving plausible grammars from samples of English-like artificial language, it has proved to be quite unsuitable as a basis for the SP theory. In order to accommodate other aspects of intelligence, such as pattern recognition, reasoning, and problem solving, it has been necessary to develop an entirely New conceptual framework, with multiple alignment at centre stage.
Therefore, there is now the curious paradox that, while the SP theory is rooted in work on unsupervised learning and that kind of learning has a central role in the theory, the SP model does much the same things as the earlier model and with similar limitations (Section 3.3 and Section 5.1.4). However, I believe that the New conceptual framework has many advantages, that it provides a much sounder footing for further developments, and that with some reorganisation of the learning processes in the SP computer model, its current weaknesses may be overcome (Section 5.1.4).

5.1. Outline of Unsupervised Learning in the SP Model

The outline of the SP model in this section aims to provide sufficient detail for a good intuitive grasp of how it works. A lot more detail may be found in BK (Chapter 9).
In addition to the processes for building multiple alignments, the SP model has processes for deriving Old patterns from multiple alignments, evaluating sets of newly-created Old patterns in terms of their effectiveness for the economical encoding of the New information, and the weeding out low-scoring sets. The system does not merely record statistical information, it uses that information to learn new structures.

5.1.1. Deriving Old Patterns from Multiple Alignments

The process of deriving Old patterns from multiple alignments is illustrated schematically in Figure 8. As was mentioned in Section 3, the SP system is conceived as an abstract brain-like system that, in “input” mode, may receive “New” information via its senses and store some or all of it as “Old” information. Here, we may think of it as the brain of a baby who is listening to what people are saying. Let us imagine that he or she hears someone say “t h a t b o y r u n s” [39]. If the baby has never heard anything similar, then, if it is stored at all, that New information may be stored as a relatively straightforward copy, something like the Old pattern shown in row 1 of the multiple alignment in part (a) of the figure.
Figure 8. (a) A simple multiple alignment from which, in the SP model, Old patterns may be derived; (b) Old patterns derived from the multiple alignment shown in (a).
Figure 8. (a) A simple multiple alignment from which, in the SP model, Old patterns may be derived; (b) Old patterns derived from the multiple alignment shown in (a).
Information 04 00283 g008
Now, let us imagine that the information has been stored and that, at some later stage, the baby hears someone say “t h a t g i r l r u n s”. Then, from that New information and the previously-stored Old pattern, a multiple alignment may be created like the one shown in part (a) of Figure 8. And, by picking out coherent sequences that are either fully matched or not matched at all, four putative words may be extracted: “t h a t”, “g i r l”, “b o y”, and “r u n s”, as shown in the first four patterns in part (b) of the figure. In each newly-created Old pattern, there are additional symbols, such as “B”, “2” and “#B” that are added by the system and which serve to identify the pattern, to mark its boundaries, and to mark its grammatical category or categories.
In addition to these four patterns, a fifth pattern is created, “E 6 B #B C #C D #D #E”, as shown in the figure, that records the sequence, “t h a t ... r u n s”, with the category “C #C” in the middle representing a choice between “b o y” and “g i r l”. Part (b) in the figure is the beginnings of a grammar to describe that kind of phrase.

5.1.2. Evaluating and Selecting Sets of Newly-Created Old Patterns

The example just described shows how Old patterns may be derived from a multiple alignment, but it gives a highly misleading impression of how the SP model actually works. In practice, the program forms many multiple alignments that are much less tidy than the one shown, and it creates many Old patterns that are clearly “wrong”. However, the program contains procedures for evaluating candidate sets of patterns (“grammars”) and weeding out those that score badly in terms of their effectiveness for encoding the New information economically. Out of all the muddle, it can normally abstract one or two “best” grammars, and these are normally ones that appear intuitively to be “correct”, or nearly so. In general, the program can abstract one or more plausible grammars from a sample of English-like artificial language, including words, grammatical categories of words, and sentence structure.
In accordance with the principles of minimum length encoding [12,13], the aim of these processes of sifting and sorting is to minimise ( G + E ) , where G is the size (in bits) of the grammar that is under development and E is the size (in bits) of the New patterns when they have been encoded in terms of the grammar.
For a given grammar comprising patterns, p 1 . . . p g , the value of G is calculated as:
G = i = 1 i = g ( j = 1 j = L i s j )
where L i is the number of symbols in the ith pattern and s j is the encoding cost of the jth symbol in that pattern.
Given that each grammar is derived from a set a 1 . . . a n of multiple alignments (one multiple alignment for each pattern from the New), the value of E for the grammar is calculated as:
E = i = 1 i = n e i
where e i is the size, in bits, of the code string derived from the ith multiple alignment (Section 4.1).
For a given set of patterns from New, a tree of alternative grammars is created with branching occurring wherever there are two or more alternative multiple alignments for a given pattern from New. The tree is grown in stages and pruned periodically to keep it within reasonable bounds. At each stage, grammars with high values for ( G + E ) (which will be referred to as T) are eliminated.

5.1.3. Plotting Values for G, E and T

Figure 9 shows cumulative values for G, E and T as the SP model searches for good grammars for a succession of eight New patterns, each of which represents a sentence. Each point on each of the lower three graphs represents the relevant value (on the scale at the left) from the best grammar found after a given pattern from New has been processed. The graph labelled “O” shows cumulative values on the scale at the left for the succession of New patterns. The graph labelled “ T / O ” shows the amount of compression achieved (on the scale to the right).
Figure 9. Changing values for G, E and T and related variables as learning proceeds, as described in the text.
Figure 9. Changing values for G, E and T and related variables as learning proceeds, as described in the text.
Information 04 00283 g009

5.1.4. Limitations in the SP Model and How They May Be Overcome

As mentioned before (Section 3.3), there are two main weaknesses in the processes for unsupervised learning in the SP model as it is now: the model does not learn intermediate levels in a grammar (phrases or clauses) or discontinuous dependencies of the kind described in Section 8.1 to Section 8.3.
It appears that some reorganisation of the learning processes in the model would solve both problems. What seems to be needed is a tighter focus on the principle that, with appropriately-constructed Old patterns, multiple alignments may be created without the kind of mismatch between patterns that may be seen in Figure 8 (a) (“g i r l” and “b o y” do not match each other), and that any such multiple alignment may be treated as if it was a simple pattern. That reform should facilitate the discovery of structures at multiple levels and the discovery of structures that are discontinuous in the sense that they can bridge intervening structures.

5.1.5. Computational Complexity

As with the building of multiple alignments (Section 4.3), the computational complexity of learning in the SP model is kept under control by pruning the search tree at appropriate points, aiming to discover grammars that are reasonably good and not necessarily perfect.
In a serial processing environment, the time complexity of learning in the SP model has been estimated to be O ( N 2 ) , where N is the number of patterns in New. In a parallel processing environment, the time complexity may approach O ( N ) , depending on how well the parallel processing is applied. In serial or parallel environments, the space complexity has been estimated to be O ( N ) .

5.2. The Discovery of Natural Structures Via Information Compression (DONSVIC)

In our dealings with the world, certain kinds of structure appear to be more prominent and useful than others: in natural languages, there are words, phrase and sentences; we understand the visual and tactile worlds to be composed of discrete “objects”; and conceptually, we recognise classes of things, like “person”, “house”, “tree”, and so on.
It appears that these “natural” kinds of structure are significant in our thinking because they provide a means of compressing sensory information, and that compression of information provides the key to their learning or discovery. At first sight, this looks like nonsense, because popular programs for compression of information, such as those based on the Lempel-Ziv-Welch (LZW) algorithm, or programs for JPEG compression of images, seem not to recognise anything resembling words, objects or classes. However, those programs are designed to work fast on low-powered computers. With other programs that are designed to be relatively thorough in their compression of information, natural structures can be revealed:
  • Figure 10 shows part of a parsing of an unsegmented sample of natural language text created by the MK10 program [40] using only the information in the sample itself and without any prior dictionary or other knowledge about the structure of language. Although all spaces and punctuation had been removed from the sample, the program does reasonably well in revealing the word structure of the text. Statistical tests confirm that it performs much better than chance.
  • The same program does quite well—significantly better than chance—in revealing phrase structures in natural language texts that have been prepared, as before, without spaces or punctuation—but with each word replaced by a symbol for its grammatical category [41]. Although that replacement was done by a person trained in linguistic analysis, the discovery of phrase structure in the sample is done by the program, without assistance.
  • The SNPR program for grammar discovery [38] can, without supervision, derive a plausible grammar from an unsegmented sample of English-like artificial language, including the discovery of words, of grammatical categories of words, and the structure of sentences.
  • In a similar way, with samples of English-like artificial languages, the SP model has demonstrated an ability to learn plausible structures, including words, grammatical categories of words and the structure of sentences.
It seems likely that the principles that have been outlined in this subsection may be applied not only to the discovery of words, phrases and grammars in language-like data, but also to such things as the discovery of objects in images [27] and classes of entity in all kinds of data. These principles may be characterised as the discovery of natural structures via information compression, or “DONSVIC” for short.
Figure 10. Part of a parsing created by program MK10 [40] from a 10,000 letter sample of English (book 8A of the Ladybird Reading Series) with all spaces and punctuation removed. The program derived this parsing from the sample alone, without any prior dictionary or other knowledge of the structure of English. Reproduced from Figure 7.3 in [10], with permission.
Figure 10. Part of a parsing created by program MK10 [40] from a 10,000 letter sample of English (book 8A of the Ladybird Reading Series) with all spaces and punctuation removed. The program derived this parsing from the sample alone, without any prior dictionary or other knowledge of the structure of English. Reproduced from Figure 7.3 in [10], with permission.
Information 04 00283 g010

5.3. Generalisation, the Correction of Overgeneralisations and Learning from Noisy Data

Issues that arise in the learning of a first language, and probably in other kinds of learning, are illustrated in Figure 11:
  • Given that we learn from a finite sample [42], represented by the smallest envelope in the figure, how do we generalise from that finite sample to a knowledge of the language corresponding to the middle-sized envelope, without overgeneralising into the region between the middle envelope and the outer one?
  • How do we learn a “correct” version of our native language despite what is marked in the figure as “dirty data” (sentences that are not complete, false starts, words that are mispronounced, and more)?
One possible answer is that mistakes are corrected by parents, teachers and others. However, the weight of evidence is that children can learn their first language without that kind of assistance [43].
Figure 11. Categories of utterances involved in the learning of a first language, L. In ascending order size, they are: the finite sample of utterances from which a child learns; the (infinite) set of utterances in L; and the (infinite) set of all possible utterances. Adapted from Figure 7.1 in [10], with permission.
Figure 11. Categories of utterances involved in the learning of a first language, L. In ascending order size, they are: the finite sample of utterances from which a child learns; the (infinite) set of utterances in L; and the (infinite) set of all possible utterances. Adapted from Figure 7.1 in [10], with permission.
Information 04 00283 g011
A better answer is the principle of minimum length encoding (described in its essentials in Section 5.1.2):
  • As a general rule, the greatest reductions in ( G + E ) are achieved with grammars that represent moderate levels of generalisation, neither too little nor too much. In practice, the SNPR program, which is designed to minimise ( G + E ) , has been shown to produce plausible generalisations, without over-generalising [38].
  • Any particular error is, by its nature, rare, and so, in the search for useful patterns (which, other things being equal, are the more frequently-occurring ones), it is discarded from the grammar along with other “bad” structures [44]. In the case of lossless compression, errors in any given body of data, I, would be retained in the encoding of I. However, with learning, it is normally the grammar and not the encoding that is the focus of interest. In practice, the MK10 and SNPR programs have been found to be quite insensitive to errors (of omission, addition or substitution) in their data, much as in the building of multiple alignments (Section 4.2.2).

5.4. One-Trial Learning and Its Implications

In many theories of learning [45], the process is seen as gradual: behaviour is progressively shaped by rewards or punishments or other kinds of experience.
However, any theory of learning in which the process is necessarily gradual is out of step with our ordinary experience that we can and do learn things from a single experience, especially if that single experience is very significant for us (BK, Section 11.4.4.1).
In the SP theory, one-trial learning is accommodated in the way the system can store New information directly. And the gradual nature of, for example, language learning, may be explained by the complexity of the process of sifting and sorting the many alternative sets of candidate patterns to find one or more sets that are good in terms of information compression (BK, Section 11.4.4.2).

6. Computing, Mathematics and Logic

Drawing mainly on BK (Chapters 4 to 11), this and the following sections describe, with a selection of examples, how the SP theory relates to several areas in artificial intelligence, mainstream computing, and human perception and cognition.
In BK (Chapter 4), I have argued that the SP system is equivalent to a universal Turing machine [46,47], in the sense that anything that may be computed with a Turing machine may, in principle, also be computed with an SP machine. The “in principle” qualification is necessary, because the SP theory is still not fully mature, and there are still some weaknesses in the SP computer model. The gist of the argument is that the operation of a post canonical system [48] may be understood in terms of the SP theory, and since it is accepted that the post canonical system is equivalent to the Turing machine (as a computational system), the Turing machine may also be understood in terms of the SP theory.
The key differences between the SP theory and earlier theories of computing are that the SP theory has a lot more to say about the nature of intelligence than earlier theories, that the theory is founded on principles of information compression via the matching and unification of patterns (“computing as compression”), and that it includes mechanisms for building multiple alignments and for heuristic search that are not present in earlier models.

6.1. Conventional Computing Systems

In conventional computing systems, compression of information may be seen in the matching of patterns with at least implicit unification of patterns that match each other—processes that appear in a variety of guises (BK, Chapter 2). And three basic techniques for the compression of information—chunking-with-codes, schema-plus-correction and run-length coding—may be seen in various forms in the organisation of computer programs (ibid.).

6.2. Mathematics and Logic

In a similar way, several structures and processes in mathematics and logic may be interpreted in terms of information compression via the matching and unification of patterns and the compression techniques just mentioned (BK, Chapter 10). For example: multiplication (as repeated addition) and exponentiation (as repeated multiplication) may be seen as examples of run-length coding; a function with parameters may be seen as an example of schema-plus-correction; the chunking-with-codes technique may be seen in the organisation of number systems; and so on.

6.3. Computing and Probabilities

As we have seen, the SP system is fundamentally probabilistic. If it is indeed Turing-equivalent, as suggested above, and if the Turing machine is regarded as a definition of “computing”, then we may conclude that computing is fundamentally probabilistic. That may seem like a strange conclusion in view of the clockwork certainties that we associate with the operation of ordinary computers and the workings of mathematics and logic. There are at least three answers to that apparent contradiction:
  • It appears that computing, mathematics and logic are more probabilistic than our ordinary experience of them might suggest. Gregory Chaitin has written: “I have recently been able to take a further step along the path laid out by Gödel and Turing. By translating a particular computer program into an algebraic equation of a type that was familiar even to the ancient Greeks, I have shown that there is randomness in the branch of pure mathematics known as number theory. My work indicates that—to borrow Einsteins metaphor—God sometimes plays dice with whole numbers.” (p. 80 in [49] ).
  • The SP system may imitate the clockwork nature of ordinary computers by delivering probabilities of 0 and 1. This can happen with certain kinds of data, or tight constraints on the process of searching the abstract space of alternative matches, or both those things.
  • It seems likely that the all-or-nothing character of conventional computers has its origins in the low computational power of early computers. In those days, it was necessary to apply tight constraints on the process of searching for matches between patterns. Otherwise, the computational demands would have been overwhelming. Similar things may be said about the origins of mathematics and logic, which have been developed for centuries without the benefit of any computational machine, except very simple and low-powered devices. Now that it is technically feasible to apply large amounts of computational power, constraints on searching may be relaxed.

7. Representation of Knowledge

Within the multiple alignment framework (Section 4), SP patterns may serve to represent several kinds of knowledge, including grammars for natural languages (Section 8; BK, Chapter 5), ontologies ([50]; BK, Section 13.4.3), class hierarchies with inheritance of attributes, including cross-classification or multiple inheritance (BK, Section 6.4), part-whole hierarchies and their integration with class-inclusion hierarchies (Section 9.1; BK, Section 6.4), decision networks and trees (BK, Section 7.5), relational tuples ([35]; BK, Section 13.4.6.1), if-then rules (BK, Section 7.6), associations of medical signs and symptoms [51], causal relations (BK, Section 7.9), and concepts in mathematics and logic, such as “function”, “variable”, “value”, “set” and “type definition” (BK, Chapter 10).
The use of one simple format for the representation of knowledge facilitates the seamless integration of different kinds of knowledge.

8. Natural Language Processing

One of the main strengths of the SP system is in natural language processing (BK, Chapter 5):
  • As illustrated in Figure 4, Figure 6 and Figure 7, grammatical rules, including words and their grammatical markers, may be represented with SP patterns.
  • Both the parsing and production of natural language may be modelled via the building of multiple alignments (Section 4.5; BK, Section 5.7).
  • The system can accommodate syntactic ambiguities in language (BK, Section 5.2) and also recursive structures (BK, Section 5.3).
  • The framework provides a simple, but effective means of representing discontinuous dependencies in syntax (Section 8.1 to Section 8.3, below; BK, Sections 5.4 to 5.6).
  • The system may also model non-syntactic “semantic” structures, such as class-inclusion hierarchies and part-whole hierarchies (Section 9.1).
  • Because there is one simple format for different kinds of knowledge, the system facilitates the seamless integration of syntax with semantics (BK, Section 5.7).
  • The system is robust in the face of errors of omission, commission or substitution in data (Section 4.2.2 and Section 5.3).
  • The importance of context in the processing of language [52] is accommodated in the way the system searches for a global best match for patterns: any pattern or partial pattern may be a context for any other.

8.1. Discontinuous Dependencies in Syntax

The way in which the SP system can record discontinuous dependencies in syntax may be seen in both of the two parsings in Figure 6. The pattern in row 8 of each multiple alignment records the syntactic dependency between the plural noun phrase (“t w o k i t t e n s”), which is the subject of the sentence—marked with “Np”—and the plural verb phrase (“p l a y”)—marked with “Vp”—which belongs with it.
This kind of dependency is discontinuous, because it can bridge arbitrarily large amounts of intervening structure, such as, for example, “from the West” in a sentence, like “Winds from the West are strong”.
This method of marking discontinuous dependencies can accommodate overlapping dependencies, such as number dependencies and gender dependencies in languages like French (BK, Section 5.4). It also provides a means of encoding the interesting system of overlapping and interlocking dependencies in English auxiliary verbs, described by Noam Chomsky in Syntactic Structures [53].
In that book, the structure of English auxiliary verbs is part of Chomsky’s evidence in support of Transformational Grammar. Despite the elegance and persuasiveness of his arguments, it turns out that the structure of English auxiliary verbs may be described with non-transformational rules in, for example, Definite Clause Grammars [54], and also in the SP system, as outlined in the subsections that follow.

8.2. Two Quasi-Independent Patterns of Constraint in English Auxiliary Verbs

In English, the syntax for main verbs and the auxiliary verbs which may accompany them follows two quasi-independent patterns of constraint which interact in an interesting way.
The primary constraints may be expressed with this sequence of symbols:
M H B B V,
which should be interpreted in the following way:
  • Each letter represents a category for a single word:
    M” stands for “modal” verbs, like “will”, “can”, “would”, etc.
    H” stands for one of the various forms of the verb, “to have”.
    Each of the two instances of “B” stands for one of the various forms of the verb, “to be”.
    V” stands for the main verb, which can be any verb, except a modal verb (unless the modal verb is used by itself).
  • The words occur in the order shown, but any of the words may be omitted.
  • Questions of “standard” form follow exactly the same pattern as statements, except that the first verb, whatever it happens to be (“M”, “H”, the first “B”, the second “B” or “V”), precedes the subject noun phrase instead of following it.
Here are two examples of the primary pattern with all of the words included:
It will have been being washed
M  H  B  B  V
 
Will it have been being washed?
M   H   B   B   V
The secondary constraints are these:
  • Apart from the modals, which always have the same form, the first verb in the sequence, whatever it happens to be (“H”, the first “B”, the second “B” or “V”), always has a “finite” form (the form it would take if it were used by itself with the subject).
  • If an “M” auxiliary verb is chosen, then whatever follows it (“H”, first “B”, second “B” or “V”) must have an “infinitive” form (i.e., the “standard” form of the verb as it occurs in the context, “to ...”, but without the word “to”).
  • If an “H” auxiliary verb is chosen, then whatever follows it (the first “B”, the second “B” or “V”) must have a past tense form, such as “been”, “seen”, “gone”, “slept”, “wanted”, etc. In Chomsky’s Syntactic Structures [53], these forms were characterised as en forms, and the same convention has been adopted here.
  • If the first of the two “B” auxiliary verbs is chosen, then whatever follows it (the second “B” or “V”) must have an ing form, e.g., “singing”, “eating”, “having”, “being”, etc.
  • If the second of the two “B” auxiliary verbs is chosen, then whatever follows it (only the main verb is possible now) must have a past tense form (marked with en, as above).
  • The constraints apply to questions in exactly the same way as they do to statements.
Figure 12 shows a selection of examples with the dependencies marked.
Figure 12. A selection of example sentences in English with markings of dependencies between the verbs. Key:M” = modal, “H” = forms of the verb “have”, “B1” = first instance of a form of the verb “be”, “B2” = second instance of a form of the verb “be”, “V” = main verb, “fin” = a finite form, “inf” = an infinitive form, “en” = a past tense form, “ing” = a verb ending in “ing”.
Figure 12. A selection of example sentences in English with markings of dependencies between the verbs. Key:M” = modal, “H” = forms of the verb “have”, “B1” = first instance of a form of the verb “be”, “B2” = second instance of a form of the verb “be”, “V” = main verb, “fin” = a finite form, “inf” = an infinitive form, “en” = a past tense form, “ing” = a verb ending in “ing”.
Information 04 00283 g012

8.3. Multiple Alignments and English Auxiliary Verbs

Without reproducing all the detail in BK (Section 5.5), we can see from Figure 13 and Figure 14 how the primary and secondary constraints may be applied in the multiple alignment framework.
Figure 13. The best alignment found by the SP model with “it is wash ed” in New (column 0) and a user-supplied grammar in Old.
Figure 13. The best alignment found by the SP model with “it is wash ed” in New (column 0) and a user-supplied grammar in Old.
Information 04 00283 g013
In each figure, the sentence to be analysed is shown as a New pattern in column 0. The primary constraints are applied via the matching of symbols in Old patterns in the remaining columns, with a consequent interlocking of the patterns, so that they recognise sentences of the form, “M H B B V”, with options as described above.
In Figure 13 [55], the secondary constraints apply as follows:
  • The first verb, “is”, is marked as having the finite form (with the symbol “FIN” in columns 5 and 7). The same word is also marked as being a form of the verb “to be” (with the symbol “B” in columns 4, 5 and 6). Because of its position in the parsing, we know that it is an instance of the second “B” in the sequence “M H B B V”.
  • The second verb, “washed”, is marked as being in the en category (with the symbol “EN” in columns 1 and 4).
  • That a verb corresponding to the second instance of “B” must be followed by an en kind of verb is expressed by the pattern, “B XV EN”, in column 4.
Figure 14. The best alignment found by the SP model with “will it have be en brok en” in New (column 0) and the same grammar in Old as was used for the example in Figure 13.
Figure 14. The best alignment found by the SP model with “will it have be en brok en” in New (column 0) and the same grammar in Old as was used for the example in Figure 13.
Information 04 00283 g014
In Figure 14, the secondary constraints apply like this:
  • The first verb, “will”, is marked as modal (with “M” in columns 7, 8 and 14).
  • The second verb, “have”, is marked as having the infinitive form (with “INF” in columns 11 and 14), and it is also marked as a form of the verb, “to have” (with “H” in columns 11, 12, and 15).
  • That a modal verb must be followed by a verb of infinitive form is marked with the pattern, “M INF”, in column 14.
  • The third verb, “been”, is marked as being a form of the verb, “to be” (with “B” in columns 2, 3 and 16). Because of its position in the parsing, we know that it is an instance of the second “B” in the sequence, “M H B B V”. This verb is also marked as belonging to the en category (with “EN” in columns 2 and 15).
  • That an “H” verb must be followed by an “EN” verb is marked with the pattern, “H EN”, in column 15.
  • The fourth verb, “broken”, is marked as being in the en category (with “EN” in columns 4 and 16).
  • That a “B” verb (second instance) must be followed by an “EN” verb is marked with the pattern, “B XV EN”, in column 16.

9. Pattern Recognition

The system also has some useful features as a framework for pattern recognition (BK, Chapter 6):
  • It can model pattern recognition at multiple levels of abstraction, as described in BK (Section 6.4.1), and with the integration of class-inclusion relations with part-whole hierarchies (Section 9.1; BK, Section 6.4.1).
  • The SP system can accommodate “family resemblance” or polythetic categories, meaning that recognition does not depend on the presence absence of any particular feature or combination of features. This is because there can be alternatives at any or all locations in a pattern and, also, because of the way the system can tolerate errors in data (next point).
  • The system is robust in the face of errors of omission, commission or substitution in data (Section 4.2.2).
  • The system facilitates the seamless integration of pattern recognition with other aspects of intelligence: reasoning, learning, problem solving, and so on.
  • A probability may be calculated for any given identification, classification or associated inference (Section 4.4).
  • As in the processing of natural language (Section 8), the importance of context in recognition [56] is accommodated in the way the system searches for a global best match for patterns. As before, any pattern or partial pattern may be a context for any other.
One area of application is medical diagnosis, viewed as pattern recognition [51]. There is also potential to assist in the understanding of natural vision and in the development of computer vision, as discussed in [27].

9.1. Class Hierarchies, Part-Whole Hierarchies and Their Integration

A strength of the multiple alignment concept is that it provides a simple but effective vehicle for the representation and processing of class-inclusion hierarchies, part-whole hierarchies and their integration.
Figure 15 shows the best multiple alignment found by the SP model with the New pattern, “white-bib eats furry purrs” (column 0), representing some features of an unknown creature, and with a set of Old patterns representing different classes of animal, at varying levels of abstraction. From this multiple alignment, we may conclude that the unknown entity is an animal (column 1), a mammal (column 2), a cat (column 3), and the specific individual “Tibs” (column 4).
The framework also provides for the representation of heterarchies or cross classification: a given entity, such as “Jane” (or a class of entities), may belong in two or more higher-level classes that are not themselves hierarchically related, such as “woman” and “doctor” [57].
Figure 15. The best multiple alignment found by the SP model, with the New pattern “white-bib eats furry purrs” and a set of Old patterns representing different categories of animal and their attributes.
Figure 15. The best multiple alignment found by the SP model, with the New pattern “white-bib eats furry purrs” and a set of Old patterns representing different categories of animal and their attributes.
Information 04 00283 g015
The way that class-inclusion relations and part-whole relations may be combined in one multiple alignment is illustrated in Figure 16. Here, some features of an unknown plant are expressed as a set of New patterns, shown in column 0: the plant has chlorophyll, the stem is hairy, it has yellow petals, and so on.
Figure 16. The best multiple alignment created by the SP model, with a set of New patterns (in column 0) that describe some features of an unknown plant and a set of Old patterns, including those shown in columns 1 to 6, that describe different categories of plant, with their parts and sub-parts and other attributes.
Figure 16. The best multiple alignment created by the SP model, with a set of New patterns (in column 0) that describe some features of an unknown plant and a set of Old patterns, including those shown in columns 1 to 6, that describe different categories of plant, with their parts and sub-parts and other attributes.
Information 04 00283 g016
From this multiple alignment, we can see that the unknown plant is most likely to be the Meadow Buttercup, Ranunculus acris, as shown in column 1. As such, it belongs in the genus Ranunculus (column 6), the family Ranunculaceae (column 5), the order Ranunculales (column 4), the class Angiospermae (column 3), and the phylum Plants (column 2).
Each of these higher-level classifications contributes information about attributes of the plant and its division into parts and sub-parts. For example, as a member of the class Angiospermae (column 3), the plant has a shoot and roots, with the shoot divided into stem, leaves and flowers; as a member of the family Ranunculaceae (column 5), the plant has flowers that are “regular”, with all parts “free”; as a member of the phylum Plants (column 2), the buttercup has chlorophyll and creates its own food by photosynthesis; and so on.

9.2. Inference and Inheritance

In the example just described, we can infer from the multiple alignment, very directly, that the plant, which has been provisionally identified as the Meadow Buttercup, performs photosynthesis (column 2), has five petals (column 6), is poisonous (column 5), and so on. As in other object-oriented systems, the first of these attributes has been “inherited” from the class “Plants”, the second from the class Ranunculus and the third from the class Ranunculaceae. These kinds of inference illustrate the close connection, often noted, between pattern recognition and inferential reasoning (see also [58]).

10. Probabilistic Reasoning

The SP system can model several kinds of reasoning including inheritance of attributes (as just described), one-step “deductive” reasoning, abductive reasoning, reasoning with probabilistic decision networks and decision trees, reasoning with “rules”, nonmonotonic reasoning and reasoning with default values, reasoning in Bayesian networks (including “explaining away”), causal diagnosis, and reasoning that is not supported by evidence (BK, Chapter 7).
Since these several kinds of reasoning all flow from one computational framework (multiple alignment), they may be seen as aspects of one process, working individually or together without awkward boundaries.
Plausible lines of reasoning may be achieved, even when relevant information is incomplete.
Probabilities of inferences may be calculated, including extreme values (0 or 1) in the case of logic-like “deductions”.
A selection of examples is described in the following subsections.

10.1. Nonmonotonic Reasoning and Reasoning with Default Values

Conventional deductive reasoning is monotonic, because deductions made on the strength of current knowledge cannot be invalidated by new knowledge: the conclusion that “Socrates is mortal”, deduced from “All humans are mortal” and “Socrates is human”, remains true for all time, regardless of anything we learn later. By contrast, the inference that “Tweety can probably fly” from the propositions that “Most birds fly” and “Tweety is a bird” is nonmonotonic because it may be changed if, for example, we learn that Tweety is a penguin.
This section presents some examples that show how the SP system can accommodate nonmonotonic reasoning.

10.1.1. Typically, Birds Fly

The idea that (all) birds can fly may be expressed with an SP pattern, like “Bd bird name #name canfly warm-blooded wings feathers ... #Bd”. This, of course, is an oversimplification of the real-world facts, because, while it true that the majority of birds fly, we know that there are also flightless birds, like ostriches, penguins and kiwis.
In order to model these facts more closely, we need to modify the pattern that describes birds to be something like this: “Bd bird name #name f #f warm-blooded wings feathers ... #Bd. And, to our database of Old patterns, we need to add patterns like this:
Default Bd f canfly #f #Bd #Default
P penguin Bd f cannotfly #f #Bd ... #P
O ostrich Bd f cannotfly #f #Bd ... #O.
Now, the pair of symbols, “f #f” in “Bd bird name #name f #f warm-blooded wings feathers ... #Bd”, functions like a “variable” that may take the value, “canfly”, if a given class of birds can fly and “cannotfly” when a type of bird cannot fly. The pattern “P penguin Bd f cannotfly #f #Bd ... #P” shows that penguins cannot fly and, likewise, the pattern “O ostrich Bd f cannotfly #f #Bd ... #O” shows that ostriches cannot fly. The pattern “Default Bd f canfly #f #Bd #Default”, which has a substantially higher frequency than the other two patterns, represents the default value for the variable which is “canfly”. Notice that all three of these patterns contains the pair of symbols “Bd ... #Bd” showing that the corresponding classes are all subclasses of birds.

10.1.2. Tweety is a Bird, So, Probably, Tweety Can Fly

When the SP model is run with “bird Tweety” in New and the same patterns in Old as before, modified as just described, the three best multiple alignments found are those shown in Figure 17 to Figure 19.
The first multiple alignment tells us that, with a relative probability of 0.66, Tweety may be the typical kind of bird that can fly. The second multiple alignment tells us that, with a relative probability of 0.22, Tweety might be an ostrich and, as such, he or she would not be able to fly. Likewise, the third multiple alignment tells us that, with a relative probability of 0.12, Tweety might be a penguin and would not be able to fly. The values for probabilities in this simple example are derived from guestimated frequencies that are, almost certainly, not ornithologically correct.

10.1.3. Tweety Is a Penguin, So Tweety Cannot Fly

Figure 20 shows the best multiple alignment found by the SP model when it is run again, with “penguin Tweety” in New instead of “bird Tweety”. This time, there is only one multiple alignment in the reference set, and its relative probability is 1.0. Correspondingly, all inferences that we can draw from this multiple alignment have a probability of 1.0. In particular, we can be confident, within the limits of the available knowledge, that Tweety cannot fly.
In a similar way, if Tweety were an ostrich, we would be able to say with confidence (p = 1.0) that he or she would not be able to fly.
Figure 17. The first of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.66.
Figure 17. The first of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.66.
Information 04 00283 g017

10.2. Reasoning in Bayesian Networks, Including “Explaining Away”

A Bayesian network is a directed, acyclic graph, like the one shown in Figure 21, below, where each node has zero or more “inputs” (connections with nodes that can influence the given node) and one or more “outputs” (connections to other nodes that the given node can influence).
Each node contains a set of conditional probability values, each one the probability of a given output value for a given input value or combination of input values. With this information, conditional probabilities of alternative outputs for any node may be computed for any given combination of inputs. By combining these calculations for sequences of nodes, probabilities may be propagated through the network from one or more “start” nodes to one or more “finishing” nodes.
This section describes how the SP system may perform that kind of probabilistic reasoning and some advantages compared with Bayesian networks.
Figure 18. The second of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.22.
Figure 18. The second of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.22.
Information 04 00283 g018
Judea Pearl (p. 7 in [59] ) describes the phenomenon of “explaining away” like this: “If A implies B, C implies B, and B is true, then finding that C is true makes A less credible. In other words, finding a second explanation for an item of data makes the first explanation less credible.” (his italics). Here is an example:
Normally an alarm sound alerts us to the possibility of a burglary. If somebody calls you at the office and tells you that your alarm went off, you will surely rush home in a hurry, even though there could be other causes for the alarm sound. If you hear a radio announcement that there was an earthquake nearby and if the last false alarm you recall was triggered by an earthquake, then your certainty of a burglary will diminish.
(pp. 8–9 in [59] )
Figure 19. The last of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.12.
Figure 19. The last of the three best multiple alignments formed by the SP model with “bird Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 0.12.
Information 04 00283 g019
The causal relationships in the example just described may be captured in a Bayesian network, like the one shown in Figure 21.
Pearl argues that, with appropriate values for conditional probabilities, the phenomenon of “explaining away” can be explained in terms of this network (representing the case where there is a radio announcement of an earthquake) compared with the same network without the node for “radio announcement” (representing the situation where there is no radio announcement of an earthquake).
Figure 20. The best multiple alignment formed by the SP model with “penguin Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 1.0.
Figure 20. The best multiple alignment formed by the SP model with “penguin Tweety” in New and patterns in Old, as described in the text. The relative probability of this multiple alignment is 1.0.
Information 04 00283 g020
Figure 21. A Bayesian network representing causal relationships discussed in the text. In this diagram, “Phone call” means “a phone call about the alarm going off” and “Radio announcement” means “a radio announcement about an earthquake”.
Figure 21. A Bayesian network representing causal relationships discussed in the text. In this diagram, “Phone call” means “a phone call about the alarm going off” and “Radio announcement” means “a radio announcement about an earthquake”.
Information 04 00283 g021

10.2.1. Representing Contingencies with Patterns and Frequencies

To see how this phenomenon may be understood in terms of the SP theory, consider, first, the set of patterns shown in Figure 22, which are to be stored in Old. The patterns in the figure show events which occur together in some notional sample of the “world” together with their frequencies of occurrence in the sample.
As with other knowledge-based systems, we shall assume that the “closed-world” assumption applies, so that the absence of any pattern may be taken to mean that the corresponding combination of events did not occur in the period when observations were made [60].
Figure 22. A set of patterns to be stored in Old in an example of “explaining away”. The number in brackets after each pattern is the notional frequency of occurrence of the pattern. The symbol, “phone_alarm_call”, is intended to represent a phone call conveying news that the alarm sounded; “radio_earthquake_announcement” represents an announcement on the radio that there has been an earthquake. The symbols “e1” and “e2” represent other contexts for “earthquake” besides the contexts “alarm” and “radio_earthquake_announcement”.
Figure 22. A set of patterns to be stored in Old in an example of “explaining away”. The number in brackets after each pattern is the notional frequency of occurrence of the pattern. The symbol, “phone_alarm_call”, is intended to represent a phone call conveying news that the alarm sounded; “radio_earthquake_announcement” represents an announcement on the radio that there has been an earthquake. The symbols “e1” and “e2” represent other contexts for “earthquake” besides the contexts “alarm” and “radio_earthquake_announcement”.
Information 04 00283 g022
The first pattern (“burglary alarm”) shows that there were 1,000 occasions when there was a burglary and the alarm went off, and the second pattern (“earthquake alarm”) shows just 20 occasions when there was an earthquake and the alarm went off (presumably triggered by the earthquake). Thus, we have assumed that, as triggers for the alarm, burglaries are much more common than earthquakes.
Since there is no pattern showing that the alarm sounded when there was a burglary and an earthquake at the same time, we may assume, via the closed-world assumption, that nothing like that happened during the sampling period.
The third pattern (“alarm phone_alarm_call”) shows that, out of the 1,020 cases when the alarm went off, there were 980 cases where a phone call about the alarm was made. Since there is no pattern showing phone calls about the alarm in any other context, the closed-world assumption allows us to assume that there were no false positives (e.g., hoaxes)—phone calls about the alarm when no alarm had sounded.
The fourth pattern (“earthquake radio_earthquake_announcement”)
shows that, in the sampling period, there were 40 occasions when there was an earthquake with an announcement about it on the radio. And the fifth pattern (“e1 earthquake e2”) shows that an earthquake has occurred on 40 occasions in contexts where the alarm did not ring and there was no radio announcement [61].
As before, the absence of patterns, like “earthquake alarm radio_earthquake_announcement”, representing cases where an earthquake triggers the alarm and also leads to a radio announcement, allows us to assume via the closed-world assumption that cases of that kind have not occurred in the sampling period.

10.2.2. Approximating the Temporal Order of Events

In these patterns and in the multiple alignments shown below, the left-to-right order of symbols may be regarded as an approximation to the order of events in time. Thus, in the first two patterns, events that can trigger an alarm precede the sounding of the alarm. Likewise, in the third pattern, “alarm” (meaning that the alarm has sounded) precedes “phone_alarm_call” (a phone call to say the alarm has sounded). A single dimension can only approximate the order of events in time, because it cannot represent events that overlap in time or which occur simultaneously. However, this kind of approximation has little or no bearing on the points to be illustrated here.

10.2.3. Other Considerations

Other points relating to the patterns shown in Figure 22 include:
  • No attempt has been made to represent the idea that “the last false alarm you recall was triggered by an earthquake” (p. 9 in [59]). At some stage in the development of the SP system, there will be a need to take account of recency (BK, Section 13.2.6).
  • With these imaginary frequency values, it has been assumed that burglaries (with a total frequency of occurrence of 1,160) are much more common than earthquakes (with a total frequency of 100). As we shall see, this difference reinforces the belief that there has been a burglary when it is known that the alarm has gone off (but without additional knowledge of an earthquake).
  • In accordance with Pearl’s example (p. 49 in [59]) (but contrary to the phenomenon of looting during earthquakes), it has been assumed that earthquakes and burglaries are independent. If there was some association between them, then, in accordance with the closed-world assumption, there should be a pattern in Figure 22 representing the association.

10.2.4. Formation of Alignments: The Burglar Alarm has Sounded

Receiving a phone call to say that the burglar alarm at one’s house has gone off may be represented by placing the symbol, “phone_alarm_call”, in New. Figure 23 shows, at the top, the best multiple alignment formed by the SP model in this case, with the patterns from Figure 22 in Old. The other two multiple alignments in the reference set are shown below the best multiple alignment, in order of C D value and relative probability. The actual values for C D and relative probability are given in the caption to Figure 23.
The unmatched Old symbols in these multiple alignments represent inferences made by the system. The probabilities for these inferences, which are calculated by the SP model (as outlined in Section 4.4) are shown in Table 1. These probabilities do not add up to 1 and we should not expect them to, because any given multiple alignment may contain two or more of these symbols.
The most probable inference is the rather trivial inference that the alarm has indeed sounded. This reflects the fact that there is no pattern in Figure 22 representing false positives for telephone calls about the alarm. Apart from the inference that the alarm has sounded, the most probable inference (p = 0 . 328 ) is that there has been a burglary. However, there is a distinct possibility that there has been an earthquake—but the probability in this case (p = 0 . 016 ) is much lower than the probability of a burglary.
Figure 23. The best multiple alignment (at the top) and the other two multiple alignments in its reference set formed by the SP model with the pattern, “phone_alarm_call”, in New and the patterns from Figure 22 in Old. In order from the top, the values for C D with relative probabilities in brackets are: 19.91 (0.656), 18.91 (0.328) and 14.52 (0.016).
Figure 23. The best multiple alignment (at the top) and the other two multiple alignments in its reference set formed by the SP model with the pattern, “phone_alarm_call”, in New and the patterns from Figure 22 in Old. In order from the top, the values for C D with relative probabilities in brackets are: 19.91 (0.656), 18.91 (0.328) and 14.52 (0.016).
Information 04 00283 g023
Table 1. The probabilities of unmatched Old symbols, calculated by the SP model for the three multiple alignments shown in Figure 23.
Table 1. The probabilities of unmatched Old symbols, calculated by the SP model for the three multiple alignments shown in Figure 23.
SymbolProbability
alarm1.0
burglary0.328
earthquake0.016
These inferences and their relative probabilities seem to accord quite well with what one would naturally think following a telephone call to say that the burglar alarm at one’s house has gone off (given that one was living in a part of the world where earthquakes were not vanishingly rare).

10.3. Formation of Alignments: The Burglar Alarm Has Sounded and There is a Radio Announcement of an Earthquake

In this example, the phenomenon of “explaining away” occurs when you learn not only that the burglar alarm has sounded, but that there has been an announcement on the radio that there has been an earthquake. In terms of the SP model, the two events (the phone call about the alarm and the announcement about the earthquake) can be represented in New by a pattern like this:
phone_alarm_call radio_earthquake_announcement
or “radio_earthquake_announcement phone_alarm_call”. The order of the two symbols makes no difference to the result.
In this case, there is only one multiple alignment (shown at the top of Figure 24) that can “explain” all the information in New. Since there is only this one multiple alignment in the reference set for the best multiple alignment, the associated probabilities of the inferences that can be read from the multiple alignment (“alarm” and “earthquake”) are one: it was an earthquake that caused the alarm to go off (and led to the phone call) and not a burglary.
These results show how “explaining away” may be explained in terms of the SP theory. The main point is that the multiple alignment or multiple alignments that provide the best “explanation” of a telephone call to say that one’s burglar alarm has sounded is different from the multiple alignment or multiple alignments that best explain the same telephone call coupled with an announcement on the radio that there has been an earthquake. In the latter case, the best explanation is that the earthquake triggered the alarm. Other possible explanations have lower probabilities.

10.3.1. Other Possibilities

As mentioned above, the closed-world assumption allows us to rule out possibilities, such as:
  • A burglary (which triggered the alarm) and, at the same time, an earthquake (which led to a radio announcement) or
  • An earthquake that triggered the alarm and led to a radio announcement and, at the same time, a burglary that did not trigger the alarm.
  • Many other unlikely possibilities of a similar kind ([59], also discussed in Section 2.2.4 of this article).
Nevertheless, we may consider possibilities of that kind by combining multiple alignments as described in BK (Section 7.8.7). However, as a general rule, that kind of further analysis makes no difference to the original conclusion: the multiple alignment, which was originally judged to represent the best interpretation of the available facts, has not been dislodged from this position. This is in keeping with the way we normally concentrate on the most likely explanations of events and ignore the many conceivable, but unlikely, alternatives.
Figure 24. At the top, the best multiple alignment formed by the SP model with the pattern, “phone_alarm_call radio_earthquake_announcement”, in New and the patterns from Figure 22 in Old. Other multiple alignments formed by the SP model are shown below. From the top, the C D values are: 74.64, 54.72, 19.92, 18.92 and 14.52.
Figure 24. At the top, the best multiple alignment formed by the SP model with the pattern, “phone_alarm_call radio_earthquake_announcement”, in New and the patterns from Figure 22 in Old. Other multiple alignments formed by the SP model are shown below. From the top, the C D values are: 74.64, 54.72, 19.92, 18.92 and 14.52.
Information 04 00283 g024

10.4. The SP framework and Bayesian Networks

The foregoing examples show that the SP framework is a viable alternative to Bayesian networks, at least in the kinds of situation that have been described. This subsection makes some general observations about the relative merits of the two frameworks for probabilistic reasoning where the events of interest are subject to multiple influences or chains of influence or both those things.
Without in any way diminishing Thomas Bayes’ achievement, his theorem appears to have shortcomings as the basis for theorising about perception and cognition:
  • Undue complexity in the storage of statistical knowledge. Each node in a Bayesian network contains a table of conditional probabilities for all possible combinations of inputs, and these tables can be quite large. By contrast, the SP framework only requires a single measure of frequency for each pattern. A focus on frequencies seems to yield an overall advantage in terms of simplicity compared with the representation of statistical knowledge in the form of conditional probabilities.
  • Diverting attention from simpler alternatives. By emphasising probabilities, Bayes’ theorem diverts attention away from simpler and more primitive concepts of matching and unification of patterns, which, by hypothesis, provide the foundation for several aspects of intelligence (Section 2.2).
  • No place for structural learning. Bayes’ theorem assumes that the objects and categories that are to be related to each other via conditional probabilities are already “given”. It has nothing to say about how ontological knowledge may be created from raw perceptual input. By contrast, the SP framework provides for the discovery of objects and other categories via the matching and unification of patterns, in accordance with the DONSVIC principle (Section 5.2).

10.5. Causal Diagnosis

In this section, we consider a simple example of a fault diagnosis in an electronic circuit—described by [59] (pp. 263–272). Figure 25 shows the circuit with inputs on the left, outputs on the right and, in between, three multipliers ( M 1 , M 2 and M 3 ) and two adders ( M 4 and M 5 ). For the given inputs on the left, it is clear that output F is false and output G is correct.
Figure 25. An electronic circuit containing three multipliers, M 1 , M 2 and M 3 , and two adders, M 4 and M 5 . Correct outputs are shown in square brackets. Redrawn from Figure 5.6 in [59](p. 263), with permission from the copyright holder, Elsevier.
Figure 25. An electronic circuit containing three multipliers, M 1 , M 2 and M 3 , and two adders, M 4 and M 5 . Correct outputs are shown in square brackets. Redrawn from Figure 5.6 in [59](p. 263), with permission from the copyright holder, Elsevier.
Information 04 00283 g025
Figure 26 shows a causal network derived from the electronic circuit in Figure 25 (p. 264 in [59]). In this diagram, X, Y, Z, F and G represent the outputs of components M 1 , M 2 , M 3 , M 4 and M 5 , respectively. In each case, there are three causal influences on the output: the two inputs to the component and the state of the component, which may be “good” or “bad”. These influences are shown in Figure 26 by lines with arrows connecting the source of the influence to the target node. Thus, for example, the two inputs of component M 1 are represented by A and C, the good or bad state of component M 1 is represented by the node labelled M 1 and their causal influences on node X are shown by the three arrows pointing at that node.
Figure 26. A causal network derived from the electronic circuit in Figure 25. Redrawn from Figure 5.7 in [59](p. 264), with permission from the copyright holder, Elsevier.
Figure 26. A causal network derived from the electronic circuit in Figure 25. Redrawn from Figure 5.7 in [59](p. 264), with permission from the copyright holder, Elsevier.
Information 04 00283 g026
Given a causal analysis like this, and given appropriate information about conditional probabilities, it is possible to derive one or more alternative diagnoses of which components are good and which are bad. In Pearl’s example, it is assumed that components of the same type have the same prior probability of failure and that the probability of failure of multipliers is greater than for adders. Given these assumptions and some others, together with the inputs and outputs shown in Figure 25 (but not the intermediate values), the best diagnosis derived from the causal network is that the M 1 component is bad and the second best diagnosis is that M 4 is bad. Pearl indicates that some third-best interpretations may be retrievable (e.g., M 2 and M 5 are bad) “... but in general, it is not guaranteed that interpretations beyond the second-best will be retrievable.” (p. 272 in [59]).

10.6. An SP Approach to Causal Diagnosis

The main elements of the SP analysis presented here are as follows:
  • The input-output relations of any component may be represented as a set of patterns, each one with a measured or estimated frequency of occurrence.
  • With suitable extensions, these patterns may serve to transfer the output of one component to the input of another.
  • A “framework” pattern (shown at the bottom of Figure 27) is needed to ensure that appropriate multiple alignments can be built.
Figure 27 shows a set of patterns for the circuit shown in Figure 25. In the figure, the patterns that start with the symbol “M1” represent input-output relations for component M 1 , those that start with “M2" represent input-output relations for the M 2 component and, likewise, for the other patterns except the last one (starting with the symbol “frame”), which is the framework pattern mentioned above. For each initial symbol, there is a corresponding “terminating” symbol with an initial “#” character. For reasons explained shortly, there may be other symbols following the “terminating” symbol.
Let us now consider the first pattern in the figure (“M1 M1GOOD TM1I1 TM1I2 TM1O #M1 TM4I2”) representing input-output relations for component M 1 when that component is good, as indicated by the symbol “M1GOOD”. In this pattern, the symbols, “TM1I1”, “TM1I2” and “TM1O”, represent the two inputs and the output of the component, “#M1” is the terminating symbol and “TM4I2” serves to transfer the output of M 1 to the second input of component M 4 , as will be explained. If a symbol, like “TM1I1”, “T”, indicates that the input is true, “M1” identifies the component and “I1” indicates that this is the first input of the component. Other symbols may be interpreted in a similar way, following the key given in the caption of Figure 27. In effect, this pattern says that, when the component is working correctly, true inputs yield a true output. The pattern has a relatively high frequency of occurrence (500,000), reflecting the idea that the component will normally work correctly.
The other two patterns for component M 1 (“M1 M1BAD TM1I1 TM1I2 TM1O #M1 TM4I2” and “M1 M1BAD TM1I1 TM1I2 FM1O #M1 FM4I2”) describe input-output relations when the component is bad. The first one describes the situation where true inputs to a faulty component yield a true result, a possibility noted by Pearl (ibid. p. 265). The second pattern—with a higher frequency—describes the more usual situation, where true inputs to a faulty component yield a false result. Both these bad patterns have much lower frequencies than the good pattern.
The other patterns in Figure 27 may be interpreted in a similar way. Components M 1 , M 2 and M 3 have only three patterns each, because it is assumed that inputs to the circuit will always be true, so it is not necessary to include patterns describing what happens when one or both of the inputs are false. By contrast, there are four good patterns and eight bad patterns for each of M 4 and M 5 , because either of these components may receive faulty input.
For each of the five components, the frequencies of the bad patterns sum to 100. However, for each of the components, M 1 , M 2 and M 3 , the total frequency of the good patterns is 500,000 compared with 1,000,000 for the set of good patterns associated with each of the components, M 4 and M 5 . These figures accord with the assumptions in Pearl’s example that components of the same type have the same probability of failure and that the probability of failure of multipliers ( M 1 , M 2 , and M 3 ) is greater than the probability of the failure of adders ( M 4 and M 5 ).
Figure 27. A set of SP patterns modelling input-output relations in the electronic circuit shown in Figure 25. They were supplied as Old patterns to the SP model for the building of the multiple alignment shown in Figure 28. Key: “T” = true (information is correct); “F” = false (information is incorrect); “M1”, “M2”, “M3”, “M4”, “M5” = components of the circuit; “GOOD”, “BAD” indicates whether a component is good or bad; “I1”, “I2” = first and second inputs of a component; “O” = Output of a component.
Figure 27. A set of SP patterns modelling input-output relations in the electronic circuit shown in Figure 25. They were supplied as Old patterns to the SP model for the building of the multiple alignment shown in Figure 28. Key: “T” = true (information is correct); “F” = false (information is incorrect); “M1”, “M2”, “M3”, “M4”, “M5” = components of the circuit; “GOOD”, “BAD” indicates whether a component is good or bad; “I1”, “I2” = first and second inputs of a component; “O” = Output of a component.
Information 04 00283 g027

10.7. Multiple Alignments in Causal Diagnosis

Given appropriate patterns, the SP model constructs multiple alignments from which diagnoses may be obtained. Figure 28 shows the best multiple alignment created by the SP model, with the Old patterns shown in Figure 27, and “TM1I1 TM1I2 TM2I1 TM2I2 TM3I1 TM3I2 FM4O TM5O” as New pattern. The first six symbols in this pattern express the idea that all the inputs for components M 1 , M 2 and M 3 are true. The penultimate symbol (“FM4O”) shows that the output of M 4 is false, and the last symbol (“TM5O”) shows that the output of M 5 is true—in accordance with the outputs shown in Figure 25.
Figure 28. The best multiple alignment found by the SP model with “TM1I1 TM1I2 TM2I1 TM2I2 TM3I1 TM3I2 FM4O TM5O” in New and the patterns shown in Figure 27 in Old.
Figure 28. The best multiple alignment found by the SP model with “TM1I1 TM1I2 TM2I1 TM2I2 TM3I1 TM3I2 FM4O TM5O” in New and the patterns shown in Figure 27 in Old.
Information 04 00283 g028
From the multiple alignment in Figure 28, it can be inferred that component M 1 is bad and all the other components are good. A total of seven alternative diagnoses can be derived from those multiple alignments created by the SP model that encode all the symbols in New. These diagnoses are shown in Table 2, each with its relative probability.
Table 2. Seven alternative diagnoses of faults in the circuit shown in Figure 25, derived from multiple alignments created by the SP model with “TM1I1 TM1I2 TM2I1 TM2I2 TM3I1 TM3I2 FM4O TM5O” in New and the patterns from Figure 27 in Old. The relative probability of each diagnosis is shown in the second column.
Table 2. Seven alternative diagnoses of faults in the circuit shown in Figure 25, derived from multiple alignments created by the SP model with “TM1I1 TM1I2 TM2I1 TM2I2 TM3I1 TM3I2 FM4O TM5O” in New and the patterns from Figure 27 in Old. The relative probability of each diagnosis is shown in the second column.
Bad Component(s)Relative Probability
M10.6664
M40.3332
M1, M30.00013
M1, M20.00013
M1, M46.664e-5
M3, M46.664e-5
M1, M2, M32.666e-8
It is interesting to see that the best diagnosis derived by the SP model ( M 1 is bad) and the second best diagnosis ( M 4 is bad) are in accordance with first two diagnoses obtained by Pearl’s method. The remaining five diagnoses derived by the SP model are different from the one obtained by Pearl’s method ( M 2 and M 5 are bad), but this is not altogether surprising, because detailed frequencies or probabilities are different from Pearl’s example, and there are differences in assumptions that have been made.

11. Information Storage and Retrieval

The SP theory provides a versatile model for database systems, with the ability to accommodate object-oriented structures, as well as relational “tuples” and network and tree models of data [35]. It lends itself most directly to information retrieval in the manner of query-by-example, but it appears to have potential to support the use of natural language or query languages, such as SQL (Structured Query Language).
Unlike some ordinary database systems:
  • The storage and retrieval of information is integrated with other aspects of intelligence, such as pattern recognition, reasoning, planning, problem solving and learning—as outlined elsewhere in this article.
  • The SP system provides a simple but effective means of combining class hierarchies with part-whole hierarchies, with inheritance of attributes (Section 9.1).
  • It provides for cross-classification with multiple inheritance.
  • There is flexibility and versatility in the representation of knowledge arising from the fact that the system does not distinguish “parts” and “attributes” (Section 4.2.1 in [35] ).
  • Likewise, the absence of a distinction between “class” and “object” facilitates the representation of knowledge and eliminates the need for a “metaclass” (Section 4.2.2 in [35] ).
  • SP patterns provide a simpler and more direct means of representing entity-relationship models than do relational tuples (Section 4.2.3 in [35] ).

12. Planning and Problem Solving

The SP framework provides a means of planning a route between two places, and, with the translation of geometric patterns into textual form, it can solve the kind of geometric analogy problem that may be seen in some puzzle books and IQ tests (BK, Chapter 8).
Figure 29 shows an example of the latter kind of problem. The task is to complete the relationship “A is to B as C is to ?” using one of the figures, “D”, “E”, “F” or “G”, in the position marked with “?”. For this example, the “correct” answer is clearly “E”. Quote marks have been used for the word “correct”, because in many problems of this type, there may be two or even more alternative answers for which cases can be made, and there is a corresponding uncertainty about which answer is the right one.
Figure 29. A geometric analogy problem.
Figure 29. A geometric analogy problem.
Information 04 00283 g029
Computer-based methods for solving this kind of problem have existed for some time (e.g., Evans’ well-known heuristic algorithm [62]). In more recent work [63,64], minimum length encoding principles have been applied to good effect. This kind of problem may also be understood in terms of the SP concepts.
As in most previous work, the proposed solution assumes that some mechanism is available, which can translate the geometric forms in each problem into patterns of text symbols, like other patterns in this article. For example, item “A” in Figure 29 may be described as “small circle inside large triangle”.
How this kind of translation may be done is not part of the present proposals (one such translation mechanism is described in [62]). As noted elsewhere [64], successful solutions for this kind of problem require consistency in the way the translation is done. For this example, it would be unhelpful if item “A” in Figure 29 were described as “large triangle outside small circle”, while item “C” were described as “small square inside large ellipse”. For any one puzzle, the description needs to stick to one or other of “X outside Y” or “Y inside X”—and likewise for “above/below” and “left-of/right-of”.
Given that the diagrammatic form of the problem has been translated into patterns as just described, this kind of problem can be cast as a problem of partial matching, well within the scope of the SP model. To do this, symbolic representations of item A and item B in Figure 29 are treated as a single pattern, thus:
small circle inside large triangle ;
large circle above small triangle
and this pattern is placed in New. Four other patterns are constructed by pairing a symbolic representation of item C (on the left) with symbolic representations of each of D, E, F and G (on the right), thus:
C1 small square inside large ellipse ;
    D small square inside large circle #C1
C2 small square inside large ellipse ;
    E large square above small ellipse #C2
C3 small square inside large ellipse ;
    F small circle left-of large square #C3
C4 small square inside large ellipse ;
    G small ellipse above large rectangle #C4.
These four patterns are placed in Old, each with an arbitrary frequency value of 1.
Figure 30. The best multiple alignment found by the SP model for the patterns in New and Old as described in the text.
Figure 30. The best multiple alignment found by the SP model for the patterns in New and Old as described in the text.
Information 04 00283 g030
Figure 30 shows the best multiple alignment found by the SP model with New and Old, as just described. The multiple alignment is a partial match between the New pattern (in column 0) and the second of the four patterns in Old (in column 1). This corresponds with the “correct” result (item E), as noted above.

13. Compression of Information

Since information compression is central to the workings of the SP system, it is natural to consider whether the system might provide useful insights in that area. In that connection, the most promising aspects of the SP system appear to be:
  • The discovery of recurrent patterns in data via the building of multiple alignments, with heuristic search to sift out the patterns that are most useful in terms of compression.
  • The potential of the system to detect and encode discontinuous dependencies in data. It appears that there is potential here to extract kinds of redundancy in information that are not accessible via standard methods for the compression of information.
In terms of the trade-off that exists between computational resources that are required and the level of compression that can be achieved, it is intended that the system will operate towards the “up market” end of the spectrum—by contrast with LZW algorithms and the like, which have been designed to be “quick-and-dirty”, sacrificing performance for speed on low-powered computers.

14. Human Perception, Cognition and Neuroscience

Since much of the inspiration for the SP theory has come from evidence, mentioned in Section 2.1, that, to a large extent, the workings of brains and nervous systems may be understood in terms of information compression, the theory is about perception and cognition, as well as artificial intelligence and mainstream computing.
That said, the main elements of the theory—the multiple alignment concept in particular—are theoretical constructs derived from what appears to be necessary to model, in an economical way, such things as pattern recognition, reasoning, and so on. In BK (Chapter 12), there is some discussion of how the SP concepts relate to a selection of issues in human perception and cognition. A particular interest at the time of writing (after that chapter was written) is the way that the SP theory may provide an alternative to quantum probability as an explanation of phenomena, such as the “conjunction fallacy” (see, for example [65]).
In BK (Chapter 11), I have described in outline, and tentatively, how such things as SP patterns and multiple alignments may be realised with neurons and connections between them. The cortex of the brains of mammals—which is, topologically, a two-dimensional sheet—may be, in some respects, like a sheet of paper on which pattern assemblies may be written. These are neural analogues of SP patterns, shown schematically in Figure 31. Unlike information written on a sheet of paper, there are neural connections between patterns—as shown in the figure—and communications amongst them.
These proposals, which are adapted with modifications from Hebb’s [66] concept of a “cell assembly”, are very different from how artificial “neural networks” are generally conceived in computer science [67].
As noted in Section 5.4, learning in the SP system is very different from learning in that kind of network, or Hebbian learning.
Figure 31. Schematic representation of hypothesised neural analogues of SP patterns and their inter-connections. Key: “C” = cat, “D” = dog, “M” = mammal, “V” = vertebrate, “A” = animal, “...” = further structure that would be shown in a more comprehensive example. Pattern assemblies are surrounded by broken lines, and each neuron is represented by an unbroken circle or ellipse. Lines with arrows show connections between pattern assemblies and the flow of sensory signals. Connections between neurons within each pattern assembly are not marked.
Figure 31. Schematic representation of hypothesised neural analogues of SP patterns and their inter-connections. Key: “C” = cat, “D” = dog, “M” = mammal, “V” = vertebrate, “A” = animal, “...” = further structure that would be shown in a more comprehensive example. Pattern assemblies are surrounded by broken lines, and each neuron is represented by an unbroken circle or ellipse. Lines with arrows show connections between pattern assemblies and the flow of sensory signals. Connections between neurons within each pattern assembly are not marked.
Information 04 00283 g031

15. Conclusions

The SP theory aims to simplify and integrate concepts across artificial intelligence, mainstream computing and human perception and cognition, with information compression as a unifying theme. The matching and unification of patterns and the concept of multiple alignment are central ideas.
In accordance with Occam’s Razor, the SP system combines conceptual simplicity with descriptive and explanatory power. A relatively simple mechanism provides an interpretation for a range of concepts and phenomena in several areas, including concepts of “computing”, aspects of mathematics and logic, representation of knowledge, natural language processing, pattern recognition, several kinds of probabilistic reasoning, information storage and retrieval, planning and problem solving, information compression, neuroscience, and human perception and cognition.
As suggested in Section 3.2, an aid to further research would be the creation of a high-parallel, open-source version of the SP machine that may be accessed via the web.

Acknowledgements

I am grateful to anonymous referees for many useful comments.

Conflict of Interest

The author declares no conflict of interest.

References and Notes

  1. Apart from the period between early 2006 and late 2012, when I was working on other things.
  2. See www.cognitionresearch.org/sp.htm#PUBS.
  3. Wolff, J.G. Unifying Computing and Cognition: the SP Theory and Its Applications; CognitionResearch.org.uk: Menai Bridge, UK, 2006. [Google Scholar]
  4. Some of the text and figures in this article come from the book, with permission. Details of other permissions are given at appropriate points in the article.
  5. Attneave, F. Some informational aspects of visual perception. Psychol. Rev. 1954, 61, 183–193. [Google Scholar] [CrossRef] [PubMed]
  6. Barlow, H.B. Sensory Mechanisms, the Reduction of Redundancy, and Intelligence. In The Mechanisation of Thought Processes; Her Majesty’s Stationery Office: London, UK, 1959; pp. 535–559. [Google Scholar]
  7. Barlow, H.B. Trigger Features, Adaptation and Economy of Impulses. In Information Processes in the Nervous System; Leibovic, K.N., Ed.; Springer: New York, NY, USA, 1969; pp. 209–230. [Google Scholar]
  8. Also relevant and still of interest is Zipf’s [68] Human Behaviour and the Principle of Least Effort. Incidentally, Barlow later suggested that “... the [original] idea was right in drawing attention to the importance of redundancy in sensory messages ... but it was wrong in emphasizing the main technical use for redundancy, which is compressive coding.” (p. 242 in [69]). As we shall see, the SP theory is closer to Barlow’s original thinking than what he said later.
  9. This focus on compression of information in binocular vision is distinct from the more usual interest in the way that slight differences between the two images enables us to see the scene in depth.
  10. Wolff, J.G. Learning Syntax and Meanings through Optimization and Distributional Analysis. In Categories and Processes in Language Acquisition; Levy, Y., Schlesinger, I.M., Braine, M.D.S., Eds.; Lawrence Erlbaum: Hillsdale, NJ, USA, 1988; pp. 179–215. [Google Scholar]
  11. See www.cognitionresearch.org/lang learn.html.
  12. Solomonoff, R.J. A formal theory of inductive inference. Part I. Inf. Control 1964, 7, 1–22. [Google Scholar] [CrossRef]
  13. Solomonoff, R.J. A formal theory of inductive inference. Part II. Inf. Control 1964, 7, 224–254. [Google Scholar] [CrossRef]
  14. Li, M.; Vitänyi, P. An Introduction to Kolmogorov Complexity and Its Applications; Springer: New York, NY, USA, 2009. [Google Scholar]
  15. Newell, A. You can’t Play 20 Questions with Nature and Win: Projective Comments on the Papers in This Symposium. In Visual Information Processing; Chase, W.G., Ed.; Academic Press: New York, NY, USA, 1973; pp. 283–308. [Google Scholar]
  16. Laird, J.E. The Soar Cognitive Architecture; MIT Press: Cambridge, MA, USA, 2012. [Google Scholar]
  17. Anderson, J.R.; Bothell, D.; Byrne, M.D.; Douglass, S.; Lebiere, C.; Qin, Y. An integrated theory of the mind. Psychol. Rev. 2004, 111, 1036–1060. [Google Scholar] [CrossRef] [PubMed]
  18. Schmidhuber, J.; Thörisson, K.R.; Looks, M. (Eds.) Artificial General Intelligence: 4th International Conference, AGI 2011, Mountain View, CA, USA, August 3–6, 2011, Proceedings; Volume 6830, Lecture Notes in Artificial Intelligence; Springer: New York, NY, USA, 2011.
  19. Dodig-Crnkovic, G. Significance of models of computation, from Turing model to natural computation. Minds Mach. 2011, 21, 301–322. [Google Scholar] [CrossRef]
  20. Steunebrink, B.R.; Schmidhuber, J. A family of Gödel machine implementations. In [18]. Available online: www.idsia.ch/juergen/agi2011bas.pdf (accessed on 31 July 2013).
  21. Hutter, M. Universal Artificial Intelligence: Sequential Decisions based on Algorithmic Probability; Springer: Berlin, Germany, 2005. [Google Scholar]
  22. Wolff, J.G. Simplicity and power—some unifying ideas in computing. Comput. J. 1990, 33, 518–534. [Google Scholar] [CrossRef]
  23. Of course, people can and do learn with assistance from teachers and others. However, unsupervised learning has been a focus of interest in developing the SP theory, since it is clear that much of our learning is done without assistance and because unsupervised learning raises some interesting issues and yields some useful insights, as outlined in Section 5.2.
  24. The source code for the models, with associated documents and files, may be downloaded via links under the heading “SOURCE CODE” at the bottom of the page on http://bit.ly/WtXa3g (accessed on 5 August 2013)..
  25. As in ordinary search engines and, indeed, in the brains of people and other animals, high levels of parallelism are needed to achieve speedy processing with large data sets (see also Section 4.3 and Section 5.1.5. ).
  26. Wolff, J.G. The SP theory of intelligence: Benefits and applications. 2013. in preparation. Available online: http://bit.ly/12YmQJW (accessed on 31 July 2013).
  27. Wolff, J.G. Application of the SP theory of intelligence to the understanding of natural vision and the development of computer vision. 2013. in preparation. Available online: http://bit.ly/Xj3nDY (accessed on 31 July 2013).
  28. Prince, S.J.D. Computer Vision: Models, Learning, and Inference; Cambridge University Press: Cambridge, UK, 2012. [Google Scholar]
  29. Whether multiple alignments are shown with patterns in rows or in columns depends largely on what fits best on the page.
  30. Cover, T.M.; Thomas, J.A. Elements of Information Theory; Wiley: New York, NY, USA, 1991. [Google Scholar]
  31. Although this scheme is slightly less efficient than the well-known Huffman scheme, it has been adopted, because, unlike the Huffman scheme, it does not produce anomalous results when probabilities are derived from code sizes, as described in BK (Section 3.7).
  32. See, for example, “Sequence alignment”, Wikipedia. Available online: en.wikipedia.org/wiki/Sequence alignment ((accessed on 8 May 2013).
  33. Sankoff, D.; Kruskall, J.B. Time Warps, String Edits, and Macromolecules: The Theory and Practice of Sequence Comparisons; Addison-Wesley: Reading, MA, USA, 1983. [Google Scholar]
  34. WinMerge, latest stable version 2.14.0; Open Source differencing and merging tool for Windows. Available online: http://winmerge.org (accessed on 31 July 2013).
  35. Wolff, J.G. Towards an intelligent database system founded on the SP theory of computing and cognition. Data Knowl. Eng. 2007, 60, 596–624. [Google Scholar] [CrossRef]
  36. Dorigo, M.; Gambardella, L.M. Ant colony system: A cooperative learning approach to the traveling salesman problem. IEEE Trans. Evol. Comput. 1997, 1, 53–66. [Google Scholar] [CrossRef]
  37. Thus “computing as compression” does not imply that all redundancy is bad and should be removed. Redundancy in information is often useful in, for example, understanding speech in noisy conditions (cf., Section 4.2.2) or in backup copies for data.
  38. Wolff, J.G. Language acquisition, data compression and generalization. Lang. Commun. 1982, 2, 57–89. [Google Scholar] [CrossRef]
  39. In this and other examples in this subsection, we shall assume that letters are analogues of low-level perceptual features in speech, such as formant ratios or formant transitions.
  40. Wolff, J.G. The discovery of segments in natural language. Br. J. Psychol. 1977, 68, 97–106. [Google Scholar] [CrossRef]
  41. Wolff, J.G. Language acquisition and the discovery of phrase structure. Lang. Speech 1980, 23, 255–269. [Google Scholar] [PubMed]
  42. The Chomskian doctrine that children are born with a knowledge of “universal grammar” fails to account for the specifics of syntactic forms in different languages, and it depends on the still-unproven idea that there is something of substance that is shared by all the world’s languages.
  43. Relevant evidence comes from cases where children learn to understand language even though they have little or no ability to speak [70,71]—so that there is little or nothing for anyone to correct.
  44. If an error is not rare, it is likely to acquire the status of a dialect or idiolect variation and cease to be regarded as an error.
  45. Such as: learning in the kinds of artificial neural network that are popular in computer science; Hebb’s [66] concept of learning; Pavlovian learning; and Skinnerian learning.
  46. Turing, A.M. On computable numbers, with an application to the Entscheidungsproblem. Proc. Lond. Math. Soc. 1936, 42, 230–265. [Google Scholar]
  47. Turing, A.M. On computable numbers, with an application to the Entscheidungsproblem: a correction. Proc. Lond. Math. Soc. 1937, 43, 544–546. [Google Scholar] [CrossRef]
  48. Post, E.L. Formal reductions of the general combinatorial decision problem. Am. J. Math. 1943, 65, 197–268. [Google Scholar] [CrossRef]
  49. Chaitin, G.J. Randomness in arithmetic. Sci. Am. 1988, 259, 80–85. [Google Scholar] [CrossRef]
  50. Wolff, J.G. The SP Theory and the Representation and Processing of Knowledge. In Soft Computing in Ontologies and Semantic Web; Ma, Z., Ed.; Springer-Verlag: Heidelberg, Germany, 2006; pp. 79–101. [Google Scholar]
  51. Wolff, J.G. Medical diagnosis as pattern recognition in a framework of information compression by multiple alignment, unification and search. Decis. Support Syst. 2006, 42, 608–625. [Google Scholar] [CrossRef]
  52. Iwanska, L.; Zadrozny, W. Introduction to special issue on context in natural language processing. Comput. Intell. 1997, 13, 301–308. [Google Scholar] [CrossRef]
  53. Chomsky, N. Syntactic Structures; Mouton: The Hague, The Netherlands, 1957. [Google Scholar]
  54. Pereira, F.C.N.; Warren, D.H.D. Definite clause grammars for language analysis—a survey of the formalism and a comparison with augmented transition networks. Artif. Intell. 1980, 13, 231–278. [Google Scholar] [CrossRef]
  55. In this figure, the sentence, “it is wash ed”, could have been represented more elegantly as, “i t i s w a s h e d”, as in previous examples. The form shown here has been adopted, because it helps to stop multiple alignments growing too large. Likewise, with Figure 14.
  56. Oliva, A.; Torralba, A. The role of context in object recognition. Trends Cogn. Sci. 2007, 11, 520–527. [Google Scholar] [CrossRef] [PubMed]
  57. Although the term “heterarchy” is not widely used, it can be useful as a means of referring to hierarchies in which, as in the example in the text, a given node may appear in two or more higherlevel nodes that are not themselves hierarchically related. In the SP framework, there may be heterarchies in both class-inclusion structures and part-whole structures. However, to avoid the clumsy expression “hierarchy or heterarchy”, the term “hierarchy” is used in most parts of this article as a shorthand for both concepts.
  58. Pothos, E.M.; Wolff, J.G. The Simplicity and Power model for inductive inference. Artif. Intell. Rev. 2006, 26, 211–225. [Google Scholar] [CrossRef]
  59. Pearl, J. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference, revised second printing ed.; Morgan Kaufmann: San Francisco, CA, USA, 1997. [Google Scholar]
  60. Likewise, a travel booking clerk using a database of all flights between cities will assume that, if no flight is shown between, say, Edinburgh and Paris, then no such flight exists. In systems like Prolog, the closed-world assumption is the basis of “negation as failure”: If a proposition cannot be proven with the clauses provided in a Prolog program, then, in terms of that store of knowledge, the proposition is assumed to be false.
  61. Some of the frequencies shown in Figure 22 are intended to reflect the two probabilities suggested for this example in [59] (p. 49): “... the [alarm] is sensitive to earthquakes and can be accidentally (p = 0:20) triggered by one. ... if an earthquake had occurred, it surely (p = 0:40) would be on the [radio] news.”
  62. Evans, T.G. A program for the solution of a class of geometric-analogy intelligence-test questions. In Semantic Information Processing; Minsky, M.L., Ed.; MIT Press: Cambridge, MA, USA, 1968; pp. 271–353. [Google Scholar]
  63. Belloti, T.; Gammerman, A. Experiments in solving analogy problems using Minimal Length Encoding. Appl. Decis. Technol. 1996, 95, 209–220. [Google Scholar]
  64. Gammerman, A.J. The representation and manipulation of the algorithmic probability measure for problem solving. Ann. Math. Artif. Intell. 1991, 4, 281–300. [Google Scholar] [CrossRef]
  65. Pothos, E.M.; Busemeyer, J.R. Can quantum probability provide a new direction for cognitive modeling? Behav. Brain Sci. 2013, 36, 255–327. [Google Scholar] [CrossRef] [PubMed]
  66. Hebb, D.O. The Organization of Behaviour; John Wiley & Sons: New York, NY, USA, 1949. [Google Scholar]
  67. See, for example, “Artificial neural network”. Wikipedia. Available online: http://winmerge.org (accessed on 31 July 2013).
  68. Zipf, G.K. Human Behaviour and the Principle of Least Effort; Hafner: New York, NY, USA, 1949. [Google Scholar]
  69. Barlow, H.B. Redundancy reduction revisited. Netw. Comput. Neural Syst. 2001, 12, 241–253. [Google Scholar] [CrossRef]
  70. Lenneberg, E.H. Understanding language without the ability to speak. J. Abnorm. Soc. Psychol. 1962, 65, 419–425. [Google Scholar] [CrossRef] [PubMed]
  71. Brown, R. A First Language: The Early Stages; Penguin: Harmondsworth, UK, 1973. [Google Scholar]

Share and Cite

MDPI and ACS Style

Wolff, J.G. The SP Theory of Intelligence: An Overview. Information 2013, 4, 283-341. https://doi.org/10.3390/info4030283

AMA Style

Wolff JG. The SP Theory of Intelligence: An Overview. Information. 2013; 4(3):283-341. https://doi.org/10.3390/info4030283

Chicago/Turabian Style

Wolff, J Gerard. 2013. "The SP Theory of Intelligence: An Overview" Information 4, no. 3: 283-341. https://doi.org/10.3390/info4030283

Article Metrics

Back to TopTop