Papers
Topics
Authors
Recent
Search
2000 character limit reached

TinyProto: Efficient Federated Learning

Updated 6 July 2026
  • TinyProto is a prototype-based federated learning framework that replaces dense class prototypes with structured sparse prototypes to reduce communication overhead.
  • It employs adaptive prototype scaling to recover count-weighted aggregation without transmitting explicit client counts, enhancing performance in heterogeneous settings.
  • Experiments on CIFAR and TinyImageNet demonstrate up to 10× communication reduction while maintaining or improving accuracy compared to baseline methods.

Searching arXiv for the TinyProto paper and closely related prototype-based federated learning work. TinyProto is a communication-efficient prototype-based federated learning (PBFL) framework designed for resource-constrained and heterogeneous environments. It replaces dense class prototypes with class-wise structured sparse prototypes and augments aggregation with adaptive prototype scaling, targeting the communication bottleneck that arises when clients exchange per-class mean activations in a shared dd-dimensional penultimate feature space (Lee et al., 6 Jul 2025). In the reported experiments, TinyProto reduces communication costs by up to 4×4\times compared to efficient baselines and by up to 10×10\times relative to original PBFL configurations, while maintaining or improving accuracy, especially in larger-class and heterogeneous settings (Lee et al., 6 Jul 2025).

1. Problem setting and motivation

In PBFL, a client ii uses a feature extractor fi()f_i(\cdot) with output dimension dd, and for each class c{1,,C}c \in \{1,\dots,C\} forms a local prototype pi,cRdp_{i,c} \in \mathbb{R}^d, typically the mean activation in the penultimate layer. The server aggregates these into global prototypes pcRdp_c \in \mathbb{R}^d. This reduces communication relative to full model exchange, but the per-round cost still scales with CdC \cdot d, because each class contributes a length-4×4\times0 prototype on both uplink and downlink (Lee et al., 6 Jul 2025).

The TinyProto formulation is motivated by two empirical observations. First, decision-layer features under ReLU are sparse and exhibit many “dead units” (approximately 4×4\times1 per class empirically), so local prototypes already contain many zeros. Second, heterogeneity across clients, in both data and model, makes zero locations inconsistent, so naïve global aggregation fills in most coordinates and the aggregate prototype remains dense. The framework also addresses a second limitation of prototype aggregation: PBFL often uses simple averaging to avoid transmitting per-class client counts 4×4\times2, but that choice sacrifices fidelity because client importance is not reflected (Lee et al., 6 Jul 2025).

These observations define the central problem that TinyProto addresses. Dense prototypes are structurally wasteful when the feature geometry is already sparse, and simple averaging under heterogeneous class frequencies can degrade prototype quality. TinyProto therefore imposes consistent sparsity patterns across clients and restores class-frequency weighting without directly sending 4×4\times3 as metadata (Lee et al., 6 Jul 2025).

2. Class-wise Prototype Sparsification

The core mechanism is Class-wise Prototype Sparsification (CPS). For each class 4×4\times4, TinyProto defines a fixed support 4×4\times5 of size 4×4\times6, together with a binary mask 4×4\times7, where 4×4\times8 iff 4×4\times9. The structured sparse prototype is

10×10\times0

and the compressed prototype is the coordinate subvector restricted to 10×10\times1,

10×10\times2

Clients and server share these class-specific masks once, so subsequent rounds transmit only the 10×10\times3 selected values rather than all 10×10\times4 coordinates (Lee et al., 6 Jul 2025).

A defining property of CPS is that zero locations are consistent across clients. This is the mechanism by which sparsity survives aggregation: each client sends values only on the same support 10×10\times5 for class 10×10\times6, and the server aggregates only those coordinates. In contrast, if each client were sparse in different coordinates, global averaging would refill the vector and destroy sparsity. The paper states that masks are typically designed to maximize pairwise Hamming distance between 10×10\times7. Disjoint supports 10×10\times8 are described as a simple, strong choice, while overlapping supports are allowed provided that masks remain sufficiently separated (Lee et al., 6 Jul 2025).

This design is structured rather than adaptive at each round. A plausible implication is that TinyProto trades per-round optimization freedom for deterministic communication cost and zero index overhead during training. The reported practical guidance is to start with 10×10\times9, corresponding to ii0 compression, and to prefer disjoint or near-disjoint supports when feasible (Lee et al., 6 Jul 2025).

