Inference Optimzation