whatisgithub

What is resd?

horizon-llm/resd — explained in plain English

Analysis updated 2026-05-18

15PythonAudience · researcherComplexity · 5/5Setup · hard

In one sentence

RESD is a Python research method for training AI language models to learn better from their own past mistakes using a reusable playbook of lessons and a teacher-student setup.

Mindmap

mindmap
  root((RESD))
    What it does
      Self-distillation training
      Learns from mistakes
    Tech stack
      Python
      veRL
      SDPO
    Use cases
      Research reproduction
      Baseline comparison
    Audience
      ML researchers
    Setup
      Conda or Docker
      GPU required
      W&B API key

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the paper's training runs on the included program synthesis, physics, or financial NER benchmarks.

USE CASE 2

Compare RESD against the SDPO and GRPO baselines it builds on for a related research project.

USE CASE 3

Study the playbook and reflection code as a reference implementation for self-improving training loops.

USE CASE 4

Adapt the context-updating approach to a different reinforcement learning training pipeline.

What is it built with?

PythonPyTorchDockerConda

How does it compare?

horizon-llm/resd13127905/deep-learning-based-air-gesture-text-recognition-6xvl/paralives-plugins-index
Stars151515
LanguagePythonPythonPython
Setup difficultyhardmoderateeasy
Complexity5/53/52/5
Audienceresearcherdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires GPU infrastructure, a Conda or Docker environment, and a Weights and Biases API key to run training.

The README does not clearly state a license for the code.

So what is it?

RESD, short for Reflection Enhanced Self Distillation, is a Python research project from a group called horizon-llm that implements a method for training AI language models to learn more effectively from their own mistakes. It builds on top of two existing training frameworks, called veRL and SDPO, and accompanies a research paper describing the approach. The core idea is that during training, the system keeps two forms of memory alongside the model itself. One is a playbook of reusable lessons distilled from past failed attempts, and the other is an optional buffer that stores examples of successful attempts when they happen. After each training step, the system updates this memory by removing outdated or low value entries and adding new lessons generated by reflecting on what went wrong. A teacher version of the model, kept in sync with the student model through a smoothing process, then uses this enriched context to guide the student's next round of learning, rather than only supplying a plain right or wrong signal. The project is evaluated on four benchmark tasks covering different problem types, including writing small programs to match patterns, simulating simple physics scenarios, and tagging named entities in financial documents, comparing RESD's results against the SDPO and GRPO training methods it builds on. Getting the code running requires either building a Conda environment from a provided configuration file or pulling a prebuilt Docker image, along with a Weights and Biases account and API key for tracking training runs. This is aimed at machine learning researchers already familiar with reinforcement learning style training pipelines and GPU based infrastructure rather than casual users or beginners, since running any of the included examples requires meaningful compute resources and machine learning expertise. The README does not clearly state a license for the code.

Copy-paste prompts

Prompt 1
Explain how RESD's playbook and solution buffer differ from standard reinforcement learning feedback.
Prompt 2
Walk me through setting up the Conda environment and Weights and Biases key to run RESD.
Prompt 3
Compare the RESD, SDPO, and GRPO training scripts included in this repo.
Prompt 4
Summarize the four benchmark tasks RESD is evaluated on and what each measures.

Frequently asked questions

What is resd?

RESD is a Python research method for training AI language models to learn better from their own past mistakes using a reusable playbook of lessons and a teacher-student setup.

What language is resd written in?

Mainly Python. The stack also includes Python, PyTorch, Docker.

What license does resd use?

The README does not clearly state a license for the code.

How hard is resd to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is resd for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.