{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/fedlf-adaptive-logit-adjustment-and-feature","title":"FedLF: Adaptive Logit Adjustment and Feature Optimization in Federated Long-Tailed Learning","arxiv_id":"2409.12105","date":"2024-09-18","proceeding":null,"authors":["Xiuhua Lu","Peng Li","Xuefeng Jiang"],"abstract":"Federated learning offers a paradigm to the challenge of preserving privacy in distributed machine learning. However, datasets distributed across each client in the real world are inevitably heterogeneous, and if the datasets can be globally aggregated, they tend to be long-tailed distributed, which greatly affects the performance of the model. The traditional approach to federated learning primarily addresses the heterogeneity of data among clients, yet it fails to address the phenomenon of class-wise bias in global long-tailed data. This results in the trained model focusing on the head classes while neglecting the equally important tail classes. Consequently, it is essential to develop a methodology that considers classes holistically. To address the above problems, we propose a new method FedLF, which introduces three modifications in the local training phase: adaptive logit adjustment, continuous class centred optimization, and feature decorrelation. We compare seven state-of-the-art methods with varying degrees of data heterogeneity and long-tailed distribution. Extensive experiments on benchmark datasets CIFAR-10-LT and CIFAR-100-LT demonstrate that our approach effectively mitigates the problem of model performance degradation due to data heterogeneity and long-tailed distribution. our code is available at https://github.com/18sym/FedLF.","url_abs":"https://arxiv.org/abs/2409.12105v1","url_pdf":"https://arxiv.org/pdf/2409.12105v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"fedlf-adaptive-logit-adjustment-and-feature","repo_url":"https://github.com/18sym/fedlf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"federated-learning","task_name":"Federated Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.12105","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.12105"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/18sym/FedLF","reach":null}],"summary":{"ran":3,"ran_fixture":2,"ran_draft_wrong":6,"ran_honours":1,"unverified":10},"by_repo_kind":{"official":{"samples":22,"ran":12,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":22,"samples":[{"code_sha256_prefix":"68ae0e9d43cd7601","entry":"BasicBlock","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"68ae0e9d43cd7601"}},{"code_sha256_prefix":"9220edd1744cdb48","entry":"Bottleneck","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9220edd1744cdb48"}},{"code_sha256_prefix":"7283f303b7677498","entry":"Indices2Dataset","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7283f303b7677498"}},{"code_sha256_prefix":"01b9dc61784ea4b6","entry":"_get_img_num_per_cls","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"01b9dc61784ea4b6"}},{"code_sha256_prefix":"2ff16fc9fa3fcdcb","entry":"build_non_iid_by_dirichlet","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2ff16fc9fa3fcdcb"}},{"code_sha256_prefix":"3535c1c53c011bdb","entry":"classify_label","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3535c1c53c011bdb"}},{"code_sha256_prefix":"2aa5d536ff654fac","entry":"conv3x3","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2aa5d536ff654fac"}},{"code_sha256_prefix":"aa07673ccf9afd55","entry":"label_indices2indices","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa07673ccf9afd55"}},{"code_sha256_prefix":"d4682009629cffa4","entry":"norm2d","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d4682009629cffa4"}},{"code_sha256_prefix":"1e2e488b6e0732b4","entry":"partition_balance","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1e2e488b6e0732b4"}},{"code_sha256_prefix":"cb551321bfb230bc","entry":"show_clients_data_distribution","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cb551321bfb230bc"}},{"code_sha256_prefix":"f33cdbbef61b88bd","entry":"train_long_tail","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f33cdbbef61b88bd"}},{"code_sha256_prefix":"61abd91f9aa31b34","entry":"DecorrLoss","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61abd91f9aa31b34"}},{"code_sha256_prefix":"91b30d04ee2480d6","entry":"Global","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"91b30d04ee2480d6"}},{"code_sha256_prefix":"8351933e54f8515e","entry":"Local","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8351933e54f8515e"}},{"code_sha256_prefix":"8cb8ca848a8fb8f5","entry":"ResNetBase","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8cb8ca848a8fb8f5"}},{"code_sha256_prefix":"fb797aa56357f404","entry":"ResNet_cifar","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fb797aa56357f404"}},{"code_sha256_prefix":"401b34b65340bf0e","entry":"args_parser","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"401b34b65340bf0e"}},{"code_sha256_prefix":"11a361ce0a5ab1db","entry":"clients_indices","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"11a361ce0a5ab1db"}},{"code_sha256_prefix":"313710a79a99709b","entry":"fedlf","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"313710a79a99709b"}},{"code_sha256_prefix":"4ebf5ed2cce22713","entry":"setup_logging","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4ebf5ed2cce22713"}},{"code_sha256_prefix":"ec9a751e75b59fdc","entry":"tsne_evaluation","repo":"18sym/FedLF","repo_kind":"official","path":"algorithm/fedlf.py","file_url":"https://github.com/18sym/FedLF/blob/HEAD/algorithm/fedlf.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ec9a751e75b59fdc"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}