2012

You are currently browsing the yearly archive for 2012.

What’s your numerical probability estimate that, assuming no one puts much work into stopping it, Unfriendly AI will seriously damage or destroy human civilization in the next few centuries?

Mine is…hmm…I don’t know. Maybe 50%? I’m not sure. I do know that if there were an asteroid nearby with the same probability of impacting Earth, I’d be running up to people and shaking them and shouting “WHY AREN’T WE BUILDING MORE ASTEROID DEFLECTORS?! WHAT’S WRONG WITH YOU? PEOPLE!” I don’t know if I believe in unconditional moral imperatives, but if there were a 50% chance of an asteroid striking Earth soon, or even a 10% chance, and no one was doing anything about it, I would at least feel an imperative conditional on some of my other beliefs to try to help stop it.

So maybe part of what the Sequences did for me was help calibrate my brain well enough so that I noticed the similarity between the asteroid and the AI case.

— Yvain

With UFAI people’s estimate are about as divergent as with Second Coming of Jesus Christ, ranging from impossible even in theory through essentially impossible all the way to almost certain.

— taw

Risky enough to bother about?

Below are some possible and actual positions people take with respect to AI risks in ascending order of perceived importance:

  1. Someone should actively think about the issue in their spare time.
  2. It wouldn’t be a waste of money if someone was paid to think about the issue.
  3. It would be good to have a periodic conference to evaluate the issue and reassess the risk every year.
  4. There should be a study group whose sole purpose is to think about the issue.
  5. All relevant researchers should be made aware of the issue.
  6. Relevant researchers should be actively cautious and think about the issue.
  7. There should be an academic task force that actively tries to tackle the issue.
  8. It should be actively tried to raise money to finance an academic task force to solve the issue.
  9. The general public should be made aware of the issue to gain public support.
  10. The issue is of utmost importance. Everyone should consider to contribute money to a group trying to solve the issue.
  11. Relevant researchers that continue to work in their field, irrespective of any warnings, are actively endangering humanity.
  12. This is crunch time. This is crunch time for the entire human species. And it’s crunch time not just for us, it’s crunch time for the intergalactic civilization whose existence depends on us. Everyone should contribute all but their minimal living expenses in support of the issue.

Personally, most of the time, I alternate between position 3 and 4.

Asteroids versus unfriendly AI

You might argue that I would endorse position 12 if NASA told me that there was a 20% chance of an extinction sized asteroid hitting Earth and that they need money to deflect it. I would indeed. But that seems like a completely different scenario to me.

I would have to be able to assign more than a 80% probability to AI being an existential risk to endorse that position. I would further have to be highly confident that we will have to face that risk within this century and that the model uncertainty associated with my estimates is low.

That intuition does stem from the fact that any estimates regarding AI risks are very likely to be wrong, whereas in the example case of an asteroid collision one could be much more confident in the 20% estimate. As the latter is based on empirical evidence while the former is inference based and therefore much more error prone.

I don’t think that the evidence allows anyone to take position 12, or even 11, and be even slightly confident about it.

I am also highly skeptical about using the expected value of a galactic civilization to claim otherwise. Because that reasoning will ultimately make you privilege unlikely high-utility outcomes over much more probable theories that are based on empirical evidence.

EXPECTED UTILITY MAXIMIZATION AND COMPLEX VALUES

One of the problems of our current grasp of rationality that is largely unacknowledged are the consequences of expected utility maximization with respect to human nature and our complex values.

Does expected utility maximization has anything to do with being human?

We are still genuinely confused about what a person should do. We don’t even know how much sense that concept makes at all.

Those people who take AI risks seriously and who are currently involved in their mitigation seem to be disregarding many other activities that humans usually deem valuable because the expected utility of saving the world does outweigh the pursuit of other goals.

I do not disagree with that assessment but find it troubling.

The problem is, will there ever be anything but a single goal, a goal that can either be more effectively realized and optimized to yield the most utility or whose associated expected utility simply outweighs all other values?

Assume that humanity managed to create a friendly AI (FAI). Given the enormous amount of resources that each human is poised to consume until the dark era of the universe, wouldn’t the same arguments that now suggest that we should contribute money to existential risk charities then suggest that we should donate our resources to the friendly AI? Our resources could enable it to find a way to either travel back in time, leave the universe or hack the matrix. Anything that could avert the end of the universe and allow the FAI to support many more agents has effectively infinite expected utility.

The sensible decision would be to concentrate on those scenarios with the highest expected utility now, e.g. solving friendly AI, and worry about those problems later. But not only does the same argument always work but the question is also relevant to the nature of friendly AI and our ultimate goals.

Again, is expected utility maximization even compatible with our nature? I don’t think so.

Expected utility maximization does lead to world states in which wireheading is favored, either directly or indirectly by focusing solely on a single high-utility goal that does outweigh all other goals.

This is because if you calculate the expected utility of various outcomes you imagine impossible alternative actions. The alternatives are impossible because you already precommited to choosing the outcome with the largest expected utility. Which has the following effects:

  1. You swap your complex values for a certain terminal goal with the highest expected utility, indeed your instrumental and terminal goals converge to become the expected utility formula.
  2. Your decision-making is eventually dominated by extremely small probabilities of obtaining vast utility.

Further consider that any insignificant inferences might exhibit hyperbolic growth in utility:

  1. There is no minimum amount of empirical evidence necessary to extrapolate the expected utility of an outcome.
  2. The extrapolation of counterfactual alternatives is unbounded, logical implications can reach out indefinitely without ever requiring new empirical evidence.

Which highlights one of various fundamental problems with our current grasp of rationality.

Taking ideas too seriously

There are people who became very disturbed and depressed taking our current ideas of what is rational too seriously.

The field of formal rationality is relatively new and I believe that we would be well-advised to discount some of its logical implications that advocate extraordinary actions.

Our current methods seem to be biased in new and unexpected ways. Pascal’s mugging, the Lifespan Dilemma and blackmailing are just a few examples on how an agent build according to our current understanding of rationality could fail.

And that’s just what we already know about.

Our current theories are not enough to build an artificial general intelligence that will be reliably in helping us to achieve our values, even if those values could be thoroughly defined or were computable even in principle.

Which raises the following question. If we are unable to build – and wouldn’t trust even if we could –  a superhuman agent equipped with our current grasp of rationality to be reliably in extrapolating our volition, how can we trust ourselves to arrive at correct answers given what we know?

We should of course continue to use our best methods to decide what to do. But I believe that we should also draw a line somewhere when it comes to extraordinary implications.

Intuition, Rationality and Extraordinary Implications

It doesn’t feel to me like 3^^^^3 lives are really at stake, even at very tiny probability.  I’d sooner question my grasp of “rationality” than give five dollars to a Pascal’s Mugger because I thought it was “rational”.

— Eliezer Yudkowsky

Holden Karnofsky is suggesting that in some cases we should follow the simple rule that “extraordinary claims require extraordinary evidence”.

I think that we should sometimes demand particular proof P; and if proof P is not available, then we should discount seemingly absurd or undesirable consequences even if our theories disagree.

I am not referring to the weirdness of the conclusions but the foreseeable scope of the consequences of being wrong about them. We should be careful in using the implied scope of certain conclusions to outweigh their low probability. I believe that we should be risk averse in a way that assigns more weight to the consequences of our conclusions being wrong than being right.

As an example take the idea of quantum suicide and ignore for a moment that it does not make sense for the reason that it is reducing your measure.

I wouldn’t commit quantum suicide even given a high confidence in the many-worlds interpretation of quantum mechanics being true. Logical implications just don’t seem enough in some cases.

To be clear, extrapolations work and often are the best we can do. But since there are problems such as the ones mentioned above, that we perceive to be undesirable and that lead to absurd actions and uncomputable consequences, I think it is reasonable to define some upper and lower bounds regarding the use and scope of certain heuristics.

How do we do that? My best guess right now is that we simply have to draw a lot of arbitrary lines and arbitrarily refuse some steps.

Use your intuition

We talk an idealistic talk, but walk a practical walk, and try to avoid walking our talk or talking our walk.

— Robin Hanson, Beware Commitment

Actually we are already doing just that. Even most of those people who claim otherwise. We simply use our intuition, our gut feelings.

We are not going to stop pursuing whatever terminal goal we have chosen just because someone promises us even more utility if we do what that person wants. We are not going to stop loving our girlfriend just because there are other people who do not approve our relationship and who together would experience more happiness if we divorced than the combined happiness of us and our girlfriend being in love.

We informally establish upper and lower bounds all the time.

Conclusion

