SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2609.12915 · September 2026

LLM-Enhanced Dual-Branch Learning for Large-Scale Multi-Label Text Classification

Hui Ye, Jing Zhang, Rajshekhar Sunderraman, Xiulong Yang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 6 failures of our instrument; 2 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.12915.json · badge: /api/ran/2609.12915.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
huiyegit/DualMLC canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
arch_config Ran
ran; our contract draft was wrong, not the code
huiyegit/DualMLC/config.py
code served (permissive licence) · get_code("1bc7ddb1642d0aa1")
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

torch.manual_seed(0)

# Construct a valid config dict with all required ARCH_KEYS
cfg = {
    'qwen_name': 'qwen-7b',
    'bert_name': 'bert-base-uncased',
    'qwen_max_length': 512,
    'bert_max_length': 256,
    'qwen_pool': 'mean',
    'bert_pool': 'cls',
    'reduce_factor': 2,
    'qwen_layers': (24, 32),
    'bert_layers': (12,),
    'qwen_dropout': 0.1,
    'bert_dropout': 0.1,
    'lora_r': 8,
    'lora_alpha': 16,
    'lora_dropout': 0.05,
    'lora_targets': ['q_proj', 'v_proj'],
    'ensemble_alpha': 0.5
}

num_labels = 10

ARGS = {
    'cfg': cfg,
    'num_labels': num_labels
}
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
build_lora_config Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
huiyegit/DualMLC/model.py
code served (permissive licence) · get_code("4403855470c818b9")
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 LoraConfig. 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 torch.nn as nn
from peft import LoraConfig

torch.manual_seed(0)

# Construct a config dict that the function expects
cfg = {
    'lora_r': 8,
    'lora_alpha': 16,
    'lora_targets': ['q_proj', 'v_proj'],
    'lora_dropout': 0.05
}

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
peft, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LoraConfig — a LoraConfig output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LoraConfig 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
cfg_from_args Ran
ran; our contract draft was wrong, not the code
huiyegit/DualMLC/config.py
code served (permissive licence) · get_code("4a32f0d403602e2d")
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 argparse
import torch

# Create a minimal argparse Namespace object with attributes
args = argparse.Namespace()

# Set attributes that match CONFIG keys - these will override CONFIG values
args.data_dir = None  # None means "not specified", won't override
args.model_dir = None
args.qwen_name = None
args.qwen_max_length = None
args.qwen_pool = None
args.reduce_factor = None
args.lora_r = None
args.lora_alpha = None
args.lora_dropout = None
args.lora_targets = None
args.bert_name = None
args.bert_max_length = None
args.bert_pool = None
args.qwen_dropout = None
args.bert_dropout = None
args.qwen_layers = None
args.bert_layers = None
args.ensemble_alpha = None
args.batch_size = 4  # Override with a different value to test
args.grad_accum = None
args.lr = None
args.bert_lr = None
args.head_lr = None
args.bert_head_lr = None
args.weight_decay = None
args.warmup_steps = None
args.max_steps = None
args.max_grad_norm = None
args.logging_steps = None
args.eval_steps = None
args.save_steps = None
args.eval_batch_size = None
args.topk = ['1', '5', '10']  # String values to test int() conversion and sorting
args.seed = None
args.num_workers = None
args.use_amp = None
args.per_rank_dropout = None
args.no_amp = False  # Controls use_amp via the no_amp flag

# Optional base config to test the base parameter
base = None

ARGS = {
    'args': args,
    'base': base
}
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 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
encode_dual Ran
ran; our contract draft was wrong, not the code
huiyegit/DualMLC/data.py
code served (permissive licence) · get_code("9df10add4295f3a7")
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 torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __init__(self, add_token_type_ids=False):
        self.add_token_type_ids = add_token_type_ids
    
    def __call__(self, text, padding=None, truncation=None, max_length=None, return_tensors=None):
        batch_size = 1
        seq_len = min(max_length, 5) if max_length else 5
        output = {
            'input_ids': torch.randint(0, 1000, (batch_size, seq_len)),
            'attention_mask': torch.ones(batch_size, seq_len, dtype=torch.long)
        }
        if self.add_token_type_ids:
            output['token_type_ids'] = torch.zeros(batch_size, seq_len, dtype=torch.long)
        return output

text = "This is a sample text for tokenization"
qtok = MockTokenizer(add_token_type_ids=False)
btok = MockTokenizer(add_token_type_ids=True)
qmax = 8
bmax = 12

ARGS = {
    'text': text,
    'qtok': qtok,
    'btok': btok,
    'qmax': qmax,
    'bmax': bmax
}
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 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
split_paths Ran
ran; our contract draft was wrong, not the code
huiyegit/DualMLC/data.py
code served (permissive licence) · get_code("7f6bf79cb26b5a8c")
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 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 pathlib import Path

# The function takes two parameters:
# 1. data_dir: a directory path (string or Path-like)
# 2. split: a string identifier for the data split

ARGS = {
    'data_dir': '/tmp/test_data',
    'split': 'train'
}
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 tuple, ndim 1, 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
unwrap Ran
ran; our contract draft was wrong, not the code
huiyegit/DualMLC/model.py
code served (permissive licence) · get_code("fbf802640a712bb2")
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 SimpleModel. 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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

class DDPWrapper(nn.Module):
    def __init__(self, module):
        super().__init__()
        self.module = module
    
    def forward(self, x):
        return self.module(x)

# Test case 1: Model wrapped with DDP
wrapped_model = DDPWrapper(SimpleModel())

ARGS = {
    'model': wrapped_model
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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
build_model Not yet run
unverified (harvested, no recorded run)
huiyegit/DualMLC/model.py
code served (permissive licence) · get_code("42b780b0164fc3f2")
How it ran

no invocation recorded.

load_tokenizers Not yet run
unverified (harvested, no recorded run)
huiyegit/DualMLC/data.py
code served (permissive licence) · get_code("e8a8acc9b12f4b78")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 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 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.

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

Large-scale multi-label text classification assigns a small subset of relevant labels to each document from a vocabulary containing thousands or tens of thousands of candidate labels. Although pretrained language models have improved semantic text representations, most representation-based approaches center their prediction pipelines on a primary encoder or combine auxiliary features within a single ranker. The complementarity between heterogeneous language models therefore remains insufficiently explored. We propose DualMLC, a dual-branch framework that processes the same document through an autoregressive decoder-only language model and a bidirectional encoder. Each branch maintains its own representation pathway and independently estimates relevance scores over the shared label space. DualMLC combines the two score vectors through late logit fusion, allowing shared evidence to reinforce relevant labels and branch-specific evidence to compensate for limitations in the other branch's representation. DualMLC achieves state-of-the-art results on three widely used large-scale multi-label text classification benchmarks. Ablation results further confirm that integrating the heterogeneous predictors produces stronger rankings than either branch alone. The source code is publicly available at https://github.com/huiyegit/DualMLC.

For agents

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

get_harvested_code_for_paper("2609.12915")
get_code_for_paper("2609.12915")
have("2609.12915")

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

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

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

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

Connect an agent — have() is free.