It turns out that these semirings can also compute first-and second-order partial derivatives of all the above results, with respect to a parameter vector θ ∈ R m .
we ask how they are affected when θ changes slightly from its current value.