FederatedCompressionOptions

Options & Configuration · AiDotNet.Models.Options

Configuration options for federated update compression (quantization, sparsification, and error feedback).

Inheritance: ModelOptions → FederatedCompressionOptions

How It Works

For Beginners: Compression reduces the size of client updates sent to the server to save bandwidth. This can speed up training in distributed settings, especially on slow or expensive networks.

Constructors

Constructor Summary
FederatedCompressionOptions()

Properties

Property Summary
AdvancedCompressionOptions Advanced { get; set; } Gets or sets advanced compression options (PowerSGD, sketching, adaptive, 1-bit SGD).
FederatedCompressionStrategy Strategy { get; set; } Gets or sets the compression strategy.
bool UseErrorFeedback { get; set; } Gets or sets whether to use error feedback (residual accumulation) on the client.
double Ratio { get; set; } Gets or sets the compression ratio (0.0 to 1.0) for sparsification strategies.
double Threshold { get; set; } Gets or sets the absolute threshold for the “Threshold” strategy.
int QuantizationBits { get; set; } Gets or sets the number of bits used for quantization strategies.