Gradient Information for Representation and Modeling