SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19886 · NeurIPS · 2024

RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models

Yu Zhang, James Kwok, Weisen Jiang, Shuhao Chen, Baijiong Lin

arXiv · PDF · Open in the Atlas

Code that ran

2 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2409.19886.json · badge: /api/ran/2409.19886.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
shuhao02/RouterDC canonical (classifier label)
classifier basis: census
1 ran · 2 no recorded run
shuhao02/routerdc community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
RouterModule Ran
ran on a synthesized input · constructed an object; no result was computed
shuhao02/routerdc/train_router_mdeberta.py
pointer only (licence: NONE) · get_code("8c520b5fdfbfa606")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuhao02/routerdc 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.

accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shuhao02/RouterDC/utils/meters.py
pointer only (licence: NONE) · get_code("17aeadd82099f0be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuhao02/RouterDC 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.

evaluation Not yet run
unverified (harvested, no recorded run)
shuhao02/RouterDC/train_router_mdeberta.py
pointer only (licence: NONE) · get_code("f2bce34f97bf32be")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuhao02/RouterDC 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. No invocation recorded.

evaluation Not yet run
unverified (harvested, no recorded run)
shuhao02/RouterDC/train_router_mdeberta_routerbench.py
pointer only (licence: NONE) · get_code("686862d6e6432442")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, shuhao02/RouterDC 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. No invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 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, 0 later) and 3 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
accuracy 10 other papers
10 dated earlier
1409.7495 (2014-09)
Unsupervised Domain Adaptation by Backpropagation
1904.05049 (2019-04)
Drop an Octave: Reducing Spatial Redundancy in Convolutional Neural Networks with Octave Convolution
2111.02926 (2021-11)
OPENFWI: Large-scale Multi-structural Benchmark Datasets for Full Waveform Inversion
and 7 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

Recent works show that assembling multiple off-the-shelf large language models (LLMs) can harness their complementary abilities. To achieve this, routing is a promising method, which learns a router to select the most suitable LLM for each query. However, existing routing models are ineffective when multiple LLMs perform well for a query. To address this problem, in this paper, we propose a method called query-based Router by Dual Contrastive learning (RouterDC). The RouterDC model consists of an encoder and LLM embeddings, and we propose two contrastive learning losses to train the RouterDC model. Experimental results show that RouterDC is effective in assembling LLMs and largely outperforms individual top-performing LLMs as well as existing routing methods on both in-distribution (+2.76%) and out-of-distribution (+1.90%) tasks. Source code is available at https://github.com/shuhao02/RouterDC. RouterDC S im il a ri ty LLMs

For agents

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

get_harvested_code_for_paper("2409.19886")
get_code_for_paper("2409.19886")
have("2409.19886")

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

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

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

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

Connect an agent — have() is free.