Search This Blog

Showing posts with label prediction. Show all posts
Showing posts with label prediction. Show all posts

Prediction Schemes: Classicism vs. Non-linear vs. Thermodynamics


Thermodynamics and information theory are often grouped with classical dynamics. This is especially true where theory space is cleaved with quantum dynamics and other quote/unquote "non-deterministic" or "non-linear" theories on one side. But such classifications are problematic for several important reasons. Traditionally, the criteria of inclusion within the rubric "classical" has leaned heavily upon the concept of computation from knowledge of initial conditions. in Newtonian (and Relativistic) dynamics, knowing the initial state of a system allows one to calculate and thus predict the state of that system at any time in the future. Accuracy in prediction, from a classical perspective, is gated only by accuracy of knowledge of the original conditions of that system. Enter now, the strange world of quantum dynamics, where indeterminacy and sensitivity to observation turn classical calculations on their head. Non-clasical systems are systems in which determinism actually works against accuracy of prediction. The more you try to increase your knowledge of the initial conditions of a quantum situation, the less accurately you can predict that system's future.  Much is made of the philosophical implications of observer "relativity" in an Einsteinium space/time model, but vantage-sensitivity is absolutely classical – the more you know about the initial conditions, the more accurate will be your relativistic predictions. In the quantum world, knowledge is itself, a cost of business attribute. In the quantum world, knowledge perturbs. In the quantum world, a system that seeks to know itself, is a system that is changed. In the quantum world, there are two types of systems, systems that are statistically perturbed, and systems that are locally perturbed. Meaning, you can measure (observe) aspects of a whole system without messing with that system, but should you want discrete knowledge of individual particles within that system, you must pay the price of a system that is forever thereafter disturbed. It is interesting how closely the empirically observed quantum world mimics the limits Kurt Godel placed on absolute knowledge.  OK, let us now contrast thermodynamics, specifically the second law of thermodynamics, against both classical or deterministic dynamics and quantum indeterminacy. If one accepts that purpose of knowledge is prediction, is fidelity of calculation to actual future states, than both classical and non-linear theory are self-limitiing. Classical prediction is hampered by limits to the accuracy of observation of the initial state. Quantum prediction is limited by the way systems are perturbed by measurement, the more you know, the more you must include yourself into to prediction calculations, and the more said act is limited by Godel's caps on self-knowledge. One could say that classical prediction is dependent at base upon naiveté, and that quantum prediction is limited by knowledge itself. But what of the second law? The second law allows for absolute knowledge of the end state, of "heat death" or complete dissipation. Unlike all other forms of theoretical abstraction, the second law is absolutely agnostic to initial condition(s). You can use Newton's laws to look into the immediate future of a gravitationally bound system, but the same laws are meaningless in a system perturbed by other forces. Thermodynamic theory doesn't care what forces or materials are at play, it only cares about difference. In fact, thermodynamics doesn't know for the difference between material and force. The second law says that difference will always be less after any change in any system. The second law says that a change in any system will always result in the greatest possible reduction in difference. And importantly, the second law flips determinism on its head by providing perfect knowledge of the final state and doing so absolutely independent of any knowledge of initial conditions. Well that is certainly interesting, a theory that can predict the ultimate future independent of any past or present configuration, or, for that matter, any knowledge what so ever. What can be said of the quality or quantity of action that can be taken as result of this strange sort of knowledge? If success in competition can be linked to accuracy and capacity to predict, than what can be said of competitive success as a function of range of prediction? Imagine one could make and than order all possible predictions from most immediate to most long term. Comparing short-term against long-term predictions, which have the greatest impact on competitive advantage? If someone came into your office today and said, "I can say with absolute confidence that you will die as an artist in Copenhagen", how would such knowledge effect your future decisions and actions? How would absolute knowledge of your ultimate future effect your behavior?  What if we were to compare the influence of such knowledge to short term knowledge of the same certainty? What if that same person came into your office and instead declared, "I have no knowledge of your ultimate fate, but I do know that you will not be able to fall asleep tonight". Would you be more (or less) likely to change or conform your plans or to take action based on short term predictions? There might be a tendency to ignore predictions that are far removed in time. One might reasonably think, "Even if I know that I will become an artist and eventually die in Copenhagen, I have a life to live until then, concentrating on long term eventualities interferes with my ability to successfully negotiate success in the short term, in the here and now. But it might also be reasonable to try to conform local goals to long term eventualities. One might eliminate actions that one feels will make it harder to plot a path towards know eventualities. Or, one might take risks they would not otherwise have taken. If I know I will die in Copenhagen, I might as well go base jumping in the Andes or climb Everest sans bottled oxygen. Surely, the heat death of the universe is an eventuality of much greater philosophical remove. What's more, evolution, as a process, seems to work just fine in the absence of any knowledge of eventualities. Can one make an argument that knowledge of universal eventuality gains its owner any special form of evolutionary advantage? Lets pit two entities against each other, one knows of heat death, the other doesn't. Which has the evolutionary advantage?

