Of various efforts in guided generation [1]}, [2]}, [3]}, [4]}, lexically-constrained decoding [5]} is a modification of beam search originating in neural machine translation which allows the user to specify tokens that must (or must not) appear in the decoder's output.
