SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2603.20017 · 2026

RouterKGQA: Specialized-General Model Routing for Constraint-Aware Knowledge Graph Question Answering

Bo Yuan, Xuebo Liu, Min Zhang, Hexuan Deng

arXiv · PDF · Open in the Atlas

Code that ran

14 of 20 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 9 failures of our instrument; 6 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2603.20017.json · badge: /api/ran/2603.20017.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
Oldcircle/RouterKGQA canonical (classifier label)
classifier basis: census
14 ran · 6 no recorded run
FunctionStatusWhere it lives
to_list Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/config.py
pointer only (licence: MIT); the stored copy get_code serves, from AI-secure/InfoBERT, is pointer only (licence: NONE) · get_code("9df40357afea56cc")
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 AI-secure/InfoBERT, 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.

date_post_process Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/evaluate.py
code served (permissive licence) · get_code("12463bd4ac760fc0")
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 re

def date_post_process(date_string):
    """
    When querying KB, the KB tends to auto-complete a date.
    e.g.
        - 1996 --> 1996-01-01
        - 1906-04-18 --> 1906-04-18 05:12:00
    """
    pattern_year_month_date = '^\\d{4}-\\d{2}-\\d{2}$'
    pattern_year_month_date_moment = '^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$'
    if re.match(pattern_year_month_date_moment, date_string):
        if date_string.endswith('05:12:00'):
            date_string = date_string.replace('05:12:00', '').strip()
    elif re.match(pattern_year_month_date, date_string):
        if date_string.endswith('-01-01'):
            date_string = date_string.replace('-01-01', '').strip()
    return date_string


ARGS = {
    "date_string": "1996-01-01"
}
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 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
get_symbol_type Ran
ran, honoured the contract we drafted
Oldcircle/RouterKGQA/executor/logic_form_util.py
code served (permissive licence) · get_code("59e485418bc26b24")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.

# Global sets that the function uses
relations = {'hasAuthor', 'hasDate', 'locatedIn'}
types = {'Person', 'Document', 'Location'}

# The function takes a single parameter: symbol (a string)
def get_symbol_type(symbol: str) -> int:
    if symbol.__contains__('^^'):
        return 2
    elif symbol in types:
        return 3
    elif symbol in relations:
        return 4
    elif symbol:
        return 1

