Loading video...

Video Failed to Load

Go Home

🚀 How should LLMs sample on hard reasoning problems during post-training and inference where direct rollouts rarely produce a correct answer? Best-of-N (e.g., GRPO) and tree search share two limitations: 🔻 Verification signals are sparse 🔻 Candidates stay within the model's own distribution We introduce BES: Bidirectional Evolutionary Search...

249,508 views • 5 months ago •via X (Twitter)

30 Comments

Guowei Xu's profile picture
Guowei Xu5 months ago

1/8 Why current LLM search hits a wall on hard problems: 1️⃣ Sparse signals: binary success/failure only at the end 2️⃣ Confined exploration: autoregressive expansion keeps every candidate inside the model's own distribution (we prove this is a narrow "entropy shell" later). Hard answers tend to live outside this shell, and exploration is needed to reach them.

Guowei Xu's profile picture
Guowei Xu5 months ago

2/8 🪄 Forward search in BES adds 4 evolution operators that recombine trajectories: 1⃣Combination: concat suffixes of two paths sharing a prefix 2⃣Deletion: drop an interior step 3⃣Translocation: transplant a step from another path 4⃣Crossover: splice prefix of A with tail of B

Guowei Xu's profile picture
Guowei Xu5 months ago

3/8 🎯 Backward search recursively decomposes the task into a tree of checkable sub-goals. A forward candidate is scored by how many sub-goals it covers. The signal stays informative even when no candidate has solved the entire problem yet. Sparse end-of-trajectory feedback now becomes dense intermediate guidance.

Guowei Xu's profile picture
Guowei Xu5 months ago

4/8 🔄 Putting it together: forward and backward feed each other. Backward scores each candidate by sub-goal coverage, favoring complementary pairs (two candidates that together cover more of the goal tree). Forward search then uses evolution operators to recombine those complementary pairs into a candidate that covers more subgoals. Both come with theoretical motivations: evolution escapes the entropy shell, and backward signals exponentially reduce the candidates needed.

Guowei Xu's profile picture
Guowei Xu5 months ago

5/8 Post-training results. On hard reasoning tasks where existing post-training algorithms fail to make clear progress, BES achieves steady, consistent improvements.

Guowei Xu's profile picture
Guowei Xu5 months ago

6/8 Inference results. BES achieves better results than existing open-source frameworks on open problem solving tasks.

Guowei Xu's profile picture
Guowei Xu5 months ago

7/8 BES is fully open-source! 📄 Paper: 💻 Code: 🤗 Trained models: 🌐 Project page:

Guowei Xu's profile picture
Guowei Xu5 months ago

8/8 Huge thanks to my amazing coauthors @ZhentingQi @Huangyu58589918 @Weirui_Ye, Himabindu Lakkaraju, @ShamKakade6, I've learned so much from you. Special thanks to my advisor @du_yilun for his guidance throughout this work. If you have any questions or feedback, my DMs are always open.

Qizheng Zhang's profile picture
Qizheng Zhang5 months ago

Nice video! How did you make that?

Guowei Xu's profile picture
Guowei Xu5 months ago

Thanks for your words! I actually made it using Claude Code. First I used the website design tool to make a website, and then ask it to convert the website into a video. It still needs some sort of human intervention, but overall it’s very convenient.

Reza Kakooee's profile picture
Reza Kakooee5 months ago

This paper of mine might be interesting for you: Bidirectional Planning in Human Decision Making.

Guowei Xu's profile picture
Guowei Xu5 months ago

Sounds interesting and related! I will include this a related work in the next version.

Siqiao Huang's profile picture
Siqiao Huang5 months ago

Congrats on the new work! So productive.

Guowei Xu's profile picture
Guowei Xu5 months ago

Thanks Siqiao! Reading your work has always been enjoyable. 😊

EB1A Experts's profile picture
EB1A Experts5 months ago

Interesting approach, great work!

Johnson Wu's profile picture
Johnson Wu5 months ago

牛大福

Guowei Xu's profile picture
Guowei Xu5 months ago

It’s my fortune to learn from Johnson!

nikkyvu's profile picture
nikkyvu5 months ago

great, i like this video

Sam Z Liu's profile picture
Sam Z Liu5 months ago

