Towards Compositional Understanding of the World by Agent-Based Deep Learning