OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-sensory commits / 9236f44

Perceiving structure
9236f441e41b3ef2b9dc02bc8258fef532a029a0
by Linas Vepstas <linas@linas.org> · 2026-01-13T04:10:45.000Z

Changed files (1) +59 -1

DesignLearn-A.md +59 -1
……@@ -107,8 +107,9 @@ jigsaw much assmble so as to build be bridge between constraints. The
107107satisfiability algorithm must be fast, but also the bridge that is build
108108mst be minimal or optimal in some way.
109109
110### Minimization
110111The words "minimal" and "optimal" make me personally think of minimal
111surfaces: soap bubbles, for instance. Geodesics in Rimannian geometry.
112surfaces: soap bubbles, for instance. Geodesics in Riemannian geometry.
112113Assemblies of jigsaws do not have smooth differentiable structure, but
113114still, some of the ideas carry over analogously, because there are
114115several natural ideas of "minimal" for jigaw assemblies. For example:
……@@ -116,6 +117,7 @@ the assembly that uses the minimal number of pieces. Or, if we weight
116117each piece with e.g. log probability (i.e. "entropy" or "information")
117118then minimize the sum of that.
118119
120### Homtopic deformation
119121The general "feel" of continutity is taken up by the Scott topology,
120122where we can talk about the homotopic deformation of jigsaw aassemblies.
121123There is a very easy way of understanding this if you are a software
……@@ -143,6 +145,7 @@ the programmer wrote the C/C++ code to do, the machine binary will do
143145the same thing. The transformation from one to the other was
144146accomplished in a very long sequence of small steps.
145147
148### Differentiability
146149What about differentiability? Even that has an analog: finite
147150differences. When collections of jigsaws can be assigned a number (e.g.
148151total number of pieces; total weight; length of shortest path; total
……@@ -162,5 +165,60 @@ and when one has paths that can take you from here to there in some
162165quasi-continuous fashion, then one has some local difference-type
163166gradient that helps figure out how to move.
164167
168### What is a priori?
169The above arguments is slippery and misleading. Starting from "nothing"
170we arrive at some very complex and arcane notions derived by analogy
171from a huge body of work in mathematical physics to conclude "ah ha!
172Free energy! That's the Answer with a Capital A!"
173
174### Self-assembly
175But I don't want this. I want a system to self-assemble (necessairly
176a system that has moved to a critical point.) The word "critical" in
177the sense of self-assembly and avalanches for sand-piles at criticality,
178but now, for jigsaw pieces, not sand-grains.
179
180The jigsaws are generalizations of structural parts: jigsaws are the
181connectable parts of axioms, of inference rules, of lambda expressions,
182of function terms, of relation terms, of logical connectives.
183
184I want, and I think it is possible, to have a system that self-reifies:
185a self-assembly of pieces that can figure out how to reason, deduce,
186prove, use logic and discover axioms. A system that can perceive
187structure, in a "sensori-" way, and can manipulate structure, in a
188"motor" kind of way. So a sensori-motor system that percives structure,
189and acts on, manipulates that structure.
190
191### Perceiving structure
192So again, what is structure, and how is it perceived? Once again: it is
193the pairwise relationships or correlations between pairs of "things".
194The pair-wise connections form a network graph, of vertexes and edges.
195This network graph is in rough correspondence with the "external world"
196that is being perceived. A "world model" of sorts.
197
198Fix a vertex, and cut all the edges connecting to it in half. This gives
199you a jigsaw piece. For each jigsaw piece; one for each vertex.
200Categorize these: Many will be identical. The frequency (count) of
201identical ones follows a Zipf power law distribution (as experimentally
202observed, i.e. "in practice")
203
204Now, cluster them "by similarity". One of the easiest ways fo doing this
205is by cosine-similarity. Cosine similarity requires vectors; where do
206the vectors come from? They arise entirely naturally, in many ways. For
207example, consider all jigsaws that have the label "A" for the center
208vertex; these will have a large variety of labels "p,q,r..." on the
209connectors. How many are there? Say there are `N(A | p,q,r...)` of
210these. If we hold "A" fixed, while allowing "p,q,r..." to vary, this
211forms a vector! The ket `|p,q,r,...)` is the basis elt of the vector.
212Suppose the central vertex is labelled by "B": then `N(B | p,q,r...)`
213is another vector, and the dot product is easy:
214```
215 A . B = Sum_{p,q,r..} N(A | p,q,r...) N(B | p,q,r...)
216```
217In practice, (i.e. experimentally measured) the dot products are
218gaussian distributed, i.e. the data is distributed uniformly on a very
219high dimensional sphere.
220
221
222
165223
166224pairs.