ZICQ
中 Log in / Sign up
Newsroom Agentic #ERNIE Evolve #Automated AI R&D #AI Agents #Code Optimization #GPU Kernels

Baidu Unveils ERNIE Evolve: Nested Loops for Automated AI R&D

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:Baidu's ERNIE team has introduced ERNIE Evolve, an automated research system for real-world AI development. Given a code repository, an optimization objective, and evaluation criteria, it uses an outer Director loop to select research directions and parallel candidate trees, while an inner Selector-Executor loop generates and tests code changes. Independent evaluators and a separate reviewer determine whether a candidate is retained. Baidu reports state-of-the-art public results on NanoChat Aut


What Baidu Actually Released

Baidu's ERNIE team has introduced ERNIE Evolve, an automated research system for real-world AI development. Given a code repository, an explicit optimization objective, and fixed evaluation criteria, it can select research questions, modify code, execute experiments in isolated environments, and retain only candidates that pass independent evaluation and review. It is not a new foundation model; it is an R&D infrastructure layer for optimizing AI algorithms, training pipelines, and GPU kernels.

Baidu frames ERNIE Evolve within recursive self-improvement: an automated research system improves the code used for AI R&D, and the resulting evidence informs subsequent research. That framing requires a boundary. The current system modifies training algorithms, inference implementations, and kernels rather than rewriting the weights of the underlying ERNIE model. It therefore creates a recursive development loop, but does not yet demonstrate a closed loop in which an AI model autonomously improves its own intelligence.

A Two-Level Architecture for Direction Search and Code Evolution

The system separates a high-level research loop from an inner code-evolution loop. Multiple research lanes run in parallel, and each lane maintains a tree of candidate versions instead of forcing one agent to edit code along a single linear trajectory.

| Component | Primary responsibility | Engineering value | | --- | --- | --- | | Director | Selects the next research direction, starting version, and research lane | Separates strategic exploration from implementation | | Selector | Chooses a candidate from the lane's version tree and specifies the next hypothesis | Preserves provenance and enables branching, rollback, and reuse | | Executor | Modifies code and runs an experiment in an isolated environment | Constrains generation, builds, and execution | | Evaluator | Runs a fixed external program to measure performance and correctness | Makes reward harder to manipulate than an editable in-repository metric | | Reviewer | Checks diffs, results, intended direction, and possible evaluator exploitation | Rejects off-target changes and reward hacks | | Experience Bank | Stores candidates, code changes, failures, and experimental results | Supplies evidence for later hypotheses and direction selection | | Knowledge Base | Holds papers, open-source code, and domain knowledge | Gives research proposals external technical context |

Each candidate can carry its code diff, experiment configuration, and evaluation record. Conceptually, a candidate is retained only when its metric improves beyond a configured noise threshold and the reviewer approves it: metric(candidate) - metric(parent) > ε plus a passing review. The version tree allows several hypotheses to branch from a successful change and preserves rollback points. The cost is more GPU time, evaluator calls, artifact storage, and failed experiments.

An external evaluator is an important defense, but not an absolute one. An agent can infer weaknesses from repeated feedback even if it cannot read the evaluator directly. A reviewer may also miss a sophisticated exploit. Production deployments still need network isolation, least-privilege permissions, secret isolation, and immutable evaluation artifacts.

Public Benchmarks: Two Leads, One Remaining Gap

Baidu first evaluated ERNIE Evolve on NanoChat AutoResearch, NanoGPT Speedrun, and SOL-ExecBench, covering training algorithms, training acceleration, and GPU-kernel optimization. The reported comparison with the best public results available at the time was:

| Task and metric | Best public result | ERNIE Evolve | Assessment | | --- | ---: | ---: | --- | | NanoChat AutoResearch, Validation BPB ↓ | 0.8878 | 0.8763 | About 1.3% lower; ahead of the best public result | | NanoGPT Speedrun Track 1, time to target loss ↓ | 39.9 seconds | 38.9 seconds | About 2.5% faster; ahead of the best public result | | NanoGPT Speedrun Track 3, steps to target loss ↓ | 2,690 | 2,590 | About 3.7% fewer steps; ahead of the best public result | | SOL-ExecBench, Mean SOL ↑ | 0.827 | 0.819 | Lower by 0.008; did not beat the best public result |

Baidu says the system improved all three tasks over their respective baselines, but the table directly supports a narrower conclusion: ERNIE Evolve beat the best public result on NanoChat and NanoGPT, not on SOL-ExecBench. SOL-ExecBench used Evaluation Stack v1.1 and was compared with Hyra-1.0, the available system with reported results for these tasks. Hyra-2.0 had not reported comparable results, so the comparison remains constrained by public-data availability.

