Gödel machine

From Wikipedia, the free encyclopedia
Jump to: navigation, search

A Gödel machine is a self-improving computer program invented by Jürgen Schmidhuber that solves problems in an optimal way. It uses a recursive self-improvement protocol in which it rewrites its own code when it can prove the new code provides a more optimal strategy.[1][2] The machine was invented by Jürgen Schmidhuber, but is named after Kurt Gödel who inspired the mathematical theories.[3]

The Gödel machine is often discussed when dealing with issues of meta-learning, also known as "learning to learn." Applications include automating human design decisions and transfer of knowledge between multiple related tasks, and may lead to design of more robust and general learning architectures.[4] Though theoretically possible, no full implementation has existed before.[5]

The Gödel machine is often compared with Marcus Hutter's AIXI, another formal specification for an Artificial General Intelligence.[6] Schmidhuber points out that the Gödel machine could start out by implementing AIXI as its initial sub-program, and self-modify after it finds proof that another algorithm for its search code will be more optimal.

Limitations[edit]

Traditional problems solved by a computer only require one input and provide some output. Computers of this sort had their initial algorithm hardwired.[7] This doesn't take into account the dynamic natural environment, and thus was a goal for the Gödel machine to overcome.

The Gödel machine has limitations of its own, however. Any formal system that encompasses arithmetic is either flawed or allows for unprovable but true statements[8] Hence even a Gödel machine with unlimited computational resources must ignore those self-improvements whose effectiveness it cannot prove.[8]

It has been argued that, regardless of advancements in self-referential universal problem solvers, minds cannot be explained as machines.[9] This has become a topic of debate in the field of Artificial General Intelligence.

Variables of interest[edit]

There are three variables that are particularly useful in the run time of the Gödel machine.[8]

  • At some time t, the variable time will have the binary equivalent of t. This is incremented steadily throughout the run time of the machine.
  • Any input[disambiguation needed] meant for the Gödel machine from the natural environment is stored in variable x. It is likely the case that x will hold different values for different values of variable time.
  • The outputs of the Gödel machine are stored in variable y, where y(t) would be the output bit-string at some time t.

A typical utility function follows the pattern u(s, Env) : S × E → R. This can be seen below:

Utility Function

Instructions used by proof techniques[edit]

The nature of the six proof-modifying instructions below makes it impossible to insert an incorrect theorem into proof, thus trivializing proof verification.[8]

get-axiom(n)[edit]

Appends the n-th axiom as a theorem to the current theorem sequence. Below is the initial axiom scheme:

  • Hardware Axioms formally specify how components of the machine could change from one cycle to the next.
  • Reward Axioms define the computational cost of hardware instruction and the physical cost of output actions. Related Axioms also define the lifetime of the Gödel machine as scalar quantities representing all rewards/costs.
  • Environment Axioms restrict the way new inputs x are produced from the environment, based on previous sequences of inputs y.
  • Uncertainty Axioms/String Manipulation Axioms are standard axioms for arithmetic, calculus, probability theory, and string manipulation that allow for the construction of proofs related to future variable values within the Gödel machine.
  • Initial State Axioms contain information about how to reconstruct parts or all of the initial state.
  • Utility Axioms describe the overall goal in the form of utility function u.

apply-rule(k, m, n)[edit]

Takes in the index k of an inference rule (such as Modus tollens, Modus ponens), and attempts to apply it to the two previously proved theorems m and n. The resulting theorem is then added to the proof.

delete-theorem(m)[edit]

Deletes the theorem stored at index m in the current proof. This helps to mitigate storage constraints caused by redundant and unnecessary theorems. Deleted theorems can no longer be referenced by the above apply-rule function.

set-switchprog(m, n)[edit]

Replaces switchprog S pm:n, provided it is a non-empty substring of S p.

check()[edit]

Verifies whether the goal of the proof search has been reached. A target theorem states that given the current axiomatized utility function u (Item 1f), the utility of a switch from p to the current switchprog would be higher than the utility of continuing the execution of p (which would keep searching for alternative switchprogs).[8] This is demonstrated in the below image:

Description of the decoded check() function for the Godel Machine

state2theorem(m, n)[edit]

Takes in two arguments, m and n, and attempts to convert the contents of Sm:n into a theorem.

Example applications[edit]

Time-limited NP-hard optimization[edit]

The initial input to the Gödel machine is the representation of a connected graph with a large number of nodes linked by edges of various lengths. Within given time T it should find a cyclic path connecting all nodes. The only real-valued reward will occur at time T. It equals 1 divided by the length of the best path found so far (0 if none was found). There are no other inputs. The by-product of maximizing expected reward is to find the shortest path findable within the limited time, given the initial bias.[8]

Fast theorem proving[edit]

Prove or disprove as quickly as possible that all even integer > 2 are the sum of two primes (Goldbach’s conjecture). The reward is 1/t, where t is the time required to produce and verify the first such proof.[10]

Maximizing expected reward with bounded resources[edit]

A cognitive robot that needs at least 1 liter of gasoline per hour interacts with a partially unknown environment, trying to find hidden, limited gasoline depots to occasionally refuel its tank. It is rewarded in proportion to its lifetime, and dies after at most 100 years or as soon as its tank is empty or it falls off a cliff, and so on. The probabilistic environmental reactions are initially unknown but assumed to be sampled from the axiomatized Speed Prior, according to which hard-to-compute environmental reactions are unlikely. This permits a computable strategy for making near-optimal predictions. One by-product of maximizing expected reward is to maximize expected lifetime.[8]

See also[edit]

References[edit]

  1. ^ Mahmud, M. M. Hassan (2008). Universal Transfer Learning. ProQuest. pp. 16–18. ISBN 9780549909880. 
  2. ^ Anderson, Michael L.; Tim Oates (Spring 2007). "A review of recent research in metareasoning and metalearning". AI Magazine 28 (1): 7. 
  3. ^ "Gödel machine". 
  4. ^ Schaul, Tom; Schmidhuber, Juergen (2010). "Metalearning". Scholarpedia. p. 4650. doi:10.4249/scholarpedia.4650. Retrieved 10 November 2014. 
  5. ^ "A Family of Gödel Machine Implementations". http://link.springer.com/. Retrieved 13 November 2014. 
  6. ^ "Wiki Less Wrong". http://wiki.lesswrong.com/. Retrieved 10 November 2014. 
  7. ^ Schmidhuber, Jürgen (5 March 2009). "Ultimate Cognition à la Gödel" (PDF). Cognitive Computation. pp. 177–193. doi:10.1007/s12559-009-9014-y. Retrieved 13 November 2014. 
  8. ^ a b c d e f g Schmidhuber, J¨urgen (December 2006). Gödel Machines: Self-Referential ¨ Universal Problem Solvers Making Provably Optimal Self-Improvements (PDF). Retrieved 10 November 2014. 
  9. ^ Lucas, J. R. (25 February 2009). "Minds, Machines and Gödel". Philosophy. p. 112. doi:10.1017/S0031819100057983. Retrieved 13 November 2014. 
  10. ^ Schmidhuber, Jürgen (5 March 2009). "Ultimate Cognition à la Gödel". Cognitive Computation. pp. 177–193. doi:10.1007/s12559-009-9014-y.