Limitations and future work
What we would not claim, and what comes next
Limitations
- No reliable gain over the original query with UniXcoder. One seed was significantly better on CoSQA, the other was not. On CodeSearchNet no trained model beat it.
- Few seeds. Two per single retriever model, one for the combined model.
- Many comparisons, no correction. Intervals are unadjusted, so a few significant results could be chance.
- The test set was seen more than once. Prompts v2 and v3 were written after reading v1 rewrites on test questions. Prompt choice and checkpoint choice used dev only.
- One correct function per query. Other functions may also answer a question, especially on the noisy CoSQA labels.
- One model size trained. Only the 3B. Learning from a stronger model's rewrites (imitation) was not tested, so we make no claim about it.
Future work
- Rewriting that adapts to the retriever, so one model knows whether it is writing for keywords or for meaning.
- More retrievers and languages, since a model trained for one retriever did not transfer to the other.
- More seeds and the 1.5B model, which was the strongest prompted model in most settings.
- Compare with agents that search code in several steps, to see what a single rewrite gives up.
- Rewards without gold labels, such as click logs, so training works where no correct answer is known.