Thoughts on complexity, evolution, life, emergence and a pinch of Zen

What happens on the edge of the chaos stays on the edge of the chaos

Friday, August 28, 2009

On morals and humanism (Part 1: bees and ants)

Even in these modern days, a chillingly large number of people is absolutely certain in their conviction that the human morality and rules of society are god-given and that without religion, none of these would exist. They seem to think that if you are not religious (and mind, most of the time they don't really care what crap you believe in, just as long as you do) then there is nothing that will prevent you from killing your own and other's babies, eating them up while conducting wild orgies with decent people's wives and animals.

Being an atheist myself, I don't have the privilege to use the god explanation as an easy way out, so the question remains - where does our morals come from? I will try to dissect this question over a series of articles, looking at different animal species, early humans and contemporary humans. I have to warn you already at this point that I have no real answers, but will just lay out some facts as I see them, and let you make the final conclusion. So where do we start?

If we go sideways in the evolutionary tree and look at our peer animals that exist in it alongside with us, can we see anything that looks like morals? For example bees and ants - it is the hard-wired morality that is keeping their societies working? Every day, millions of these insects work hard, put their lives on line to protect the queen and the hive (stack) and interact decently with their peers. It does bear some resemblance to our understanding of morality, doesn't it? If a drone was to kill another drone (or even a queen), would this be an immoral act? I'm not sure how often this happens (anybody who knows?) but I doubt these drones would be allowed to mate with the next queen, once she arrives. So the process of evolution will remove any such tendencies pretty quickly. So is this bee-morality? I'll leave it up to you to decide.

One argument that is almost inevitable at this point is that for morality, we need to have a free choice (will), and bees are hard-wired in their behavior, so they do not have a free choice, thus no morality. They never even risk to act immorally - they are born and made to act nicely. And when such bee is born that acts immorally (the drone that kills the queen), it is an anomaly. However, by doing this we are opening the Pandora's box of free will, and I'll refrain of going deeper into this (at this time).

(to be continued...)

Thursday, August 20, 2009

Jade

Ha! Those who seek will find! After sniffing around for autonomous agents frameworks, a beautiful jewel called Jade emerged. This framework is an open source initiative started by Italian telecom and universities, and it allows up to 5000 independent agents (threads) on my laptop, but can be extended to unlimited number of distributed computers. I am playing with it as of right now, and it looks interesting. Maybe I will be making my small social models before I thought it would be possible! :-)

Sunday, August 16, 2009

This week in my thoughts

Beginning this week, I am not working full time, which gave me much more time to think about my small projects and mental constructions. Here's a take on reconstructing how the process went.

I started by trying to think out a good design for a "two component brain" design. This is one of my theories where I postulate that the brain needs to be constructed of at least two distinct "regions" (each of them probably consisting of many parts). One region would be genetically developed, non-learning entity, developed over years of evolution by the random processes. This region of the brain would have connections to all sentinels and limbs and would, if successful, be enough to sustain the creature through its life (however, fairly non intelligent). The second part of the brain would remind of the human neo-cortex, and would be like a large neural network with strong Hebbian learning capabilities (or some other learning algorithm). This network would not have any knowledge hard coded when the individual is born (unlike the first region, which is already fully programmed and developed when the individual is born, and rather constant afterwards). This second region of the brain would also have connections to all sentinel and motor components of the individual. In other words, both parts of the brain get the full picture, and can try to control the body, but have different deciding mechanisms. There is also a pathway between these two regions, through which they can communicate.