3. Prototype aggregation, adaptive scaling, and local training

TinyProto retains the standard prototype definition at the client. If ii1 is the subset of local samples with label ii2, and ii3, then the local class prototype is

ii4

The count-weighted global prototype would be

ii5

but many PBFL implementations replace this with simple averaging,

ii6

to avoid sending ii7 (Lee et al., 6 Jul 2025).

TinyProto’s adaptive prototype scaling recovers the effect of importance weighting without explicitly transmitting counts. Each client multiplies its compressed prototype by the local class count before uplink and sends

ii8

The server then performs simple averaging on these scaled values,

ii9

and reconstructs fi()f_i(\cdot)0 by placing fi()f_i(\cdot)1 back at fi()f_i(\cdot)2 and zeros elsewhere. The paper describes this as achieving the effect of count-weighted aggregation without explicitly transmitting fi()f_i(\cdot)3 as metadata (Lee et al., 6 Jul 2025).

A second scaling step is global. The server scales reconstructed global prototypes by a hyperparameter fi()f_i(\cdot)4, and clients use fi()f_i(\cdot)5 in prototype regularization. Local optimization is

fi()f_i(\cdot)6

with

fi()f_i(\cdot)7

where fi()f_i(\cdot)8 is Euclidean distance. In the reported experiments, fi()f_i(\cdot)9, and dd0 is dataset-dependent: dd1 for CIFAR-10 and dd2 for CIFAR-100 and TinyImageNet (Lee et al., 6 Jul 2025). Prediction for PBFL methods uses nearest-prototype classification,

dd3

Because only prototypes are exchanged, TinyProto is architecture-agnostic provided that clients emit features in a common dd4-dimensional space. Different backbones are therefore supported without shared weights. The paper notes that if some clients have different native feature dimensions dd5, a lightweight projection to a common dd6 can be added, although TinyProto does not prescribe a specific projection operator (Lee et al., 6 Jul 2025).

4. Communication scaling and computational profile

The communication analysis is one of TinyProto’s main contributions. With dd7 bytes per float, the baseline PBFL byte cost is written as

dd8

which the paper identifies as the byte version of the parameter-count expression for dense-prototype methods. This notation suggests that dd9 denotes the number of classes represented on client c{1,,C}c \in \{1,\dots,C\}0 (Lee et al., 6 Jul 2025).

Under CPS, only c{1,,C}c \in \{1,\dots,C\}1 coordinates per class are transmitted, so the per-round cost becomes

c{1,,C}c \in \{1,\dots,C\}2

The compression ratio is therefore approximately

c{1,,C}c \in \{1,\dots,C\}3

When c{1,,C}c \in \{1,\dots,C\}4, the paper reports c{1,,C}c \in \{1,\dots,C\}5 relative to original PBFL (Lee et al., 6 Jul 2025).

TinyProto avoids a common source of sparse-communication overhead: per-round index transmission. Because masks are pre-shared once, the round-wise index overhead is zero. The one-time mask broadcast cost is c{1,,C}c \in \{1,\dots,C\}6 bits, amortized across rounds. On the client, prototype computation remains c{1,,C}c \in \{1,\dots,C\}7 because prototypes are still mean-pooled over the full feature space; CPS compression is then only a fixed subselect of size c{1,,C}c \in \{1,\dots,C\}8, i.e., c{1,,C}c \in \{1,\dots,C\}9 per class, with no top-pi,cRdp_{i,c} \in \mathbb{R}^d0 search, auxiliary pruning, or additional optimization. On the server, reconstruction is pi,cRdp_{i,c} \in \mathbb{R}^d1 (Lee et al., 6 Jul 2025).

This distinction is important for interpretation. TinyProto compresses communication while preserving the full training-time and inference-time representation dimension pi,cRdp_{i,c} \in \mathbb{R}^d2. The paper’s ablations state that CPS consistently outperforms shrinking the actual layer width to match the same communication budget. The stated reason is that TinyProto keeps full pi,cRdp_{i,c} \in \mathbb{R}^d3 capacity in training and inference while communicating only pi,cRdp_{i,c} \in \mathbb{R}^d4 coordinates; reducing pi,cRdp_{i,c} \in \mathbb{R}^d5 directly harms representational power (Lee et al., 6 Jul 2025).

5. Experimental results and empirical behavior

