XSearch: Explainable Code Search via Concept-to-Code Alignment
Researchers propose XSearch, an explainable code search framework that addresses the poor explainability and generalization of existing semantic code search methods. Current approaches embed queries and code into a shared space and retrieve results by vector similarity, but often miss functional requirements and fail under distribution shift. XSearch uses concept-to-code alignment to provide intrinsic explanations for retrieved code.
Key facts
- XSearch is an explainable code search framework.
- Existing semantic code search methods suffer from poor explainability and generalization.
- Current retrievers rely on global embedding similarity, learning statistical patterns rather than understanding functional requirements.
- XSearch addresses failures under distribution shift.
- The framework uses concept-to-code alignment.
- The paper is available on arXiv with ID 2605.16046.
- The approach is intrinsically explainable.
Entities
Institutions
- arXiv