Abstract Gradient Composition