SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.15085 · 2024

Learn to Preserve and Diversify: Parameter-Efficient Group with Orthogonal Regularization for Domain Generalization

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 13 functions out of this paper's own repositories and ran 11 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
JudgingH/PEGO canonical 11 of 13
FunctionStatusWhere it lives
conv3x3 Ran JudgingH/PEGO/domainbed/lib/wide_resnet.py
code served (permissive licence) · get_code("00e569acd6b45ef0")
default_hparams Ran JudgingH/PEGO/domainbed/hparams_registry.py
code served (permissive licence) · get_code("02a21c87d500ef9d")
get_shapes Ran JudgingH/PEGO/domainbed/algorithms/miro.py
code served (permissive licence) · get_code("c5919b96db289dbd")
hashable Ran JudgingH/PEGO/domainbed/lib/query.py
code served (permissive licence) · get_code("71a3a61ceed99bf3")
levelize Ran JudgingH/PEGO/domainbed/lib/logger.py
code served (permissive licence) · get_code("2f597a2077a1c95d")
make_selector_fn Ran JudgingH/PEGO/domainbed/lib/query.py
code served (permissive licence) · get_code("2f8af5779e1edcb6")
make_weights_for_balanced_classes Ran JudgingH/PEGO/domainbed/lib/misc.py
code served (permissive licence) · get_code("955c4020424d8ac1")
random_hparams Ran JudgingH/PEGO/domainbed/hparams_registry.py
code served (permissive licence) · get_code("58e06fd6cfa6a889")
random_pairs_of_minibatches Ran JudgingH/PEGO/domainbed/lib/misc.py
code served (permissive licence) · get_code("4fa2b54178fcc1df")
to_minibatch Ran JudgingH/PEGO/domainbed/algorithms/algorithms.py
code served (permissive licence) · get_code("12c23ce22097acd0")
to_row Ran JudgingH/PEGO/domainbed/lib/misc.py
code served (permissive licence) · get_code("5dd6a674fbe45a89")
accuracy_from_loader Not yet run JudgingH/PEGO/domainbed/evaluator.py
code served (permissive licence) · get_code("687efdf3db9c44df")
get_writer Not yet run JudgingH/PEGO/domainbed/lib/writers.py
code served (permissive licence) · get_code("aa6558d41d5c4673")

Repositories linked to this paper

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

Abstract

Domain generalization (DG) aims to avoid the performance degradation of the model when the distribution shift between the limited training data and unseen test data occurs. Recently, foundation models with enormous parameters have been pre-trained with huge datasets, demonstrating strong generalization ability and showing promising direction for solving the DG problem. However, fully Fine-Tuning (FT) the foundation models results in unsatisfactory out-of-distribution accuracy due to the destroyed pre-trained generalized features. Recently, Parameter-Efficient Fine-Tuning (PEFT) alleviates the above problem by fine-tuning a small portion of the model parameters while keeping the rest frozen, which achieves better generalization performance compared to FT. Nevertheless, PEFT still suffers from the issue of overfitting to the training domains. To address the above issue, we propose Parameter-Efficient Group with Orthogonal regularization (PEGO) for vision transformers, which effectively preserves the generalization ability of the pre-trained network and learns more diverse knowledge compared with conventional PEFT. Specifically, we inject a group of trainable Low-Rank Adaptation (LoRA) modules into the pre-trained model and propose an orthogonal regularization loss to enhance the generalization ability of the model. Our framework achieves SOTA performance on five DG benchmarks, while only requiring training a small number of parameters without adding additional testing cost.

For agents

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

get_harvested_code_for_paper("2407.15085")
get_code_for_paper("2407.15085")
have("2407.15085")

Connect an agent — have() is free.