Do inference with sparse model