Rulebook: bringing co-routines to reinforcement learning environments

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Fioravanti, Massimo, Pasini, Samuele, Agosta, Giovanni
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908340285603840
author Fioravanti, Massimo
Pasini, Samuele
Agosta, Giovanni
author_facet Fioravanti, Massimo
Pasini, Samuele
Agosta, Giovanni
contents Reinforcement learning (RL) algorithms, due to their reliance on external systems to learn from, require digital environments (e.g., simulators) with very simple interfaces, which in turn constrain significantly the implementation of such environments. In particular, these environments are implemented either as separate processes or as state machines, leading to synchronization and communication overheads in the first case, and to unstructured programming in the second. We propose a new domain-specific, co-routine-based, compiled language, called Rulebook, designed to automatically generate the state machine required to interact with machine learning (ML) algorithms and similar applications, with no performance overhead. Rulebook allows users to express programs without needing to be aware of the specific interface required by the ML components. By decoupling the execution model of the program from the syntactical encoding of the program, and thus without the need for manual state management, Rulebook allows to create larger and more sophisticated environments at a lower development cost.
format Preprint
id arxiv_https___arxiv_org_abs_2504_19625
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Rulebook: bringing co-routines to reinforcement learning environments
Fioravanti, Massimo
Pasini, Samuele
Agosta, Giovanni
Programming Languages
Machine Learning
Reinforcement learning (RL) algorithms, due to their reliance on external systems to learn from, require digital environments (e.g., simulators) with very simple interfaces, which in turn constrain significantly the implementation of such environments. In particular, these environments are implemented either as separate processes or as state machines, leading to synchronization and communication overheads in the first case, and to unstructured programming in the second. We propose a new domain-specific, co-routine-based, compiled language, called Rulebook, designed to automatically generate the state machine required to interact with machine learning (ML) algorithms and similar applications, with no performance overhead. Rulebook allows users to express programs without needing to be aware of the specific interface required by the ML components. By decoupling the execution model of the program from the syntactical encoding of the program, and thus without the need for manual state management, Rulebook allows to create larger and more sophisticated environments at a lower development cost.
title Rulebook: bringing co-routines to reinforcement learning environments
topic Programming Languages
Machine Learning
url https://arxiv.org/abs/2504.19625