Skip to content

Releases

v2.0.0a1

v2.0.0a1 Pre-release
Pre-release

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 30 Oct 17:53

EvoX 2.0.0a1 — Rebuilt on the EvoX Compiler

Warning

Experimental pre-release — not a drop-in upgrade. EvoX 2.0 is a complete rewrite with a new API. The stable 1.x series remains recommended for production use.

To try the alpha release in a separate environment:

pip install --pre "evox==2.0.0a1"

Why rewrite EvoX (again)?

EvoX started with JAX and later moved to PyTorch. Both are excellent frameworks, but neither ultimately provided the flexibility and control we needed for evolutionary computation.

  • JAX inspired us with its functional programming model and composable transformations. However, its increasingly complex compiler stack, tight coupling with Google's own infrastructure, opaque debugging experience, and difficult extension paths made it challenging to understand, modify, and extend. Supporting new operations, kernels, graph transformations, or hardware backends are often impossible, and caching is not well supported either.
  • PyTorch offered better ergonomics and a rich ecosystem, but its architecture is fundamentally oriented toward deep learning rather than general-purpose tensor computation. Eager execution introduces significant overhead for evolutionary workloads, while torch.compile does not always resolve these performance issues. More importantly, its functional transformations (torch.vmap, torch.cond etc.) still have compatibility gaps, especially when combined with compilation.

For EvoX, graph transformations, efficient execution, and compiler extensibility are fundamental requirements, not optional features.

We wanted a smaller, more transparent foundation where tensor programs are explicit, inspectable, transformable, and executable across different backends.

So we built one.

Introducing the EvoX Compiler (evoxc)

EvoX Compiler is a lightweight, compiler-neutral tensor graph compiler and runtime, designed around explicit staging and composable graph transformations.

defn → trace → Graph → transform → lower → compile → load → run

Unlike traditional eager tensor frameworks, evoxc treats computational graphs as first-class objects. Programs can be inspected, transformed, serialized, and compiled independently of Python execution.

Key capabilities include:

  • Explicit, functional compilation stages: Tracing, graph transformations, lowering, compilation, and execution are separate, composable steps with accessible intermediate representations.
  • Hackable by design: Users have direct access to the compiler pipeline. Extend or replace graph transformations, introduce custom operations and kernels, configure underlying ML compilers, or integrate entirely new backends without modifying the framework's core.
  • Composable graph transformations: vectorize/vmap, grad, jvp, vjp, and batch_functions for combining populations of programs into a single graph.
  • Pluggable compiler backends: NumPy, IREE, TVM, and XLA through PJRT.
  • Minimal dependencies: NumPy is the only required runtime dependency; compiled backends are optional.
  • Compiler independence: StableHLO provides a common lowering boundary, while established compiler infrastructures handle hardware-specific optimization and code generation.

Instead of reinventing XLA, IREE, or TVM, evoxc provides the missing layer that makes them accessible through a unified, extensible tensor programming model.

What's new in EvoX 2.0?

A completely redesigned functional API

Algorithms and problems now follow a purely functional programming model:

  • Algorithms: init(config, key) and step(config, state, evaluate).
  • Problems: evaluate(config, state, candidates).
  • Immutable configurations and explicit tensor state.
  • Stateless random number generation with reproducible PRNG keys.
  • No dependency on PyTorch or JAX.

Unified compilation and execution

StdWorkflow traces an evolutionary step into an evoxc graph, compiles it through the selected backend, and executes the optimization loop.

import evox

workflow = evox.StdWorkflow(
    algorithm=...,
    problem=...,
    monitor=evox.EvalMonitor(...),
    backend="numpy",  # numpy | iree | tvm | xla
    device="cpu",
)

state = workflow.run(steps=500)

Switching execution backends no longer requires rewriting the algorithm.

Algorithms, problems, and utilities

The first alpha includes:

  • 32 algorithm classes, including PSO, DE variants, CMA-ES, NES/ES variants, NSGA-II/III, MOEA/D, RVEA, HypE, and more.
  • 15 evolutionary operators for selection, crossover, mutation, and sampling.
  • Benchmark problems: Basic numerical benchmarks, DTLZ, CEC2022, and virtual neuroevolution.
  • Metrics: GD, IGD, and hypervolume.
  • Visualization: Plotly-based visualization and .exv traces.
  • Hyperparameter optimization: Host-side HPO workflows.
  • Extensions: Automatic discovery through the evox_ext namespace package.

