SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.02292 · September 2026

SCX Router: Streaming Zero-Shot Model Selection with a Decoder-KV Classifier and a Real-World Task Ontology

Ihor Stepanov, Oleksandr Lukashov, Mykhailo Shtopko, Dmytro Vodianytskyi, Aleksandr Smechov

arXiv · PDF · Open in the Atlas

Code that ran

12 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, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 1 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/2609.02292.json · badge: /api/ran/2609.02292.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
Knowledgator/GLiClass canonical (classifier label)
classifier basis: census
12 ran · 1 no recorded run
FunctionStatusWhere it lives
attn_padded Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Knowledgator/GLiClass/gliclass/ops.py
code served (permissive licence) · get_code("6b8eb1d5358cd4f1")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 4) 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.functional as F

torch.manual_seed(0)

# Define tensor dimensions
batch_size = 2
nq = 3  # number of query tokens
nk = 5  # number of key/value tokens
nheads = 2
head_dim = 4

# Create query, key, value tensors
# q: [batch, nq, nheads, head_dim]
q = torch.randn(batch_size, nq, nheads, head_dim)

# k: [batch, nk, nheads, head_dim]
k = torch.randn(batch_size, nk, nheads, head_dim)

# v: [batch, nk, nheads, head_dim]
v = torch.randn(batch_size, nk, nheads, head_dim)

# key_padding_mask: [batch, nk] bool, True = real token
# Create a mask where some positions are padded (False) and some are real (True)
key_padding_mask = torch.tensor([
    [True, True, True, False, False],
    [True, True, True, True, False]
], dtype=torch.bool)

# dropout_p as a float
dropout_p = 0.1

ARGS = {
    "q": q,
    "k": k,
    "v": v,
    "key_padding_mask": key_padding_mask,
    "dropout_p": dropout_p
}
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 Tensor, ndim 4, dtype family float, shape (2, 3, 2, 4) — shape (2, 3, 2, 4) 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
build_hierarchical_output Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/pipeline.py
code served (permissive licence) · get_code("68d023f71664ee04")
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 torch
import numpy as np
from typing import Any, Dict, List

torch.manual_seed(0)

# Test case 1: Hierarchical dict structure with nested labels
predictions_1 = [
    {'label': 'sentiment.positive', 'score': 0.85},
    {'label': 'sentiment.negative', 'score': 0.10},
    {'label': 'topic.product', 'score': 0.72},
    {'label': 'topic.service', 'score': 0.15},
]

original_labels_1 = {
    "sentiment": ["positive", "negative", "neutral"],
    "topic": ["product", "service", "shipping"]
}

all_scores_1 = {
    'sentiment.neutral': 0.05,
    'topic.shipping': 0.13
}

# Test case 2: Simple flat list structure
predictions_2 = [
    {'label': 'positive', 'score': 0.9},
    {'label': 'negative', 'score': 0.1},
]

original_labels_2 = ["positive", "negative", "neutral"]

# Test case 3: Deeper hierarchical structure
predictions_3 = [
    {'label': 'category.type.subtype', 'score': 0.88},
]

original_labels_3 = {
    "category": {
        "type": ["subtype", "other"]
    }
}

ARGS = {
    "predictions": predictions_1,
    "original_labels": original_labels_1,
    "separator": ".",
    "all_scores": all_scores_1,
}
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 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
default_f1_reward Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/utils.py
code served (permissive licence) · get_code("a074758b907709bd")
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 Tensor, ndim 2, dtype family float, shape (2, 1) 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

torch.manual_seed(0)

# Create small tensors with distinct dimensions for clarity
N = 2  # batch size
T = 4  # sequence length

# probs: (N, T) tensor of probabilities
probs = torch.rand(N, T)

# actions: (N, T) tensor of predicted labels in {0, 1}
actions = torch.randint(0, 2, (N, T), dtype=torch.float)

# original_targets: (N, T) tensor of ground-truth labels in {0, 1}
original_targets = torch.randint(0, 2, (N, T), dtype=torch.float)

