SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2511.14096 · NeurIPS · 2025

NeuroPath: Neurobiology-Inspired Path Tracking and Reflection for Semantically Coherent Retrieval

Shuang Liang, Jiasheng Zhang, Qizhi Chen, Rongzheng Wang, Junchen Li, Yihong Huang

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 10 failures of our instrument; 3 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2511.14096.json · badge: /api/ran/2511.14096.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
KennyCaty/NeuroPath canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
extract_json_dict Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/neuropath.py
code served (permissive licence) · get_code("ed8aa81ae1c961b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import re

def extract_json_dict(text):
    pattern = '\\{(?:[^{}]|(?:\\{(?:[^{}]|(?:\\{[^{}]*\\})*)*\\})*)*\\}'
    match = re.search(pattern, text)
    if match:
        json_string = match.group()
        try:
            json_dict = json.loads(json_string)
            return json_dict
        except json.JSONDecodeError:
            return {}
    else:
        return {}

# The function takes a single parameter: text (a string)
# It searches for JSON dict patterns in the text using regex
# and attempts to parse the first match as JSON

ARGS = {
    "text": 'Here is some text with a JSON dict: {"key": "value", "number": 42} and more text'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_file_name Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/processing.py
code served (permissive licence) · get_code("fb8ca1a44bc50ca2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

ARGS = {
    "path": "data/models/config.jsonl"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mean_pooling Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/processing.py
pointer only (licence: MIT); the stored copy get_code serves, from chenyiqun/MMOA-RAG, is pointer only (licence: NONE) · get_code("fe0e2df4d9cb5edd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from chenyiqun/MMOA-RAG, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

merge_elements_with_same_first_line Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/rag_neuropath.py
code served (permissive licence) · get_code("fd9a32955a7d7c97")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function:
# - elements: iterable of strings (each string has newlines)
# - prefix: string with default value 'Wikipedia Title: '
# The function splits each element by newlines, uses the first line as a key,
# and merges elements with the same first line.

# Create test elements with some having the same first line
elements = [
    "Title A\nThis is content for A\nMore content",
    "Title B\nThis is content for B",
    "Title A\nAdditional content for A\nEven more",
    "Title C\nContent for C"
]

prefix = 'Wikipedia Title: '

ARGS = {
    'elements': elements,
    'prefix': prefix
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_prompt Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/rag_neuropath.py
code served (permissive licence) · get_code("d581f1e22c7c99ef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8')

# Write sample data in the expected format
sample_content = """# METADATA: {"source": "test", "id": 1}
This is a sample document with some content about a topic.

Q: What is the main topic?
A: The main topic is about a sample document.

# METADATA: {"source": "test2", "id": 2}
Another document with different information.

Q: What is in this document?
A: This document contains different information than the first one."""

temp_file.write(sample_content)
temp_file.close()

ARGS = {
    'file_path': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_prompt Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/baselines/ircot_246.py
code served (permissive licence) · get_code("eaf91b9196566123")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
import json

# Create a temporary file with valid prompt data in the expected format
def create_temp_prompt_file():
    content = """# METADATA: {"source": "test_source", "id": 1}
This is a test document with context information.

Q: What is the test question?
A: The reasoning process goes here. So the answer is: test answer

# METADATA: {"source": "test_source2", "id": 2}
Another document for testing purposes.

Q: What is another question?
A: More reasoning happens here. So the answer is: another answer
"""
    
    temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8')
    temp_file.write(content)
    temp_file.close()
    return temp_file.name

# Create a temporary file for the has_context=False case
def create_temp_prompt_file_no_context():
    content = """# METADATA: {"source": "test_source", "id": 1}
Q: What is the test question?
A: The reasoning process goes here. So the answer is: test answer

# METADATA: {"source": "test_source2", "id": 2}
Q: What is another question?
A: More reasoning happens here. So the answer is: another answer
"""
    
    temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8')
    temp_file.write(content)
    temp_file.close()
    return temp_file.name

# Setup
temp_file_with_context = create_temp_prompt_file()
temp_file_no_context = create_temp_prompt_file_no_context()

ARGS = {
    "file_path": temp_file_with_context,
    "has_context": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
retrieve_step Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/baselines/ircot_246.py
code served (permissive licence) · get_code("899c1a2c5d08fe99")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from abc import abstractmethod

class DocumentRetriever:
    @abstractmethod
    def rank_docs(self, query: str, top_k: int):
        """
        Rank the documents in the corpus based on the given query
        :param query:
        :param top_k:
        :return: ranks and scores of the retrieved documents
        """
        pass

class SimpleRetriever(DocumentRetriever):
    def rank_docs(self, query: str, top_k: int):
        doc_ids = [0, 1, 2][:top_k]
        scores = [0.9, 0.7, 0.5][:top_k]
        return doc_ids, scores

query = "What is the capital of France?"
top_k = 2
retriever = SimpleRetriever()
dataset = "hotpotqa"

corpus_hotpotqa = {
    "Paris": ["Paris is the capital of France.", "It is known for the Eiffel Tower."],
    "London": ["London is the capital of England.", "It is known for Big Ben."],
    "Berlin": ["Berlin is the capital of Germany.", "It is known for the Brandenburg Gate."]
}

corpus_musique = {
    0: {"title": "Paris", "text": "Paris is the capital of France."},
    1: {"title": "London", "text": "London is the capital of England."},
    2: {"title": "Berlin", "text": "Berlin is the capital of Germany."}
}

corpus_multihoprag = {
    0: {"text": "Paris is the capital of France."},
    1: {"text": "London is the capital of England."},
    2: {"text": "Berlin is the capital of Germany."}
}

ARGS = {
    "query": query,
    "corpus": corpus_hotpotqa,
    "top_k": top_k,
    "retriever": retriever,
    "dataset": dataset
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
search Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/elastic_search_tool.py
code served (permissive licence) · get_code("9c0a071dfc20995e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from unittest.mock import Mock

# Create a mock Elasticsearch client
es = Mock()

# Mock the search method to return valid Elasticsearch-like results
es.search = Mock(return_value={
    'hits': {
        'hits': [
            {'_id': 'doc1'},
            {'_id': 'doc2'},
            {'_id': 'doc3'}
        ]
    }
})

index_name = "test_index"
query = "test query"
top_k = 10

ARGS = {
    'es': es,
    'index_name': index_name,
    'query': query,
    'top_k': top_k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
search_with_id_and_content Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/elastic_search_tool.py
code served (permissive licence) · get_code("736e514581ef54cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from unittest.mock import Mock, MagicMock

# Create a mock Elasticsearch client
es = Mock()

# Mock the search method to return a realistic Elasticsearch response
es.search = MagicMock(return_value={
    'hits': {
        'hits': [
            {
                '_id': 'doc_1',
                '_source': {'content': 'first document with matching content'}
            },
            {
                '_id': 'doc_2',
                '_source': {'content': 'second document also matching'}
            }
        ]
    }
})

index_name = 'test_index'
query = 'matching content'
top_k = 2

ARGS = {
    'es': es,
    'index_name': index_name,
    'query': query,
    'top_k': top_k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
search_with_score Ran
ran; our contract draft was wrong, not the code
KennyCaty/NeuroPath/src/elastic_search_tool.py
code served (permissive licence) · get_code("8aea60e563f93cd0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create a mock Elasticsearch client
es = Mock()

# Mock the search method to return valid results
es.search = MagicMock(return_value={
    'hits': {
        'hits': [
            {'_id': 'doc1', '_score': 0.95},
            {'_id': 'doc2', '_score': 0.87},
            {'_id': 'doc3', '_score': 0.76}
        ]
    }
})

index_name = "test_index"
query = "machine learning"
top_k = 3

ARGS = {
    'es': es,
    'index_name': index_name,
    'query': query,
    'top_k': top_k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_langchain_model Not yet run
unverified (harvested, no recorded run)
KennyCaty/NeuroPath/src/langchain_util.py
code served (permissive licence) · get_code("7077df248eb32b65")
How it ran

no invocation recorded.

mean_pooling_embedding Not yet run
unverified (harvested, no recorded run)
KennyCaty/NeuroPath/src/processing.py
code served (permissive licence) · get_code("fdb4473ae6fdb6e5")
How it ran

no invocation recorded.

ner_vtp_extraction Not yet run
unverified (harvested, no recorded run)
KennyCaty/NeuroPath/src/query_ner_vtp_parallel.py
code served (permissive licence) · get_code("d06d677988b9614d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
mean_pooling 15 other papers
11 dated earlier, 3 later, 1 same year, order not determinable
2304.11406 (2023-04)
LaMP: When Large Language Models Meet Personalization
2305.18395 (2023-05)
Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks
2308.04275 (2023-08)
In-Context Alignment: Chat with Vanilla Language Models Before Fine-Tuning
and 12 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Retrieval-augmented generation (RAG) greatly enhances large language models (LLMs) performance in knowledge-intensive tasks. However, naive RAG methods struggle with multi-hop question answering due to their limited capacity to capture complex dependencies across documents. Recent studies employ graph-based RAG to capture document connections. However, these approaches often result in a loss of semantic coherence and introduce irrelevant noise during node matching and subgraph construction. To address these limitations, we propose NeuroPath, an LLMdriven semantic path tracking RAG framework inspired by the path navigational planning of place cells in neurobiology. It consists of two steps: Dynamic Path Tracking and Post-retrieval Completion. Dynamic Path Tracking performs goaldirected semantic path tracking and pruning over the constructed knowledge graph (KG), improving noise reduction and semantic coherence. Post-retrieval Completion further reinforces these benefits by conducting second-stage retrieval using intermediate reasoning and the original query to refine the query goal and complete missing information in the reasoning path. NeuroPath surpasses current state-ofthe-art baselines on three multi-hop QA datasets, achieving average improvements of 16.3% on recall@2 and 13.5% on recall@5 over advanced graph-based RAG methods. Moreover, compared to existing iter-based RAG methods, NeuroPath achieves higher accuracy and reduces token consumption by 22.8%. Finally, we demonstrate the robustness of NeuroPath across four smaller LLMs (Llama3.1, GLM4, Mistral0.3, and Gemma3), and further validate its scalability across tasks of varying complexity. Code is available at https://github.com/KennyCaty/NeuroPath.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2511.14096")
get_code_for_paper("2511.14096")
have("2511.14096")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2511.14096.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2511.14096.svg)](https://syntology.ai/paper/2511.14096)

Connect an agent — have() is free.