Taking into account considerations of vast utility or low probability quickly leads to chaos theoretic considerations like the butterfly effect. As a computationally bounded and psychical unstable agents we are unable to cope with that. Consequently there is no other way than to neglect the moral impossibility of extreme uncertainty.

Until the problems are resolved, or rationality is sufficiently established, I believe that we should continue to put vastly more weight on empirical evidence and our intuition than on logical implications, if only because we still lack the necessary insights to trust our comprehension and judgement of the various underlying concepts and methods we used to arrive at those implications in the first place.

Relativity is less wrong than Newtonian mechanics but it still breaks down in describing singularities including the very beginning of the universe.

Bayes’ Theorem, the expected utility formula, and Solomonoff induction are all technically correct. But being able to prove something mathematically doesn’t prove its relation to reality.

It seems to me that our notion of rationality is not the last word on the topic and that we shouldn’t act as if it was.

Further reading

Tags: , ,

(Note: The author of the quote and possible a link to the context can be found below each quotation.)

Getting the general brain properties isn’t enough. Instead, the builder is saddled with the onerous task of packing the brain with a mountain of instincts (something that will require many generations of future scientists to unpack, as they struggle to build the teleome), and somehow managing to encode all that wisdom in the fine structure of the brain’s organization.

— Mark Changizi, Later Terminator: We’re Nowhere Near Artificial Brains

The root of these misconceptions is the radical underappreciation of the design engineered by natural selection into the powers implemented by our bodies and brains, something central to my 2009 book, The Vision Revolution. For example, optical illusions (such as the Hering) are not examples of the brain’s poor hardware design, but, rather, consequences of intricate evolutionary software for generating perceptions that correct for neural latencies in normal circumstances. And our peculiar variety of color vision, with two of our sensory cones having sensitivity to nearly the same part of the spectrum, is not an accidental mutation that merely stuck around, but, rather, appear to function with the signature of hemoglobin physiology in mind, so as to detect the color signals primates display on their faces and rumps.

These and other inborn capabilities we take for granted are not kluges, they’re not “good enough,” and they’re more than merely smart. They’re astronomically brilliant in comparison to anything humans are likely to invent for millennia.

— Mark Changizi, ‘Humans, Version 3.0’

I don’t believe that classical computers can simulate brain activity. The brain is the most complicated object or machine in the universe. Every adult human brain contains 100 billion neurons, and every neuron is different. How many possibilities for interaction between different neurons are there? We don’t have a full understanding of how a brain works yet, but I cannot see any digital computer ever performing a fine-grained simulation of a human brain.

— Dr. Hongkui Zeng, How complex is a mouse brain?

…please bear in mind that the relation of Solomonoff induction and “Universal AI” to real-world general intelligence of any kind is also rather wildly speculative… This stuff is beautiful math, but does it really have anything to do with real-world intelligence? These theories have little to say about human intelligence, and they’re not directly useful as foundations for building AGI systems (though, admittedly, a handful of scientists are working on “scaling them down” to make them realistic; so far this only works for very simple toy problems, and it’s hard to see how to extend the approach broadly to yield anything near human-level AGI). And it’s not clear they will be applicable to future superintelligent minds either, as these minds may be best conceived using radically different concepts.

— Ben Goertzel, Are Prediction and Reward Relevant to Superintelligences?

About the hypothetical uber-intelligence that wants to tile the cosmos with molecular Mickey Mouses — I truly don’t feel confident making any assertions about a real-world system with vastly greater intelligence than me. There are just too many unknowns. Sure, according to certain models of the universe and intelligence that may seem sensible to some humans, it’s possible to argue that a hypothetical uber-intelligence like that would relentlessly proceed in tiling the cosmos with molecular Mickey Mouses. But so what? We don’t even know that such an uber-intelligence is even a possible thing — in fact my intuition is that it’s not possible.

— Ben Goertzel, Muehlhauser-Goertzel Dialogue, Part 1

There’s the minor issue of Hume’s problem of induction, as well. I.e., the issue that, in the rational and scientific world-view, that we have no rational reason to believe that any patterns observed in the past will continue into the future. This is an ASSUMPTION, plain and simple — an act of faith. Occam’s Razor (which is one way of justifying and/or further specifying the belief that patterns observed in the past will continue into the future) is also an assumption and an act of faith. Science and reason rely on such acts of faith, yet provide no way to justify them. A big gap.

— Ben Goertzel, Muehlhauser-Goertzel Dialogue, Part 1

… it is easy to prove that for essentially any pair of Bayesians, each thinks the other is crazy.

— Larry Wasserman, Freedman’s Neglected Theorem

…if you can’t explain how to simulate your theory on a computer, chances are excellent that the reason is that your theory makes no sense!

— Scott Aaronson

…often your goal is not to find the best solution, but just a better solution than your competitors. And often we terminate trains of thought long before they lead to hard instances of NP-complete problems—we’re usually not even conscious that that’s what we’re doing; we just have an intuition that “such-and-such would require a hopeless search.

— Scott Aaronson

‘Some years ago I was trying to decide whether or not to move to Harvard from Stanford. I had bored my friends silly with endless discussion. Finally, one of them said, “You’re one of our leading decision theorists. Maybe you should make a list of the costs and benefits and try to roughly calculate your expected utility.” Without thinking, I blurted out, “Come on, Sandy, this is serious.”’

— Persi Diaconis, The Problem of Thinking Too Much

Pythagoras could not have imagined the uses to which his equation would be put (if, indeed, he ever came up with the equation himself in the first place). The same applies to almost all of the equations in this book. They were studied/discovered/developed by mathematicians and mathematical physicists who were investigating subjects that fascinated them deeply, not because they imagined that two hundred years later the work would lead to electric light bulbs or GPS or the internet, but rather because they were genuinely curious.

 — Ian Stewart, 17 Equations that changed the world

With a powerful radio source, you can PM everyone in your future light-cone unfortunate enough to decode your message, potentially highjacking entire distant civilizations of decision-theory users.

— Oso_42, Comments on Pascal’s Mugging – Less Wrong Discussion

Looking at what happens during cryonics, I do not see any physically possible way this damage could ever be repaired. Reading the structure and “downloading it” is impossible, since many aspects of synaptic strength and connectivity are irretrievably lost as soon as the synaptic membrane gets distorted. You can’t simply replace unfolded proteins, since their relative position and concentration (and modification, and current status in several different signalling pathways) determines what happens to the signals that go through that synapse; you would have to replace them manually, which is a) impossible to do without destroying surrounding membrane, and b) would take thousands of years at best, even if you assume maximally efficient robots doing it (during which period molecular drift would undo the previous work).

Etc, etc. I can’t even begin to cover complications I see as soon as I look at what’s happening here. I’m all for life extension, I just don’t think cryonics is a viable way to accomplish it.

— kalla724

I’ve signed up for cryonics (with Alcor) because I believe that if civilization doesn’t collapse then within the next 100 years there will likely be an intelligence trillions upon trillions of times smarter than anyone alive today.

 — James Miller

Personally, I’ve been hearing all my life about the Serious Philosophical Issues posed by life extension, and my attitude has always been that I’m willing to grapple with those issues for as many centuries as it takes.

— Patrick Nielsen Hayden

With UFAI people’s estimate are about as divergent as with Second Coming of Jesus Christ, ranging from impossible even in theory through essentially impossible all the way to almost certain.

 — taw comments on Optimal Philanthropy for Human Beings – Less Wrong

(UFAI = unFriendly Superhuman Artificial General Intelligence)

What game theorists somewhat disturbingly call rationality is assumed throughout—in other words, game players are assumed to be hedonistic yet infinitely calculating sociopaths endowed with supernatural computing abilities.

 — Cosma Shalizi

A “filter bubble”— “a unique universe of information for each of us”, meaning that we are less likely to encounter information online that challenges our existing views or sparks serendipitous connections. “A world constructed from the familiar is a world in which there’s nothing to learn,” Mr Pariser declares. He calls this “invisible autopropaganda, indoctrinating us with our own ideas”.

 — Eli Pariser, The dangers of the internet: Invisible sieve

…a poor badly-schooled unmarried urban black male dies 17.7 times as often as a rich well-educated married rural asian woman (of the same age), with a lifespan roughly thirty years shorter on average.

 — Robin Hanson, Jobs Kill, BIG Time

We talk an idealistic talk, but walk a practical walk, and try to avoid walking our talk or talking our walk.

 — Robin Hanson, Beware Commitment