I think a setup like this is necessary to get a truly self-learning (and, in the long run, self aware) agents, as the "lower" constant region of the brain will be able to tell the cortex when it is doing right, and when it is doing wrong, and thus train it. However, the "smarter" and better trained the cortex get, it will be able to go through more and more complicated routines to make the lower part brai
n satisfied. It will also be able to send its opinions to the lower brain (uncertain if it will care). The lower brain needs to protect the vital functions of the individuals if the cortex is about to do something crazy (compare with breathing in humans: we can choose with our cortex not to breath for a while, even extend it until we faint, if we are equipped with truly powerful will, but then we inevitable start breathing again after fainting (if not sooner). So, when cortex wants to do some stupidities, the old brain should protect the body.

Ok, so far so good. For the implementation I imagined using a 3D model with independent agents. They would be able to see some of their surroundings (say a circle of 5-10 cells around them). If there are other agents of food in here, they would know it. Based on this, they need to decide which way to go, and how fast. There would probably be some other actions, like mating, fighting with other agents (they would fight probably just by docking or touching, at which moment the bigger one, or the fiercer one would chip some energy from the smaller one, depending on the size difference). I was hoping to see some interesting patterns of behavior like bluffing etc. But, the problem I was having is how to devise the duplication strategy which would feel natural enough. For example, I wanted to start with fully random variations on the connections of the lower brain, and no cortex. Most of these individuals would be hugely unfit for life, and would just drive around, if they were lucky enough that some parts of their random brain were connected to the limbs. However, over time, the more and better connected individuals, that could see where the food is, and then go there, and stay there until the food is eaten up, they should be premiered and duplicate frequently, thus spreading those brain qualities further. However, devising the fitness strategy that will quickly enough kill the hopeless individuals, but at the same time give enough time to the hopeful ones and give a chance to some promising one is hard to come by, mostly as the most successful individuals often start of as seemingly hopeless, and then suddenly find or do something that shows their full potential.
Another tough problem is that I would like the duplication function to feel natural and not constructed. Duplication functions should normally be able to evolve with the individuals and the universe, and be a part of the universe as a mechanism, and not an outside feature (if possible). Example of a "bad" duplication function is just programmatic copying (cloning) an individual, once certain conditions are fulfilled. This duplication function is not a part of the world (unless its a weird model of a computer that has copying as one of the mechanisms in the world). If you try to go back in time, you will at no point be able to see how the duplication itself developed (like we now are trying to figure out how DNA came to be, as it is facilitating our duplication). As the DNA mechanism has not been changing for a very long time, it is tempting to thing about the duplication as something constant, but it has to be evolved inside the model, for the model to be evolutionary consistent. One example of a good duplication method is having a mechanism where certain cells attract same cells, and then let go under others. If then randomly, a mechanism would develop where the similar cells are first attracted to all cells in one individual (thus doubling the structure) and then when these cells bond, the original "duplication" bonds would let go, that would be an example of the duplication method that is part of the universe and the world and is good. This is very important, as the duplication is the source of live and information preservation and evolution itself. Having an inconsistent duplication method leads to big problems sooner or later.

While going around in the above thought, I had a slight thought bifurcation. I've since some time ago acquired the opinion that life, human intelligence, social structures and interactions, economical systems and interactions are all different presentations of a very similar complex phenomenon. It would be very interesting to make a comparative study of these complex systems, look at different measures of their complexity like the number of particles (or actors) involved, the "unlikelihood" of their existence, the fragility or robustness of the system etc. My impulse was "You should write a book about this and call it "Comparative Analysis of Complex Systems". As soon as I got home I googled that phrase, to see if anybody else wrote about it, and yes, there was like hundreds of books on the subject. However, on closer examination, most of the books seemed to be very mathematical and go into depths of complex systems and their variables. So, it is not very probably that I will write a book on this any time soon, as a) I don't know very much about the subject and b) there's a bunch of good books that I ought to read first on the subject. But, I can dream :-)

