How deadserpent/hfl works
PP-HFM is research software for patient-level differential privacy in hierarchical federated multimodal learning, accompanied by a curated public research observatory. The principal workflow is to prepare patient-partitioned datasets, train and account for private federated models, then evaluate utility, privacy, and simulated system costs. The dashboard presents curated findings rather than reading research files at runtime. Several implementation links below are documented capabilities rather than inspected call paths; those are cited to the README, and unsampled details are not inferred.
Main entry points: run_pipeline.py Study pipeline · hfl_trainer.py HFL trainer · page.tsx Research website · content Curated content
Components 23
Data preparation
- Dataset registry
SIMULATORS/data/loaders/datasets.py - Corpus preprocessing
SIMULATORS/data/loaders/preprocess_eicu.py - Dataset loaders
SIMULATORS/data/loaders
Federated learning
- Multimodal model
SIMULATORS/model/architecture/hfl_mm_model.py - HFL trainer
SIMULATORS/model/training/hfl_trainer.py - Patient-level DP
SIMULATORS/model/privacy/patient_dp.py - DP-SGD engine
SIMULATORS/model/privacy/dp_engine.py - Update compression
SIMULATORS/model/utils/compression.py - Conformal prediction
SIMULATORS/model/utils/fedconform_hc.py
Evaluation
- Study pipeline
SIMULATORS/scripts/run_pipeline.py - Utility evaluation
SIMULATORS/scripts/joint_eval.py - Membership audit
SIMULATORS/scripts/membership_inference.py - Network simulation
SIMULATORS/ns3/hfl-scenarios/hfl_network_sim.py - Network integration
SIMULATORS/scripts/ns3_phase5_integration.py - Energy simulation
SIMULATORS/cloudsim-plus/hfl-simulation/src/main/java/hfl/HFLCloudSimulation.java - Inference benchmark
SIMULATORS/model/deploy/inference_bench.py
Research observatory
- Research website
hfl-dashboard/src/app/page.tsx - Research overview
hfl-dashboard/src/app/research/page.tsx - Experiment explorer
hfl-dashboard/src/app/experiments/page.tsx - Privacy explanation
hfl-dashboard/src/app/privacy/page.tsx - Reproduction guide
hfl-dashboard/src/app/reproducibility/page.tsx - Curated content
hfl-dashboard/src/content
Other components
- Researcher
Connections 23
- Researcher → Study pipeline: runs study
- Study pipeline → Dataset registry: resolves datasets
SIMULATORS/scripts/run_pipeline.py - Study pipeline → Network integration: plans topology
SIMULATORS/scripts/run_pipeline.py - Corpus preprocessing → Dataset loaders: prepares corpora
- Study pipeline → Corpus preprocessing: uses prepared data
- HFL trainer → Multimodal model: trains model
- HFL trainer → Patient-level DP: applies patient privacy
- HFL trainer → DP-SGD engine: uses DP-SGD
SIMULATORS/model/privacy/dp_engine.py - HFL trainer → Update compression: compresses updates
- HFL trainer → Conformal prediction: accounts conformal release
- Study pipeline → HFL trainer: runs training
- Study pipeline → Utility evaluation: evaluates utility
- Study pipeline → Membership audit: runs privacy audit
- Network integration → Network simulation: simulates network
- Study pipeline → Energy simulation: models energy
- Study pipeline → Inference benchmark: benchmarks latency
- Research website → Research overview: presents research
hfl-dashboard/src/app/research/page.tsx - Research website → Experiment explorer: presents experiments
hfl-dashboard/src/app/experiments/page.tsx - Research website → Privacy explanation: explains privacy
hfl-dashboard/src/app/privacy/page.tsx - Research website → Reproduction guide: documents protocol
hfl-dashboard/src/app/reproducibility/page.tsx - Research overview → Curated content: reads content
hfl-dashboard/src/app/research/page.tsx - Experiment explorer → Curated content: reads content
hfl-dashboard/src/app/experiments/page.tsx - Privacy explanation → Curated content: reads content
hfl-dashboard/src/app/privacy/page.tsx