Glorot & Bengio remark that the log-likelihood (cross-entropy) cost trains classifiers much better than the quadratic cost. Here is one sigmoid output unit, p = σ(z), with a target label y. Drag its logit z and compare the two losses and, more importantly, their gradients.
A loss says what kind of noise you believe the target has. Squared error is what you get from Gaussian noise of fixed variance around the network's output ŷ:
The KL divergence between two Gaussians with the same variance is the same squared distance, so minimizing squared error is minimizing a KL between Gaussians:
Cross-entropy is what you get from a Bernoulli (or, with softmax, categorical) model of a class label, and for a one-hot target it is exactly a KL, since the target's own entropy is 0:
So neither loss is better in general: each is maximum likelihood under its own assumption. Squared error assumes a real-valued target with Gaussian noise; cross-entropy assumes a class label. Using squared error on 0/1 labels fits the wrong noise model. (Caveat: the Gaussian equivalence needs a fixed σ. If the variance is also learned, the log σ term matters and the loss is no longer plain squared error.)
The difference that matters for training is the gradient at the logit. Both start from the sigmoid's slope,
With squared error, the chain rule keeps that slope as a factor:
With cross-entropy, the derivative of the log divides it right back out:
So when the output is confidently wrong (say y = 1 but z is very negative, so p ≈ 0), squared error's gradient is (p − 1)·p(1 − p) ≈ −p ≈ 0: the unit is saturated, and the loss is at its largest exactly where the push to fix it vanishes. Cross-entropy's gradient is p − 1 ≈ −1, the strongest push it ever gives. This is the same saturation as in the hidden layers, now at the output, and it is why Glorot & Bengio found that the quadratic cost's error surface has much flatter plateaus. Softmax with cross-entropy has the same cancellation: the gradient at the logits is exactly softmax(z) − y.