Compute g as with hierarchical softmax