Relate and Predict: Structure-Aware Prediction with Jointly Optimized Neural Dependency Graph