GitHub research: deep learning approach to natural language semantic code search
Code search on GitHub was limited to keyword matching, requiring users to know exact syntax or anticipate keywords in surrounding comments, with no ability to search by natural language intent.
An initial attempt using the Universal Sentence Encoder produced embeddings that worked reasonably but lacked specificity to software development vocabulary and semantics.
The research system achieves a BLEU score of 13.5 on a holdout set of Python code and demonstrates semantic search returning relevant results even when no keywords are shared between the query and the code.
Frequently asked questions
What did this team achieve with this AI workflow?
The research system achieves a BLEU score of 13.5 on a holdout set of Python code and demonstrates semantic search returning relevant results even when no keywords are shared between the query and the code.
What tools did this team use?
fairseq-py, Universal Sentence Encoder, TensorFlow Hub, fast.ai, kubeflow.
What results were reported?
BLEU score on Python holdout set: 13.5 (source-reported, not independently verified).
What failed first in this deployment?
An initial attempt using the Universal Sentence Encoder produced embeddings that worked reasonably but lacked specificity to software development vocabulary and semantics.
How is this back office ops AI workflow structured?
Code summarization model training → Encoder extraction for code representation → Text phrase representation learning → Code-to-text vector space mapping → Semantic nearest-neighbor search.