Science is not in principle committed to the idea that there’s no afterlife or that the mind is identical to the brain […] If it’s true that consciousness is being run like software on the brain and can – by virtue of ectoplasm or something else we don’t understand – be dissociated from the brain at death, that would be part of our growing scientific understanding of the world if we discover it […] But there are very good reasons to think it’s not true. We know this from 150 years of neurology where you damage areas of the brain, and faculties are lost […] You can cease to recognize faces, you can cease to know the names of animals but you still know the names of tools […] What we’re being asked to consider is that you damage one part of the brain, and something about the mind and subjectivity is lost, you damage another and yet more is lost, [but] you damage the whole thing at death, we can rise off the brain with all our faculties in tact, recognizing grandma and speaking English!

 — Sam Harris’ Argument Against the Afterlife

I think one of the enduring tragedies of the 22nd century will be that during the 20th and 21st centuries we persistently treat nuclear reactors as if they’re nuclear weapons, and nuclear weapons as if they’re nuclear reactors.

— Charles Stross

I have met people who exaggerate the differences [between the morality of different cultures], because they have not distinguished between differences of morality and differences of belief about facts. For example, one man said to me, “Three hundred years ago people in England were putting witches to death. Was that what you call the Rule of Human Nature or Right Conduct?” But surely the reason we do not execute witches is that we do not believe there are such things. If we did-if we really thought that there were people going about who had sold themselves to the devil and received supernatural powers from him in return and were using these powers to kill their neighbours or drive them mad or bring bad weather, surely we would all agree that if anyone deserved the death penalty, then these filthy quislings did. There is no difference of moral principle here: the difference is simply about matter of fact. It may be a great advance in knowledge not to believe in witches: there is no moral advance in not executing them when you do not think they are there. You would not call a man humane for ceasing to set mousetraps if he did so because he believed there were no mice in the house.

— C. S. Lewis, Stop Being Wrong: A Moral Imperative

If a man proves too clearly and convincingly to himself … that a tiger is an optical illusion–well, he will find out he is wrong. The tiger will himself intervene in the discussion, in a manner which will be in every sense conclusive.

— G. K. Chesterton, Variations on a Theme

It is said that to explain is to explain away. This maxim is nowhere so well fulfilled as in the area of computer programming, especially in what is called heuristic programming and artificial intelligence. For in those realms machines are made to behave in wondrous ways, often sufficient to dazzle even the most experienced observer. But once a particular program is unmasked, once its inner workings are explained in language sufficiently plain to induce understanding, its magic crumbles away; it stands revealed as a mere collection of procedures, each quite comprehensible. The observer says to himself “I could have written that”. With that thought he moves the program in question from the shelf marked “intelligent”, to that reserved for curios, fit to be discussed only with people less enlightened than he.

— Joseph Weizenbaum, 1966

I realised that by donating a large part of my future income to the most efficient charities, I really could save thousands of people’s lives. Since I already have most of the things I really value in life, I thought — why not?

— Toby Ord (Founder of Giving What We Can)

Resurrection without a backup. As with ecosystem reconstruction, such “resurrections” are in fact clever simulations. If the available information is sufficiently detailed, the individual and even close friends and associations are unable to tell the difference. However, transapient informants say that any being of the same toposophic level as the “resurrector” can see marks that the new being is not at all like the old one. “Resurrections” of historical figures, or of persons who lived at the fringes of Terragen civilization and were not well recorded, are of very uneven quality.

 — Encyclopedia Galactica – Limits of Transapient Power

Once a psychoblast became self-aware, it was granted citizenship, and intervention without consent became impossible. This was not a matter of mere custom or law; the principle was built into the deepest level of the polis. A citizen who spiraled down into insanity could spend teratau in a state of confusion and pain, with a mind too damaged to authorize help, or even to choose extinction. That was the price of autonomy: an inalienable right to madness and suffering, indistinguishable from the right to solitude and peace.

 — Greg Egan, Diaspora

What I regret most is my uncritical treatment of the idea of allowing intelligent life to evolve in the Autoverse. Sure, this is a common science-fictional idea, but when I thought about it properly (some years after the book was published), I realised that anyone who actually did this would have to be utterly morally bankrupt. To get from micro-organisms to intelligent life this way would involve an immense amount of suffering, with billions of sentient creatures living, struggling and dying along the way. Yes, this happened to our own ancestors, but that doesn’t give us the right to inflict the same kind of suffering on anyone else.

 — Greg Egan, Dust Theory FAQ

People are always amazed by how much “free time” I have. They’re also amazed that I don’t know who Ally McBeal is. Frankly, I’m amazed that they can’t make the connection.

 — Robert Wenzlaff

[…] in the multiple worlds interpretation, we do survive— we just also die. If we ask ”Which of the two will I experience?” then it seems totally valid to argue ”I won’t experience being dead.

 — abramdemski comments on The Anthropic Trilemma

…it took until more than 80 pages into volume 2 to be able to prove (as “Proposition *110.643?) that 1+1=2 (with the comment “[This] proposition is occasionally useful”).

 — Stephen Wolfram, 100 Years Since Principia Mathematica

If I were having a philosophical talk with a man I was going to have hanged or electrocuted, I should say, “I don’t doubt that your act was inevitable for you, but to make it more avoidable by others we propose to sacrifice you to the common good. You may regard yourself as a soldier dying for your country if you like. But the law must keep its promises.

 — Oliver Wendell Holmes

When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours.

— Stephen Roberts

Perfection is achieved, not when there is nothing left to add, but when there is nothing left to take away.

— Antoine de Saint-Exupéry

Tags:

A first step is to ask people what it would take to get them to change their mind. If they refuse to give a straight answer, they can’t be taken seriously.

— John Baez

What would it take to increase my confidence that solving friendly AI is the most important problem humanity faces right now and that everyone should either actively work to solve it or contribute money to that particular cause?

1.) Evidence that the invention of artificial general intelligence is likely to happen within 50-100 years from now.

In other words, show that superhuman AI is not too far away to be considered a risk at this time.

For example:

  • The existence of a robot that could navigate autonomously in a real-world environment and survive real-world threats and attacks with approximately the skill of C. elegans.
  • A machine that can quickly learn to play Go on its own, unassisted by humans, and beat the best human players.

More: How far is AGI?, Asteroids, AI and what’s wrong with rationality, Interview series on risks from AI

2.) Evidence that the development of artificial general intelligence will take place quickly rather than gradually and slowly.

In other words, show that the capability of artificial general intelligence will improve quickly enough that humans won’t be able to adapt or learn from their mistakes due various small-scale disasters.

For example:

  • A theorem that there likely exists a information theoretically simple, physically and economically realizable, algorithm that can be improved to self-improve explosively.
  • Prove that there likely are no strongly diminishing intelligence returns for additional compute power.

More: Risks from AI and Charitable Giving, Superapish intelligence

3.) Prove that other problems or existential risks like global warming or advanced molecular nanotechnology are not more likely to wipe us out before the advent of advanced artificial general intelligence.

For example:

  • Show that advanced molecular nanotechnology does not come first, either by being easier than artificial general intelligence or due to it being a prerequisites for an advanced artificial general intelligence to be invented.

More: Risks from AI and Charitable Giving, Why I am skeptical of risks from AI

4.) Provide an outline of how an artificial intelligence is going to overpower humanity without filling in any gaps by conjecturing some sort of highly speculative technological magic.

In other words, show how an artificial general intelligence is going to create (or acquire) resources, empowering technologies or civilisatory support.

More: Intelligence as a fully general counterargument

5.) Provide an outline of how current research is supposed to lead from well-behaved and fine-tuned systems to systems that stop to work correctly in a highly complex and unbounded way.

In other words, show that dangerous recursive self-improvement is the default outcome of the creation of artificial general intelligence.

For example:

  • Show how something like expected utility maximization would actually work out in practice.
  • Conclusive evidence that current research will actually lead to the creation of AGI designs equipped with the relevant drives that are necessary to disregard any explicit or implicit spatio-temporal scope boundaries and resource limits.

More: Implicit constraints of practical goals

6.) Prove that trying to solve friendly AI is decreasing rather than increasing the probability of a negative utility outcome.

For example:

  • Prove that getting friendly AI almost but not quite right won’t be worse than an artificial general intelligence that was not explicitly designed to protect human values.

More: Requirements for SIAI to constitute an optimal charity

7.) Provide conclusive evidence that there is anything medium-probable that we can do to mitigate the risks associated with artificial general intelligence.

In other words, show that contributing money can make a difference at this time.

More: Requirements for SIAI to constitute an optimal charity

Tags: , , ,

I’d say that there are parts of rationality that we do understand very well in principle. Bayes’ Theorem, the expected utility formula, and Solomonoff induction between them will get you quite a long way.

— Eliezer Yudkowsky

