Open WilliamYi96 opened 1 year ago
Hello, the final layer will continue to undergo training. The global feature extractor's role here is primarily to determine whether param.requires_grad is set to True or False. This determination is utilized for the successive updating of the global feature extractor and classifier during the local update process. For precise implementation details, please refer to lines 363 - 385 in the distributed_training_utils.py file and consult the paper titled "FedRep" for a more comprehensive explanation of the specific methodology employed.
Hi @haozzh, it would be good if you could clarify the following question:
When CIFAR10 is trained for baselines, we have the following model from Nets.py:
However, when running FedRep,
Only the first 4 layers are selected to be trained locally. However, the last layer is not trained. Could you please share the logic behind it? And have you done any comparison for that?