Compositional ADAM: An Adaptive Compositional Solver