Here is what bothers me:

  • All those methods are uncomputable.
  • The long term detriments of our actions are uncomputable.
  • A useful definition of utility seems impossible.
  • Our values are not static.
  • We cannot assign value in a time consistent way.
  • There exists no agreeable definition of “self”.
  • There are various examples of how those methods lead to absurd consequences.

Given those caveats, what is it that makes the kind of rationality advocated at lesswrong.com superior to the traditional rationality of Richard Dawkins and Richard Feynman et al.?

I agree with muflax when he writes,

It’s not just that we suck at it, that if we were really smart or had all the resources, we could make it work. It’s not just a lack of adaptations or understanding. The whole philosophy is unworkable.

You can’t believe in the implied invisible and remain even remotely sane. If you accept materialist theories of mind, you don’t even have a self anymore, and it’s quite hard to find a sense datum that is more basic. You can’t make people happy because there are no people in this ontology, neither spatially nor temporarily. Utilitarianism doesn’t just break down in some esoteric scenarios, but is utterly unworkable in the most basic situation. You can’t calculate shit, to put it bluntly.

None of these ideas are even remotely usable. The best you can do is to rely on fundamentally different methods and pretend they are really “approximations”. It’s complete handwaving.

2. Using high-level, explicit, reflective cognition is mostly useless, beyond the skill level of a decent programmer, physicist, or heck, someone who reads Cracked.

Even Eliezer Yudkowsky wrote that he would rather doubt his ‘grasp of “rationality” than give five dollars to a Pascal’s Mugger’. Which makes the whole “shut up and multiply” attitude sound like idle talk. And not just for ignoring Pascal’s mugging. I don’t see how building a friendly AI isn’t increasing the probability of a negative utility outcome.

In other words, those people hardly seem to follow through with what they preach. And those who do wish they would have never come across those ideas in the first place.

Tags: ,

Some weeks ago I again came across this article by Eliezer Yudkowsky and was kind of thinking by myself, “hmm…that argument is really solid”:

Scalability of hardware:  “Humans have only four times the brain volume of chimps – now imagine an AI suddenly acquiring a thousand times as much power.”

I criticized the chimp-human comparison before, and I already knew that bigger brains don’t correlate well with intelligence. Nevertheless I was swayed by the argument.

A recent article made me again aware that the argument is much weaker than it might appear:

[...] animal brains [...], which can vary in size by more than a hundred-fold—in mass, number of neurons, number of synapses, take your pick—and yet not be any smarter. Brains get their size not primarily because of the intelligence they’re carrying, but because of the size of the body they’re dragging.

I’ve termed this the “big embarrassment of neuroscience”, and the embarrassment is that we currently have no good explanation for why bigger bodies have bigger brains.

If we can’t explain what a hundred times larger brain does for its user, then we should moderate our confidence in any attempt we might have for building a brain of our own.

Which in turn reminded of this exchange between me and Yvain:

Yvain: First, because I believed more or less what you believe now before I read the Sequences, and the Sequences changed my mind.

Me: What is it that you believed more or less before reading the Sequences? Is it possible to narrow down on what posts in particular made you change your mind?

Yvain: That’s a good question. Looking over the post list I’m surprised that I can’t find any that look like the sort of thing that would do that directly (there’s a lot about how it’s important to build a Friendly AI as opposed to just throw one together and assume it will be Friendly, but if I understand you right we don’t disagree there). It could have been an indirect effect of realizing that the person who wrote these was very smart and he believed in it. It could have been that they taught me enough rationality to realize I might be wrong about this and should consider changing my mind. And it could have been just very gradual worldview change. You said you were reading the debate with Robin, and that seems like a good starting point. The two dependency thingies labelled “Five Sources of Discontinuity” and “Optimization and the Singularity” here also give me vague memories of being good. But I guess that either I was wrong about the Sequences being full of brilliant pro-Singularity arguments, or they’re more complicated than I thought. Maybe someone else who’s read them more recently than I have can answer this better?

He really isn’t sure why he is now more convinced of AI risks than he was before reading the lesswrong.com sequences.

Just as me, he might have been unconsciously swayed by a bunch of superficially convincing arguments.

It seems dangerously easy to install a cognitive rootkit. Especially when it comes to topics where there are no experts but strong emotions and a lot of groupthink.

Tags: ,

Categories

  1. Probability, Statistics, Discrete mathematics (Combinatorics) and R
  2. Python
  3. Calculus and Differential Equations
  4. Linear Algebra
  5. Logic
  6. Miscellaneous Mathematics
  7. Basic Mathematics
  8. Lambda calculus, Haskell and Project Euler
  9. Programming, Computer Science, Information Theory
  10. C/C++
  11. Miscellaneous 01
  12. Miscellaneous 01

Content Examples

1: Probability, Statistics, Discrete mathematics (Combinatorics) and R

2: Python

6: Miscellaneous Mathematics

  • Geometry
  • Foundations of mathematics
  • Set theory
  • Number theory
  • Proof theory
  • Hilbert space theory
  • Maths 1001
  • The Princeton Companion to Mathematics

7: Basic Mathematics

  • Practice

9: Programming, Computer Science, Information Theory

11/12: Miscellaneous

Rules

  1. If you feel like doing something else, e.g. gaming, compare the fun you expect to have by doing so and the long-term benefits to instead spending the time on following one of the above educational activities.
  2. Always only follow one activity per category and finish it before moving on within that category by replacing it with something else on the associated list.
  3. You are allowed to follow an activity that does not fit into that category if and only if it is necessary to do so to be able to continue with the original activity. But such a detour should at most be as extensive as absolutely necessary to continue with the appropriate category. Everything else should be made up for later in its own relevant category.
  4. Force yourself to pursue activity 1 and 2 for 40 minutes per activity each day.
  5. If somehow possible pursue each activity 3-12 for 20 minutes per activity each day.
  6. Strictly alternate between activities 3-12 to allocate the same amount of time to each activity.
  7. The categories Miscellaneous 1,2 can also be used to assign more weight and thereby extend the studies of one of the other categories, if necessary.

Tags: ,

This is a very basic introduction to odds, followed by a short introduction to log-odds and a few recommendations from where to go from here.

Odds

Imagine you were living in a universe with 3 gods. One benefactor and two nasty gods. Each time you want or need something, one of the gods is chosen at random to serve you.

So if you want to eat strawberries, and you get lucky, the benefactor is chosen to serve you some tasty strawberries. But that’s only going to happen, on average, 1/3 of times. If one of the two nasty gods is chosen instead, you might or might not get something, but what’s for sure is that it won’t be what you want.

In other words, after a very long lifespan you can expect to have 1/3 of your wants and needs being satisfied. In 2 out of 3 cases you did either get nothing, if you are lucky, or something nasty.

That means that if you ask for strawberries it is 2 times as likely that you won’t get strawberries, or something nasty instead, as it is that you are actually going to get what you want. Because (2/3) / (1/3) = 2/1 = 2. In other words, in the long-term you will be left with 2 unfulfilled wishes for each fulfillment, or 2:1.

In this undesirable universe that we imagine, the odds in favor of getting what you want are 1:2. Which means that the odds against receiving some tasty strawberries when you want them are 2:1.

Here is another more abstract example. Imagine that the probability of event A happening is

P(A) = 80% = 0.80 = 80/100 = 4/5.

Then the probability of it not happening, ~A, is

P(~A) = 1-P(A) = 20% = 0.20 = 20/100 = 1/5.

Now the odds are simply the ratio of the probabilities. ‘Odds’ are an expression of relative probabilities.

The odds in favor are the ratio of the probability that an event will happen to the probability that it will not happen. Which in our example equals

P(A)/P(~A) = P(A) / (1-P(A)) = 80%/20% = 0.80/0.20 = (80/100) / (20/100) = 80/20 = (4/5) / (1/5) = 4:1.

The other way round, the odds against event A are 1:4.

Why use odds?

Using odds can help to illustrate the actual confidence accompanying various probabilities.

Take for example the difference between a probability of 99.98% and 99.99% of an event occurring. In odds we have,

99.98%/0.02% = 0.9998/0.0002 = (9998/10000) / (2/10000) = 9998/2 = 4999:1

and

99.99%/0.01% = 0.9999/0.0001 = (9999/10000) / (1/10000) = 9999/1 = 9999:1.

Which means that increasing your confidence from 99.98% to 99.99% is equivalent to saying that you believe that the event is 9999 times as likely to occur than not instead of it being “just” 4999 times as likely.

As you can see, not only does using odds reveal that an increase from 99.98% to 99.99% means that you are actually twice as confident as before, but also how incredible confident you must be to say that something is even 4999 times more likely to occur than not.

