Tuesday, June 16, 2020

Simplificational Causal Decision Theory

In a few spare moments lately, I found myself revisiting issues regarding the foundations of decision theory, and came up with a few ideas that are somewhat new and maybe useful.

TL;DR version is:


  • I define "simplificational causality", as a slight generalization of the definition of causality using algorithmic Markov conditions
  • I give a (semi-)formalization that tells a system what properties it could potentially possess that would be (simplificationally) causal for the situation of being embedded in desirable possible universes.


I think this is as close as one can come to a meaningful reasonably-general-purpose decision theory without getting boggled up with delusions of free will and such.

Boring Historical Prelude


The last time I plunged into decision theory issues was a decade ago when I wrote a draft called "Counterfactual Reprogramming Decision Theory" (CRDT) which I was somewhat but not entirely happy with.   The abstract of that paper read:

"A novel variant of decision theory is presented. The basic idea is that one should ask, at each point in time: What would I do if the reprogrammable parts of my brain were reprogrammed by a superintelligent Master Programmer with the goal of supplying me with a program that would maximize my utility averaged over possible worlds? Problems such as the Prisoner’s Dilemma, the value of voting, Newcomb’s Problem and the Psychopath Button are reviewed from this perspective and shown to be addressed in a satisfactory way."

(That plunge into decision theory was largely triggered by the legendary transhumanist John Oh who, after the first AGI conference in 2006, hounded me relentlessly for a solution to voting paradoxes and other such decision-theory conundrums!)

At some point in the subsequent years I decided that CRDT was basically the same as UDT2, an improved version of Wei Dai's Updateless Decision Theory.   For background see