The release also incorporates fixes from the latest 1.x development, with 552 tests passing on the NumPy backend.

Installation

Requires Python 3.11+.

# Minimal installation (NumPy backend)
pip install --pre "evox==2.0.0a1"

# With IREE compiler support
pip install --pre "evox[iree]==2.0.0a1"

# With IREE and TVM
pip install --pre "evox[compilers]==2.0.0a1"

The default installation requires no heavyweight ML framework or compiler toolchain.

Current limitations

This is an early alpha release. Some important features are still under development:

  • Breaking changes: The 1.x API is not compatible with 2.0.
  • Missing integrations: Distributed workflows, Brax/MuJoCo, PyTorch neural-network integration, and Triton kernels have not yet been ported.
  • Backend maturity: The NumPy backend has the most comprehensive test coverage. Compiled backends and GPU execution remain experimental.
  • Compiler limitations: Some operators and control-flow patterns are not yet supported across all backends.
  • Host-side operations: Monitoring, visualization, metrics, and HPO currently execute outside compiled graphs.

We expect APIs and implementation details to evolve throughout the pre-release series.

What's next?

EvoX 2.0 establishes a new foundation for evolutionary computation. Our next priorities include expanding compiler and backend coverage, improving performance, restoring key integrations, and building exciting new features.

This release is also an opportunity to revisit the API and programming model before they stabilize.

We welcome bug reports, benchmarks, feature requests, and design feedback. If something doesn't work, or an API feels unnecessarily complicated, please open an issue.

Release v1.4.1

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 30 Oct 16:37

What's Changed

This is a minor release with bug fixes.

  • Fix CMA-ES rank-one covariance update by @bbopen in #251
  • Ignore points that do not dominate the reference point in hv by @raashish1601 in #254
  • Fix DE_binary_crossover sampling from a normal instead of uniform distribution by @Arthur031221 in #252
  • Fix PSO bound device transfer by @Arthur031221 in #253
  • Fix CMA-ES crashing in torch.cond and re-enable its test by @flyingdoubleG in #255
  • Fix the CMA-ES cumulation constant c_c by @flyingdoubleG in #256
  • Fix ASEBO once its gradient subspace activates by @flyingdoubleG in #257
  • Fix SHADE never adapting F and CR, and sample DE-variant initial populations within bounds by @flyingdoubleG in #258
  • Fix crashes in tournament selection (n_round=1), XNES/SeparableNES default pop_size and Guided ES subspaces by @flyingdoubleG in #259

New Contributors

Full Changelog: v1.4.0...v1.4.1

🔖 Release Note: v1.4.0

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 09 Sep 07:20

EvoX v1.4.0 is now available! This release is primarily a maintenance update focused on bug fixes, compatibility improvements, and general polish across the framework — including support for newer PyTorch versions, refinements to evolutionary-strategy variants and the Triton kernel infrastructure, cleaner algorithm import/export chains, documentation updates, and a stronger test suite.

If you’ve wondered what kept us busy over the past 10 months: we have been building EvoX Genesis, an AI agent system that can reliably navigate, reason over, modify and build massive codebases (100k+ LOC). Genesis is actively powering the next chapter of EvoX, enabling us to accelerate development at an unprecedented speed and scale. You can track our first major fruits of this workflow landing soon via our etl-refactor branch — stay tuned! 🚀

Full Changelog: v1.3.0...v1.4.0

v1.3.0

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 06 Nov 13:16

🔖 Release Note: v1.3.0

Feature

  • Workflow now accepts a list of opt_direction.

Fixes

  • Several fixes about indexing and other bugs by @sses7757 in #242
  • Fix win installer by @ZaberKo in #243
  • reconstruct cec2022, fix and add funcs of basic.py by @XU-Boqing in #240
  • use_state when there are multiple additional arguments

Full Changelog: v1.2.2...v1.3.0

v1.2.2 Release Note

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 03 Jun 05:19

🔖 Release Note: v1.2.2

This is a minor release focused solely on bug fixes:

  • Removed unused imports to improve code cleanliness.
  • Fixed unintended behavior in certain Differential Evolution (DE) algorithms where step was being called within init_step.
  • Various fixes in the documentation.

Full Changelog: [v1.2.1...v1.2.2](v1.2.1...v1.2.2)