In the same way, converting probabilities to odds shows that the difference between 50.01% and 50.02% is negligible (under many circumstances). As 50.01% in odds are

50.01%/49.99% = 0.5001/0.4999 = (5001/10000) / (4999/10000) = 5001/4999 = 1.0004:1

and

50.02%/49.98% = 0.5002/0.4998 = (5002/10000) / (4998/10000) = 5002/4998 = 1.0008:1.

Which is almost the same, since 1.0008/1.0004 ≈ 1.

What odds reveal

To see why you have to realize that using odds reveals what might intuitively not be obvious, namely that to increment the smallest factor has the largest effect.

In the first example we had 9998/2 and 9999/1, which is the same as 9998 * 1/2 and 9999 * 1. The larger factor only inreased by 0.01% while the smaller factor increased by 100%, that is 9999/1 ≈ 9998*1.0001*(1/2)*2. Notice the bold 2? That’s twice as much.

Whereas in the second example both factors are approximately equal and increased or decreased by a similar percentage. That is 5002/4998 is approximately equal to 5001*1.0002*1/4999*1.0002. Which is almost an increase of a factor of 1, or in other words no increase at all.

What odds reveal is that the relative increase or decrease of a factor by one unit becomes more pronounced as the factors absolute difference increases.

Log-odds

Another way of representing probabilities is in terms of log-odds, or decibel (dB).

To convert probabilities into log-odds, first convert percentages into odds. We have already talked about how to do that above.

Once you got the odds, all you have to do is to take the base 10 logarithm of the odds ratio and multiply it by 10.

For example, 4:1 odds would translate to 6dB because 10*log(4) ≈ 6.

Further Reading and Resources

I could go on to explain the advantages of using log-odds. But there are others who have already done so, probably better than I could. And you should now be able to follow and understand what they have written.

I recommend that you start with this short primer, maybe followed by this blog post.

For a precomputed lookup table of important probabilities and their approximate odds and log-odds (decibel) values see this PDF made by muflax.

Tags: , ,

I just stumbled upon this post and felt rather uncomfortable about it. Take the following point:

3. Strong and sustainable recursive self-improvement is possible (80%)

The human level of intelligence is probably nowhere near the maximum possible. You can build minds that are vastly more intelligent and don’t require much more resources.

Where does he get the 80% estimate from?

Formal Methods and Informal Evidence

One of the topics I am most confused about is the pros and cons of making up numerical probability estimates.

I do believe that using Bayes’ rule when faced with data from empirical experiments, or goats behind doors in a gameshow, is the way to go.

But I fear that using formal methods to evaluate informal evidence might lend your beliefs an improper veneer of respectability and in turn make them appear to be more trustworthy than your intuition. For example, using formal methods to evaluate something like AI risks might cause dramatic overconfidence.

Bayes’ rule only tells us by how much we should increase our credence given certain input. But given most everyday life circumstances the input is often conditioned and evaluated by our intuition. Which means that using Bayes’ rule to update on evidence does emotionally push the use of intuition onto a lower level. In other words, using Bayes’ rule to update on evidence that is vague (the conclusions being highly error prone), and given probabilities that are being filled in by intuition, might simply disguise the fact that you are still using your intuition after all, while making you believe that you are not.

Even worse, using formal methods on informal evidence might introduce additional error sources.

Explicit calculations or intuition, which is more trustworthy?

So back to recursive self-improvement. Is it sensible to assign a 80% probability to something that complex? How so? What is your intuition? Do you feel that it is unreasonable to worry about AI risks at this point? Do your calculations disagree? If so, are they actually more accurate and reliable than your intuition, or are you just fooling yourself?

Here is another example:

Due to updates about simulation shutdown risk and the difficulty of FAI philosophy (I think it’s easier than I used to believe, though still very hard), I think an FAI team is a better idea than I thought four months ago.

— Luke Muehlhauser, Executive Director of the Singularity Institute

I am clueless on how it is sensible to update on simulation shut down scenarios. I have never seen a discussion of “reasoning about whether we’re in a simulation” that leads to action-relevant conclusions in a credible way.

If I am right that reasoning about “simulation shut down scenarios” is too error-prone to reliably update on it when it comes to everyday life decisions (at least for humans), then this seems to be a great example of what I have been talking about above.

It is instrumentally useful to understand how computers work and how to program them.

Even if you are not interested to learn to program, you might want to be able to at least interpret the most basic pseudo code as you might come across various snippets of code.

Below you will find a list of links to books and other resources. Most categories are sorted by their difficulty in ascending order.

Resources that can be understood with little or no knowledge of computer science and programming are marked EASY.

Contents

 

Novice: Getting Started

EASY

This section is meant for people with little to no background in mathematics, programming and computer science.

In this course you will learn key concepts in computer science and learn how to write your own computer programs in the context of building a web crawler. There is no prior programming knowledge needed for this course. Beginners welcome! At the end of this course you will have a rock solid foundation for programming in Python and built a working web crawler. This course will prepare you to take many of Udacity’s more advanced courses.

“Invent Your Own Computer Games with Python” is a free book (as in, open source) and a free eBook (as in, no cost to download) that teaches you how to program in the Python programming language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the example. “Invent with Python” was written to be understandable by kids as young as 10 to 12 years old, although it is great for anyone of any age who has never programmed before.

The book intends to show a layman the basic mechanical principles of how computers work, instead of merely summarizing how the different parts relate. He starts with basic principles of language and logic and then demonstrates how they can be embodied by electrical circuits, and these principles give him an opening to describe in principle how computers work mechanically without requiring very much technical knowledge. Although it is not possible in a medium sized book for layman to describe the entire technical summary of a computer, he describes how and why it is possible that elaborate electronics can act in the ways computers do. In the introduction, he contrasts his own work with those books which “include pictures of trains full of 1s and 0s.”

How Computers Work

The book intends to show a layman the basic mechanical principles of how computers work, instead of merely summarizing how the different parts relate. He starts with basic principles of language and logic and then demonstrates how they can be embodied by electrical circuits, and these principles give him an opening to describe in principle how computers work mechanically without requiring very much technical knowledge. Although it is not possible in a medium sized book for layman to describe the entire technical summary of a computer, he describes how and why it is possible that elaborate electronics can act in the ways computers do. In the introduction, he contrasts his own work with those books which “include pictures of trains full of 1s and 0s.”

Indeed, the best way to understand how computers work is to build one from scratch, and this textbook leads students through twelve chapters and projects that gradually build a basic hardware platform and a modern software hierarchy from the ground up. In the process, the students gain hands-on knowledge of hardware architecture, operating systems, programming languages, compilers, data structures, algorithms, and software engineering. Using this constructive approach, the book exposes a significant body of computer science knowledge and demonstrates how theoretical and applied techniques taught in other courses fit into the overall picture.

The new standard for computer architects, designers, and industry management. This book offers a new approach to understanding computer architecture, emphasizing the quantitative aspects of design and practical trade-offs that must be made. Readers will learn the principles and engineering fundamentals that allow designers to make the right design choices.

  • Write Great Code Volume I: Understanding the Machine

This, the first of four volumes, teaches important concepts of machine organization in a language-independent fashion, giving programmers what they need to know to write great code in any language, without the usual overhead of learning assembly language to master this topic. The Write Great Code series will help programmers make wiser choices with respect to programming statements and data types when writing software.

  • Write Great Code Volume II: Thinking Low-Level, Writing High-Level

…a good question to ask might be “Is there some way to write high-level language code to help the compiler produce high-quality machine code?” The answer to this question is “yes” and Write Great Code, Volume II, will teach you how to write such high-level code. This volume in the Write Great Code series describes how compilers translate statements into machine code so that you can choose appropriate high-level programming language statements to produce executable code that is almost as good as hand-optimized assembly code.

Assembly is a low-level programming language that’s one step above a computer’s native machine language. Although assembly language is commonly used for writing device drivers, emulators, and video games, many programmers find its somewhat unfriendly syntax intimidating to learn and use. Since 1996, Randall Hyde’s The Art of Assembly Language has provided a comprehensive, plain-English, and patient introduction to assembly for non-assembly programmers. Hyde’s primary teaching tool, High Level Assembler (or HLA), incorporates many of the features found in high-level languages (like C, C++, and Java) to help you quickly grasp basic assembly concepts. HLA lets you write true low-level code while enjoying the benefits of high-level language programming.

An Overview of Computer Programming