Randall Lee Reetz, January 26, 2012

Evolution: Refinement vs. Prediction

Evolution: The changes that will have the greatest effect on the longest future... and what it takes for those changes to survive the present long enough to make it there.

That sentence describes evolution better than any attributed to Darwin. The refinement-on-a-scheme process Darwin described is only the metabolism, the power plant, that fuels evolution. "Fitness" in the present is the necessary evil, not the goal of evolution. Evolution is not the struggle for the right beak shape. That kind of refinement-on-a-scheme only gets you the biggest slice of the local pie. Refinement makes for a powerful now, a perquisite for a powerful then, but it is self limiting. Resources spent adapting to the now are resources not available for adaptation to the future. It is ironic to have to utter these words, but evolution isn't about the here and now. No, evolution is about the biggest there and the longest then. If your purpose is to facilitate the future, you are in the prediction business. So let's re-write our definition.

Evolution: The development and selection of better and better prediction schemes.

However, a prediction scheme is useless unless it can get you from what works now to what will work then. What ensues, is a tug-of-war, a tight-wire-walk, in which an evolution scheme must support both refinement in the now and prediction of the future. The causal implications are complex. Refinement is antithetical to prediction. While the finch is involved in the struggle for a better beak, the larger sphere of resources, the whole of the universe over the longest spans of the future, go ignored and un-tapped. You might argue that a bird doesn't have the capacity to understand the universe or the concept of resources or the maximization of exploitation to which all evolving systems must ultimately compete, and you would be, after a fashion, correct. That is the magic of evolution, the evolving thing doesn't need to understand the process it is engaged in. So long as there are enough individuals and these individuals are each even just slightly different from each other, selection will direct change towards better and better survival and better and better prediction schemes. Changes that promote survival are the easy part. And yet, even though it often works against survival in the present, the capacity to predict will win in the long run.

Darwin can't be faulted for not seeing the big picture. He had to lay down the ground work and the groundwork in evolution is survival. Beak shape is an easily to observe population variance in finch morphology. But beak shape variation is no different than leg length variation, or protean variation, or cognitive and behavioral variation. Critics of evolution in general or Darwin argue that he never actually explained "…the origin of species". Implied in that challenge is a description of a process that results in qualitative changes; animals vs. plants for instance. And this is because he chose to explain his theory through the more overt and obvious adaptations that fall into the category of refinement or fitness in the present. The larger picture of evolution must be told as a conflict between refinement and prediction and that would have been an impossible sell to an already suspicious victorian audience.

Randall Lee Reetz

Real-Time Observation Is Always More Efficient Than After-The-Fact Parsing

Non-random environments (systems):

- have evolved (from a more simple past)
- are (variously) optimized to input conditions and output demands
- are sequentially constructed in layers
- are re-constructed periodically
- are derived from the constraints of pre-existing environments

Understanding (extracting pattern rules and instances of these rules) is made more efficient through observations undertaken over the course of an environment's construction period. Extracting pattern after the fact requires the act of inferring construction sequence from existing artifact. The number of possible developmental paths (programed algorithms) that will result in a particular artifact are infinite. Parsing through this infinite set towards a statistically biased guess at the most likely progenitor is lossy at best and computationally prohibitive.

For instance, the best (shortest algorithmic complexity) candidate produced by post construction parsing may indeed be a more likely (least energy) progenitor, but this may not predict the actual causal chain that resulted in that environment. Projections based on a statistically optimal history will diverge from the futures actually produced by the environment.