UDT and UDT2 are described in the above links as follows (just to give you a flavor if you're too lazy/busy to click on the links)

"More formally, [in UDT] you have an initial distribution of "weights" on possible universes (in the currently most general case it's the Solomonoff prior) that you never update at all. In each individual universe you have a utility function over what happens. When you're faced with a decision, you find all copies of you in the entire "multiverse" that are faced with the same decision ("information set"), and choose the decision that logically implies the maximum sum of resulting utilities weighted by universe-weight. 

"UDT1 receives an observation X and then looks for provable facts of the form "if all my instances receiving observation X choose to take a certain action, I'll get a certain utility".

"UDT1.1 also receives an observation X, but handles it differently. It looks for provable facts of the form "if all my instances receiving various observations choose to use a certain mapping from observations to actions, I'll get a certain utility". Then it looks up the action corresponding to X in the mapping."

... "[W]hile UDT1 optimizes over possible outputs to its input and UDT1.1 optimizes over possible input/output mappings it could implement, UDT2 simultaneously optimizes over possible programs to self-modify into and the amount of time (in computation steps) to spend before self-modification."


This is weird-ass convoluted stuff but you actually do have to go to these sorts of lengths to avoid various pathologies and paradoxes that emerge from more straightforward "textbook" approaches like evidential and causal decision theory.

As neither CRDT nor UDT2 was ever fully formalized or fleshed out, it's hard to say (without doing a lot more work) exactly how close to equivalent they are or what the key differences are.

Anyway now  -- with the benefit of a decade of reflection on the fundamental nature of the universe and how to formalize it in simple ways -- and also with the benefit of the concept of algorithmic Markov conditions, due to Janzing and Scholkopf -- I have been taking a different and (I currently think) more fundamental direction regarding these topics.

(Relational) Simplificational Causality

So, getting the point --

-- or, firstly, the setup needed to properly articulate the point --

Consider an ensemble of possible universes, and a certain predicate F which applies to systems within universes (a “system” being, at first approximation, simply a subset of a universe — though there may emerge some reason to restrict this).

The predicate F defines an “individual”, e.g. Ben Goertzel or the USA, in a way that spans the instances of this individual across multiple universes.  If F(S) is true then S is an instance of the individual.

Assume a meta-observer, which is another predicate G that applies to pairs of the form (system, property), and makes estimates G(S,f) of the degree to which system S displays property f.

Assume a value function v(F,U), which rates the quality of a universe from the perspective of an individual, so that vv=(F,U) can be inferred by the meta-observer from looking at the state of some instance of F.

Then the desirability of a universe according to F, should be measured as the value measured by v(F,U) for the instances of F in universe U.

A property of an individual is characterized by a predicate that assesses the degree to which an instance possesses that property

The desirability of a property of instances of F, should be measured as the average over universes of:

(desirability of the universe) * (degree to which the instances of F in the universe have the property) 

Now let’s assume a simplicity measure s(F,A,B), which measures the conditional simplicity of predicate A relative to predicate B, from the perspective of F (meaning that the meta-observer can identify  the assessment of s(A|B) relative to an instance of F via inspecting that instance). 

(In "Grounding Occam's Razor in a Formal Theory of SimplicityI gave one approach to defining a set of properties that a function should have to be considered a useful simplicity measure.)

We can define the mutual simplification of x and y conditional on z as

I(x:y| z)= s(y|z) = s(x|z) + s(y|z) - s(x,y |z)

And then... ba-da-bing! ...  we can construct causal networks, e.g. between properties of individuals, using the postulate that if x and y have nonzero mutual simplification, they must have some common cause.

This is what I'd call “simplificational causality”.

(Note that the above is a minor generalization/abstraction of the algorithmic Markov condition approach to causality outlined in Causal inference usingthe algorithmic Markov condition... an outstanding paper that I recommend strongly...)

For a given degree d of desirability, we can then ask: What is the simplest property that instances of F may have, that will be simplificationally causal for these instances to have desirability of degree at least d?

So -- what does all this cockamamie abstraction tell us about decision theory?

OK: This is not exactly telling an instance of F what decision to make in a given circumstance. 

But it IS telling an instance of F what properties it could potentially possess that would be (simplificationally) causal for the situation of being embedded in desirable possible universes.

Now I suspect that if you measure simplification using algorithmic information, then when you work out the math of algorithmic Markov conditions, you'll wind up with something in the close vicinity of UDT2 and CRDT.   However, even if so (as usual I don't have free time to work the details), I think the formulation I've given here is more conceptually elegant and transparent.

Practical Approximations/ Applications?

It's not why I started musing in this direction, but I think there may actually be some use for these ideas in the SingularityNET / Rejuve team's currently work using OpenCog for causal network inference in a biological context (soon perhaps to be extended to other contexts such as robotics).

We are estimating relative simplification in OpenCog now using fuzzy pattern-sets constructed from nodes and links in OpenCog Atomspace (this is part of the PLN logic systems intensional inference).   So we have some practical ways to estimate simplification, and in this context we could estimate the simplificational causality between two biological actors, e.g. two proteins playing roles in protein interaction networks, which can be useful e.g. in automated discovery of new biological pathways.

(Of course this practical work involves simplicity measures that are crude compared to e.g. conditional algorithmic information, but they have the advantage of being feasible to estimate...)

Tuesday, May 12, 2020

Morphic Anti-Resonance


Morphic resonance — in which patterns that have previously occurred are more likely to re-occur — is a powerful force, characteristic of human minds and cultures and also of the quantum world (cf Smolin’s Precedence Principle)

But it’s also interesting to think about cases in which morphic anti-resonance holds...

I.e. with  morphic anti-resonance, when a pattern occurs, it is then LESS likely than otherwise would have been the case, to occur again...

Advanced financial markets could perhaps be like this (because a pattern once it's occurred is an exploitable behavior, so whomever sees the pattern has already been exploited may be extra-disinclined to enact it again)

The decline effect in psi could also be like this... once an experiment has worked, anti-resonance will cause it to stop working…

Now, it might seem anti-resonance is also a meta-level regularity expoitable by intelligence ... except that via reflexive application to itself, once anti-resonance kicks in, it will kick itself out ;D

Trickstery indeed…

What if clusters of morphic resonance are somehow balanced by clusters of morphic anti-resonance, leaving the overall cosmos morphically neutral-on-average but wildly high-variance...?

Toward a Formal Model of This Madness/Anti-Madness

If we look at the distribution over patterns in the multiverse, where p(R) indicates the probability of observing pattern R during a certain big chunk of spacetime, then

Compared to a multiverse with no such oddities,


  • A multiverse w/ morphic resonance will have a more pointy, peaked (i.e. lower entropy) distribution p()
  • A multiverse w/ morphic anti-resonance will have a flatter (i.e. higher entropy) distribution p()


So if we assume we have a multi-multiverse described as a probability distribution over multiverses, then we may posit that the average multiverse has a no-resonance p(), but this is achieved via having some multiverses with higher-entropy p() and some with lower-entropy p()

Path integrals must then be taken in the multi-multiverse not any base multiverse

Psi would then be a mix of

  • Morphic resonance and anti-resonance phenomena
  • Shifts from one multiverse to another, which involve shifts in the entropy of the multiversal pattern-probability distribution

Also note -- an observing mind's reality may be a paraconsistent patchwork of probability distributions (multiverses) rather than a single consistent  multiverse...

Dialectics of Creativity

Going further out on the limb -- Perhaps morphic resonance and anti-resonance enact the dialectic dance of creation vs. destruction?

I am reminded of economics approaches where anti-money is used in place of debt,


In economics the conserved-ish quantity is money, in physics it's energy, and in morphic pattern-omics it's synchronicity (degree of spooky resonance).   

Conservation of synchronicity suggests that a bit of morphic resonance over here is balanced out by a bit of morphic anti-resonance over there.   That's how morphic resonance can exist without morphically resonating the cosmos into a repetitive mush...

GTGI -- General Theory of General Intelligence... coming gradually...


In the background, using spare time here and there, over the last few years I've managed to write down a series of sketchy research papers summarizing key aspects of what has been a long-running thread in my  mind for a very long time: A general theory of general intelligence.  

And by that I mean a REALLY REALLY general theory of general intelligence ... including the phenomenological aspect of "what it is to be a general intelligence" ... including consciousness from first, second and third person perspectives ... and including the dynamics via which minds help construct each other, and minds and physical reality co-create each other.   But also encompassing practical information about how human brains achieve general intelligence and why they achieve it the way they do, and how to effectively create general intelligence in various synthetic substrates, such as computer software.

I certainly don't claim to be there yet.   However, after a few sketchy papers hastily typed out in late nights during the last year, I feel like I finally have a complete outline of such a theory.   I know what needs to be in there, and quite a lot of what should be rigorous theorems in such a theory, I now have at least in the form of rough but explicitly articulated conjectures.

In this blog post I'm going to briefly run through these various papers and explain how I believe they build together toward a GTGI.   I'll also highlight some of the gaps that I think will need to be filled in to complete the GTGI story along these lines.

Starting from the philosophical, this paper


outlines a high level perspective on "life, the universe and everything" that bridges cognitive science, theoretical physics, analytical philosophy, phenomenological philosophy and more.
   
In part this paper was intended as a sequel to the book


that I co-edited with Damien Broderick.   The book reviews some of the copious evidence that psi phenomena exist, but doesn't try to explain how they might work.   The Euryphysics paper tries to outline a world-model within which a rational yet non-reductive explanation of psi might be constructed -- by constructing a very broad world-model going beyond traditional categories such as physical mental and cultural reality.

"Euryphysics" means "the wider world" -- a core concept is that there is a broader domain of existence of which our 4D spacetime continuum and our individual minds are just small parts.   The regularities governing this broader domain are not entirely "physics-like" (evolution described by concise sets of differential equations) and may be more "mind-like" in some sense.   Aspects of "consciousness" may be best considerable at the level of euryphysics rather than physics or individual psychology.

But how to build a theory of the Eurycosm?   (Among other things, this could be -- a theory explaining interesting details about how mind and physical reality create each other.)

Let's start with elementary observations.   The most elementary sort of observation is a distinction -- just an act of distinguishing some stuff from some other stuff.  (Yes, I had some influence from G. Spencer Brown and his friend Lou Kauffmann.)    This paper


introduces a theory of "distinction graphs" -- in which a link is drawn between two observations, relative to a given observer, the observer cannot distinguish them (while it's not clarified in the paper, basically an "observation" can be considered as "something that can be distinguished").   Graphtropy is introduced as an extension of logical entropy from partitions to distinction graphs, along with extensions like probabilistic and quantum distinction graphs.   An analogue of the maximum entropy principle for distinction graphs is suggested.

Graphtropy gives a broad view of surprisingness, which has  many values including giving a foundation for notions of time.   As suggested in the Euryphysics paper, local time flow may be interpreted in terms of surprisingness gradients, and global time axes via stitching together compatible local time flows.

Among the various tools that can be useful for analyzing distinction graphs and associated structures is the notion of simplicity vs. complexity.   This paper


attempts an axiomatic characterization of "what is simplicity"?   Conventional simplicity measures like minimal program length emerge as a special case.

Simplicity allows articulation of "what is a pattern"?   (A pattern is a representation-as-something-simpler.)

And this allows a nice formalization of the Peircean idea of "the tendency to take habits" -- which is equivalent to Smolin's Precedence Principle in quantum mechanics, or Sheldrake's morphic resonance principle, a plausible high level explanation for psi phenomena.

One would also like to construct something like probability theory that is natural on graphs (e.g. distinction graphs), in the same way that conventional probability is natural on sets.   In this paper (inspired heavily by Knuth and Skilling's classic paper Foundations of Inference and its sequels),


I bite this bullet, giving a specific way of constructing intuitionistic "generalized probabilities" on top of graphs, hypergraphs, metagraphs and similar structures.   The approach relies on some way of assigning "costs" to different graph transformations -- which is provided e.g. if one has a simplicity measure in hand.

It's also the case that if the nice symmetries needed to construct probabilities only hold approximately for a given domain -- then you get an uncertainty measure on that domain that is approximately probabilistic.   I.e. the dependence of probability theory's rules on the underlying symmetry axioms is reasonably smooth, as I argued here:


(I only explicitly considered the case of classical probability theory, but the same arguments would hold for the intuitionistic case.)

Once you have probabilities, you have second order, third order and then... infinite-order probabilities (defined as distributions over spaces of infinite-order probabilities):


Are these useful?   Well one can construct interesting models of aspects of phenomenological experience, using non-well-founded set theory (aka hypersets),


and layering uncertainty onto these models, you get infinite-order probabilities.

There is some unification not yet written out here: The hypersets I consider are modeled by apg's ("accessible pointed graphs", i.e. a digraph with a distinguished node N from which all other nodes can be reached), and a directed distinction graph can be interpreted as patchwork of apg's.    One can build apg's up from distinction graphs, though I haven't written up that paper yet.   Basically you model distinctioning as a directional process -- you ask if an observer already has made observation A, is it able to make observation B considering B as distinct from A?    This gives a directed distinction graph, which is then a patchwork of apg's, i.e. a mesh of overlapping hypersets.

Given probability distributions and simplicity measures, one can start measuring intelligence in traditional ways ("traditional" in the sense of Legg and Hutter or my first book The Structure of Intelligence) ... one can look at intelligence as the ability to achieve complex goals in complex environments using limited resources...


Though it is also worth keeping in mind the wider nature of intelligence as Weaver articulated so richly in his PhD thesis


Another paper I haven't yet written up is a formalization of open-ended intelligence in terms of richness of pattern creation.  

One can formalize the three key values of "Joy, Growth and Choice" in terms of graphtropy and pattern theory (Joy is patterns continuing, growth is new pattern being created, choice is graphtropy across pattern space) -- so relative to any local time-axis one can look at the amount of Joy/Growth/Choice being manifested which is one way of looking at the amount of open-ended intelligence.

One way to move from these intriguing generalities toward specific cognitive, computational and physics theories is to assume a specific computational model.   In this paper


I articulate what seems an especially natural computational model for general intelligence (CoDDs, Combinatorial Decision Directed-acyclic-graphs), and I conjecture that if one assumes this computational model, then some nice compatibilities between graphtropic measures of complexity and simplicity-theoretic measures of complexity emerge.  (Actually the paper talks about correlating algorithmic information with logical entropy but the generalization to graphtropy is not a big leap.)

A CoDD is basically a decision tree that is recursively nested so that a whole decision tree can serve as an input to a decision tree, and augmented with the the ability to replace two identical subtrees with two instances of a certain token (memo-ization).    Repetition-replacement and recursion are enough to tweak decision trees into a Turing-complete computational model (which is basically the insight that SK-combinator calculus is universal, phrased a bit differently).

This computational model also leads to some interesting extensions of the basic model of pattern as "representation as something simpler", including the notion of "quattern" -- the quantum analogue of a classical pattern.

The paper doesn't draw any connections with distinction graphs -- but it's quite interesting to look at CoDDs whose leaves are observations related in a distinction graph.

My primary focus is on applying these GTGI-ish ideas to AI and cognitive science, but the applications to physics also can't be overlooked.    In this verrrry sketchy notes-to-self type paper


I outline a possible path to creating unified (standard model + gravity) physics models via hypergraph models (including hypergraph links with causal interpretation).    Spacetime is a hypergraph and event probabilities are estimated using Feynman type sums that add up terms corresponding to multiple spacetimes as well as multiple possible scenarios within each spacetime.  

Ben Dribus, a mathematician who has developed his own  much  more in-depth graph-based physics models, has (in a personal communication) sketched a dynamical equation that works in my causal web model.

Another paper not yet written up regards the formal similarities between conservation of energy in physics and conservation of evidence (i.e. avoidance of double counting of evidence) in logic.   One can view energy as the form that observation takes in a certain logic (that has observational semantics), and then physical dynamics as a process of derivation in this logic, with the consistency of the logic depending on the conservation of energy (which avoids double-counting evidence).

Extending this physics-ish line of thinking in a direction that also encompasses the cognitive, was a recent paper with a messy title:


The basic idea here was to come up with physics-ish "dynamical laws of cognition" by replacing Shannon algorithm in MaxEnt type principles, with algorithmic information.     Not yet done is to extend this to graphtropy -- by extending Maximum Caliber Principle to distinction graphs that evolve over time, and then creating a corresponding form of Maximal Algorithmic Caliber that works with Combinatorial Decision Dags whose primitives are observations in a distinction graph.

The "maximum caliber principle" is extended to a "maximum algorithmic caliber principle" that characterizes the possible worlds most likely to accord with a given set of observations -- one should assume the world has evolved with the maximum algorithmic caliber consistent with observations (basically, the most computationally dense way consistent with observations).   Basically, this just means that if you don't know how the world has made your observations come about, you need to make some assumption.   Lacking some simplicity prior, there are more possible worlds involving a lot of distinctions than a few, so the odds will be high (based on simple Principle of Indifference type symmetry arguments) that the underlying reality makes a lot of distinctions.   Given a simplicity prior, the most likely worlds will be the ones that make about as many distinctions as the prior considers in the "reasonably likely" range.

Algorithmic Markov processes, the algorithmic-information analogue of ordinary statistical Markov processes, turn out to be the most rational hypothesis to use when inferring processes based on data.   There are more possible processes similar to an algorithmic Markov process that obey your given constraints, than any other sort of processes.    If you looked in the mind of a near maximally generally intelligent AIXI-tl type agent, you would see that it was implicitly or explicitly making the assumption that the world is often roughly an algorithmic Markov process.

To move from these highly general "laws of mind" toward laws of human-like mind one needs to look at the special situations for which human-like minds evolved.   In the paper


I suggest that symmetries and other regularities in the environments and goals that an intelligence needs to deal with, should be mappable via (uncertain) morphisms into corresponding symmetries/regularities in the structure and dynamics of the intelligent system itself.   I roughly formalize this correspondence in terms of category theory (which ultimately needs an intuitionistic probability-like quantity like the one I mentioned above, which however I only discovered/invented a few years after writing the Mind-World Correspondence paper).

As for what are the symmetries and regularities human-like minds in particular need to deal with, I made some concrete suggestions in


It should be noted that my suggestions are far more specific than what the great Yoshua Bengio proposed in his "consciousness prior" paper.   Basically there he suggests that AGI needs a prior distribution that favors joint distributions that factor into forms where most weight goes to a small number of factors.   This is a very sensible idea and does indeed tie in with the way working memory works in current human and AI minds.   However, I think the structure and dynamics of human-like minds have been adapted heavily to considerably more specialized assumptions to do with modeling events in 4D spacetime, and specifically to handling communication among spatiotemporally embodied agents who share the same sensation and action space.

One feature of the environments and goals human-like minds are faced with, is that they tend to factorize into qualitatively different types of knowledge / perception / action -- e.g. procedural vs. declarative/semantic vs. attentional vs. sensory, etc.    This leads to minds that have distinct yet closely coupled subcomponents that need to have robust capability to help each other out of difficult cognitive spots -- "Cognitive Synergy", which underpins the OpenCog AGI design I've been working on for 1-2 decades (depending how you count).   The different types of human memory correspond closely to different aspects of the everyday human physical and social environment.

The Embodied Communication Prior includes "tendency to take habits" as a corollary.   This leads to the amusing notion that, via reflexive application of morphic resonance to itself, the human sphere within our physical spacetime may have some "spooky synchronistic correlation" with other portions of the Eurycosm that also happen to display the tendency to take habits!

More prosaically, the paper


formalizes the concept of cognitive synergy on a category-theoretic foundation.

What is not articulated fully there is that, ultimately, the cognitive processing of real-world AGI systems can be viewed as: a set of interacting cognitive algorithms, each of which in a sense results from doing program specialization on the universal algorithm "form an algorithmic Markov model consistent with one's observations, and use it to drive inference about what procedures will achieve one's goals given the observed context", relative to focus on a specific sort of knowledge, memory or situation (e.g. procedural, sensory, declarative...).   These specialized cognitive algorithms must be learned/evolved based on multiple constraints including energetic usage, minimizing spatial extent and maximizing processing speed, and interoperability among the different cognitive algorithms (so that they can see each others' internal states so as to help each other out when they get stuck).

Design of a framework like OpenCog  may be viewed as performing this sort of program specialization "by hand", as we don't have automated program specializers capable of this degree of complexity.  An AGI program specializer will be able to do it, but then we have a chicken-egg problem -- which is solved by human AGI system designers performing the first round of the iteration.

The paper


explains how the connection between language, action, perception and memory works in terms of the category-theoretic model of cognitive synergy.

The paper


gives some speculative ideas regarding how the human brain may implement some of these abstract structures (using multiple neural-net modules interconnected, e.g. different, closely cooperating architectures for corpus and hippocampus -- but not as simplistically interconnected as in currently popular deep or shallow neural net architectures).

This lets us revisit the vexed issue of "consciousness."   My view is that consciousness is a universal property immanent in all existence, but that "human-like consciousness" has some special properties, which come out of the Embodied Communication Prior along with other factors.   This paper


aims to identify what is special about human-like consciousness as opposed to other flavors.    

This includes physical and computationally-cognitive correlates of the hyperset models of self, will and awareness alluded to earlier.   Mapping between distinction graphs and hyperset apg's, can be seen as mapping between sensate-oriented and reflection-oriented reflexive meta-views of the same base subjective experience.

This paper


deals with the question of identity under conditions of gradual change -- arguing that if a mind changes slowly enough that, at each stage, it models where it came from, where it is and where it's going in terms of a unified self-construct.... then in essence it IS a unified self.    This IMO solves the issue of "continuity of consciousness and identity" in a mind uploading context.

To realize these abstract GTGI ideas in practical AGI systems, one needs a series of bridging formalisms, toolkits and systems.   This is something I'm currently working on within the TrueAGI / Atomese 2.0 research initiative (still an early-stage non-public thing), but one paper has recently crawled out of this particular research swamp:


Among other things, what is advocated there is a gradually typed approach to AI programming, wherein different cognitive processes corresponding to different types of memory/knowledge are realized using different type systems.   Casting between these type systems is part of the process of cognitive synergy.  

There is a Curry-Howard correspondence between a gradually typed language like this, and a paraconsistent logic.   As cognitive processes must be probabilistic, what we ultimately  have is a Curry-Howard correspondence between intuitionistically-probabilistic paraconsistent logic and a gradually typed probabilistic functional programming language.  

The intuitionistic aspect of this logic, maps into the absence of highly general continuation-passing features in the language -- and it means that ultimately the logic can be reduced to operations on distinction graphs, and the corresponding programs can be reduced to e.g. CoDDs operating on elementary observations drawn from distinction graphs.

An AGI-oriented hypergraph knowledge store like the OpenCog Atomspace can be viewed as a CoDD that operates on the elementary observations made by a specific cognitive system, and abstracts from these observations to form programs for generating sets of observations from more compact descriptions.   These include observations of what action-combinations tend to lead to what goals in what contexts.   A programming language like Atomese 2.0 is a concise, workable way of creating higher level program constructs equivalent ultimately to CoDDs over distinction graphs.

So there you go.   Turning all the above papers into a single coherent narrative would be many  months of full-time work -- and then turning all the conjectures in the papers into actual theorems would be probably several years of full-time work.   I'm not sure when I'll get to all that, since I have an insane number of other things on my plate.   But I do feel like it's finally time for the "weaving together and rigorizing" phase of my GTGI quest -- I think that with the most recent few papers, among the ones listed above, the core ideas needed have finally fallen into place!

Saturday, April 11, 2020

The Likely Nasty Social, Economic and Surveillance Aftereffects of COVID-19 -- and How to Combat Them



A lot of attention right now is going into the question of flattening the curve of global COVID-19 infection -- and this is exactly right.   I've been trying to do my own part here, via organizing the COVIDathon blockchain-AI-against-COVID-19 hackathon, and working with  my SingularityNET colleagues on using some of our AI code for simulating COVID-19 spread and analyzing related biology.

It's also important, though, to think about the other side of the curve -- what happens once the virus starts to gradually recede into the background, and life resumes some variation of "normal."    How will things be different after COVID-19?  Which of the unusual things happening now in the midst of the pandemic are likely to continue to have impact in the post-pandemic world?

TL;DR it seems the answer is: Barring something unusual and countervailing happening, the impact of the pandemic will be the rich getting richer, the poor getting poorer, and Big Tech and Big Government getting more access to diverse personal data and more skill at mining it effectively.

Potentially these effects could be palliated by rolling out decentralized blockchain-based technologies for managing aspects of the pandemic and the pandemic-era economy.   But it appears likely that, even if we succeed in getting a few such technologies built and adopted rapidly via COVIDathon and other efforts, by and large it will be centralized technologies, centralized government agencies and companies and the traditionally financialized economy that will dominate COVID-19 response.

A more open question is whether, when the next pandemic or other global crisis rolls around, decentralized tech will be ready to play a major role.   Can COVID-19 and its impacts on society, economy and industry serve as a wake-up call regarding the risks global crises pose on multiple fronts including data sovereignty and economic fairness?   Will this wake-up call be loud enough to rouse a large open-source development community into action regarding the creation of decentralized, secure and democratically controlled technologies for doing things like, say, managing uploaded personal medical data ... tracking and predicting spread of epidemics ... carrying out precision medicine analytics on clinical trials
 ...  and assessing lifestyle choices in the light of current medical realities and practicalities like weather and transportation?

Let's run through the probable future in more detail.   Social distancing and travel restrictions are most likely to cause the virus's spread to slow as 2020 progresses; and then before too long effective antiviral compounds or cocktails will be available.   Sometime in 2021, most likely, COVID-19 vaccines will hit the market; and then this virus currently wreaking so much havoc will be relegated to a status much like that of the lowly flu.

In the meantime, though lots of low-wage service workers are getting laid off ... and many will not get re-hired, as many businesses will choose to rebuild in other ways after the pandemic fades (automation, anyone?).  For instance, many of the people who are now ordering groceries for home delivery for the first time, will continue doing this a lot after COVID-19 is gone.   Resulting in fewer jobs for supermarket cashiers and other staff.   The same sort

At the same time, savvy investment funds are right now buying up every valuable asset they can at bargain prices -- so that after the pandemic fades they will own an even larger percentage of the planet

And the techlash is already fading into the dim recesses of history along with net neutrality -- as everyone grows increasingly attached to Amazon, Netflix, Google etc. while trapped in their homes using the Internet for everything.  

Big Tech has been underhandedly striving to gather as much medical data as possible, for years now -- e.g. Google Deep Mind's series of sweetheart deals with the British health system to garner access to peoples' medical records; or Project Nightingale which saw Google quietly capture 50 million Americans medical records.  Gathering medical data from a wide population with a view toward pandemic-related analysis and prediction is absolute golden for Big Tech.   This data and the pipelines that bring it their way will continue to yield value for these companies and their government partners long after COVID-19 has been reduced to the level of one more irritating seasonal infection.

As everyone becomes increasingly fearful for the lives of their elderly friends and relations, centralized monitoring of everybody's location and movements and physiological data is increasingly taken as a Good Thing.   Today uploaded temperature readings from a million+ wireless digital thermometers are letting us track the spread of COVID-19 around the US.    Stanford researchers have also shown that, by using AI anomaly detection on data from heart-rate variability, body temperature and pulse oximetry , one can identify a person is sick even before they show any symptoms. 

But then what happens when it becomes standard for your smartwatch, smartphone and fitness tracker to upload your data to Big Tech and Big Government so they can track and analyze disease spread?   Do you really trust these corporate and governmental entities not to use this data for other purposes -- and not to find ways to quietly keep collecting and utilizing similar data?   Edward Snowden has recently gone on record that, no, he does not.  As you may have guessed,  I don't either.

Yet the UK is already going directly down this path, with a governmental software app that detects and tracks nearby COVID-19 sufferers.  Completely harmless, extremely helpful -- until the same tech and organizational set up is used to track other things of interest to the ruling politicos and their business and military allies.

Big Brother is watching your heart rate, your temperature and your blood oxygen level -- better be sure your heart doesn't pound too much when you walk past that political demonstration, or your credit rating's going way down!!

Global monitoring of human movement and human physiology can do wonders for optimizing global health, during a pandemic and otherwise -- but it should be done with decentralized, secure tools.   Otherwise one is placing great trust in the entities that are gathering and utilizing this data -- not only to do helpful things with it in the pandemic, but not to leverage this data and related data-gathering capabilities later in the interest of goals different from that of global human benefit.

At the moment most decentralized networks and associated software tools are still in fairly early states of development -- so to combat COVID-19 fast we are understandably relying on centralized methods.   But this will not be the last pandemic nor the last acute, unprecedented global crisis that humanity faces.   It is important work so that for the next such situation that arises, decentralized frameworks will be fully prepared to play a leading role in helping humanity cope.

Otherwise, each successive crisis will serve to concentrate more and more wealth and power in the hands of a small elite -- which is not at all the best way to create a beneficial future for humanity and its technological children.


Friday, April 10, 2020

Can We "Discover" Semantic Primitives for Commonsense and Math via Semantic Relation Extraction from Corpora?

Once more wild-ish train of thought completely unrelated to anything immediately practical … I was thinking about Chalmers’ idea from Constructing the World  that the notion of universal semantic primitives underlying all human concepts might be rendered sensible by use of intensional logic … i.e. extensionally reducing all concepts to combinations of a few dozen primitives [plus raw perception/action primitives] is doomed to fail (as shown by eons of pedantic pickery in the analytical philosophy literature) but doing the reduction intensionally seems to basically work….

But in his book he argues why this is the case and gives lots of examples but doesn’t fully perform the reduction as that’s too big a job (there are a lot of concepts to intensionally reduce…)

So it occurred to me if we managed to do decent semantic-relation-extraction from large NL corpora, then if Chalmers is right, there would be a set of a few dozen concepts such that doing intensional-logic operations to combine them (plus perception/action primitives) would yield close approximations (small Intensional Difference) from any given concepts

In vector embedding space, it might mean that any concept can be expressed fairly closely via a combination of the embedding vectors from a few dozen concepts, using combinatory operators like vector sum and pointwise min …

As I recall it the intensional-combination operators used in Chalmer’s philosophical arguments don’t involve so much advanced quantifier-munging so basic fuzzy-propositional-logic operators might do it…

Now if we cross-correlate this with Lakoff and Nunez’s thoughts in “Where  Mathematics Comes From?” — where they argue that  math theorem proving is done largely by unconscious analogy to reasoning about everyday physical situations — then we get the idea that morphisms from common-sense domains to abstract domains guide math theorem-proving, and that these potential generators of the algebra of commonsense concepts, can be mapped into abstract math-patterns (e.g. math-domain-independent proof strategies/tactics) that serve as generators of proofs for human-friendly mathematics….

Which led me to wonder if one could form an interesting corpus from videos of math profs going thru proofs online at the whiteboard.  One would then capture the verbal explanations along with proofs, hopefully capturing some of the commonsense intuitions/analogies behind the proof steps… from such a corpus one might be able to mine some of the correspondences Lakoff and Nunez wrote about….

There won’t be a seq2seq model mapping mathematicians’ mutterings into full Mizar proofs, but there could be useful guidance for pruning theorem-prover activity in models of the conceptual flow in mathematician’s proof-accompanying verbalizations.... 

Can we direct proofs from premises to conclusions, via drawing a vector V pointing from the embedding vector for the premise to the embedding vector for the conclusion, and using say the midpoint of V as a subgoal for getting from premise to the conclusion ... and where the basis for the vector space is the primitive mathematical concepts that are the Lakoff-and-Nunez-ian morphic image of primitive everyday-human-world concepts?

Alas making this sort of thing work is 8 billion times harder than conceptualizing it.   But conceptualization is a start ;)



Logical Inference Control via Quantum Partial Search — Maybe


Hmmm...

While running SingularityNET and thinking about next-generation OpenCog and helping Ruiting with our charming little maniac Qorxi are taking up most of my time, I can’t help thinking here and there about quantum AI …

Quantum computing is moving toward practical realization — it’s still got a long way to go, but clearly the Schrodinger’s cat is out of the bag … the time when every server has a QPU alongside its GPU is now something quite concrete to foresee…

So I’m thinking a bit about how to use quantum partial search  (Grover's algorithm on a chunked database) to speed up backward-chaining logical inference dramatically. 

Suppose we are searching in some set S for those x in S that satisfying property P.   (The interesting case is where S is known implicitly rather than explicitly listed.)

Suppose we have some distribution f over S, which assigns a probability value f(x) to each element of S — interpretable as the prior probability that x will satisfy P

Suppose we divide S into bin S1, S2,…, Sk, so that the expected number of x that satisfy P is the same for each Si  (in which case the bins containing higher-probability x will have smaller cardinality) …

Then we can use quantum partial search to find a bin that contains x that satisfies P. 

If the size of S is N and the number of items per bin were constant b, then the time required is (pi/4) sqrt(N/b).   Time required increases with uneven-ness of bins (which means non-uniformity of distribution f, in this setup).

In an inference context, for instance, suppose one has a desired conclusion C and n premises Pi.   One wants to know for what combinations Pi * Pj ==> C.  One then constructs an N = n^2 dimensional Hilbert space, which has a basis vector corresponding to each combination (i,j).  One call to the quantum oracle can tell us whether Pi * Pj ==> C for some particular (i,j) (note though that this call must be implementable as a unitary transformation on the Hilbert space — but following the standard math of quantum circuits it can be set up this way). 

Using straight Grover’s algorithm, one can then find which Pi * Pj ==> C in sqrt(N) time.

If one wants to leverage the prior distribution, one can find which bin(s) the premise-pairs so that {Pi * Pj ==> C } live in, in time (pi/4)  sqrt(c*N/b) where c>1 is the correction for the non-uniformity of the prior and b is the average number of pairs per bin.

With a uniform prior, one is finding log(N/b) bits of information about what the premises are (and narrowing down to a search over b items).

With a non-uniform prior, one is still narrowing down *on average* to a search over b items, so is still finding log(N/b) bits on average about where the items are.

This could be useful e.g. in a hybrid classical-quantum context, where the quantum computer is used to narrow down a very large number of options to a more modest number, which are then searched through using classical methods.

It could also be useful as a heuristic layer on top of Grover’s algorithm.  I.e., one could do this prior-probability-guided search to narrow things down to a bin, and then do full-on Grover’s algorithm within the bin selected.

Constructing the bins in an artful way, so that e.g. bins tend to have similar entities in them, could potentially  make things work even faster.   Specifically, if the elements in each bin tend to be similar to each other, then the bin may effectively be a lower-dimensional subspace, which means the algorithm will work faster on that bin.   So there would be advantage to clustering the items being searched before constructing the bins.   If items that are clustered together tend to have similar prior probabilities, then the bins would tend to be lower-dimensional and things would tend to go faster.

Grover’s Algorithm and Natural Gradients

Now if we want to go even deeper down the rabbit hole — this funky paper shows that the quantum search problem reduces to finding optimal geodesic paths that minimize lengths on a manifold of pure density matrices with a metric structure defined by the Wigner-Yanase metric tensor …

Fisher metric geeks will simultaneously drop their jaws in amazement, and nod and grin in a self-satisfied way

So what we see here is that Grover’s algorithm is actually just following the natural gradient ... well sort of…

Putting some pieces together … We have seen that partial quantum search (Grover’s algorithm over a chunked database) can be set up to provide rapid (on average) approximate location of an item in an implicit database, where the average is taken relative to a given probability distribution (and the distribution is used to guide the chunking of the database)….

Well then — this partial quantum search on a database chunked-according-to-a-certain-distribution, should presumably correspond to following the natural gradient on a manifold of pure density matrices with a metric structure conditioned by that same distribution…

Which — if it actually holds up — is not really all that deep, just connecting some (quantum) dots, but sorta points in a nice quantum AI direction…

Post-Script: Wow, This Stuff May Be Implementable?

I was amazed/ amused to note some small-scale practical implementations of Grover’s Algorithm using Orbital Angular Momentum

It’s all classical optics except preparation of the initial state (which is where the Oracle gets packed).

Could this be how our quantum-accelerated logical inference control is going to work?   Quantum optics plugins for the server … or the cortex?