Joint Learning of Neural Networks via Iterative Reweighted Least Squares