SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_29295 · AAAI · 2024

Language-Guided Transformer for Federated Multi-Label Classification

Yu-Chiang Wang, Fu-En Yang, I-Jieh Liu, Ci-Siang Lin

Open in the Atlas

Code that ran

3 of 6 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; 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/aaai_29295.json · badge: /api/ran/aaai_29295.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
Jack24658735/FedLGT canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
custom_replace Ran
ran on a synthesized input
Jack24658735/FedLGT/models/utils.py
code served (permissive licence) · get_code("3727b29652fc1c57")
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 numpy as np

torch.manual_seed(0)

# Create a small tensor with values -1, 0, and 1
tensor = torch.tensor([[-1, 0, 1, -1],
                       [0, 1, -1, 0]], dtype=torch.float32)

# Define replacement values for each case
on_neg_1 = -99.0
on_zero = 0.0
on_one = 99.0

ARGS = {
    "tensor": tensor,
    "on_neg_1": on_neg_1,
    "on_zero": on_zero,
    "on_one": on_one
}
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 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
get_activation_fn Ran
ran on a synthesized input
Jack24658735/FedLGT/models/utils.py
code served (permissive licence) · get_code("efb77cb95297b034")
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 function. 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
import torch.nn.functional as F

torch.manual_seed(0)

# The function get_activation_fn takes a single parameter: activation
# It checks if activation is 'relu' or 'gelu' and returns the corresponding function
# Otherwise it raises a RuntimeError

ARGS = {
    'activation': 'relu'
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
positionalencoding2d Ran
ran, honoured the contract we drafted
Jack24658735/FedLGT/models/position_enc.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from wzlxjtu/PositionalEncoding2D, is pointer only (licence: NONE) · get_code("69664111108e8701")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from wzlxjtu/PositionalEncoding2D, 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.

build_position_encoding Not yet run
unverified (harvested, no recorded run)
Jack24658735/FedLGT/models/utils.py
code served (permissive licence) · get_code("a809b63d1fb6ac5c")
How it ran

no invocation recorded.

get_args Not yet run
unverified (harvested, no recorded run)
Jack24658735/FedLGT/config_args.py
code served (permissive licence) · get_code("6c85ce06adcd2813")
How it ran

no invocation recorded.

inception_v3 Not yet run
unverified (harvested, no recorded run)
Jack24658735/FedLGT/models/backbone.py
code served (permissive licence) · get_code("71c146bcfec92caf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 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
positionalencoding2d 9 other papers
7 dated earlier, 1 later, 1 same year, order not determinable
1706.03762 (2017-06)
Attention Is All You Need
2008.09105 (2020-08)
Location-Aware Graph Convolutional Networks for Video Question Answering
2106.12102 (2021-06)
LegoFormer: Transformers for Block-by-Block Multi-view 3D Reconstruction
and 6 more not named here
build_position_encoding 8 other papers
6 dated earlier, 1 later, 1 same year, order not determinable
2104.12763 (2021-04)
MDETR -Modulated Detection for End-to-End Multi-Modal Understanding
2108.11084 (2021-08)
Transformer for Single Image Super-Resolution
2111.12085 (2021-11)
UniTAB: Unifying Text and Box Outputs for Grounded Vision-Language Modeling
and 5 more not named here
inception_v3 2 other papers
1 dated earlier, 1 later
2007.04612 (2020-07)
Concept Bottleneck Models
ijcai2025_1147 (2025 (year only))
Explainability Through Human-Centric Design for XAI in Lung Cancer Detection

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-22.

Repositories linked to this paper

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

Abstract

Federated Learning (FL) is an emerging paradigm that enables multiple users to collaboratively train a robust model in a privacy-preserving manner without sharing their private data. Most existing approaches of FL only consider traditional single-label image classification, ignoring the impact when transferring the task to multi-label image classification. Nevertheless, it is still challenging for FL to deal with user heterogeneity in their local data distribution in the real-world FL scenario, and this issue becomes even more severe in multi-label image classification. Inspired by the recent success of Transformers in centralized settings, we propose a novel FL framework for multi-label classification. Since partial label correlation may be observed by local clients during training, direct aggregation of locally updated models would not produce satisfactory performances. Thus, we propose a novel FL framework of Language-Guided Transformer (FedLGT) to tackle this challenging task, which aims to exploit and transfer knowledge across different clients for learning a robust global model. Through extensive experiments on various multi-label datasets (e.g., FLAIR, MS-COCO, etc.), we show that our FedLGT is able to achieve satisfactory performance and outperforms standard FL techniques under multi-label FL scenarios. Code is available at https://github.com/Jack24658735/FedLGT.

For agents

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

get_harvested_code_for_paper("aaai_29295")
get_code_for_paper("aaai_29295")
have("aaai_29295")

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

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

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

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

Connect an agent — have() is free.