Ruby, Io, Prolog, Scala, Erlang, Clojure, Haskell. With Seven Languages in Seven Weeks, by Bruce A. Tate, you’ll go beyond the syntax-and beyond the 20-minute tutorial you’ll find someplace online. This book has an audacious goal: to present a meaningful exploration of seven languages within a single book. Rather than serve as a complete reference or installation guide, Seven Languages hits what’s essential and unique about each language. Moreover, this approach will help teach you how to grok new languages. For each language, you’ll solve a nontrivial problem, using techniques that show off the language’s most important features. As the book proceeds, you’ll discover the strengths and weaknesses of the languages, while dissecting the process of learning languages quickly–for example, finding the typing and programming models, decision structures, and how you interact with them.

The ubiquity of computers in everyday life in the 21st century justifies the centrality of programming languages to computer science education.  Programming languages is the area that connects the theoretical foundations of computer science, the source of problem-solving algorithms, to modern computer architectures on which the corresponding programs produce solutions.  Given the speed with which computing technology advances in this post-Internet era, a computing textbook must present a structure for organizing information about a subject, not just the facts of the subject itself.  In this book, Michael Scott broadly and comprehensively presents the key concepts of programming languages and their implementation, in a manner appropriate for computer science majors.

This well-respected text offers an accessible introduction to functional programming concepts and techniques for students of mathematics and computer science. The treatment is as nontechnical as possible, assuming no prior knowledge of mathematics or functional programming. Numerous exercises appear throughout the text, and all problems feature complete solutions.

This introduction to programming places computer science in the core of a liberal arts education. Unlike other introductory books, it focuses on the program design process. This approach fosters a variety of skills–critical reading, analytical thinking, creative synthesis, and attention to detail–that are important for everyone, not just future computer programmers.The book exposes readers to two fundamentally new ideas. First, it presents program design guidelines that show the reader how to analyze a problem statement; how to formulate concise goals; how to make up examples; how to develop an outline of the solution, based on the analysis; how to finish the program; and how to test. Each step produces a well-defined intermediate product. Second, the book comes with a novel programming environment, the first one explicitly designed for beginners.

Using a dialect of the Lisp programming language known as Scheme, the book explains core computer science concepts, including abstraction, recursion, interpreters and metalinguistic abstraction, and teaches modular programming. The program also introduces a practical implementation of the register machine concept, defining and developing an assembler for such a construct, which is used as a virtual machine for the implementation of interpreters and compilers in the book, and as a testbed for illustrating the implementation and effect of modifications to the evaluation mechanism. Working Scheme systems based on the design described in this book are quite common student projects.

Computer Science and Computation

There is a considerable, satisfying and underappreciated depth in the science of computing, it offers so much more than simply a driving licence for using a computer. The author of this book is a top researcher working on the fundamentals of informatics, and he has considerable experience teaching complex subjects in a simple manner. In this book he invites the reader to explore the science of computing, convinced that a good explanation of even the most basic techniques can demonstrate the power and magic of the underlying principles. The author starts with the development of computer science, algorithms and programming, and then explains and shows how to exploit the concepts of infinity, computability, computational complexity, nondeterminism and randomness. Finally, he offers some insight into emerging computing paradigms such as biological computing and quantum computing. This book is a fascinating read for students of all levels, and for those curious to learn about the science and magic of algorithmics and its role in other scientific disciplines.

Udacity is a private educational organization founded by Sebastian Thrun, David Stavens, and Mike Sokolsky, with the stated goal of democratizing education It is the outgrowth of free computer science classes offered in 2011 through Stanford University. As of May 2012 Udacity has six active courses. The first two courses ever launched on Udacity both started on 20th February, 2012, entitled “CS 101: Building a Search Engine”, taught by Dave Evans, from the University of Virginia, and “CS 373: Programming a Robotic Car” taught by Thrun. Both courses use Python.

Mathematician Alan Turing invented an imaginary computer known as the Turing Machine; in an age before computers, he explored the concept of what it meant to be computable, creating the field of computability theory in the process, a foundation of present-day computer programming. The book expands Turing’s original 36-page paper with additional background chapters and extensive annotations; the author elaborates on and clarifies many of Turing’s statements, making the original difficult-to-read document accessible to present day programmers, computer science majors, math geeks, and others.

This text provides a broad introduction to the realm of computers. Updated and expanded, “The New Turing Omnibus” offers 66 concise articles on the major points of interest in computer science theory, technology and applications. New for this edition are: updated information on algorithms, detecting primes, noncomputable functions, and self-replicating computers – plus completely new sections on the Mandelbrot set, genetic algorithms, the Newton-Raphson Method, neural networks that learn, DOS systems for personal computers, and computer viruses.

A bold experiment in distributed education, “Introduction to Artificial Intelligence” will be offered free and online to students worldwide from October 10th to December 18th 2011. The course will include feedback on progress and a statement of accomplishment. Taught by Sebastian Thrun and Peter Norvig, the curriculum draws from that used in Stanford’s introductory Artificial Intelligence course. The instructors will offer similar materials, assignments, and exams. Artificial Intelligence is the science of making computer software that reasons about the world around it. Humanoid robots, Google Goggles, self-driving cars, even software that suggests music you might like to hear are all examples of AI. In this class, you will learn how to create this software from two of the leaders in the field. Class begins October 10.

Michael Sipser’s emphasis on unifying computer science theory – rather than offering a collection of low-level details – sets the book apart, as do his intuitive explanations. Throughout the book, Sipser builds students’ knowledge of conceptual tools used in computer science, the aesthetic sense they need to create elegant systems, and the ability to think through problems on their own.

Computability and Logic has become a classic because of its accessibility to students without a mathematical background and because it covers not simply the staple topics of an intermediate logic course, such as Godel’s incompleteness theorems, but also a large number of optional topics, from Turing’s theory of computability to Ramsey’s theorem. Including a selection of exercises, adjusted for this edition, at the end of each chapter, it offers a new and simpler treatment of the representability of recursive functions, a traditional stumbling block for students on the way to the Godel incompleteness theorems.

Supplementary Resources: Mathematics and Algorithms

This book introduces the mathematics that supports advanced computer programming and the analysis of algorithms. The primary aim of its well-known authors is to provide a solid and relevant base of mathematical skills – the skills needed to solve complex problems, to evaluate horrendous sums, and to discover subtle patterns in data. It is an indispensable text and reference not only for computer scientists – the authors themselves rely heavily on it! – but for serious users of mathematics in virtually every discipline.

The textbook Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne surveys the most important algorithms and data structures in use today.

Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad range of algorithms in depth, yet makes their design and analysis accessible to all levels of readers. Each chapter is relatively self-contained and can be used as a unit of study. The algorithms are described in English and in a pseudocode designed to be readable by anyone who has done a little programming. The explanations have been kept elementary without sacrificing depth of coverage or mathematical rigor.

Software developers and computer scientists have eagerly awaited this comprehensive revision of Robert Sedgewick’s landmark texts on algorithms. Sedgewick has completely revamped all five sections, illuminating today’s best algorithms for an exceptionally wide range of tasks. This shrink-wrapped package brings together Algorithms in C, Third Edition, Parts 1-4 and his new Algorithms in C, Third Edition, Part 5. Together, these books are definitive: the most up-to-date and practical algorithms resource available. Sedgewick masterfully blends theory and practice, making Bundle of Algorithms in C, Third Edition an essential resource for computer science researchers, students, and working developers alike. The first book introduces fundamental concepts associated with algorithms; then covers data structures, sorting, and searching. The second book focuses entirely on graphing algorithms, which are critical for a wide range of applications, including network connectivity, circuit design, scheduling, transaction processing, and resource allocation. Together, these books present nearly 2,000 new exercises, hundreds of new figures, and dozens of new programs. In both books, Sedgewick focuses on practical applications, giving readers all the information, diagrams, and real (not pseudo-) code they need to confidently implement, debug, and use the algorithms he presents.

This work is not about computer programming in the narrow sense, but about the algorithms and methods which lie at the heart of most computer systems. At the end of 1999, these books were named among the best twelve physical-science monographs of the century by American Scientist, along with: Dirac on quantum mechanics, Einstein on relativity, Mandelbrot on fractals, Pauling on the chemical bond, Russell and Whitehead on foundations of mathematics, von Neumann and Morgenstern on game theory, Wiener on cybernetics, Woodward and Hoffmann on orbital symmetry, Feynman on quantum electrodynamics, Smith on the search for structure, and Einstein’s collected papers.

Practice

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

Python Challenge is a game in which each level can be solved by a bit of (Python) programming.

CodeChef is a global programming community. We host contests, trainings and events for programmers around the world. Our goal is to provide a platform for programmers everywhere to meet, compete, and have fun.