# valid_mask: (N, T) tensor indicating which positions are valid (1) vs. invalid (0)
valid_mask = torch.ones(N, T, dtype=torch.float)
valid_mask[0, 2] = 0  # mark one position as invalid

ARGS = {
    "probs": probs,
    "actions": actions,
    "original_targets": original_targets,
    "valid_mask": valid_mask,
}
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 Tensor, ndim 2, dtype family float, shape (2, 1) — shape (2, 1) 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
flatten_hierarchical_labels Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/pipeline.py
code served (permissive licence) · get_code("9de6134d01024b05")
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
from typing import Any, Dict, List

torch.manual_seed(0)

# Test case 1: Simple flat list
labels_flat_list = ["label1", "label2", "label3"]

# Test case 2: Dictionary with list values (2-level hierarchy)
labels_dict_simple = {
    "sentiment": ["positive", "negative", "neutral"],
    "topic": ["product", "service"]
}

# Test case 3: Nested dictionary (3-level hierarchy)
labels_dict_nested = {
    "category": {
        "electronics": ["phone", "laptop"],
        "clothing": ["shirt", "pants"]
    }
}

# Test case 4: Mixed nesting with different depths
labels_dict_mixed = {
    "level1a": ["item1", "item2"],
    "level1b": {
        "level2a": ["nested1", "nested2"],
        "level2b": {
            "level3a": ["deep1", "deep2"]
        }
    }
}

# Test case 5: Single string
labels_single_string = "single_label"

# Test case 6: Custom separator
labels_with_custom_sep = {
    "group1": ["opt1", "opt2"],
    "group2": ["opt3", "opt4"]
}

ARGS = {
    "labels": labels_dict_nested,
    "prefix": "",
    "separator": "."
}
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
focal_loss_with_logits Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Knowledgator/GLiClass/gliclass/loss_functions.py
code served (permissive licence) · get_code("ffb993318b61fff8")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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.functional as F

torch.manual_seed(0)

# Create tiny tensors for inputs and targets
batch_size = 2
num_elements = 4

inputs = torch.randn(batch_size, num_elements)
targets = torch.randint(0, 2, (batch_size, num_elements)).float()

