All models

pFedHN

A hypernetwork that generates a personalized LeNet-based classifier for each federated learning client.

Image classification · 40 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (51 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
12.4M
Operations
40
Framework
PyTorch
Recurrent
No
Published
ICML 2021
Cited by
187 (as of 28 October 2026)
Authors
Aviv Shamsian, Aviv Navon, Ethan Fetaya, Gal Chechik
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m21679
Graph hash
96bf5087a55ad8e717f2a1683588d0948cf345f1b4cbb60e688781158768a667
Skeleton hash
7012b9b7809ef850a92397d0a09fda26a782d707d4b046143ea8a4b5ab78f2c9
Architecture hash
ee75f458f7221f8dacd865de054a16f668abe3520d6e165d62c6649f46a78e2b
Diagram SHA-256
45215227a010dc9e1a7f6e13e1379b6dabd188beeb715b7f8f1e72961b3ef0b2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

pFedHN is a method for personalized federated learning, in which models are trained for multiple clients that each have their own data distribution. A central hypernetwork, a network that outputs the weights of another network, is trained to generate one model for each client.

Each client has its own embedding vector, which is passed to the hypernetwork to produce that client's personalized model weights. In the paper's experiments the hypernetwork is a fully-connected network with three hidden layers and multiple linear heads, one per weight tensor of the target network. The target network that receives the generated weights is LeNet-based, with two convolution and two fully connected layers in the CIFAR experiments.

Because the hypernetwork's parameters are never transmitted, the paper notes that the communication cost is decoupled from the size of the trainable model. The paper also describes a variant, pFedHN-PC, which adds a personalized classifier per client. It reports that pFedHN can generalize better to new clients whose distributions differ from any client observed during training.

Key idea. The paper trains one central hypernetwork to generate a personalized model for each federated client, sharing parameters across clients while keeping each model distinct.

  • pfedhn
  • personalized federated hypernetworks
  • personalized federated learning
  • federated learning
  • hypernetwork
  • pfedhn-pc
  • client embedding
  • federated image classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{shamsian2021personalizedfederatedlearningusing,
      title={Personalized Federated Learning using Hypernetworks}, 
      author={Aviv Shamsian and Aviv Navon and Ethan Fetaya and Gal Chechik},
      year={2021},
      eprint={2103.04628},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2103.04628}, 
}