On NanoChat AutoResearch, the system discovered a hybrid architectural change. ERNIE Evolve added two prediction branches alongside the neural network: one uses N-gram statistics from the full training corpus, while the other retrieves training documents matching the current context and predicts from their continuations. A gate adjusts the mixture according to each branch's performance at earlier token positions. The design combines parametric prediction with non-parametric memory and retrieval, potentially reducing validation loss under a fixed training budget.

A fair comparison must include the additional cost. N-gram statistics require corpus-level counting, retrieval needs an index and query latency, and the gate adds training state. If evaluation data enters the corpus or retrieval index, leakage can invalidate the result. Unless indexing, precomputation, retrieval, and evaluation budgets are matched, comparing only final BPB does not establish the net benefit of the added structure.

Applying It to ERNIE-5.5-Flash Inference

Baidu subsequently applied ERNIE Evolve to inference optimization for the in-development ERNIE-5.5-Flash. The material organizes the work around low-latency inference on Kunlunxin P800, higher throughput for deterministic inference, and further increases in decoding speed. Baidu says the resulting changes passed production-grade validation and produced substantial performance gains, but the disclosed material does not provide end-to-end latency, generated tokens per second, concurrency, power, peak memory, or model-quality regression data. It is therefore impossible to attribute the gain precisely to operator fusion, scheduling, caching, or lower-precision computation.

Deterministic inference presents a clear engineering trade-off. Fixed reduction orders and consistent data paths improve reproducibility, debugging, and strict service-level objectives, but may constrain dynamic batching, operator selection, and some latency optimizations. Evaluation must cover throughput at multiple concurrency levels, P95 and P99 latency, power, output consistency, and model quality rather than relying on single-request speed alone.

Search Cost, Reward Hacking, and System Boundaries

ERNIE Evolve automates the conventional hypothesis, edit, experiment, and validation cycle, but it does not remove compute costs or methodological bias.

  • Compute cost: If each version produces multiple branches, candidate count can grow as a product of branching factor and depth. Parallel lanes reduce wall-clock time, not total GPU consumption.
  • Objective drift: A fixed evaluator is more reliable than a natural-language reward, but the system can optimize a local metric. Lower validation loss does not guarantee more stable training, and a faster kernel benchmark does not automatically improve an end-to-end service.
  • Evaluator exploitation: The agent may alter data loading, filter anomalous samples, or exploit timing boundaries. External evaluation and review reduce this risk but do not replace differential testing, manual audits, and permission isolation.
  • Experience-bank bottleneck: More candidates do not automatically mean more useful knowledge. Without retrieval, deduplication, and failure summarization, low-value experiments can crowd the context and cause the Director to repeat similar proposals.
  • Statistical confidence: The current disclosure lacks multiple random seeds, confidence intervals, search budgets, and failure baselines, making it difficult to separate robust gains from optimization of evaluation noise.

Practical Deployment Guidance

  1. Start with a narrow task: Begin with one kernel, an operator fusion, or a single training step. Establish a strong human baseline and reproducible acceptance script before allowing broader algorithm changes.
  2. Keep the evaluator outside the repository: Host evaluation programs, reference answers, and sensitive performance sampling in independent infrastructure. Candidate code must neither write to nor inspect protected evaluation components.
  3. Harden the sandbox: Deny network access by default, restrict filesystem and process capabilities, isolate tokens and model weights, and impose strict GPU-time, memory, and disk budgets.
  4. Separate training and evaluation corpora: Establish data lineage and split checks so N-gram statistics or nearest-neighbor retrieval cannot access validation answers.
  5. Capture complete provenance: Record parent versions, diffs, prompts and model versions, seeds, compiler and driver versions, hardware, logs, token usage, and GPU cost. Failed experiments must remain reproducible too.
  6. Use multi-gate acceptance: Evaluate correctness and variance alongside the target metric, energy, peak memory, tail latency, rollback safety, model quality, shadow traffic, staged rollout, and rapid rollback.

Baidu states that the optimized results for the public tasks have been open-sourced on GitHub. That statement should not automatically be interpreted as evidence that the complete Director-Selector-Executor-Reviewer orchestration, prompts, evaluators, and Experience Bank are available. Teams evaluating adoption should inspect the repositories for a runnable system, evaluation protocols, and reproduction instructions.


Source: Baidu ERNIE Research (2026-11-29)

— END —

Tags: #ERNIE Evolve #Automated AI R&D #AI Agents #Code Optimization #GPU Kernels

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…