ARGS = {
    'inputs': inputs,
    'targets': targets,
    'alpha': 0.25,
    'gamma': 2.0,
    'reduction': 'none',
    'label_smoothing': 0.0,
    'ignore_index': -100
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
format_decoder_kv_context Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/data_processing.py
code served (permissive licence) · get_code("0a084addf72bfcf2")
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

torch.manual_seed(0)

ARGS = {
    'text': 'The quick brown fox jumps over the lazy dog',
    'prompt': 'Answer the following question: ',
    'examples': 'Example 1: What is 2+2? Answer: 4\n'
}
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
format_decoder_kv_labels Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/data_processing.py
code served (permissive licence) · get_code("d13f646e8cf1db42")
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

ARGS = {
    'labels': ['cat', 'dog', 'bird'],
    'label_token': '<<LABEL>>',
    'sep_token': '<<SEP>>'
}
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
format_decoder_kv_sequence Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/data_processing.py
code served (permissive licence) · get_code("6e255e750fc458c0")
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

# Call format_decoder_kv_sequence with these arguments
ARGS = {
    'text': 'This is the main text to be formatted.',
    'labels': ['label1', 'label2', 'label3'],
    'prompt': 'This is the prompt: ',
    'examples': 'Example 1, Example 2. ',
    'label_token': '<<LABEL>>',
    'sep_token': '<<SEP>>'
}
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
format_examples_prompt Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/pipeline.py
code served (permissive licence) · get_code("1ed3d861016fb017")
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
from typing import Any, Dict, List

torch.manual_seed(0)

# Construct valid examples list
examples = [
    {
        'text': 'This is a great product.',
        'labels': ['positive', 'product']
    },
    {
        'text': 'I did not like this at all.',
        'true_labels': ['negative', 'opinion']
    },
    {
        'text': 'The service was excellent.',
        'labels': ['positive', 'service']
    }
]

ARGS = {
    'examples': examples,
    'example_token': '<<EXAMPLE>>',
    'sep_token': '<<SEP>>'
}
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
is_module_available Ran
ran, violated the contract we drafted
Knowledgator/GLiClass/gliclass/utils.py
code served (permissive licence) · get_code("9a5c7ab69c7fada9")
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 torch

# The function is_module_available takes a module_name (string) and checks
# whether it can be imported. It doesn't use the module, just tries to import it.
# We need to provide a string that names a module.

# Test with a commonly available module like 'os' which is part of stdlib
ARGS = {
    "module_name": "os"
}
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 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
retrieval_augmented_text Ran
ran; our contract draft was wrong, not the code
Knowledgator/GLiClass/gliclass/utils.py
code served (permissive licence) · get_code("9d71130480f71880")
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

# Construct valid arguments for retrieval_augmented_text

text = "This is the main input text about machine learning."

examples = [
    {
        "text": "Example 1: Neural networks are powerful models.",
        "true_labels": ["neural_networks", "deep_learning"],
        "all_labels": ["neural_networks", "deep_learning", "linear_models", "svm"]
    },
    {
        "text": "Example 2: Support vector machines are useful for classification.",
        "true_labels": ["svm"],
        "all_labels": ["svm", "neural_networks", "decision_trees", "random_forest"]
    },
    {
        "text": "Example 3: Random forests combine multiple decision trees.",
        "true_labels": ["random_forest", "decision_trees"],
        "all_labels": ["random_forest", "decision_trees", "neural_networks", "gradient_boosting"]
    }
]

ARGS = {
    "text": text,
    "examples": examples
}
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
sequence_contrastive_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Knowledgator/GLiClass/gliclass/loss_functions.py
code served (permissive licence) · get_code("e8b08552ccf90983")
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 Tensor, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# Parameters for sequence_contrastive_loss
B = 2  # batch size
L = 3  # sequence length
D = 4  # embedding dimension

# Create embeddings tensor: (B, L, D)
embeddings = torch.randn(B, L, D)

# Create mask tensor: (B, L)
# mask should be binary values to mask out positions
mask = torch.ones(B, L)

ARGS = {
    "embeddings": embeddings,
    "mask": mask,
}
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 Tensor, 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
get_mask Not yet run
unverified (harvested, no recorded run)
Knowledgator/GLiClass/gliclass/layers.py
code served (permissive licence) · get_code("497c2d96a4c265bc")
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, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

The rapid proliferation of large language models (LLMs) and the growing diversity of their applications presents a unique optimization opportunity: selecting the right model for the task, while optimizing for speed, cost, and quality at a per-task level. However, inference endpoints can vary widely in quality, price, latency, context support, tool use, domain expertise, and reasoning behavior. This heterogeneity makes manual heuristics difficult to maintain and unlikely to achieve consistently favorable speed--cost--quality trade-offs on their own. We introduce \router{}, a lightweight GLiClass-based router that assigns a suitability score to each inference-time model label without autoregressive generation. The released 0.6B-parameter checkpoint combines a Qwen3 decoder with a shallow bidirectional scorer. Its decoder-KV execution path preserves a text-only key--value cache across a session, encodes only new dialogue turns, and evaluates transient candidate-label tokens without adding them to the persistent cache. The same checkpoint also predicts task type, difficulty, reasoning mode, and expected output length, and supports custom zero-shot labels. For task generation, we construct a task ontology with 23 families, 115 task types, 345 routable subtypes, 1,173 synthetic examples, and an orthogonal axis of 30 domains. Using this structure, we generate 150,000 verifier-scored tasks and 15,000 open-ended tasks. We then train the Qwen3 decoder on these tasks, while explicitly separating learned request prediction from per-task policies for attributes such as eligibility, cost, cache reuse, safety, and sovereignty. Across six LiveBench subsets, the router outperforms the mean candidate; on the selected 1,000-task subset, it achieves an aggregate top-1 score of 0.707 versus 0.696 for the strongest fixed model, with benchmark-dependent gains.

For agents

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

get_harvested_code_for_paper("2609.02292")
get_code_for_paper("2609.02292")
have("2609.02292")

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

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

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

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

Connect an agent — have() is free.