Machine Learning for Large-Scale Optimization in 6G Wireless Networks