Better Inference with Graph Regularization