< Return to Video

In the beginning was the code | Juergen Schmidhuber | TEDxUHasselt

  • 0:06 - 0:10
    Three prisoners were sentenced to death;
  • 0:10 - 0:11
    one of them is French,
  • 0:11 - 0:13
    one of them is German,
  • 0:13 - 0:16
    and one of them is Belgian.
  • 0:17 - 0:20
    "What is your last wish?"
    they asked the French guy.
  • 0:20 - 0:27
    He says, "A bottle
    of exquisite French wine."
  • 0:27 - 0:29
    "What is your last wish?",
    they asked the German guy.
  • 0:29 - 0:35
    He says, "I want to give a speech."
  • 0:40 - 0:43
    "What is your last wish?",
    they asked the Belgian guy.
  • 0:43 - 0:48
    He says, "I want to get shot
    before the German starts his speech."
  • 0:48 - 0:50
    (Laughter)
  • 0:50 - 0:52
    (Applause)
  • 0:57 - 1:00
    Unfortunately for you guys,
    it is too late now.
  • 1:00 - 1:01
    (Laughter)
  • 1:04 - 1:10
    My speech will be about the simplest way
    of explaining the Universe.
  • 1:11 - 1:14
    The Universe is following strange rules:
  • 1:14 - 1:20
    Einstein's general relativity,
    Planck's quantum physics.
  • 1:21 - 1:23
    But it may be even stranger
    than you think,
  • 1:23 - 1:27
    and the Universe may be
    even simpler than you think.
  • 1:29 - 1:34
    Many scientists are now taking seriously
    the possibility that all of reality
  • 1:34 - 1:38
    is being computed
    by a short computer program,
  • 1:38 - 1:44
    as first suggested in 1967 by Konrad Zuse.
  • 1:44 - 1:49
    The same Konrad Zuse who in 1935,
  • 1:49 - 1:53
    or from 1935 until 1941,
  • 1:53 - 1:57
    built the first working general-purpose
    program-controlled computer.
  • 1:58 - 2:03
    The idea is that every electron
    behaves the same way,
  • 2:04 - 2:11
    because all electrons are essentially
    using and reusing the same piece of code,
  • 2:11 - 2:13
    the same sub-program again and again.
  • 2:14 - 2:17
    To make this plausible,
    consider a video game
  • 2:17 - 2:20
    with a realistic
    three-dimensional simulation.
  • 2:23 - 2:26
    The program that defines
    the rule of this game
  • 2:26 - 2:29
    is a series of zeroes and ones
    in your computer.
  • 2:29 - 2:32
    If you look at this program,
    you don't see what it does.
  • 2:32 - 2:34
    You have to run it to experience it.
  • 2:36 - 2:43
    It is true that reality still has
    much better resolution than video games.
  • 2:44 - 2:47
    But soon, you will see
    no difference no more,
  • 2:48 - 2:51
    because simulations are getting better
  • 2:51 - 2:57
    by a factor of 1,000
    per decade and Swiss franc.
  • 2:57 - 3:01
    But in any case, in a few decades,
    we will have a factor of a billion.
  • 3:03 - 3:05
    This means that soon we will be able
  • 3:05 - 3:10
    to simulate very convincingly
    heavens and hells.
  • 3:10 - 3:12
    And soon, it would seem
    very plausible indeed
  • 3:12 - 3:16
    that all of reality
    maybe also is just a simulation.
  • 3:18 - 3:21
    To a man with a hammer,
    everything looks like a nail.
  • 3:21 - 3:26
    To a man with a computer,
    everything looks like a computation.
  • 3:26 - 3:31
    Skeptics might say,
    "What about quantum physics
  • 3:31 - 3:37
    and Heisenberg's uncertainty principle,
    and Bell's inequality?"
  • 3:37 - 3:39
    Don't these things show
  • 3:41 - 3:44
    that the Universe cannot be computed
  • 3:44 - 3:47
    by a simple deterministic
    computer program?
  • 3:47 - 3:49
    And the short answers, "Not at all."
  • 3:49 - 3:56
    For example, Bell himself knew well
    that a deterministically-computed universe
  • 3:56 - 4:01
    with deterministically computed
    observers like ourselves
  • 4:02 - 4:07
    is totally compatible
    with all existing physical observations.
  • 4:07 - 4:10
    There is no physical evidence
    against this possibility.
  • 4:13 - 4:15
    Before I came here,
  • 4:15 - 4:18
    I thought this is going to be
    just another TEDx talk,
  • 4:18 - 4:20
    and there won't be much of an audience,
  • 4:20 - 4:23
    but you are actually
    a large audience by my standards.
  • 4:26 - 4:30
    The other day, I gave a talk, and there
    was just a single person in the audience
  • 4:30 - 4:31
    (Laughter)
  • 4:32 - 4:33
    - a young lady.
  • 4:33 - 4:37
    I said, "Young lady,
    it's very embarrassing,
  • 4:37 - 4:41
    but apparently today,
    I am going to give this talk just to you."
  • 4:42 - 4:48
    And she said, "OK, but please hurry.
    I got to clean up here."
  • 4:48 - 4:49
    (Laughter)
  • 4:52 - 4:53
    (Applause)
  • 4:56 - 5:01
    In the 1980s, when my brother
    was a teenager in Munich,
  • 5:01 - 5:04
    he told me and everybody else whom he met
  • 5:04 - 5:09
    that the Universe
    or the quantum multiverse
  • 5:10 - 5:13
    is the sum of all mathematics.
  • 5:15 - 5:20
    He was younger than me
    - my brother is still younger than I am -
  • 5:22 - 5:23
    and he also was smarter than me
  • 5:23 - 5:27
    and he went on to become
    a theoretical physicist,
  • 5:27 - 5:31
    first in Munich, then at Caltech,
    at Princeton, at CERN,
  • 5:31 - 5:36
    and he lived in Bern,
    next door to where Einstein lived.
  • 5:37 - 5:39
    Not at the same time.
  • 5:43 - 5:45
    The sum of all mathematics.
  • 5:45 - 5:47
    For a while, I didn't fully understand
    what that means,
  • 5:47 - 5:50
    but then, in 1996,
  • 5:50 - 5:56
    I was able to formulate this idea
    through a computation,
  • 5:57 - 6:03
    pointing out that one can generalize
    Everett's multiverse theory,
  • 6:05 - 6:09
    pointing out that there is
    a very short program,
  • 6:09 - 6:13
    a short and fast program
    that not only computes this Universe...
  • 6:13 - 6:14
    If it is computable,
  • 6:14 - 6:16
    but there's no evidence
    against this possibility...
  • 6:16 - 6:21
    Not only this universe but also all
    other logically possible universes,
  • 6:21 - 6:26
    including those
    with different physical laws;
  • 6:26 - 6:30
    for example, universes
    where there's anti-gravity.
  • 6:31 - 6:35
    In fact, there is
    a fastest, most efficient,
  • 6:35 - 6:40
    mathematically optimal way
    of computing all possible universes,
  • 6:40 - 6:44
    all logically possible
    computable universes;
  • 6:44 - 6:48
    an optimal way
    that is better than any other.
  • 6:49 - 6:50
    I wrote it down for you.
  • 6:50 - 6:53
    It has only 10 lines of code.
  • 6:53 - 6:55
    It fits on this little piece of paper.
  • 6:55 - 6:57
    Ten lines of code:
  • 6:57 - 7:02
    the optimal way of simulating or computing
    every logically possible universe.
  • 7:05 - 7:07
    It works like this:
  • 7:07 - 7:12
    You essentially, systematically enumerate
    all possible programs through a program,
  • 7:12 - 7:18
    and then you allocate run-time
    to all of these programs in an optimal way
  • 7:18 - 7:22
    that makes sure
    that each possible universe's history
  • 7:22 - 7:26
    is being computed
    as quickly as if it were computed
  • 7:26 - 7:31
    by this universe's fastest program,
    which we usually do not know in advance.
  • 7:32 - 7:36
    Faster, say, for a constant factor
    which does not depend
  • 7:36 - 7:40
    on the size
    of the universe's history so far.
  • 7:40 - 7:43
    The universe itself may be infinite.
  • 7:44 - 7:49
    Any self-respecting
    God-like great programmer
  • 7:50 - 7:52
    should use this optimal method
  • 7:52 - 7:58
    to create and become the master
    of all logically possible universes.
  • 7:58 - 8:00
    You should not use the sub-optimal method.
  • 8:00 - 8:02
    That's the one that you should use.
  • 8:03 - 8:05
    Suppose he does that.
  • 8:07 - 8:10
    Then, after some time,
  • 8:10 - 8:15
    many of the universes that are being
    computed by this optimal way
  • 8:16 - 8:19
    will contain a copy of you,
  • 8:20 - 8:22
    and of you,
  • 8:22 - 8:26
    as you are looking at me
    with incredible eyes.
  • 8:32 - 8:36
    You yourself could even
    become a great programmer
  • 8:36 - 8:38
    by just taking this piece of code,
  • 8:38 - 8:44
    programming it on your own computer
    and simulating all possible universes.
  • 8:46 - 8:49
    Given the properties
    of the optimal method,
  • 8:51 - 8:54
    it is now easy to see
    that, at a given point in time,
  • 8:54 - 8:57
    most of the copies of yourself,
  • 8:57 - 9:00
    of the universes that contain
    a copy of your life,
  • 9:02 - 9:06
    will be due to one of the fastest
    and shortest programs
  • 9:06 - 9:09
    that is compatible with your existence.
  • 9:09 - 9:13
    This simple insight allows us
    to make predictions about the future.
  • 9:14 - 9:18
    There are many possible futures
    of your life so far.
  • 9:18 - 9:20
    Which one is going to happen?
  • 9:21 - 9:27
    Answer: most likely one of the few
    regular, non-random futures
  • 9:27 - 9:31
    that can be computed
    by a fast and short program.
  • 9:31 - 9:35
    Because randomness, random stuff,
    where everything suddenly dissolves
  • 9:35 - 9:40
    into arbitrariness is fundamentally harder
    to compute than regular stuff
  • 9:40 - 9:43
    even by the optimal method.
  • 9:47 - 9:52
    This means that beta decay,
    the decay of neutrons,
  • 9:54 - 9:58
    which is widely believed to be random,
    cannot really be random.
  • 9:58 - 10:03
    It has to be pseudo-random,
    just like the decimal expansion of pi,
  • 10:03 - 10:05
    which looks random, but isn't,
  • 10:06 - 10:10
    because it can be computed
    by a short program.
  • 10:13 - 10:15
    A consequence of the optimal method
    of computing everything
  • 10:15 - 10:21
    is also that quantum computation
    is not going to work well.
  • 10:26 - 10:30
    And the reason is because it's consuming
    so much traditional computation power.
  • 10:30 - 10:34
    I made this prediction
    12 years ago, and since then,
  • 10:34 - 10:39
    there has not been any progress
    in practical quantum computing.
  • 10:42 - 10:46
    So quantum computers are sexy,
    but essentially, they are dead.
  • 10:46 - 10:49
    What about free will?
  • 10:49 - 10:52
    Free will is overrated.
  • 10:53 - 10:58
    In my lab, at the Swiss Artificial
    Intelligence Lab, IDSIA,
  • 10:58 - 11:04
    we often program simulated worlds
  • 11:04 - 11:10
    inhabited by simulated agents,
    driven by simulated artificial brains
  • 11:11 - 11:15
    containing simulated
    artificial neural networks.
  • 11:15 - 11:18
    In the beginning,
    these guys are very dumb,
  • 11:18 - 11:23
    and over time, they become smarter;
  • 11:23 - 11:29
    through pseudo-random trial and error,
    they figure out how to solve problems
  • 11:29 - 11:33
    that they were not able to solve
    in advance, in the beginning.
  • 11:35 - 11:37
    They have no idea
  • 11:37 - 11:41
    that every single thought
    of their little artificial brains
  • 11:41 - 11:44
    and the little artificial neural networks
  • 11:44 - 11:45
    in their brains
  • 11:45 - 11:52
    is totally deterministically
    computed by a program
  • 11:52 - 11:56
    that does not have any random aspects.
  • 11:59 - 12:01
    Nevertheless, computer science,
  • 12:01 - 12:07
    and the whole line of reasoning
    I now try to outline within 15 minutes,
  • 12:08 - 12:11
    is now offering
    formal mathematical answers
  • 12:11 - 12:16
    to all questions
    of philosophy and theology.
  • 12:17 - 12:22
    For example, one of the consequences
    of this computational theology
  • 12:22 - 12:25
    is that your own life
    must be very important
  • 12:25 - 12:28
    in the grand scheme of things.
  • 12:28 - 12:31
    You may think
    that your life is insignificant
  • 12:31 - 12:34
    because you are so small,
    and the Universe is so big.
  • 12:34 - 12:39
    However, given the optimal way
    of computing everything
  • 12:39 - 12:43
    and given the probability distribution
    induced by this optimal way,
  • 12:46 - 12:52
    probably, it's very hard
    to edit your life out of this history,
  • 12:52 - 12:55
    of the current history of this Universe,
  • 12:56 - 12:59
    because the program
    that computes this Universe
  • 12:59 - 13:01
    or one that is very much like it,
  • 13:01 - 13:05
    but without you and without your life,
    with all its ups and downs,
  • 13:05 - 13:11
    it's probably much longer, and therefore,
    much slower than the original program,
  • 13:12 - 13:16
    which does contain your life,
    which is totally interconnected
  • 13:16 - 13:19
    with everything else that is happening
    in this computable world,
  • 13:19 - 13:22
    if it is computable indeed.
  • 13:23 - 13:27
    So your life, from this perspective,
    is not insignificant.
  • 13:27 - 13:31
    It is an indispensable part
    of the grand scheme of things.
  • 13:31 - 13:36
    This is compatible with religions
    that claim all is one
  • 13:36 - 13:39
    and everything is connected to everything.
  • 13:39 - 13:45
    May this thought lift you up
    in times of frustration.
  • 13:48 - 13:53
    I wish to thank the organizers
    for doing a great job,
  • 13:54 - 13:55
    and for the check,
  • 13:55 - 13:59
    which I am going to spend
    on the education of my kids.
  • 14:00 - 14:04
    I wish to thank my mom, and my dad,
    and the great programmer,
  • 14:04 - 14:08
    without whom all of this
    would not have been possible.
  • 14:08 - 14:14
    I wish to thank my kids, without whom
    all of this would not have been necessary.
  • 14:14 - 14:16
    (Laughter)
  • 14:17 - 14:20
    And I wish to thank you,
    my lovely audience, for your patience.
  • 14:21 - 14:22
    (Applause)
Title:
In the beginning was the code | Juergen Schmidhuber | TEDxUHasselt
Description:

This talk was given at a TEDx event using the TED conference format but independently organized by a local community. Learn more at http://ted.com/tedx

The Universe seems incredibly complex. But could its rules be dead simple? Juergen Schmidhuber's fascinating story will convince you that this Universe and your own life are just by-products of a very simple and fast program computing all logically possible universes.

Juergen Schmidhuber is Director of the Swiss Artificial Intelligence Lab IDSIA (since 1995), Professor of Artificial Intelligence at the University of Lugano, Switzerland (since 2009), and Professor of SUPSI (since 2003).

He helped to transform IDSIA into one of the world's top ten AI labs (the smallest!), according to the ranking of Business Week Magazine. His group pioneered the field of mathematically optimal universal AI and universal problem solvers. The algorithms developed in his lab won seven first prizes in international pattern recognition competitions, as well as several best paper awards.

more » « less
Video Language:
English
Team:
closed TED
Project:
TEDxTalks
Duration:
14:27

English subtitles

Revisions