Skip to main content
QUICK REVIEW

[Paper Review] Self-Programming Artificial Intelligence Using Code-Generating Language Models

Alex Sheng, Padmanabhan, Shankar|arXiv (Cornell University)|Apr 30, 2022
Software Engineering ResearchComputer Science4 citations
TL;DR

This paper presents the first practical implementation of a self-programming artificial intelligence system that uses a code-generating language model to autonomously modify its own source code, including architecture, computational capacity, and learning dynamics. The system successfully improves performance over iterations and generates auxiliary sub-models for tasks like image classification, demonstrating autonomous self-improvement and free-form AutoML capabilities.

ABSTRACT

Recent progress in large-scale language models has enabled breakthroughs in previously intractable computer programming tasks. Prior work in meta-learning and neural architecture search has led to substantial successes across various task domains, spawning myriad approaches for algorithmically optimizing the design and learning dynamics of deep learning models. At the intersection of these research areas, we implement a code-generating language model with the ability to modify its own source code. Self-programming AI algorithms have been of interest since the dawn of AI itself. Although various theoretical formulations of generalized self-programming AI have been posed, no such system has been successfully implemented to date under real-world computational constraints. Applying AI-based code generation to AI itself, we develop and experimentally validate the first practical implementation of a self-programming AI system. We empirically show that a self-programming AI implemented using a code generation model can successfully modify its own source code to improve performance and program sub-models to perform auxiliary tasks. Our model can self-modify various properties including model architecture, computational capacity, and learning dynamics.

Motivation & Objective

  • To develop a functional self-programming AI system capable of rewriting its own source code under real-world computational constraints.
  • To explore the feasibility of using code-generating language models to enable autonomous self-modification of neural network design.
  • To validate that self-modification leads to measurable performance improvements in downstream tasks.
  • To demonstrate the system's ability to generate and deploy auxiliary sub-models for external machine learning tasks.
  • To establish a foundation for free-form AutoML through autonomous code generation and reprogramming.

Proposed method

  • A code-generating language model is trained to produce and modify syntactically and logically correct source code for neural networks.
  • The system performs iterative self-reprogramming by generating new code versions based on performance feedback from training on datasets like CIFAR-10, MNIST, and EMNIST.
  • Each reprogramming step involves generating multiple candidate architectures (via beam search or sampling), evaluating them, and selecting the best-performing model for the next iteration.
  • The model dynamically modifies key architectural hyperparameters such as the number of convolutional layers, hidden layer sizes, and total parameter count.
  • The system leverages its own code generation capability to create and deploy sub-models for auxiliary tasks, such as image classification.
  • Performance feedback is used to guide the next round of code generation, enabling progressive improvement through reinforcement-like feedback.

Experimental results

Research questions

  • RQ1Can a code-generating language model successfully rewrite its own source code to improve performance on machine learning tasks?
  • RQ2To what extent can self-modification enhance model architecture, computational capacity, and learning dynamics in a real-world setting?
  • RQ3Can the self-programming AI generate and effectively utilize sub-models for auxiliary tasks such as image classification?
  • RQ4How does the number of code generation candidates and search iterations affect final model performance?
  • RQ5Does autonomous self-reprogramming lead to measurable increases in model expressiveness and parameter count over time?

Key findings

  • The self-programming AI system successfully improved model performance over multiple reprogramming iterations on CIFAR-10, MNIST, and EMNIST.
  • Performance increased with the total number of code candidates explored, peaking at a certain threshold before diminishing returns.
  • The number of convolutional layers was significantly increased over time, particularly in the first four training loops, contributing to performance gains.
  • The average number of parameters in the best-performing model increased substantially over 10 epochs on CIFAR-10, indicating greater model expressiveness.
  • Hidden layer sizes also increased in some cases, but the number of hidden layers remained largely unchanged, suggesting depth may not be the primary driver of improvement.
  • The system demonstrated consistent ability to generate and reuse code for auxiliary models, confirming its utility as a free-form AutoML tool.

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.