potentialpaper

CodeRetrX: Efficient and Scalable Function Retrieval with Hierarchical Code Search

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:11 UTC · 35248a95a416 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "0lKcnnimwY"
- }
- ],
- "title": "CodeRetrX: Efficient and Scalable Function Retrieval with Hierarchical Code Search",
- "authors": [],
- "abstract": "Function-level code search, the task of locating the functions in a large codebase that implement a given behavior (e.g., password authentication), is fundamental to program comprehension and underpins vulnerability discovery, large-scale migration, and data compliance.\nEmerging LLM-based tools (e.g., AI coding assistants) explore repositories iteratively, spending tokens at every step to decide what to read next, yet still miss most of the relevant functions.\nWe present CodeRetrX, a framework for near-exhaustive, low-cost function retrieval at scale.\nIt is built on hierarchical code search: fragment-level embeddings first locate query-relevant fragments inside every function, an LLM-guided gate then retains only the functions that contain such fragments, and full LLM evaluation is applied to those candidates alone.\nThis design bounds token usage while retaining fragment-level semantics, enabling precise retrieval across large codebases without exhaustive traversal.\nOn CodeRetrBench, our new benchmark of 18 multi-language repositories, CodeRetrX attains 88.16% recall, the highest among the compared methods, using only 26.17% of the tokens of exhaustive LLM traversal.\nAgainst embedding-then-LLM baselines, it raises recall from 61.43% to 88.16% (1.44x) at 78.83% of their cost.\nIts recall is more than 25x that of industrial coding assistants (Cursor, Claude Code) and more than 6x that of LocAgent, a state-of-the-art localization agent.\nDeployed as the retrieval stage of our vulnerability-discovery agent, CodeRetrX has contributed to 23 security advisories (21 CVEs, 20 of High or Critical severity) and two paid bug bounties in Web3 infrastructure, one rated High.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "bc25432c-4ad8-4436-aad0-ccb971d086bd"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "CodeRetrX: Efficient and Scalable Function Retrieval with Hierarchical Code Search",
+ "authors": [],
+ "abstract": "Function-level code search, the task of locating the functions in a large codebase that implement a given behavior (e.g., password authentication), is fundamental to program comprehension and underpins vulnerability discovery, large-scale migration, and data compliance.\nEmerging LLM-based tools (e.g., AI coding assistants) explore repositories iteratively, spending tokens at every step to decide what to read next, yet still miss most of the relevant functions.\nWe present CodeRetrX, a framework for near-exhaustive, low-cost function retrieval at scale.\nIt is built on hierarchical code search: fragment-level embeddings first locate query-relevant fragments inside every function, an LLM-guided gate then retains only the functions that contain such fragments, and full LLM evaluation is applied to those candidates alone.\nThis design bounds token usage while retaining fragment-level semantics, enabling precise retrieval across large codebases without exhaustive traversal.\nOn CodeRetrBench, our new benchmark of 18 multi-language repositories, CodeRetrX attains 88.16% recall, the highest among the compared methods, using only 26.17% of the tokens of exhaustive LLM traversal.\nAgainst embedding-then-LLM baselines, it raises recall from 61.43% to 88.16% (1.44x) at 78.83% of their cost.\nIts recall is more than 25x that of industrial coding assistants (Cursor, Claude Code) and more than 6x that of LocAgent, a state-of-the-art localization agent.\nDeployed as the retrieval stage of our vulnerability-discovery agent, CodeRetrX has contributed to 23 security advisories (21 CVEs, 20 of High or Critical severity) and two paid bug bounties in Web3 infrastructure, one rated High.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}