The thread goes on. While thinking about making comparative studies of different complex systems I realized that many complex systems share many properties (I base this also on my earlier modelling work, where I could see many reoccurring components of different systems). And then the idea came: I should write a Java framework for quick modelling using agents. The system could also be of distributive nature, to spread out the heavy computing on many computers. There would be a skeleton of classes that would implement the reoccurring things, and then every new model would extend and implement these classes. I googled that too (complex agent framework) and got a lot of hits, but not that many that actually do what I want. So this idea is still valid and I might actually go ahead and code this framework (if nothing else to get an idea of how much it would help and what are the pit falls.

And, once the framework is done, this will be my first project - a simulation of a social interactions. This is a fruit of my today's long walk. One idea that came to me is that everybody (humans) has as a main goal in life to feel good. Some people get this feeling of wellness primarily by going straight to the source (eating tasty food, sleeping in a comfy bed, not doing stuff that instinctively feel wrong like waking up 7am and while it is still dark outside during the winter). Other people get most of their feel good through other people: their boss tells them they are doing a good job (after they spent 20 hours of the night fixing the system somebody else broke), their friends tell them they are smart of pretty or just somebody who buys a new car to make everybody else envious. I think each of us has both methods in them, but in different proportions, somebody is 90% comfy and 10% need other, other people are 90% social animals and only 10% comfy. This should not be too hard to model, using a special "relative happiness" method as a fitness function (i.e. if you are happier than your close friends, then you are successful). It would be interesting to see the behavior of the system if you allow the agents to change their construction (the ration) a little bit, and give them some other tools like money (to buy comfort and "love" from others) and possibilities to "kiss ass" or "not give kudos" when they deem proper. On the other hand, it is really interesting to try to put this ratio on yourself and your friends and see what methods they use to achieve it (two people with the same ratio can behave and feel completely differently depending on the tools they choose to get there).

And, the big question - is one better than another? Is it better to be comfy or needy? Of course, comfy people do not depend on other people for their satisfaction, I give them that. Anything else? Needy people can on the other hand form "reinforcement circles" where they kiss each other asses until they all feel good and strong. But, as the goal is the relative happiness (to your peers), it will not give them that much satisfaction, if they do not have any other reference points.

Friday, July 31, 2009

Can't sleep

It's 2:24am and I cannot sleep. What better to do then leave a few words on my eminent blog! :-) I sold my car today... my red thunder, my pride and joy! Eh, whatever... It's all for the sake of complexity!

Had an interesting conversation with Jaca about post-partum depression. It seems that anomalies of this type, that directly affect the well-being of the offspring when it is as most vulnerable should have been Darwinised away throughout the evolution... and apparently they haven't, so I'm thinking that it could have served as a positive mechanism in some occasions (ex: it's a really bad year, no food, you get a kid, it's better not to care about that kid and let it die if it means that you can survive until the next year and give birth to several more kids during the good years. Sort of leaving the local maximum in order to reach a larger (local or global) maximum).

And the whole discussion was prompted by the news story of a Texas women who ate its three month old baby's brain out (literally). Weird stuff, I tell ya!

Tuesday, July 28, 2009

Manimals - an universe created by numbers


I don't know if I heard it or read it somewhere and then forgot about it or if it is genuinly mine, but one sentence has been on my mind often lately. I've been reading about different branches of Artificial Intelligence, and it led me to say: We should not be in business of making intelligent machines or agents, we need to be making universes.

Here's an example of a simulated universe, (temporarily) called Manimals. Looks funny doesn't it? I didn't have seen any traces of intelligence in it... yet! ;-)


Gödel Escher Bach - Eternal Golden Braid

Last week I finished reading a book written by Douglas Hofstadter about 20 years ago. I picked it up by accident while scavenging around Borders and I was immediately charmed. The book is no easy reading, it took me over 6 months to chew my way through its 800 pages, but it is a warmly recommended reading for anybody who is interested in the mind, life, math, music and even art. There are several main themes "braided" through the book. One is Gödels incompleteness theorem, how it was reached, and its implications on the philosophy of mathematics and natural numbers. Hofstadter also talks about strange loops - phenomenons that appear when two separate but loosely interacting systems start affecting each other. He believes that our own consciousness and sense of "self" is based on such strange loops. Very exciting and fascinating thought that I feel is worth exploring further, and even trying to simulate (in one of my countless models).

And - same writer has another book out, written pretty recently (2007) called "I am a Strange loop". Guess if I'm eager to put my hands on it!

Sunday, July 12, 2009

Three years later....

Yeah right. I left Sweden over 3 years ago, lived in California during that time, and how many blog posts have emerged? None! 0! Zilch! Zip!

So... predictable... and tireing. But do I give up? If I did I could hardly count my self as a proud member of Homo Sapiens species - we NEVER give up. So, here I come back again. This time the subject is somewhat changed. After all, I didn't throw away all that time I spent in US of A into nothing - I came to some very important philosophical conclusions. These conclusions have pushed me towards studying the complexity and chaos theories as a possible way to unify all those island of thought that I was harboring before. So, the contents of the blog from now on will be my thoughts and struggles with complexity, emergence, artificial life, artificial inteligence (although I really don't care to much for AA in its current form), some game theory, lot of evolutionary thought, all spiced and garnished with some personal thoughts, stories and anectodes.

And, to put you into the right perspective: I'm still in the States, but only for one month more. I've bougth the ticket to go home to Sweden. And... I've been accepted to GU/Chalmers master program in Complex Adaptive Systems. The future is uncertain and interesting. But isn't that what makes the life interesting? Funny, 3 years ago I was much more convinced that it was the truth! :-) I might be getting old too (31 in November).

So... let go, and give it another try. Who's with me? You get a cookie for every comment you make! Come on now! :-)

Friday, October 20, 2006

Great performance art called life

In a few days I will go through a huge change in my life. I am leaving Sweden, where I have been living for last 12 years to move to California, USA.

After a year of hard work, I now finally have a beautifull Permanent Resident Visa (aka Green Card) in my passport. And it is time to cut the bonds and leave everything that my life contained of for last 12 years behind me.

I will try to post new blogs about my California experience continually. This is probably the craziest thing I have ever done in my life. And it can go both ways.

Followers

Contributors