The reported evaluation uses CIFAR-10 (pi,cRdp_{i,c} \in \mathbb{R}^d6), CIFAR-100 (pi,cRdp_{i,c} \in \mathbb{R}^d7), and TinyImageNet (pi,cRdp_{i,c} \in \mathbb{R}^d8); backbones include ResNet-8, EfficientNet, ShuffleNet v2, and MobileNet v2, all with global average pooling and prototype dimension pi,cRdp_{i,c} \in \mathbb{R}^d9. The federated configuration uses pcRdp_c \in \mathbb{R}^d0 clients, all participating per round, over 300 rounds, with learning rate pcRdp_c \in \mathbb{R}^d1, batch size pcRdp_c \in \mathbb{R}^d2, and one local epoch per round. Data heterogeneity is generated with Dirichlet pcRdp_c \in \mathbb{R}^d3, with additional tests at pcRdp_c \in \mathbb{R}^d4 and pcRdp_c \in \mathbb{R}^d5. The paper evaluates TinyProto-FP, integrated into FedProto, and TinyProto-FT, integrated into FedTGP/ACL (Lee et al., 6 Jul 2025).

At pcRdp_c \in \mathbb{R}^d6 and pcRdp_c \in \mathbb{R}^d7, corresponding to pcRdp_c \in \mathbb{R}^d8 compression, the reported communication and accuracy are as follows. On CIFAR-10, FedProto attains pcRdp_c \in \mathbb{R}^d9 with communication CdC \cdot d0, FedTGP CdC \cdot d1 with CdC \cdot d2, FedDistill CdC \cdot d3 with CdC \cdot d4, TinyProto-FP CdC \cdot d5 with CdC \cdot d6, and TinyProto-FT CdC \cdot d7 with CdC \cdot d8. On CIFAR-100, FedProto attains CdC \cdot d9 with 4×4\times00, FedTGP 4×4\times01 with 4×4\times02, FedDistill 4×4\times03 with 4×4\times04, TinyProto-FP 4×4\times05 with 4×4\times06, and TinyProto-FT 4×4\times07 with 4×4\times08. On TinyImageNet, FedProto attains 4×4\times09 with 4×4\times10, FedTGP 4×4\times11 with 4×4\times12, FedDistill 4×4\times13 with 4×4\times14, TinyProto-FP 4×4\times15 with 4×4\times16, and TinyProto-FT 4×4\times17 with 4×4\times18 (Lee et al., 6 Jul 2025).

The paper highlights two specific communication reductions. TinyProto-FT achieves approximately 4×4\times19 reduction relative to FedProto on CIFAR-100, from 4×4\times20 to 4×4\times21 million parameters per round, and approximately 4×4\times22 reduction relative to FedDistill on TinyImageNet, from 4×4\times23 to 4×4\times24 (Lee et al., 6 Jul 2025). These are the central reported efficiency comparisons.

Robustness experiments further emphasize heterogeneous settings. On CIFAR-100 with 4×4\times25, TinyProto-FT reaches 4×4\times26, ahead of TinyProto-FP at 4×4\times27, FedDistill at 4×4\times28, and FedTGP at 4×4\times29. With 4×4\times30, TinyProto-FT reaches 4×4\times31, while TinyProto-FP reaches 4×4\times32 and FedTGP 4×4\times33. With 4×4\times34, TinyProto-FT reaches 4×4\times35, described as best among PBFL-type methods, and TinyProto-FP reaches 4×4\times36 (Lee et al., 6 Jul 2025).

Taken together, the results indicate that TinyProto is most advantageous when 4×4\times37 and 4×4\times38 are large enough that dense-prototype exchange becomes expensive. The paper’s own summary recommends it when communication is the primary constraint, when models are heterogeneous but can agree on a shared embedding dimension, and when the raw 4×4\times39 cost of PBFL is otherwise prohibitive (Lee et al., 6 Jul 2025).

6. Theoretical properties, limitations, and privacy considerations

TinyProto extends FedProto’s convergence analysis by introducing a fixed-support, non-expansive sparsification operator 4×4\times40 for each class. The stated assumption is that for class 4×4\times41, 4×4\times42 maintains a fixed support 4×4\times43 and is non-expansive:

4×4\times44

Under this assumption, the components of FedProto’s Lemma 2 that involve global prototypes are modified by inserting 4×4\times45, and because masking is linear on fixed locations, the bound is preserved. The paper gives the key inequality

4×4\times46