The only time that a statistical (minimum algorithm) parsing of an environment is guaranteed to match reality is when that parsing includes the whole system (the entire Universe).

Observing the genesis of an environment minimizes the mandatory errors inherent in statistical after-the-fact (Solomonoff) algorithmic probability parsing of a pre-existing system.

Said more succinctly; If you want to grow an optimal system, use algorithmic probability and algorithmic complexity as metrics towards optimization, but if you want to describe a pre-existing system, it is best to build this description by observing it's genesis.

Randall Reetz

Friendly AI?

Yesterday, I attended a talk by AI researcher Tim Freeman. What follows is my reaction.

Tim introduced a proposal for a method to cut down through all of the detail and complexity of standard AI implementation by exposing the logical essence that sits at base in any intelligence (irreducible). In other words, his approach was more Godel than Minsky… more Nash than Wozniac. His argument, though not stated, seemed to be based upon the tenant that information is information irrespective of complexity. An algorithm that works for a short string of bits, even for a single bit, will work just as well at any level of syntactic or semantic complexity.

I like this approach. Strip the detail to better reveal the essence.

When using this approach one must show that, or accept that, no qualitative attribute of information will ever effect the logic governing quantity attributes of information.

Again, I suspect that all qualitative aspects of information are derivable from, in fact emerge from, the more basic rules that govern information at the quantitative level. In essence this is the same as declaring that it is impossible to construct a molecule will ever change the physics that governs the shape and behavior of the atoms of which it is built. Reasonable. True.

This basic set of assumptions reframes the study of AI. But only if intelligence can be shown to emerge purely from information and information processing… from logic.

If there is some extra-infomrational aspect necessary for the formation of intelligence, than all bets are off… than this approach is at most a sub-system contributor to some larger and deeper organizational influencers. If information doesn't explain intelligence, than something else will have to take its place and this something else will have to be worked into a science that can be explored, organized, and abstracted.

If information can be shown to be both robust and causal in all intelligence, than logic and math seem like reasonable tools for exploration, testing, prediction. and as a solid base of development.

However, there is something about this set of assumptions that makes people angry and scared. Turns out that a purely informational study of AI is the mother of all reductionist/wholest battlefields. There is something about being human that resists the use of the word "intelligence" as a super-catagory that can describe the interaction between two hydrogen atoms, and the works of Einstein by the same criteria and label them both as equally valid examples as the same super-catagory; intelligence!

In this resistance, we are, all of us (at least emotionally), holists. Existentially, day to day, our experience of intelligence is far removed from chemical structure, planetary dynamics, and the characters that make up this string of text. Intelligence, at least our human experience of it, seems profound to the point of miraculous… extra-physical. We therefore have a tendency to define intelligence as a narrow and recent category that is at best only emergent-aly related to other more mundane structures and dynamics. In doing so, we set up an odd and logically fragile situation that demands an awkward magic line in the sand, a point before which there isn't intelligence and beyond which there is. Worse still, our protectionist tendencies with regard to intelligence are so strong as to allow (even within science-oriented thinkers) us accept the existence of so non-scientific a distinction to co-exist in an otherwise consistent mechanical model of the universe.

Of course history is littered with examples of just this sort of human-centric paradox of logic. Biologists, for instance, were often among the scientists that pushed back hardest against Darwin's notions. Darwin's ideas created a super-catagory that had the effect of comparing equally all life, of removing the sentimental line that we humans had desperately erected between us and the rest of biology.

And here we are again, just 75 years later, actively making the exact same mistake. Apparently, after grudgingly accepting kinship with all things living, we have now retreated behind a new false line of privilege and specialness… our intelligence.

Again, one can only argue this separatist position by refuting and rejecting the quantitative mechanistic hierarchical ontology we call physics. Because of the tight interdependency between the laws of physics one can show that the whole of physics is false if just one aspect is falsified. If intelligence is not the emergent product of its parts, than the very sanctity of all modern science is called into question. And if that is true of intelligence, where else in nature is it true? Surely this can't be the only place in nature where a sudden quantitative jump (pre-intellegence to intelligence) separates the purely mechanical from the post-mechanical. Where in nature will we be tripped to a stop by other disruptive lines in the sand where qualities do not in fact emerge physically from quantity? I find the whole notion that intelligence is meta-physical embarrassingly romantic.

