Weasel Wars – Directed Evolution

This is just an effort to help keep Joe’s thread focused and to help keep it from being derailed. People can use it or not. I hope they will.

CharlieM: Can someone explain to me, why is all of this not just a model of directed evolution? Surely it is set up to be directed towards a target?

Allan Miller: It gets towards the target by means of variation and selection of genotypes in the current population. The programmer does not direct it towards the target. Indeed, there would be no point in writing GAs for problem solution if it were simply a matter of specifying a target and directing the program to find it.

Consider a small modification – instead of distance from target, evaluate fitness by adding up the ASCII bits. Those with the greater sum are fitter than those with a lesser. There is no mention of a distant target – although it is clear that the program will converge on a string of all Zs, the program doesn’t know this. It is not drawn by, nor directed towards, that target. It is simply doing generational evaluation of fitter and less fit genotypes in the current population.

Discuss.

340 thoughts on “Weasel Wars – Directed Evolution

  1. The travelling salesman solutions will converge toward better solutions, but not the same solution.

    But if the best is unique? No, yes?

  2. stcordova: But if the best is unique?No, yes?

    Maybe, but the travelling salesman GA is not guaranteed to find the best. My understanding is that given a large number of nodes, there is no way of knowing what the best is.

    There are competitions involving 10,000 node problems. I think it is possible to calculate the minimum possible route length, and to know when you have reached an acceptable approximation. (I’m not sure about that).

    Biological evolution has a concept known as Dollo’s Law, which is something like a directional arrow. My lack of math sophistication will show here, but my understanding is that from any “starting point” in biology, there are many possible non-fatal mutations, only one of which reverses the last mutation. The chances of evolving in reverse run into your law of big numbers. It doesn’t happen.

    Trees don’t evolve into humans because every change in the genome constrains the universe of possible non-fatal mutations. Drunkard’s walk, and all that. The direction is not forced or predictable, but it is constrained.

  3. Allan Miller:
    fifthmonarchyman,

    The only way to mimic Darwinism in software AFAIK is to let the memory constraints of the computer do the selecting with out human input.

    Set up a reproducing mechanism and let the code run indefinitely with no artificial constraints whatsoever till it fills the available memory and crashes then look to see if anything interesting rose to the surface.

    If there is no mechanism differentiating between genomes, there will be nothing but noise (although there will be evolution, just by drift). So, you are declaring it impossible to model selection. Just like that. That is, you think it impossible to create a model that has a consistent correlation between different genotypes and their survival chances.

    It’s a point of view, I suppose.

    Presumably it is also impossible to model antibiotic resistance.

    Thomas Ray’s TIerra rewards only continued existence. It demonstrated that parasitism and hyperparasitism could evolve using a subset of known evolutionary mechanisms.

  4. Allan Miller,

    I don’t understand Allan, why would I need to WRITE a GA? nature didn’t write evolution right? It just happened by accident, because things are imperfect.

    So, all I need is a faulty computer and just turn it on and let it make mistakes. Eventually it will make something good right? Ok, it might take a while to make something as good as a cheetah, but it can probably at least make a pterodactyl or write a three part tragic comedy.

  5. I continue to be amazed at how many experts on GAs refuse to code one and play with it. I only know of one UD regular who actually experimented with GAs, and he quit posting there shortly thereafter.

  6. stcordova:
    I would suppose if the initial conditions of the ancestors were:

    “METHINK IT IS LIKE A DONKEY”
    or
    “METHINK IT IS LIKE A FAWCET”
    or
    “METHINK IT IS LIKE A CAMERO”

    it would still evolve to

    “METHINK IT IS LIKE A WEASEL”

    That’s directed evolution.

    What if we had 10 different target phrases and measured fitness as the lowest Hamming distance (or the highest (1+s)^k in Joe’s model)?

    Answer, you would have no way of predicting which one it would converge to (starting at a random initial string) it would likely converge to the closest one.

    And what if we picked an initial string that’s at the same Hamming distance from all target strings? The SAME algo would converge on random targets.

    Same algo, different fitness landscape, unpredictable and random results. How is fitness landscape in any way relevant to the algo and whether it’s “directed” or not? Well, it’s not IMO

  7. stcordova,

    Allan has a short memory. Cordova’s remarkable algorithm:

    You point to a place where you mention you wrote a GA, but the dog ate it.

    I am, nonetheless, quite prepared to believe that you wrote something. If it was a GA, I retract.

  8. The idea of directedness is movement toward something despite encountering obstacles. When we have auto-pilot guidance systems in an airplane and wind gusts hit the airplane, the guidance system sets it aright, it directs it toward the goal.

    WEASEL is like that. It selects toward a trait that doesn’t even exist. It can select toward non-existent irreducibly complex Rube Goldbergesque designs that don’t exist yet in a cumulative fashion. It is really conceptual cumulative selection, it isn’t natural selection.

    As I said before, Darwin and Dawkins falsely advertised conceptual selection to be what happens in nature and called it natural selection. It’s a rhetorical misdirection, it isn’t what really happens naturally. If they said “creatures evolved by UN-natural selection directed toward non-existent conceptual traits” that would be more accurate description of their hypothesis, but if they said it that way, the absurdity of their claims would be readily apparent.

  9. phoodoo,

    I don’t understand Allan, why would I need to WRITE a GA? nature didn’t write evolution right? It just happened by accident, because things are imperfect.

    So, all I need is a faulty computer and just turn it on and let it make mistakes. Eventually it will make something good right? Ok, it might take a while to make something as good as a cheetah, but it can probably at least make a pterodactyl or write a three part tragic comedy.

    If you think that’s a good reason for not writing a GA, I am hardly equipped to persuade you otherwise.

  10. stcordova,

    As I said before, Darwin and Dawkins falsely advertised conceptual selection to be what happens in nature and called it natural selection. It’s a rhetorical misdirection, it isn’t what really happens naturally. If they said “creatures evolved by UN-natural selection directed toward non-existent conceptual traits” that would be more accurate description of their hypothesis, but if they said it that way, the absurdity of their claims would be readily apparent.

    It is curious that an environment that kills more of one type than another results in an increase in the frequency of the one that is killed less often, though. It’s not that absurd, is it?

  11. stcordova,

    So how does it work in nature? When an experiment is set up so that certain viruses are put in strong selection pressure for infectivity, and after a while they evolve better infectivity, was God helping scientists get their results?

  12. So how does it work in nature?

    Certainly not like this where “VIRUS ” or “DONKEY” or “FAWCET” or “CAMERO” or “ROCKET” etc. becomes

    “WEASEL”.

    No that’s what I call macro-evolution! 🙂

    Question were raised as to what was meant by directed evolution , I provided my suggested definition.

  13. dazz: What if we had 10 different target phrases and measured fitness as the lowest Hamming distance (or the highest in Joe’s model)?
    Answer, you would have no way of predicting which one it would converge to (starting at a random initial string) it would likely converge to the closest one.

    I have a program that has about 100,000 words as targets. The selection engine scores genomes according to how many characters match any part of any word.

    The direction is unpredictable, and it often converges on a hybrid that looks like a word but is not in the dictionary.

  14. stcordova,

    Question were raised as to what was meant by directed evolution , I provided my suggested definition.

    So convergence is directed, nothing else?

  15. It would be a simple matter to have a second target phrase, and randomly evaluate against either at any given decision point. I’d suggest THIS TARGET SUCKS AND BLOWS. If it finds one of them, is it directed? How ’bout 3? 4? Any ideas on a cutoff for directed evolution? Any at all?

  16. petrushka: I have a program that has about 100,000 words as targets. The selection engine scores genomes according to how many characters match any part of any word.

    The direction is unpredictable, and it often converges on a hybrid that looks like a word but is not in the dictionary.

    Sounds great. Do you have it published somewhere please?

  17. Allan Miller: measured

    Actually it would be really cool to see how drift makes it explore different target phrases instead of getting stuck in a local maxima. I would add a printout of the current closest target for clarity. Could try tweaking your algo myself. I can hardly remember any C but that should be nothing some googling couldn’t fix

  18. If I coded a GA it would show I could code a GA. So what? Also, how would you know I had not just found it published somewhere and copied it?

  19. Mung:
    If I coded a GA it would show I could code a GA. So what? Also, how would you know I had not just found it published somewhere and copied it?

    It’s for your benefit, not ours.

  20. dazz: Actually it would be really cool to see how drift makes it explore different target phrases instead of getting stuck in a local maxima.

    You don’t need a DriftWeasel to do that.

  21. There is a target located in a search space” METHINKS IT IS LIKE A WEASEL

    Why is a GA the only way to find the target phrase, or even the best search algorithm to use in this case?

  22. Mung,

    There is a target located in a search space” METHINKS IT IS LIKE A WEASEL

    Why is a GA the only way to find the target phrase, or even the best search algorithm to use in this case?

    It might not be. That’s not its purpose – it’s a teaching aid.

  23. If I wanted to teach someone to write a GA I sure wouldn’t use the Weasel program as my example.

  24. Mung: You think if I write a GA that it will cause me to leave UD? How would that benefit me?

    I think you would learn something.

    Why would you leave UD?

    Most of us did not voluntarily leave.

  25. Mung,

    You think if I write a GA that it will cause me to leave UD? How would that benefit me?

    I’ve never seen anyone wriggle so much.

  26. Mung,

    If I wanted to teach someone to write a GA I sure wouldn’t use the Weasel program as my example.

    And that was not its purpose either. It wasn’t intended to teach GA writing, but something about evolution. Namely cumulative selection.

  27. Mung: You don’t need a DriftWeasel to do that.

    Are you saying that a purely selective Weasel can realistically get out of local maxima? How?

  28. Allan, to Mung:

    I’ve never seen anyone wriggle so much.

    It’s amusing, isn’t it? Writing a GA would be win-win for Mung’s education, but it’s lose-lose for Mung’s ego.

    If he writes it correctly, his own code will demonstrate that he’s wrong to claim this:

    Given small population sizes drift ought to dominate yet in GAs drift does not dominate.

    Ouch. And if he doesn’t write it correctly, he’ll be revealing his ignorance of GAs. Ouch.

    He won’t be able to hide behind obfuscation, because his code will be there for anyone to inspect. Ouch.

    Any way you look at it, his ego loses. Do it for the knowledge, Mung!

  29. Mung isn’t the only one.

    I’m not hearing much from the genetic meltdown crowd.

    It’s pretty hard to demonstrate that meltdown is inevitable when a GA is parameterized.

  30. Allan Miller:
    dazz,

    Mutation … or crossover, in sexual versions.

    Fair enough. But I guess without recombination, it would take a very flat landscape for point mutations alone to be enough. In a weasel algo that would mean having a crap load of target phrases, right?

  31. dazz: But I guess without recombination, it would take a very flat landscape for point mutations alone to be enough. In a weasel algo that would mean having a crap load of target phrases, right?

    Weasel is like digging a 100 ft hole and falling into it.

    Think exploration and exploitation.

    In addition to coping with nonlinearity, the genetic algorithm helps to solve a conundrum that has long bedeviled conventional problem-solving methods: striking a balance between exploration and exploitation.

    The genetic algorithm exploits the higher-payoff, or “target,” regions of the solution space, because successive generations of reproduction and crossover produce increasing numbers of strings in those regions.

    ouch.

    http://www2.econ.iastate.edu/tesfatsi/holland.GAIntro.htm

  32. Mung: Weasel is like digging a 100 ft hole and falling into it.

    Think exploration and exploitation.

    In addition to coping with nonlinearity, the genetic algorithm helps to solve a conundrum that has long bedeviled conventional problem-solving methods: striking a balance between exploration and exploitation.

    The genetic algorithm exploits the higher-payoff, or “target,” regions of the solution space, because successive generations of reproduction and crossover produce increasing numbers of strings in those regions.

    ouch.

    What do you mean? Do you think anyone is arguing that environments do NOT present target regions? As I recall, these are called “niches” and are explored for, and exploited when found. The higher payoff is survival, facilitated by differential reproductive success.

  33. Allan Miller:
    CharlieM,

    I wish you’d lay off the analogies! Natural selection acts like natural selection. That is, certain genotypes do better or worse in a current environment, because they increase or decrease in a gene pool in a manner correlated with their effect on phenotype.

    You can wish all you want but if I think I can put my point across more clearly by using analogies then I’ll continue to do so.

    Natural selection acts like natural selection because certain physical features of the organism determines its survivability. Individual moths are counted and finch beaks are measured because these are things that are observed. There is a correlation between individual gene differences and phenotypal variety but the causal relationships are not so easy to figure out. Light moths, dark moths, thick beaked finches, thin beaked finches; all of these existed before trees changed colour or drought took hold. It was these physical features that caused the change in gene frequencies, not the other way round.

    The “gene pool” is an abstraction which is not observed, physical features are observed.

    You have thereby retracted your argument that GAs model directed evolution, as far as I can see. You put the direction somewhere else, creating the bare bones as it were, and selection tunes. But not in a directed sense. Or do you think some ‘director’ is actively killing more of the bacteria that lack antibiotic resistance, say, or more of the finches with a suboptimal beak shape?

    Following drought conditions the average beak depth of Galapagos ground finches was greater. There you have it, environmental conditions directing evolution. You have already agreed on this type of directed evolution. Natural selection is just an effect the environment has on its inhabitants.

  34. Flint to Mung: What do you mean? Do you think anyone is arguing that environments do NOT present target regions? As I recall, these are called “niches” and are explored for, and exploited when found. The higher payoff is survival, facilitated by differential reproductive success.

    Giant pandas and three toed sloths can be said to occupy niches, but to say that humans or rats occupy niches is to make a mockery of the meaning of the word.

  35. CharlieM: Giant pandas and three toed sloths can be said to occupy niches, but to say that humans or rats occupy niches is to make a mockery of the meaning of the word.

    I would disagree. As petrushka is trying to tell you, the environmental niche where humans can live is fairly narrow. So what humans have done is to modify their environments to their own needs. We have learned how to keep our body temperatures within a narrow range with clothing, heating, air conditioning, dwellings that shelter us from extremes, and so on. And rats piggyback on those technological microenvironments, living where people do.

    You are surely aware that the hominin bush had quite a few species, perhaps as many as half a dozen concurrently. Except for one, none of these species survived, or had large populations or lived across broad temperature ranges. Yet all of them must be counted among the most intelligent species ever to live, at least as we conceive of intelligence.

    Now, I have seen the argument that because people select their environments rather than environments selecting individuals, we humans have short-circuited natural selection, and are evolving through drift alone. I don’t know.

  36. Mung: Weasel is like digging a 100 ft hole and falling into it.

    Perhaps you should let the rest of your friends at UD know the next time they talk about WEASEL as if it represents the finest example of a GA known to humanity?

  37. dazz,

    Fair enough. But I guess without recombination, it would take a very flat landscape for point mutations alone to be enough.

    In a weasel algo that would mean having a crap load of target phrases, right?

    Or, I guess, high mutation and/or weak selection. Both only up to a point.

  38. CharlieM,

    You can wish all you want but if I think I can put my point across more clearly by using analogies then I’ll continue to do so.

    I am simply offering my opinion, as a consumer of your prose, that your analogies serve more to confuse – not just your reader, but you.

    There is a tension between your desire to communicate and anyone else’s willingness to put the effort in to comprehend. When someone says “it’s like …”, and it’s not like that at all, much time can be wasted talking about something which isn’t in fact the thing being discussed. But it’s your dollar.

  39. CharlieM,

    Following drought conditions the average beak depth of Galapagos ground finches was greater. There you have it, environmental conditions directing evolution. You have already agreed on this type of directed evolution. Natural selection is just an effect the environment has on its inhabitants.

    So you think ALL evolution by natural selection is ‘directed’ evolution, with environment as director. So all GAs with a selection routine are directed in that sense. So they are implementing Natural Selection. So why are we arguing?

  40. Allan Miller:
    dazz,

    Or, I guess, high mutation and/or weak selection. Both only up to a point.

    I missed high mutation too, but weak selection wouldn’t be an option since we were talking about a purely selective algo. Appreciate the answers, not so much the sarcasm, I guess :p

  41. Allan Miller: So you think ALL evolution by natural selection is ‘directed’ evolution, with environment as director. So all GAs with a selection routine are directed in that sense. So they are implementing Natural Selection. So why are we arguing?

    Directed evolution and “natural selection” are oxymorons in the view of the average materialist. To equate them smells of pantheism or deism (or Calvinism) and we can’t have that now can we.

    To the average materialist the idea of the environment directing either directly or as the intermediary force of another being is pure heresy.

    To Mike the materialist the outcome of evolution is not proscribed or directed it just happens all on it’s own.

    bootstraps and all that

    like I always say this debate will in the end come down to the problem of other minds.

    Just another drive by comment.

    peace

Leave a Reply