Now in the 5th edition, Cracking the Coding Interview gives you the interview preparation you need to get the top software developer jobs. This is a deeply technical book and focuses on the software engineering skills to ace your interview. The book is over 500 pages and includes 150 programming interview questions and answers, as well as other advice.

  • Write your own programs.

Programming Languages

Some important programming languages are the high-level scripting language Python that incorporates various programming paradigms such as iterative and functional programming. The purely functional programming language Haskell, based on lambda calculus. The highly efficient low-level programming language C. The very expressive LISP family of languages, including Scheme. And the specialized R language for statistical computing and graphics.

Python

pyscripter is an open-source Python Integrated Development Environment (IDE)

  • Khan Academy Introduction to programming and computer science (using Python) EASY

“Invent Your Own Computer Games with Python” is a free book (as in, open source) and a free eBook (as in, no cost to download) that teaches you how to program in the Python programming language. Each chapter gives you the complete source code for a new game, and then teaches the programming concepts from the example. “Invent with Python” was written to be understandable by kids as young as 10 to 12 years old, although it is great for anyone of any age who has never programmed before.

Have you always wanted to learn how to code but never thought you could? Are you looking to build a foundation for more complex coding? Do you want to challenge your brain in a new way? Then Learn Python the Hard Way is the book for you.

Think Python is an introduction to Python programming for beginners. It starts with basic concepts of programming, and is carefully designed to define all terms when they are first used and to develop each new concept in a logical progression. Larger pieces, like recursion and object-oriented programming are divided into a sequence of smaller steps and introduced over the course of several chapters.

This book is suitable for use in a university-level first course in computing (CS1), as well as the increasingly popular course known as CS0. It is difficult for many students to master basic concepts in computer science and programming. A large portion of the confusion can be blamed on the complexity of the tools and materials that are traditionally used to teach CS1 and CS2. This textbook was written with a single overarching goal: to present the core concepts of computer science as simply as possible without being simplistic.

Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. Anyone who has taken a high school science class will be able to follow along as the book introduces the basics of programming, then goes on to show readers how to work with databases, download data from the web automatically, build graphical interfaces, and most importantly, how to think like a professional programmer.

The Quick Python Book, Second Edition, is a clear, concise introduction to Python 3, aimed at programmers new to Python. This updated edition includes all the changes in Python 3, itself a significant shift from earlier versions of Python. The book begins with basic but useful programs that teach the core features of syntax, control flow, and data structures. It then moves to larger applications involving code management, object-oriented programming, web development, and converting code from earlier versions of Python.

The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example- and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology, and finance. The book teaches “Matlab-style” and procedural programming as well as object-oriented programming. High school mathematics is a required background, and it is advantageous to study classical and numerical one-variable calculus in parallel with reading this book. Besides learning how to program computers, the reader will also learn how to solve mathematical problems, arising in various branches of science and engineering, with the aid of numerical methods and programming. By blending programming, mathematics and scientific applications, the book lays a solid foundation for practicing computational science.

The goal of this book is to teach computational scientists how to develop tailored, flexible, and human-efficient working environments built from small programs written in the easy-to-learn, high-level language Python. The focus is on examples and applications of relevance to computational scientists.

The full details of an industrial-strength spell corrector are quite complex. What I wanted to do here is to develop, in less than a page of code, a toy spelling corrector that achieves 80 or 90% accuracy at a processing speed of at least 10 words per second.

Haskell

The Haskell Platform is the easiest way to get started with programming Haskell. It comes with all you need to get up and running. Think of it as “Haskell: batteries included”.

This page will help you get started as quickly as possible.

Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduction is ideal for beginners: it requires no previous programming experience and all concepts are explained from first principles via carefully chosen examples. Each chapter includes exercises that range from the straightforward to extended projects, plus suggestions for further reading on more advanced topics. The author is a leading Haskell researcher and instructor, well-known for his teaching skills. The presentation is clear and simple, and benefits from having been refined and class-tested over several years. The result is a text that can be used with courses, or for self-learning. Features include freely accessible Powerpoint slides for each chapter, solutions to exercises and examination questions (with solutions) available to instructors, and a downloadable code that’s fully compliant with the latest Haskell release.

Learn You a Haskell, the funkiest way to learn Haskell, which is the best functional programming language around. You may have heard of it. This guide is meant for people who have programmed already, but have yet to try functional programming.

This easy-to-use, fast-moving tutorial introduces you to functional programming with Haskell. You’ll learn how to use Haskell in a variety of practical ways, from short scripts to large and demanding applications. Real World Haskell takes you through the basics of functional programming at a brisk pace, and then helps you increase your understanding of Haskell in real-world issues like I/O, performance, dealing with data, concurrency, and more as you move through each chapter.

The textbook by Doets and van Eijck puts the Haskell programming language systematically to work for presenting a major piece of logic and mathematics. The reader is taken through chapters on basic logic, proof recipes, sets and lists, relations and functions, recursion and co-recursion, the number systems, polynomials and power series, ending with Cantor’s infinities. The book uses Haskell for the executable and strongly typed manifestation of various mathematical notions at the level of declarative programming. The book adopts a systematic but relaxed mathematical style (definition, example, exercise, …); the text is very pleasant to read due to a small amount of anecdotal information, and due to the fact that definitions are fluently integrated in the running text. An important goal of the book is to get the reader acquainted with reasoning about programs.

Common Lisp

GNU CLISP (compiler, runtime) is an implementation of the programming language Common Lisp. CLISP is extremely portable, running on almost all Unix-based operating systems as well as on Microsoft Windows.

Lisp has been hailed as the world’s most powerful programming language, but its cryptic syntax and academic reputation can be enough to scare off even experienced programmers. Those dark days are finally over—Land of Lisp brings the power of functional programming to the people! With his brilliantly quirky comics and out-of-this-world games, longtime Lisper Conrad Barski teaches you the mysteries of Common Lisp. You’ll start with the basics, like list manipulation, I/O, and recursion, then move on to more complex topics like macros, higher order programming, and domain-specific languages. Then, when your brain overheats, you can kick back with an action-packed comic book interlude!

Practical Common Lisp presents a thorough introduction to Common Lisp, providing you with an overall understanding of the language features and how they work. Over a third of the book is devoted to practical examples such as the core of a spam filter and a web application for browsing MP3s and streaming them via the Shoutcast protocol to any standard MP3 client software (e.g., iTunes, XMMS, or WinAmp). In other “practical” chapters, author Peter Seibel demonstrates how to build a simple but flexible in-memory database, how to parse binary files, and how to build a unit test framework in 26 lines of code.

Teaching users new and more powerful ways of thinking about programs, this two-in-one text contains a tutorial—full of examples—that explains all the essential concepts of Lisp programming, plus an up-to-date summary of ANSI Common Lisp, listing every operator in the language. Informative and fun, it gives users everything they need to start writing programs in Lisp both efficiently and effectively, and highlights such innovative Lisp features as automatic memory management, manifest typing, closures, and more. Dividing material into two parts, the tutorial half of the book covers subject-by-subject the essential core of Common Lisp, and sums up lessons of preceding chapters in two examples of real applications: a backward-chainer, and an embedded language for object-oriented programming. Consisting of three appendices, the summary half of the book gives source code for a selection of widely used Common Lisp operators, with definitions that offer a comprehensive explanation of the language and provide a rich source of real examples; summarizes some differences between ANSI Common Lisp and Common Lisp as it was originally defined in 1984; and contains a concise description of every function, macro, and special operator in ANSI Common Lisp. The book concludes with a section of notes containing clarifications, references, and additional code.

Paradigms of AI Programming is the first text to teach advanced Common Lisp techniques in the context of building major AI systems. By reconstructing authentic, complex AI programs using state-of-the-art Common Lisp, the book teaches students and professionals how to build and debug robust practical programs, while demonstrating superior programming style and important AI concepts. The author strongly emphasizes the practical performance issues involved in writing real working programs of significant size. Chapters on troubleshooting and efficiency are included, along with a discussion of the fundamentals of object-oriented programming and a description of the main CLOS functions. This volume is an excellent text for a course on AI programming, a useful supplement for general AI courses and an indispensable reference for the professional programmer.

Let Over Lambda is one of the most hardcore computer programming books out there. Starting with the fundamentals, it describes the most advanced features of the most advanced language: COMMON LISP. The point of this book is to expose you to ideas that you might otherwise never be exposed to.

