Skip to main content

FedMARS

FedMARS is a PyTorch implementation of Federated Mode-Aware Reliability Scoring for layer-wise trust control in heterogeneous federated learning. The method builds mode-aware layer evidence on each client, converts that evidence into a layer credit, robustly aggregates credits on the server, and uses the same credit for layer selection, server update strength, and proximal drift control.

Install

pip install .

For the matching package release:

pip install fedmars==0.5.1

Minimal use

from fedmars import FedMARS, FedMARSConfig

config = FedMARSConfig(num_rounds=40, default_budget_fraction=0.35)
trainer = FedMARS(model, config)
history = trainer.fit(clients, server_val_loader=val_loader, server_test_loader=test_loader)

Each client must be a fedmars.ClientDataset or compatible object with client_id, dataset, and optional weight fields. Datasets must return (x, y) pairs.

Implementation choices in this submission version

Area Submission behavior
Layer budget Exact parameter-bit budget: selected layer bits are constrained by floor(model_bits * budget_fraction).
Output layer No layer is forced by default. If no layer fits a very small budget, the selected set can be empty without violating the bit budget.
No-reference credit Final credit alignment is neutral when no usable server reference exists.
Mixture objective Entropy is controlled by the explicit mixture_entropy field.
Server momentum EMA update: v <- m v + (1-m) delta.
Aggregation weighting Positive credit weighting uses robust z-normalized client-layer credit.
Communication logs Uplink, downlink, total bits, selected bits, budget bits, model bits, and budget-violation flags are recorded each round.

The source package contains only the FedMARS architecture, data/layer utilities, and method-critical unit tests. Experiment notebooks, smoke-result CSVs, and ablation-study scripts are intentionally excluded from this submission code package.

Metadata

Release files for fedmars 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fedmars 0.5.1
File Size Uploaded Provenance Actions
fedmars-0.5.1.tar.gz 16.5 kB Without provenance Details for fedmars-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fedmars 0.5.1
File Interpreter ABI Platform Actions
fedmars-0.5.1-py3-none-any.whl Python 3 none any Details for fedmars-0.5.1-py3-none-any.whl

Total release size: 35.2 kB

Release files / fedmars-0.5.1.tar.gz

Download URL fedmars-0.5.1.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
27579fe014151a28ac819a26d1da3a249acf0dbea61cb11bfee8d75d93f46d18
BLAKE2b-256 checksum
How to use checksums
4a4d65e8cb47f8b55f33c7da0bac00981a565a3608dbe98422eaf32557187ba7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / fedmars-0.5.1-py3-none-any.whl

Download URL fedmars-0.5.1-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65a63999819d0203ff5e316a52cd8addcb2e89404c46f1707c73f8f060375d1c
BLAKE2b-256 checksum
How to use checksums
096992fbb980ecf354e46487357c6a785c11571da00677080030b0292883e5ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for fedmars 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page