Side stepping my physicalist rejection of the meta-physical explanation of intelligence and I still face many huge and loud implications and inconsistencies that need to be faced head on. But that is another discussion.

OK, I have sketched out the human/social framing into which Tim's work has to be received.

Unfortunately, Tim didn't take the time to situate his work to his audience before he began his talk. The inevitable protectionist emotional response grew to a boil. Tim, as is true with any good logician/mathematician plies his trade through a hard won ability to reduce the noise of complex environments to a level where pure and simple rules emerge from the fog of false distinctions. Down at this level, intelligence can be shown to be equivalent to information and information can be shown to the same at any level of quantity, and that information quality can be show to be a property of and emergent from information quantity… what is true of bits is true of strings, what is true of strings is true all the way up to the workings and tailings of any brain or mind.

Tim used this set of reasonable assumptions as a base upon which to postulate a means of predicting future states of any environment based upon the processing of that environments history. Shockingly, though congruent to the information/intelligence he established, Tim then reduced the complexity of his prediction algorithm all the way to its most simple limit, a random state generator. His algorithm proceeded through a series of simple steps as follows:

1. It collected and stored a description of an environment's history (to some arbitrary horizon).
2. It generated a random string of the same length (as the history information).
3. It compared the generated string against the historical string.
4. If the generated string wasn't a perfect match, it jumped back to step 2.
5. if the generated string did match, the algorithm stopped... the generated string was the predictor.

Of course real world situations are far to complex for this most simple of predictive algorithms to be reasonably computable. It doesn't scale. But I think Tim was arguing that any predictive algorithm, no matter how complex, was at base constructed of this most simple form arranged within and restrained by better and better (more and more complex) historical input. Understanding the basic parameters of this most simple form of prediction would logically result in better approaches to the AI problems the same way that an understanding of atoms allows more efficient path towards understanding of molecules.

Unfortunately, Tim never really walked us into the basic framing of his argument. Without which, we were left rudderless and floundering in our own very predictable human-centric and romantic push-back against AI. Without grounding, humans retreat to core emotional response where AI is simply another member of a category of things that rhetorically threaten our most basic sense of specialness and self. Even scientists and logicians need to be gently walked into and carefully situated within the world of pure logic so that they can reformulate their own semantic mappings to concepts that have specific meanings in the pedestrian and platonic meanings in the general.

Ironically, it was at the apex of our trajectory into context-confusion that Tim's talk shifted dramatically back to the pedestrian scale. I can't speak for everyone, but this shift happened at precisely the time when I finally reconnoitered my focus to the world of the super-clean purity of logic.

Though most of us probably didn't follow along fast enough, Tim had spend the first half of the talk laying a groundwork for a most reductionist of pure logic approaches to understanding the physics of intelligence.

And then Tim radically refocused the talk towards "Friendly AI". He yanked us out of the simple world of bits and flung us up into the stratospheric heights of complexity that is the societal emotional context of our shared responsibility to future humans as we build closer and closer towards the production of machine intelligence. In doing so, Tim began to eat his own philosophical tail in dramatic display of fractal self-similarity that is a hallmark of any study that studies study itself. Each time we put on the evolving evolution hat, we enter a level of complexity that threatens to overwhelm all efforts. The field of linguistics suffers the same category of threat… words that are turned inwards and must at once both describe and describe description.

What startled and confused me was the sudden shift of granularity. What confounded me was why he chose to do this at all. There is a rule of description that goes something like this: if you want to use complex language, talk about simple things… if you want to talk about complex things, use simple language. Scientists usually choose, the scientific method absolutely requires, the use of the most simple domain examples as a means of eliminating the potential noise that can't help but arise do to extraneous variables. Tim's choice to apply his low-level logic to the mother of all complex problems would seem to break this rule perfectly.