and states that this supports carrying over FedProto’s non-convex convergence rate to CPS (Lee et al., 6 Jul 2025).

The framework’s limitations are explicit. Even with 4×4\times47, total communication still grows with 4×4\times48, so very large class counts can make mask storage and broadcast overhead non-trivial, and disjoint support allocation may become impossible when 4×4\times49. Extreme class imbalance or rapid distribution drift can destabilize distance-based training because local scaling depends on 4×4\times50; the paper states that server-side normalization and 4×4\times51 scaling mitigate this, but further adaptive normalization may be helpful. Fixed supports 4×4\times52 can also become stale if informative feature directions drift substantially over training (Lee et al., 6 Jul 2025).

Mask overlap is another design risk. If supports overlap excessively, inter-class discriminativeness can degrade; the recommended mitigation is to maintain large pairwise Hamming distances between masks. Heterogeneous models with differing native feature dimensions 4×4\times53 require an added projection to a common 4×4\times54, which the method allows but does not specify in detail. The paper also notes that class-wise prototypes may leak label distribution information. Proposed mitigations include Gaussian or Laplace noise on prototypes, differential privacy accounting for the scaling step, and secure aggregation (Lee et al., 6 Jul 2025).

Future directions follow naturally from these constraints. The paper identifies adaptive support allocation, combination with quantization or sketching such as randomized projections, and privacy-preserving variants that integrate differential privacy noise and secure aggregation of compressed vectors (Lee et al., 6 Jul 2025).

7. Other technical usage of the name

The name “TinyProto” also appears in a distinct systems-design context derived from the Bebop serialization and RPC work reported in "Simplicity Scales" (Sampson et al., 4 Mar 2026). In that usage, TinyProto denotes a proposed minimal, high-performance serialization/RPC system that mirrors Bebop’s fixed-width wire rules, fixed 4×4\times55-byte length prefixes, packed structs, and transport-independent RPC framing. The guiding principle is that every data type uses a fixed number of bytes: for example, a 4×4\times56-bit integer is always 4×4\times57 bytes, a float64 is always 4×4\times58 bytes, and length prefixes are always 4×4\times59 bytes. The stated purpose is to eliminate data-dependent branches in decoding, replacing varint and text parsing with single loads, pointer assignment, and fixed strides (Sampson et al., 4 Mar 2026).

In that systems context, the proposed wire format uses little-endian fixed sizes for primitive and extended numeric types, strings encoded as 4×4\times60-byte byte-length plus UTF-8 bytes plus a 4×4\times61-byte NUL terminator, arrays encoded as a 4×4\times62-byte count followed by contiguous elements, structs encoded positionally with no tags or padding, and messages encoded as a 4×4\times63-byte total length followed by a stream of 4×4\times64-byte tags and a single 4×4\times65 end marker. Unknown tags are skipped deterministically using fixed widths or fixed-width length prefixes, preserving message evolvability without per-byte continuation checks (Sampson et al., 4 Mar 2026).

The same source also specifies a transport-agnostic RPC layer with a fixed 4×4\times66-byte frame header composed of length (4×4\times67), flags (byte), and stream identifier (4×4\times68); method dispatch uses a 4×4\times69-byte hash of “/ServiceName/MethodName”, and the protocol supports HTTP/1.1, HTTP/2, HTTP/3, TCP, WebSocket, and IPC. Batch pipelining is a central feature: a BatchCall carries dependency information through input_from, the server builds a DAG of dependent calls, partitions it into layers, and executes layers concurrently, collapsing 4×4\times70 dependent round trips into one. Cursors, absolute deadlines, and async futures are also described (Sampson et al., 4 Mar 2026).

The reported performance claims for Bebop motivate that usage of the name. Across 4×4\times71 decode workloads, Bebop decodes 4×4\times72–4×4\times73 faster than Protocol Buffers; on a 4×4\times74-dimension embedding vector, it decodes in 4×4\times75 ns versus 4×4\times76 ns for Protocol Buffers and 4×4\times77 4×4\times78s for simdjson; and for records above approximately 4×4\times79 KB, cold-cache utilization reaches 4×4\times80 of peak DRAM bandwidth, summarized as 4×4\times81 (Sampson et al., 4 Mar 2026). This systems-oriented “TinyProto” is unrelated in purpose to the federated-learning framework, but both usages share a common design theme: reducing overhead by constraining representation structure rather than adding runtime complexity.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TinyProto.