An attention mechanism that conditions generation on a reference input by processing reference tokens alongside generated tokens.