Why the combined reward
The BM25 model learned to write short keywords that look like function names. They suit keyword matching, but a model that reads meaning loses context, and the BM25 model falls far below the original query under UniXcoder.
Averaging the two rewards gave one model that performs about as well as each specialist on that specialist's own retriever (no significant MRR@10 difference) and avoids the big drop.
A simple baseline we kept honest about
Joining the original query with the untrained rewrite needs no training at all. On CoSQA with BM25 it ties with our trained model. The trained model is clearly better on CodeSearchNet with BM25 and on CoSQA with UniXcoder. Find it as “Original + rewrite joined” in the explorer.