Skip to main content
Editax Logo

Editax

A framework for automated ACCEL-type editors for Unsupervised Environment Design

`

Overview

Editax is a framework for creating automated ACCEL (Evolving Curricula with Regret-Based Environment Design) editors for Unsupervised Environment Design. It automatically generates small probabilistic programs to modify POMDPs, removing the domain knowledge required to hand-design editors.

Key Features

  • 🔄 Automated Editor Generation: Creates and validates environment modifications automatically
  • 🎯 Minimal Perturbation: Ensures changes are meaningful yet minimal
  • 🤖 Consistency Sampling: Applies universal self-consistency to minimize differences across LLM invocations
  • 🔬 Framework Integration: Seamlessly integrates with minimax and jaxued for end-to-end training

Motivation

Implementing ACCEL requires significant domain knowledge for each UPOMDP. Editax streamlines this process by:

  • Automating Editor Creation: Generates ACCEL-based modifications automatically

Installation

Prerequisites

  • Python 3.12+
  • pip

Installing from PyPI

If you prefer not to clone the repository, you can install the main package from PyPI:

# Install the main package
pip install editax

# For full functionality, install the git dependency separately:
pip install git+https://github.com/DramaCow/jaxued.git@main

Development Installation

For development work (including dev dependencies such as jaxued), clone the repository and install using Poetry with dev extras:

git clone https://github.com/RobbenRibery/editax.git
cd editax
python -m venv .venv
source .venv/bin/activate
poetry install --with dev

Environment Setup

Configure your language model API keys:

export OPENAI_API_KEY="your-key-here"
# Or alternatively:
export ANTHROPIC_API_KEY="your-key-here"
export DEEPSEEK_API_KEY="your-key-here"

Quick Start

Generate environment editors (i.e. for kinetix):

python -m experiments.gen_editors_kinetix

This will:

  1. Load your target environment
  2. Generate editor functions
  3. Validate with a sampled environment and refine the modifications
  4. Output ready-to-use environment editors

Contributing

We welcome contributions! To get started:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Please read our Contributing Guidelines for more details.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

References

[1] Parker-Holder, J., et al. (2022). Evolving Curricula with Regret-Based Environment Design

[2] Matthews, M., et al. (2024). Kinetix: Investigating the Training of General Agents through Open-Ended Physics-Based Control Tasks

[3] Coward, S., et al. (2024). JaxUED: A simple and useable UED library in Jax

[4] Matthews, M., et al. (2024). Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning

[5] Jiang, M., et al. (2023). Minimax Regret Environment Design for Open-Ended Learning

[6] Chen, X., et al. (2023). Universal Self-Consistency for Large Language Model Generation

Citation

If you use this software in your research, please cite it as:

@software{editax2024,
  title = {Editax: A Framework for Automated ACCEL-type Editors},
  author = {
    Liu, Rundong and 
    Sudhakaran, Shyam and
    Beck, Jacob and
    Zhang, Richard and
    Anisimov, Maksim
  },
  year = {2024},
  url = {https://github.com/RobbenRibery/editax},
  email = {
    rundong.liu{\@}proton.me and
    shyamsnair{\@}protonmail.com and
    jakeabeck{\@}gmail.com and
    zrich107{\@}gmail.com and
    m.anisimov23{\@}imperial.ac.uk`
  }
}

Metadata

Release files for editax 0.2.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 editax 0.2.1
File Size Uploaded Provenance Actions
editax-0.2.1.tar.gz 25.9 kB Without provenance Details for editax-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 52.2 kB

Release files / editax-0.2.1.tar.gz

Download URL editax-0.2.1.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
20ddb0ec50555c17c57812d58ad4041107ee345c7b235c4e344f6955ab33e519
BLAKE2b-256 checksum
How to use checksums
7c195eeff1ecdc7b41c7805eb8c3151ef299864675903012efbb31822556f6e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.1 CPython/3.12.9 Darwin/23.6.0

Release files / editax-0.2.1-py3-none-any.whl

Download URL editax-0.2.1-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7e4afe89f9a430827a3c6f86bd5c7a5bcb854f3941e0db09e9f6dbcaa83530f
BLAKE2b-256 checksum
How to use checksums
51eca37ca07f2794271495beeb6b06047ff977c07fed3e75440818ff1315324b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.1 CPython/3.12.9 Darwin/23.6.0

Security for editax 0.2.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.

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