These are Maxwell’s equations. Just four compact equations. With a little work it’s easy to understand the basic elements of the equations – what all the symbols mean, how we can compute all the relevant quantities, and so on. But while it’s easy to understand the elements of the equations, understanding all their consequences is another matter. Inside these equations is all of electromagnetism – everything from antennas to motors to circuits. If you think you understand the consequences of these four equations, then you may leave the room now, and you can come back and ace the exam at the end of semester [...] I won’t stop with just showing you how to write some Lisp. Once we’ve done that we’re going to write an interpreter for Lisp code. In particular, we’ll create a interpreter based on a beautiful Lisp interpreter written by Peter Norvig, which contains just 90 lines of Python code. Our interpreter will be a little more complex, due mostly to the addition of a few conveniences absent from Norvig’s interpreter. The code is still simple and easy to understand, provided you’re comfortable reading Python code. As we’ll see, the benefit of writing the interpreter is not just that it gives us a running interpreter (although that’s no small thing). It’s that writing an interpreter also deepens our understanding of Lisp. It does that by taking what would otherwise be some rather abstract concepts in our description of Lisp, and giving them concrete, tangible representations in terms of Python code and data structures. By making concrete what was formerly abstract, the code for our Lisp interpreter gives us a new way of understanding how Lisp works.

Scheme

To get started coding Scheme install Racket and select R5RS and R6RS (the standard dialects of Scheme).

The Little Schemer introduces computing as an extension of arithmetic and algebra ;things that everyone studies in grade school and high school. It introduces programs as recursive functions and briefly discusses the limits of what computers can do. The authors use the programming language Scheme, and interesting foods to illustrate these abstract ideas.

Scheme is a general-purpose programming language, descended from Algol and Lisp, widely used in computing education and research and a broad range of industrial applications. This thoroughly updated edition of The Scheme Programming Language provides an introduction to Scheme and a definitive reference for standard Scheme, presented in a clear and concise manner. Written for professionals and students with some prior programming experience, it begins by leading the programmer gently through the basics of Scheme and continues with an introduction to some of the more advanced features of the language.

R

RStudio is a free and open source integrated development environment (IDE) for R. You can run it on your desktop (Windows, Mac, or Linux) or even over the web using RStudio Server.

R is a tool for statistics and data modeling. The R programming language is elegant, versatile, and has a highly expressive syntax designed around working with data. R is more than that, though — it also includes extremely powerful graphics capabilities. If you want to easily manipulate your data and present it in compelling ways, R is the tool for you.

Here is a list of FREE R tutorials hosted in official website of universities around the world.

Here you will find daily news and tutorials about R, contributed by over 300 bloggers.

R is the world’s most popular language for developing statistical software: Archaeologists use it to track the spread of ancient civilizations, drug companies use it to discover which medications are safe and effective, and actuaries use it to assess financial risks and keep economies running smoothly. The Art of R Programming takes you on a guided tour of software development with R, from basic types and data structures to advanced topics like closures, recursion, and anonymous functions. No statistical knowledge is required, and your programming skills can range from hobbyist to pro. Along the way, you’ll learn about functional and object-oriented programming, running mathematical simulations, and rearranging complex data into simpler, more useful formats.

The target audience for this book is college students who are required to learn statistics, students with little background in mathematics and often no motivation to learn more.

There is an explosion of interest in Bayesian statistics, primarily because recently created computational methods have finally made Bayesian analysis obtainable to a wide audience. Doing Bayesian Data Analysis, A Tutorial Introduction with R and BUGS provides an accessible approach to Bayesian data analysis, as material is explained clearly with concrete examples. The book begins with the basics, including essential concepts of probability and random sampling, and gradually progresses to advanced hierarchical modeling methods for realistic data. The text delivers comprehensive coverage of all scenarios addressed by non-Bayesian textbooks–t-tests, analysis of variance (ANOVA) and comparisons in ANOVA, multiple regression, and chi-square (contingency table analysis). This book is intended for first year graduate students or advanced undergraduates. It provides a bridge between undergraduate training and modern Bayesian methods for data analysis, which is becoming the accepted research standard. Prerequisite is knowledge of algebra and basic calculus. Free software now includes programs in JAGS, which runs on Macintosh, Linux, and Windows.

C/C++

Code::Blocks, a free C/C++ IDE (Integrated development environment) bundled with a MinGW compiler to produce Windows programs.

C Books

Ever wished there was an easier way to learn C from a book? Head First C is a complete learning experience that will show you how to create programs in the C language. This book helps you learn the C language with a unique method that goes beyond syntax and how-to manuals and helps you understand how to be a great programmer. You’ll learn key areas such as language basics, pointers and pointer arithmetic, and dynamic memory management, and with advanced topics such as multi-threading and network programming, Head First C can be used as an accessible text book for a college-level course.

Learn the C programming language from one of the best. Stephen Kochan’s Programming in C is thorough with easy-to-follow instructions that are sure to benefit beginning programmers. This book provides readers with practical examples of how the C programming language can be used with small, fast programs, similar to the programming used by large game developers such as Nintendo. If you want a one-stop-source for C programming, this book is it.The book is appropriate for all introductory-to-intermediate courses on programming in the C language, including courses covering C programming for games and small-device platforms.

Professor King’s spiral approach made it accessible to a broad range of readers, from beginners to more advanced students. With adoptions at over 225 colleges, the first edition was one of the leading C textbooks of the last ten years. The second edition maintains all the book’s popular features and brings it up to date with coverage of the C99 standard. The new edition also adds a significant number of exercises and longer programming projects, and includes extensive revisions and updates.

The new classic! C Primer Plus, now in its 5th edition, has been revised to include over 20 new programming exercises, newly improved examples and the new ANSI/ISO standard, C99. Task-oriented examples will teach you the fundamentals of C programming. From extended integer types and compound literals to Boolean support and variable-length arrays, you will learn to create practical and real-world applications with C programming. Review questions and programming exercises at the end of each chapter will reinforce what you have learned. This friendly and easy-to-use self-study guide will help you understand the fundamentals of this core programming language.

C++ Books

C++ Programming in Easy Steps makes no assumption you have previous knowledge of any programming language so it’s ideal for the newcomer to computer programming. It has an easy-to-follow style that will appeal to programmers moving from another programming language, and to the student who is studying C++ programming at school or college, and to those seeking a career in computing who need a fundamental understanding of object oriented programming.

Want to learn how to program in C++ immediately? Want to start writing better, more powerful C++ programs today? Accelerated C++’s uniquely modern approach will help you learn faster and more fluently than you ever believed possible. Based on the authors’ intensive summer C++ courses at Stanford University, Accelerated C++ covers virtually every concept that most professional C++ programmers will ever use — but it turns the “traditional” C++ curriculum upside down, starting with the high-level C++ data structures and algorithms that let you write robust programs immediately. Once you’re getting results, Accelerated C++ takes you “under the hood,” introducing complex language features such as memory management in context, and explaining exactly how and when to use them. From start to finish, the book concentrates on solving problems, rather than learning language and library features for their own sake. The result: You’ll be writing real-world programs in no time — and outstanding code faster than you ever imagined.

Written by Bjarne Stroustrup, the creator of C++, this is the world’s most trusted and widely read book on C++.

Tags: , , , , ,

Richard Loosemore, Mon May 14 09:57:55 CDT 2012 @ existential mailing list:

I find this entire discussion to be disturbingly ungrounded.

We are debating the behavior, drives and motivations of intelligent machines, so it would seem critical to understand how the mechanisms underlying behavior, drives and motivations would actually work.

But it is most certainly NOT the case that we understand these mechanisms. There is a widespread assumption (especially at SIAI and FHI) that the mechanisms must be some type of proposition-based utility-maximization function. But this is nothing more than an extrapolation from certain types of narrow-AI hierarchical goal-planning systems, and a convenient excuse to engage in unconstrained mathematical theorizing. In practice, we have not come anywhere near to building an AGI system that:

(a) contains such types of motivation mechanism, with extremely high-level supergoals, or
(b) contains such a mechanism and also exhibits a stable form of intelligence.

Everything said in arguments like the current thread depends on exactly how the mechanism would work, but that means that everything said is actually predicated on unfounded assumptions.

On a more particular note:

On 5/14/12 9:24 AM, Anders Sandberg wrote:
> For example, the work on formalizing philosophical concepts
> (automating the process of grounding the fuzzy words into something
> real) into something an AI could understand requires quite
> sophisticated understanding of both philosophy and machine learning.

This assumes that there is some formalization to be had. But there are many arguments (including those in some of my own papers on the subject) that lead to the conclusion that this kind of formalization of semantics, and the whole machine learning paradigm, is not going to lead to AGI.

In plain language: you are never going to formalize the notion of “friendliness” in such a way that the AGI can “understand” it in the way that will make “Be friendly to humans” a valid supergoal statement.

Tags: ,

« Older entries § Newer entries »