BED: Bi-Encoder-Based Detectors for Out-of-Distribution Detection