On the Concentration of Expectation and Approximate Inference in Layered Networks