SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.09353 · NeurIPS · 2024

Enhancing Domain Adaptation through Prompt Gradient Alignment

Trung Le, Hoang Phan, Lam Tran, Quyen Tran

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 no recorded run), measured 2026-11-22; 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/2406.09353.json · badge: /api/ran/2406.09353.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
VietHoang1512/PGA canonical (classifier label)
classifier basis: census
5 ran · 5 no recorded run
viethoang1512/pga canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
check_isfile Ran
ran, violated the contract we drafted
VietHoang1512/PGA/LA/dataset.py
pointer only (licence: NONE) · get_code("f1188d085e216ee3")
How it ran

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

entropy_loss Ran
ran; our contract draft was wrong, not the code
viethoang1512/pga/LA/main_uda.py
pointer only (licence: NONE) · get_code("bf4375591fccddac")
How it ran

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

listdir_nohidden Ran
ran; our contract draft was wrong, not the code
VietHoang1512/PGA/LA/dataset.py
pointer only (licence: NONE); the stored copy get_code serves, from mrflogs/ICLR24, is pointer only (licence: NONE) · get_code("fe317c3d4d24147a")
How it ran

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

load_data Ran
ran; our contract draft was wrong, not the code
VietHoang1512/PGA/LA/dataloader.py
pointer only (licence: NONE) · get_code("1d67fe6fb333ae8e")
How it ran

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

load_svhn Ran
ran; our contract draft was wrong, not the code
VietHoang1512/PGA/LA/digit5.py
pointer only (licence: NONE) · get_code("f6df3bd3264e9f51")
How it ran

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

read_image Ran
ran, honoured the contract we drafted
VietHoang1512/PGA/LA/dataset.py
pointer only (licence: NONE) · get_code("7a92bf4975eb29ec")
How it ran

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

test Ran
ran, honoured the contract we drafted
viethoang1512/pga/LA/main_uda.py
pointer only (licence: NONE) · get_code("6301fb5daaeef4c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, viethoang1512/pga 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_model Not yet run
unverified (harvested, no recorded run)
VietHoang1512/PGA/LA/clip_custom/model.py
pointer only (licence: NONE) · get_code("40418fa224950340")
How it ran

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

get_confirm_token Not yet run
unverified (harvested, no recorded run)
VietHoang1512/PGA/download.py
pointer only (licence: NONE); the stored copy get_code serves, from med-air/FedBN, is pointer only (licence: NONE) · get_code("135b3dc835ffe6ad")
How it ran

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

get_google_drive_stream Not yet run
unverified (harvested, no recorded run)
VietHoang1512/PGA/download.py
pointer only (licence: NONE) · get_code("7de13fad99cbd042")
How it ran

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

load_mnist Not yet run
unverified (harvested, no recorded run)
VietHoang1512/PGA/LA/digit5.py
pointer only (licence: NONE) · get_code("342c0c85275110c4")
How it ran

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

load_mnist_m Not yet run
unverified (harvested, no recorded run)
VietHoang1512/PGA/LA/digit5.py
pointer only (licence: NONE) · get_code("46957f35cb27059c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, VietHoang1512/PGA 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 3 later) and 9 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
build_model 53 other papers
26 dated earlier, 4 the same month, 21 later, 2 same year, order not determinable
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2211.09552 (2022-11)
UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer
and 50 more not named here
get_confirm_token 38 other papers
36 dated earlier, 2 later
1409.8230 (2014-09)
RENOIR - A Dataset for Real Low-Light Image Noise Reduction
1503.03832 (2015-03)
FaceNet: A Unified Embedding for Face Recognition and Clustering
1506.03134 (2015-06)
Pointer Networks
and 35 more not named here
listdir_nohidden 4 other papers
1 dated earlier, 1 the same month, 2 later
2402.04050 (2024-02)
Connecting the Dots: Collaborative Fine-tuning for Black-Box Vision-Language Models
2406.00345 (2024-06)
DECOOP: Robust Prompt Tuning with Out-of-Distribution Detection
2506.20990 (2025-06)
SharpZO: Hybrid Sharpness-Aware Vision Language Model Prompt Tuning via Forward-Only Passes
and 1 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-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

Prior Unsupervised Domain Adaptation (UDA) methods often aim to train a domain-invariant feature extractor, which may hinder the model from learning sufficiently discriminative features. To tackle this, a line of works based on prompt learning leverages the power of large-scale pre-trained vision-language models to learn both domain-invariant and specific features through a set of domain-agnostic and domain-specific learnable prompts. Those studies typically enforce invariant constraints on representation, output, or prompt space to learn such prompts. In contrast, we cast UDA as a multiple-objective optimization problem in which each objective is represented by a domain loss. Under this new framework, we propose to align per-objective gradients to foster consensus between them. Additionally, to prevent potential overfitting when fine-tuning this deep learning architecture, we penalize the norm of these gradients. To achieve these goals, we devise a practical gradient update procedure that can work under both single-source and multi-source UDA. Empirically, our method consistently outperforms other vision-language model adaptation methods. The implementation is available at https://github.com/VietHoang1512/PGA.

For agents

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

get_harvested_code_for_paper("2406.09353")
get_code_for_paper("2406.09353")
have("2406.09353")

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

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

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

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

Connect an agent — have() is free.