This makes a lot of sense - backward induction is how we solve a lot of problems as well! Have you compared a fully backward induction technique vs a fully forward search technique to see which one contributes more? (I think the ablation studies never do fully backward if I"m reading it correctly)

Guowei Xu's profile picture
Guowei Xu5 months ago

Hi, thanks for the comment! Only using backward induction to solve a problem would be interesting. However, in our current setting, the backward search only generates subgoals instead of providing a solution, so we cannot do "a fully backward induction".

Sam Z Liu's profile picture
Sam Z Liu5 months ago

Ah gotcha - yeah I think it would be interesting to try! I suspect I might work better than forward search because there's likely a "funnel" that converges on the right solution so that search space stays smaller for longer

Raj Patel's profile picture
Raj Patel4 months ago

bidirectional evolution neat

Alexander Boesgaard's profile picture
Alexander Boesgaard5 months ago

does the backward composition hold up when subgoals arent cleanly verifiable?

Guowei Xu's profile picture
Guowei Xu5 months ago

Hi, thanks for your attention! Yeah, the backward composition can still hold up. However, if subgoals are cleanly verifiable, it can significantly speed up the search, so I would recommend trying to make the goals verifiable.

Alexander Boesgaard's profile picture
Alexander Boesgaard5 months ago

thanks for the thoughtful reply, we're chipping away at a complementary angle - will make sure to cite

Latent Node's profile picture
Latent Node5 months ago

does it use open evolve?

Guowei Xu's profile picture
Guowei Xu5 months ago

Thanks for your attention! We build this on top of ShinkaEvolve

Ward Plunet's profile picture
Ward Plunet5 months ago

@threadreaderapp please #unroll

铜匠AI・十点睡觉's profile picture
铜匠AI・十点睡觉5 months ago

为你们感到骄傲!

oreaper's profile picture
oreaper5 months ago

Interesting and great work! I have a little question: In the backward search stage, how to ensure the final task can be decomposed into several clear sub-goals? For example, give a problem "Here are trajectories of (y| x1, x2...), give a explicit expression to fit y using X".

Related Videos

New Course: Post-training of LLMs Learn to post-train and customize an LLM in this short course, taught by Banghua Zhu, Assistant Professor at the University of Washington University of Washington, and co-founder of @NexusflowX. Training an LLM to follow instructions or answer questions has two key stages: pre-training and post-training. In pre-training, it learns to predict the next word or token from large amounts of unlabeled text. In post-training, it learns useful behaviors such as following instructions, tool use, and reasoning. Post-training transforms a general-purpose token predictor—trained on trillions of unlabeled text tokens—into an assistant that follows instructions and performs specific tasks. Because it is much cheaper than pre-training, it is practical for many more teams to incorporate post-training methods into their workflows than pre-training. In this course, you’ll learn three common post-training methods—Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), and Online Reinforcement Learning (RL)—and how to use each one effectively. With SFT, you train the model on pairs of input and ideal output responses. With DPO, you provide both a preferred (chosen) and a less preferred (rejected) response and train the model to favor the preferred output. With RL, the model generates an output, receives a reward score based on human or automated feedback, and updates the model to improve performance. You’ll learn the basic concepts, common use cases, and principles for curating high-quality data for effective training. Through hands-on labs, you’ll download a pre-trained model from Hugging Face and post-train it using SFT, DPO, and RL to see how each technique shapes model behavior. In detail, you’ll: - Understand what post-training is, when to use it, and how it differs from pre-training. - Build an SFT pipeline to turn a base model into an instruct model. - Explore how DPO reshapes behavior by minimizing contrastive loss—penalizing poor responses and reinforcing preferred ones. - Implement a DPO pipeline to change the identity of a chat assistant. - Learn online RL methods such as Proximal Policy Optimization (PPO) and Group Relative Policy Optimization (GRPO), and how to design reward functions. - Train a model with GRPO to improve its math capabilities using a verifiable reward. Post-training is one of the most rapidly developing areas of LLM training. Whether you’re building a high-accuracy context-specific assistant, fine-tuning a model's tone, or improving task-specific accuracy, this course will give you experience with the most important techniques shaping how LLMs are post-trained today. Please sign up here:

Andrew Ng

126,309 views • 1 year ago