# Define test arguments
ARGS = {
    'symbol': 'testSymbol'
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
get_value_for_year Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/entity_retrieval/aqqu_entity_linker.py
code served (permissive licence) · get_code("572a76bdb7ce1656")
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

def get_value_for_year(year):
    """Return the correct value representation for a year."""
    return '%s' % year

# The function takes a single parameter 'year' and converts it to a string
# year should be a numeric value (int or similar)
ARGS = {
    'year': 2023
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
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
httpPort Ran
ran, honoured the contract we drafted
Oldcircle/RouterKGQA/Freebase-Setup/virtuoso.py
code served (permissive licence) · get_code("2bc45468ebfe2d61")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch.nn as nn

torch.manual_seed(0)

# The function httpPort simply takes a port parameter and returns it
# No complex setup needed - port should be an integer

ARGS = {
    "port": 8080
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
is_number Ran
ran, violated the contract we drafted
Oldcircle/RouterKGQA/evaluate.py
pointer only (licence: MIT); the stored copy get_code serves, from Applied-Machine-Learning-Lab/AMAR, is pointer only (licence: NONE) · get_code("b2feca00ae40a160")
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 Applied-Machine-Learning-Lab/AMAR, 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.

isqlPort Ran
ran, honoured the contract we drafted
Oldcircle/RouterKGQA/Freebase-Setup/virtuoso.py
code served (permissive licence) · get_code("f42bcb1c173e1a09")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "port": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
lisp_to_nested_expression Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/executor/logic_form_util.py
code served (permissive licence) · get_code("2d8aeba7bf38ecda")
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. 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

def lisp_to_nested_expression(lisp_string):
    """
    Takes a logical form as a lisp string and returns a nested list representation of the lisp.
    For example, "(count (division first))" would get mapped to ['count', ['division', 'first']].
    """
    stack = []
    current_expression = []
    tokens = lisp_string.split()
    for token in tokens:
        while token[0] == '(':
            nested_expression = []
            current_expression.append(nested_expression)
            stack.append(current_expression)
            current_expression = nested_expression
            token = token[1:]
        current_expression.append(token.replace(')', ''))
        while token[-1] == ')':
            current_expression = stack.pop()
            token = token[:-1]
    return current_expression[0]


ARGS = {
    "lisp_string": "(count (division first))"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is 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
load_bin Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/components/utils.py
code served (permissive licence) · get_code("0572ce867129132b")
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 pickle
import tempfile
import os

# Create a temporary file with pickled data
temp_dir = tempfile.gettempdir()
temp_fname = os.path.join(temp_dir, 'test_pickle.pkl')

# Create some test data to pickle
test_data = {
    'key1': 'value1',
    'key2': [1, 2, 3],
    'key3': {'nested': 'dict'}
}

# Write the test data to a pickle file
with open(temp_fname, 'wb') as f:
    pickle.dump(test_data, f)

# Define ARGS with the fname parameter pointing to the pickled file
ARGS = {
    'fname': temp_fname
}
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
parse_all_filters Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/data_process/sparql_to_crp.py
code served (permissive licence) · get_code("b800e090d1f27021")
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 re
from collections import defaultdict, deque

# Construct valid arguments for parse_all_filters

# Example SPARQL query with FILTER clauses
sparql_query = """
PREFIX ns: <http://example.org/>
SELECT ?movie ?actor
WHERE {
  ?movie ns:hasActor ?actor .
  ?actor ns:name ?name .
  FILTER (str(?name) = "John Doe")
  ?movie ns:releaseYear ?year .
  FILTER (?year != ns:2020)
}
"""

# List of triples extracted from WHERE clause
# Format: (subject, predicate, object)
triples = [
    ("?movie", "ns:hasActor", "?actor"),
    ("?actor", "ns:name", "?name"),
    ("?movie", "ns:releaseYear", "?year"),
]

# Set of main path variables (variables on the primary query path)
main_path_vars = {"?movie", "?actor"}

ARGS = {
    "sparql_query": sparql_query,
    "triples": triples,
    "main_path_vars": main_path_vars,
}
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
remove_abbreviations_from_entity_name Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/entity_retrieval/aqqu_util.py
code served (permissive licence) · get_code("2b8c76f1ff45f86e")
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

# Analyze the function:
# - entity_name: a string that gets lowercased and split by spaces
# - abbreviations: a collection that supports 'in' operator for membership testing
# The function filters out tokens that are in the abbreviations collection

ARGS = {
    "entity_name": "IBM Research Center USA",
    "abbreviations": {"ibm", "usa", "llc", "inc"}
}
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
run Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/Freebase-Setup/virtuoso.py
code served (permissive licence) · get_code("acd5c28102430f1b")
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 bytes. 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 subprocess

def run(command):
    print(f'RUNNING: {command}')
    res = subprocess.run(command, shell=True, stdout=subprocess.PIPE)
    return res.stdout

ARGS = {
    'command': 'echo "Hello World"'
}
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 bytes — a bytes output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a bytes 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
same_logical_form Ran
ran, violated the contract we drafted
Oldcircle/RouterKGQA/executor/logic_form_util.py
code served (permissive licence) · get_code("87e2744d57d71f30")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 networkx as nx
from collections import defaultdict
from typing import List, Union

# Set up global state that the function depends on
REVERSE = True
reverse_properties = {
    'birthPlace': 'bornIn',
    'spouse': 'marriedTo'
}
relation_dr = {
    'birthPlace': ('Person', 'Place'),
    'spouse': ('Person', 'Person'),
    'worksFor': ('Person', 'Organization')
}
relations = {'birthPlace', 'spouse', 'worksFor'}
upper_types = defaultdict(lambda: set())
upper_types['Person'].add('Agent')
upper_types['Organization'].add('Agent')
types = {'Person', 'Place', 'Organization', 'Agent'}
function_map = {'le': '<=', 'ge': '>=', 'lt': '<', 'gt': '>'}

# Helper function to create nested expressions
def create_simple_expression():
    """(count (division first))"""
    return ['count', ['division', 'first']]

def create_join_expression():
    """(JOIN entity relation)"""
    return ['JOIN', 'entity1', 'entity2']

def create_comparison_expression():
    """(le value threshold)"""
    return ['le', '5', '10^^http://example.com/int']

# Build valid arguments for same_logical_form
ARGS = {
    'form1': "(count (division first))",
    'form2': "(count (division second))"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
networkx — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
type_checker Ran
ran; our contract draft was wrong, not the code
Oldcircle/RouterKGQA/evaluate.py
pointer only (licence: MIT); the stored copy get_code serves, from Applied-Machine-Learning-Lab/AMAR, is pointer only (licence: NONE) · get_code("038bd5a70277091b")
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 Applied-Machine-Learning-Lab/AMAR, 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.

dump_json Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/components/utils.py
code served (permissive licence) · get_code("c6c40b1c5bfcfce5")
How it ran

no invocation recorded.

get_model_class Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/config.py
code served (permissive licence) · get_code("e267b92fe2e9c426")
How it ran

no invocation recorded.

load_json Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/components/utils.py
code served (permissive licence) · get_code("7277c744809fb106")
How it ran

no invocation recorded.

load_untrained_model Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/config.py
code served (permissive licence) · get_code("e8cde2d16a8c1b7c")
How it ran

no invocation recorded.

parse_sparql Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/data_process/sparql_to_crp.py
code served (permissive licence) · get_code("f6084e968f694bac")
How it ran

no invocation recorded.

read_abbreviations Not yet run
unverified (harvested, no recorded run)
Oldcircle/RouterKGQA/entity_retrieval/aqqu_util.py
code served (permissive licence) · get_code("3e0e55a1459eb4f0")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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
to_list 41 other papers
41 dated earlier
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
1910.06188 (2019-10)
Q8BERT: Quantized 8Bit BERT
1911.02984 (2019-11)
The TechQA Dataset
and 38 more not named here
date_post_process 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2412.18537 (2024-12)
Harnessing Large Language Models for Knowledge Graph Question Answering via Adaptive Multi-Aspect Retrieval-Augmentation
httpPort 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2024.findings-naacl.57 (2024 (year only))
BRING YOUR OWN KG: Self-Supervised Program Synthesis for Zero-Shot KGQA
is_number 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2412.18537 (2024-12)
Harnessing Large Language Models for Knowledge Graph Question Answering via Adaptive Multi-Aspect Retrieval-Augmentation
isqlPort 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2024.findings-naacl.57 (2024 (year only))
BRING YOUR OWN KG: Self-Supervised Program Synthesis for Zero-Shot KGQA
run 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2024.findings-naacl.57 (2024 (year only))
BRING YOUR OWN KG: Self-Supervised Program Synthesis for Zero-Shot KGQA
type_checker 2 other papers
2 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
2412.18537 (2024-12)
Harnessing Large Language Models for Knowledge Graph Question Answering via Adaptive Multi-Aspect Retrieval-Augmentation
get_model_class 1 other paper
1 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
get_value_for_year 1 other paper
1 dated earlier
2025.findings-emnlp.582 (2025 (year only))
KaeDe: Progressive Generation of Logical Forms via Knowledge-Aware Question Decomposition for Improved KBQA
load_untrained_model 1 other paper
1 dated earlier
2310.08975 (2023-10)
ChatKBQA: A Generate-then-Retrieve Framework for Knowledge Base Question Answering with Fine-tuned Large Language Models
read_abbreviations 1 other paper
1 dated earlier
2025.findings-emnlp.582 (2025 (year only))
KaeDe: Progressive Generation of Logical Forms via Knowledge-Aware Question Decomposition for Improved KBQA
remove_abbreviations_from_entity_name 1 other paper
1 dated earlier
2025.findings-emnlp.582 (2025 (year only))
KaeDe: Progressive Generation of Logical Forms via Knowledge-Aware Question Decomposition for Improved KBQA

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

Knowledge graph question answering (KGQA) is a promising approach for mitigating LLM hallucination by grounding reasoning in structured and verifiable knowledge graphs. Existing approaches fall into two paradigms: retrieval-based methods utilize small specialized models, which are efficient but often produce unreachable paths and miss implicit constraints, while agent-based methods utilize large general models, which achieve stronger structural grounding at substantially higher cost. We propose RouterKGQA, a framework for specialized-general model collaboration, in which a specialized model generates reasoning paths and a general model performs KG-guided repair only when needed, improving performance at minimal cost. We further equip the specialized with constraint-aware answer filtering, which reduces redundant answers. In addition, we design a more efficient general agent workflow, further lowering inference cost. Experimental results show that RouterKGQA outperforms the previous best by 3.57 points in F1 and 0.49 points in Hits@1 on average across benchmarks, while requiring only 1.15 average LLM calls per question. Codes and models are available at https: //github.com/Oldcircle/RouterKGQA.

For agents

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

get_harvested_code_for_paper("2603.20017")
get_code_for_paper("2603.20017")
have("2603.20017")

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

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

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

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

Connect an agent — have() is free.