A Value Function Is All You Need To Optimize Neural Networks