Skip to main content
QUICK REVIEW

[Paper Review] Gigamachine: incremental machine learning on desktop computers

Eray Özkural|arXiv (Cornell University)|Sep 8, 2017
Numerical Methods and AlgorithmsComputer Science2 citations
TL;DR

This paper presents Gigamachine, a prototype for incremental machine learning on desktop computers using R5RS Scheme as a universal reference machine and a stochastic context-free grammar (SCFG) to guide Levin Search. It introduces four update algorithms—two implemented—to improve learning efficiency by adjusting production probabilities, reusing solutions, and discovering programming idioms, with experiments showing reduced search time and error rates on toy problems.

ABSTRACT

We present a concrete design for Solomonoff's incremental machine learning system suitable for desktop computers. We use R5RS Scheme and its standard library with a few omissions as the reference machine. We introduce a Levin Search variant based on a stochastic Context Free Grammar together with new update algorithms that use the same grammar as a guiding probability distribution for incremental machine learning. The updates include adjusting production probabilities, re-using previous solutions, learning programming idioms and discovery of frequent subprograms. The issues of extending the a priori probability distribution and bootstrapping are discussed. We have implemented a good portion of the proposed algorithms. Experiments with toy problems show that the update algorithms work as expected.

Motivation & Objective

  • To design a practical, desktop-compatible system for Solomonoff's incremental machine learning framework.
  • To address the challenge of efficient program generation and learning in a general-purpose programming environment.
  • To develop update algorithms that enable learning from training sequences by reusing solutions and discovering common subprograms.
  • To evaluate the feasibility of implementing AGI-like learning on commodity hardware using a high-level language like Scheme.

Proposed method

  • Uses R5RS Scheme as the reference universal machine, with minimal syntax omissions to simplify grammar-based program generation.
  • Employs a stochastic context-free grammar (SCFG) to guide Levin Search, assigning prior probabilities to program candidates.
  • Applies leftmost derivation with a probability horizon to limit depth-first search and improve efficiency.
  • Introduces four update algorithms: production probability adjustment, solution re-use, idiom discovery, and frequent subprogram detection.
  • Uses best-first and memory-aware hybrid search strategies to optimize search performance.
  • Implements a modified LSEARCH algorithm that incorporates SCFG-guided search and incremental updates after each problem solution.

Experimental results

Research questions

  • RQ1Can a stochastic CFG effectively guide incremental program search in a general-purpose language like Scheme?
  • RQ2How can production probabilities be updated to improve learning efficiency over time?
  • RQ3To what extent can previously found solutions be reused to accelerate learning of new problems?
  • RQ4Can the system discover common programming idioms and subroutines without explicit specification?
  • RQ5How does the system's performance scale across increasingly complex training sequences?

Key findings

  • The implemented update algorithms successfully reduced search time and error rates across incremental problems, with error rates dropping from 97% to 88% over iterations.
  • The solution for the square function was found in just 210 trials after reusing the previously learned solution, showing a ~100x speedup compared to initial search.
  • The nand function required 8,413,333 trials, but the subsequent nor function required only 4,275,820 trials, indicating a ~30x speedup due to learning.
  • The factorial function, despite requiring over a day to reach the fifth example, produced a partial solution, demonstrating the system's ability to learn complex recursive patterns.
  • The system showed improved performance on later problems, indicating effective learning and adaptation through grammar updates.
  • Reusing prior solutions significantly accelerated learning, with the pow4 function leveraging the sqr solution and solving faster than sqr itself.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.