LitCab: Lightweight Calibration of Language Models on Outputs of Varied Lengths