Learning Functions in Large Networks requires Modularity and produces Multi-Agent Dynamics — arXiv2