Release note v1.2.1

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 13 May 05:07

🔖 Release Note: v1.2.1

This is a minor release focused on improving stability and addressing bugs, with a few quality-of-life enhancements.

✨ New Features

  • New Benchmark Functions: Added single-objective numerical functions: Ellipsoid and Griewank.

🐛 Bug Fixes

  • Fixed an issue where StdWorkflow failed to work with algorithms that inherit from other algorithms.
  • Corrected a bug in latin_hypercube_sampling_standard function.
  • Resolved an issue with non_dominate failing under torch.compile.
  • Corrected a problem where PSO did not use the default device properly in certain cases.

🧹 Refactoring & Maintenance

  • Re-exported commonly used utilities to the top level for convenience, for example:
    • evox.compile instead of evox.core.compile
    • evox.vmap instead of evox.core.vmap.
  • Removed deprecated or redundant code.

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 23 Apr 08:07

🎉 EvoX v1.2.0 Release! 🎉

We’re excited to announce the release of EvoX v1.2.0, packed with new features, improvements, and important bug fixes! This update enhances the framework's flexibility and performance across key modules.

🔧 Highlights:

  • 🚀 Added final_step() and updated hpo_wrapper and std_workflow for smoother execution workflows.
  • 🤖 Introduced the Mujoco Playground – a new environment for reinforcement learning experiments.
  • 📘 Released a brand-new tutorial to help users get up to speed quickly.
  • 🔌 Added new EvoX extension functions, enabling better integration with sister projects like EvoMO.
  • 🐞 Various bug fixes and documentation updates for better stability and clarity.

Related pull requests

🔗 Full Changelog: v1.1.2 → v1.2.0

v1.1.2

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 31 Mar 08:01

What's Changed

  • Update README with usage notes and parameter adjustments by @JiangTao97 in #225
  • Some vmap and HPO-related features and bug fixes by @sses7757 in #226
  • Some documentation fixes @JiangTao97 in #227 and #228
  • Some fixes about benchmark code by @sses7757 in #229
  • Initial distributed workflow support has landed!

Full Changelog: v1.1.1...v1.1.2

v1.1.1

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 16 Mar 06:44

What's Changed

This minor release primarily includes bug fixes and improvements:

  • Fixed an issue where torch.compile did not properly capture workflow.step.
  • Fixed an issue where use_state leads to a graph break.
  • Fixed some incorrect model buffer usage.
  • Fixed an issue where monitor.plot was not functioning as intended in certain situation.
  • Introduced a new wrapper, evox.compile, to work around certain limitations with torch.compile and torch.vmap.
  • Resolved various BatchedTensor-related issues:
    • Fixed a bug where vmapping a workflow with EvalMonitor could cause BatchedTensor leaks.
    • Fixed an issue preventing HPOProblem from working with BraxProblem.
  • Enhanced the implementations of RVEA and CSO for better performance and reliability.
  • Enhanced the implementation of BraxProblem.
  • Various small fixes and improvements.

Related Pull requests

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@BillHuang2001 BillHuang2001 released this 01 Mar 11:29

Major Changes

Dynamo Integration 🚀

We have transitioned to torch.compile as our compiler backend, replacing TorchScript. This update simplifies the compilation workflow, making it more user-friendly while maintaining high performance and efficiency.

Why Move to torch.compile?

Previously, EvoX used tracing to obtain the computation graph—JAX tracing in pre-1.0.0 and TorchScript in v1.0.0. However, tracing modes were difficult for users, lacked compatibility with many Python functions (especially non-PyTorch functions), and required manual intervention to handle dynamic workflow. While tracing was fast and produced a full computation graph, its limitations made it less flexible and hard to use.

With torch.compile, EvoX can now provide a smoother and robust compilation process:

✅ Ease of Use – No need for explicit scripting or tracing; simply use torch.compile(workflow.step), and your code gets optimized automatically.
✅ Better Performance – The torch.compile backend is actively maintained and optimized, delivering better performance than previous tracing methods, and works on more hardware backends.
✅ Full Python Compatibility – Works directly with Python code and non-PyTorch functions, eliminating compatibility issues.
✅ Future-Proof – Aligns with PyTorch’s long-term strategy, making torch.compile the recommended approach for graph capture.

This transition enhances usability while ensuring compatibility with PyTorch's evolving ecosystem.

What's Changed

Full Changelog: v1.0.1...v1.1.0