You're changing the loss function to ||x-y||^2 - I think we should preserve backwards compatibility and keep the loss function as (1/2)||x - y||^2 -- kind of natural since the derivative is then just (x-y).