It may sound strange that quantum physics play a role on building a fractal AI, but actually it is the real base for such an algortihm.
Today I want to comment on my very last idea: using real Feynman integrals on the Fractal AI.
|First try to draw the fractal|
The Fractal AI I have been working on is finished, I can't make it more intelligent. It is in fact very intelligent, it could scape from a cloud of 50 falling asteroids in the last post (I repeated the test today with 200 futures, I will add it at the end).
But I feelt it was not really completed. There were 3 very dark spots on the algortihm and the idea behind it:
1) I was still using one heuristic to accumulate the final decision. It was needed but was ugly, and not friendly when converting the algorithm into a quantum one. Basically, when the future reached the desired time, I needed to "remember" how did each future started on t=0 to be able to accumulate my decision.
2) It was not totally symmetric on the effect on the fractal shape of a clone vs a collapse. Cloning was more powerful than collpasing, so the cloud of futures always tended to expand. The assimetry was not that ugly, it basically means that creating is more optimal than destroying for any long term goal you may have.
3) It was not symetric in time. Futures only walk towards the future, they don't walk back in time. It may sound strange to name it a "asymmetry" but it is, and a big one.
Then I found a nice solution: if futures could travel back in time, then the asymmetry 2 would swap and cancel, as the futures going back compensate with the others. The ones coming back in time would tend to agrupate instead than expanding and so on.
This solution also eliminated heuristic 1, as the futures would "come back" and tell me where to go or what to decide. I just needed to account for negative dt on the fractal formulas. And it was easy! the idea fitted perfectly with the formulas, I just needed to add "* dt" on them instead of assuming it was "one".
Here you have a simplified drawing of the idea:
|First try to draw the fractal|
On the left-most side you see your actual position, where the system is now. The left side of the flame represent the futures you are imagining toward the future, as in the actual incarnation of the Fractal AI. As you see, it expands and create flames like a real fire. It does it exactly this way.
When time reachs the time horizon "Tau" in the middle of the drawing, a gray image is created. It represnt the most probables futures you will have given your actual position, after a time Tau. It correspond with the "probability cloud" some times is used instead of the wave equation, that actually corresponds with the whole flame.
On the right side, time is inverted, so futures travel back to present. Well, not exactly to present, instead, they travel to present+dt.
On his travel back to present, the fractal laws of growth used in the first half are inverted, so, for instance, exclusion principle is inverted so clusters of futures are created, as dense as possible.
This makes the falling futures to shrink and compactify into smaller and smaller areas as they reach present+dt. It could still end up forming two of those "hurricanes", so particle could travel one way of the other. You have a particle with to superimposed states.
Also, potencial differences, that in the first half made futures to clone, now repel. Futures now don't want to fall down using a lot of the potential energy they accumulated in the way up to future, they want to retain as much as possible, so inverting this growth law, makes futures coming back to tend to the path of "minimum action", the one that cost less energy to travel, or using the shortest path in the metric it defines over space, if you prefer relativity way.
I am quite sure this new way of using the fractal growth would outperform my actual Fractal AI (the one that don't come back from the future) in some orders of magnitud, but this is not a real Feynman integral, it is not the way it should be.
There is still one "human simplification", one that should not be there: futures bounce back when they arrive to time Tau, magically, using a hacker's trick: I just invert dt for them by code. I feel dirty!
There was still a missing part: collapsing a future was not what I was doing (send it to a random neighborn position), instead, I just needed to make "collapsing" mean: invert dt direction.
With this addition, everything seems perfect to me. There are no more heuristics at all, no more asymmetries, and no more human coeficients: "seconds to think" is now obsolete! Given a problem, and given a number of futures to use (or how powerful your CPU is) the fractal will reach as far in the future as it is safe and profitable to go.
BTW, the resulting algorithm can be converted into a quantum algorithm, and, in this case, fractals disapear from code... well, ALL the code would dissapear!
I have not coded this fractal so far, so I can only show you a more accurate drawing of what the real fractal would look like.
|Second version of the fractal|
This strange drawing represent the whole idea of using Feynman integrals formed of fractals.
It starts in the lower-left black particle. It is your state at present time t. From this point, hundreds of virtual particles like just randomly travel into the future, governed by the fractal growth rules, so the fractal they form evolves up into the future, forming flames and whirpools. Where this fractal get very dense, futures collapse here and there and start to fall down to present, traveling back in time.
In this way down, they attrack each other, forming narrow cones, and travel following the minimum action path, the easiest path in other words, again only by applied the inverted fractal growth laws.
Eventually, some futures reach you present. You just need to follow them. After one future fall to the present, you take a small step towards it, picking it up, and sending it again to fly.
This form what you see in the drawing: a cloud of futures evolves over your present, following some growth laws that mimics the possible paths it could follow and forms a evolving fractal. The portions of this fractal cloud that separates and fall down to the present, are the answers to where should I move next. The particle will move toward those folling futures, and the intelligence will decide to go where those futures falled, and so on.
This fractal I have described here, when translated to particles with charge (QED), looks like a Feynman fractal integral, using fractal paths, and when Feynman dyagrams on the cloning and collpaing points of the fractal. I call it the "Feynman Fractal" as I think I first discovered it, but had no fractals to label it for us.
A lot of interesting things goes under this fractal unnoticed at first: particles that travesl on space, but not in time (as dt can be zero), particles with no charge at all formed from charged particles, and particles that produce exclusion forces but don't interact with any other particle. Quite similar with dark matter and dark energy!
I plan to have a working QED fractal simulator using this new approach in one or two weeks, and if it work out as spected, it should be the nicest screen saver ever!
Adapting it to the Fractal AI will need a little more time, as this fractal is not continuously generated, it collapses back at every frame, and I need it to be stable in time.
This is surely one of the most surealistics post in the blog, may be quite a long shot to comment here without showing any facts, but I feel the whole idea is so perfect and self consistent that deserved being commented.
And the new video with the "half done" fractal AI vs 50 asteroids, now with 200 futures:
Look terrible easy from this distance!