Research · 2026
MARGoS
Summary
MARGoS (MARL on ARGoS) is a lightweight, configuration-driven platform for multi-agent reinforcement learning experiments in the ARGoS swarm robotics simulator. Without it, a single experiment is assembled by hand from scenario files, training code, parameters, seeds, paths and environment details, and small drifts can silently change what was run. MARGoS turns these inputs into artifacts that the platform manages, so runs are easier to reuse, reproduce and hand off.
The contribution is the platform and how it integrates these responsibilities, not a new learning algorithm or swarm behavior.
My part
I designed and implemented MARGoS, including the C++ plugins it drives inside ARGoS, ran the evaluation and wrote the paper as first author together with Mohammad D. Soorati and Javad Ghofrani.

Five commands
Users provide names instead of paths. MARGoS resolves paths, freezes the configuration, captures the environment, propagates seeds, logs metrics and packages each run for sharing.
margos run | Loads a config, seeds every RNG, launches the simulator and trains with live metrics. |
margos show | Lists configs, results, imported runs and bundles. |
margos compare | Checks a run against a reference run for strict reproducibility and handoff success. |
margos export | Packages a run into a single portable ZIP bundle. |
margos import | Unpacks a bundle and reports differences to the recorded environment. |
Architecture
A thin command-line interface drives four subsystems that share one artifact store. For training, the orchestrator starts a training script that runs PPO in Ray RLlib on PyTorch. ArgosToZoo, a separate project, connects RLlib to the C++ plugins inside ARGoS over ZeroMQ.
Command-line interface (Typer)
│
├─ Config system ──┐
├─ Orchestrator ───┤ shared store: results/
├─ Analysis ───────┤ frozen config · hashes · fingerprint
└─ Export/Import ──┘ metrics.jsonl · checkpoints
│
└─ run ▶ training script ▶ Ray RLlib (PPO)
▶ ArgosToZoo ── ZeroMQ ── ARGoS 3 (C++ plugins)Reproducibility
- Configuration hashing and frozen, immutable configurations for every run
- End-to-end seed propagation to every random number generator in a run
- Structured logging of metrics and an environment fingerprint per run
- Exportable experiment bundles for sharing, replay and verification between prepared environments
Evaluation
The paper evaluates the platform along five dimensions: architecture, efficiency, reproducibility, usability and collaboration. Efficiency, reproducibility and usability met their predefined targets. Collaboration was partially supported: handoffs between environments worked reliably, but two timing targets were missed. Reproducibility was evaluated on the same hardware only (macOS, CPU-only); reproduction across machines and labs remains open.
Cite
@inproceedings{backert2027margos,
author = {Backert, Tom Philipp and Soorati, Mohammad D. and Ghofrani, Javad},
editor = {Perrouin, Gilles and Berger, Thorsten and Papadopoulos, George A. and Schaefer, Ina and Fortz, Sophie},
title = {{MARGoS}: A Configuration-Driven Platform for Reproducible {MARL} Experiments in {ARGoS}},
booktitle = {Software and Systems Reuse, Product Lines, and Configuration -- VARIABILITY 2026 Satellite Events},
series = {Lecture Notes in Computer Science},
volume = {17104},
pages = {251--261},
publisher = {Springer Nature Switzerland},
address = {Cham},
year = {2027},
isbn = {978-3-032-40421-3},
doi = {10.1007/978-3-032-40421-3_24}
}The paper PDF linked above is the accepted manuscript. It has been accepted for publication after peer review but is not the Version of Record and does not reflect post-acceptance improvements or corrections. The Version of Record is available online at: https://doi.org/10.1007/978-3-032-40421-3_24. Use of this accepted version is subject to the publisher's Accepted Manuscript terms of use.