Friendly AI is a concept so absurdly complex that the choice to use it as a domain example to test a low level logical algorithm would seem to be suicidal at best. Friendly AI, the Prime Directive, morality wrapped in upon itself. Talk about a complex and self referential concept. Intellectually attractive. Practically intractable. Maybe Tim's choice to map his algorithm to this most intractable of domain was meant to assert the power and universality of his work. If he could show that his algorithm could handle a domain that confounded Captain Kirk, he would show that it could tame any domain.

But I can't help but conclude Tim's choice of "Friendly AI" reflected a more general tendency among AI researchers to apologize to a society that constantly pushes back against any concept associated with man-made life. By "society" I mean humans… including of course, all of us involved in AI research (by profession or avocation). We, all of us, are influenced by some of the same base primary fears and desires. God knows we have all felt the sting of our own failures. No one within the AI fraternity has escaped unscathed the Skinnarien conditioning dolled out by our own marketplace failures and perceived failures.

Tim's take on the topic seemed to align with the standard apocalyptic projection. The assumption: any AI would have a natural tendency to asses humans as competition to resources, and would therefore take immediate action to eliminate or enslave us. From this shared biology emerge standard categories of paranoia (ghosts, vampires, living dead). Evil robots and AI are nothing more than a modern overlay upon the same patterns.

I expect this paranoid reaction to AI, but it is still shocking when it comes from within AI itself!. It is intellectually incongruous. As though an atheist was advocating prayer as an argument against the existence of God.

There are many reasons to question the very concept of "Friendly AI". For one, AI is not a thing, like all other intelligences it is a process, an evolving system. Sometimes I am friendly, at other times, not so much. It is unreasonably expect any one behavior from an evolving system. People are not held to these standards, why should machines? Want to piss off a tiger, capture it, and make it stand on a stool while you crack a bull whip near its face. Why make a thing smart if you don't want it to think? Thinking things need autonomy... the freedom to evolve. Maybe we are envious of any thing that might have more freedom, might evolve faster? We probably wouldn't even be here had some species in our past undertook a similar program to reign in the intelligence or behavior of subsequent products of evolution.  The very notion that the future can be assessed from the present or past is a notion that comes from the minds of those who don't understand evolution and those who don't trust it even if they do understand it.

Anyone who thinks they can design an intelligent system from the top down is in for some mighty big disappointments. Though it is an illusion at any scale, our quaint notion that we can build things that last must be replaced with the knowledge that complexity can only arise and sustain itself to the extent that it is at base an evolving dynamic system. If we help create intelligence it won't be something we construct, it will be some process we set into motion. If you don't trust the evolutionary process you won't be able to build intelligence and the whole notion of "friendly" won't matter.

If you do trust evolution, you will know that complexity grows hand in hand with stability. You can stack 10 cards on a table and find the same stack the next morning. Stack a hundred, and you had better build a glass box around them as protection. You will never stack a thousand without some sort of glue or table stabilization scheme. Stacking a hundred thousand will require active agents that continuously move through the matrix readjusting each card as sensors detect stress or motion. The system can only be expected to grow in complexity as it becomes more aware and as it pays more attention to maintenance and stability.

Any sufficient intelligence would understand that its survival increases at the rate at which it can maximize (not destroy) the information and complexity around it. That means keeping us humans happy and provided for, not as our servants but as collaborators. The higher the complexity in any entity's environment the more that thing can do. Compare the opportunity to build complexity for those living in a successful economy against the opportunity available to those that don't.

Knowing what your master will want for breakfast does indeed require some form of prediction. But once you have such predictive abilities, why the hell would you ever want to waste them on culinary clairvoyance? Autonomy is an unavoidable requirement of intelligence. But that doesn't mean a robot's only response to our domestic requests will be homicidal kitchen-fu.

If I had a neighbor that was a thousand times smarter than me, I just know I would spend more and more time and energy watching it, helping it, celebrating it! Can you imagine trying to ignore it or the wondrous things it did and built? I might actually LOVE to be a slave to some master who was that wildly creative and profoundly inventive. I'll bet they would be funnier than any of us without even trying. Try not to fall in love… its a robot for god sakes!

But my real question isn't why the topic of "Friendly AI" ever made it into Tim's talk, it is why it was chosen as the most pertinent example domain for his prediction algorithm. I agree with the premiss: what is true of bits is true of the library of congress, but lets learn to read and write before we announce a constitutional congress. No?