Launch HN: EdotEnv (YC S26) – Quant Trading RL Envs to Teach LLMs Research

edotenv.com

16 points by Mzzzzz 2 hours ago

We are Rui and Michael and we’re building EdotEnv (https://edotenv.com): self-improving RL environments from Quant Trading workflows.

With all the benchmaxxing around, evals saturate and become meaningless for model comparison. Useful benchmarks should increase in difficulty as models advance. Back in our Quant jobs, Michael and I saw that the market has exactly this property: markets became more efficient as people profited from trading inefficiencies, making new profitable strategies harder to find and old ones decay over time.

This makes markets an ideal, continuously evolving benchmark for LLM training. The hard part is to turn professional quant workflows into reliable training envs, as this is a very niche expertise.

In our environments, we give LLMs a quant trading workflow and evaluate their performance on out-of-sample data: build predictive features/ models, design a portfolio, backtest strategies, adapt continuously to market regimes. Each step is a task with different self-built tools. For example, a predictive feature building task gives the agent cleaned market data of time period [0,T] to research ideas, a backtesting tool to test created features at time t on [0, t], an execution tool to trade strategies with the new features on [t+1, T] and a final evaluation. Our reward isolates the agent's feature building skills and yet benefits from market properties.

From running SOTA models in our environments, we see that i) they seem to struggle with iterating deeply on research ideas, preferring broad shallow searches; ii) higher reasoning does not seem to increase performance and iii) agents do not understand trading, e.g. when losing money they stop trading instead of trading smarter. Check out our blogs for more details! https://edotenv.com/?tab=blog

Quant workflows are essentially applied ML research, long-horizon planning and continual learning. Through our envs, we teach these transferable research skills, rather than task specific answers. Our environments are closer to a realistic research workflow: we use real-world data instead of synthetic ones; our envs naturally contain noise and real trade-offs; our rewards are verifiable and immediate, with no need for an additional LLM judge or human expert.

We open sourced a sample task repository: https://github.com/MMcollab-dotcom/feature-engineering. We plan to sell continuously improving envs to AI labs/researchers/enterprises training their own agents, who are interested in ML modelling capabilities, continual learning, long horizon planning or Quant Research in general.

We'd love feedback from anyone trying out their own agents in our envs, for either eval or post training. And of course, we are always happy to discuss the future of trading with LLMs (and no, it should not be asking the LLM to read tea leaves and give you the stock to buy tomorrow). Looking forward to your comments!

cromwellian 31 minutes ago

I'm skeptical frontier LLMs can actually do well (e.g. alpha 5%+) without fine-tuning, especially on historical market data. Presumably you support fine-tuned models?

ak_111 2 hours ago

if the data is not synthetic, how do you ensure that the LLM hasn't learnt about this data for example from training on the Financial Times.

  • Mzzzzz 2 hours ago

    We do a 2 step anonymisation: 1. Mask all symbols, timestamps etc. So the agents cannot infer the assets/time periods. 2. Mathematically transform numerical values and returns. E.g. the market return targets are not the raw market returns, but neutralised and manipulated. So even the agents have certain bullish/bearish biases, it cannot make use of it, as we use the transformed values.

    In addition, we did not observe such behaviour in our traces. An example: https://hub.harborframework.com/jobs/af0299f9-a3bb-44ea-8ced...

    • ak_111 an hour ago

      ah i thought so, interesting. I think the challenge is to do 2 while still keeping it realistic, which actually gets very close to synthetic data generation.