Teaching an Artificial Intelligence with an Artificial Intelligence: Image Completion Using Tensorflow
ISEF · 2018 Robotics and Intelligent Machines
Overview
I hypothesized that two completely uninformed artificial intelligences (AI) could learn by competing to restore obstructed images. Like two novice chess players, they might learn just from playing each other (to produce human-quality restoration). The hard part of image completion is the restored portion must “look right” within the surrounding image. A patient human could rank what “looks right” over millions of trials, but I’m lazy. To eliminate the human, a second AI scores the generated images. My AIs play a game, taking on roles of “Art Critic”, and “Forger”.[1] My critic wins by correctly discriminating real from generated images. My forger wins by fooling the critic. The players learn by themselves, starting from nothing and not even using an algorithm aware of what’s in the image. I studied the two player dynamics for both faces and handwritten digits. I wrote my own code (using Tensorflow gradient library). Facial completion required 4 and 5 layer deep convolutional neural networks trained on a GPU. Handwritten digits used a simpler, 2 layer, dense network. Both players went from random to excellent results. I found when one AI became too good, both players degraded. To prevent this, I paused learning in the better player. Surprisingly, increased obstruction allowed more creative results. Paradoxically, adding faulty neurons improved the robustness; I think it forced the neural nets to rely on more than one trick to win. Training my two-AI models required no human intervention, validating an AI can be taught by an AI. References: [1] Generative adversarial nets I Goodfellow, J Pouget-Abadie, M Mirza, B Xu… - Advances in neural information processing systems, 2014
Competition history
- ISEF 2018
Resources
Related projects
ISEF · 2020
Edge-Guided Automatic Image Completion: A Novel AI Illustrator Finishing Your Incomplete Sketches
ISEF · 2016
Using Artificial Intelligence Systems for Autonomous Visual Comprehension and Handwriting Generation
ISEF · 2019
The Next Artificial Intelligence Revolution: AI Making Decisions without Human Models or Knowledge of Rules to Create Completely Independent Solutions
ISEF · 2021
Generating Police Sketches Using a Generative Machine Learning Algorithm
Closest projects by meaning, across every fair and year in the corpus.
Source: Regeneron International Science and Engineering Fair