Adaptive Decoding via Latent Preference Optimization