Provable Hyperparameter Tuning for Structured Pfaffian Settings