arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30968

CogEvol: Towards Efficient and Reliable Learning Environment Generation

Shangqing Tu, Daniel Zhang-Li, Yucheng Wang, Shiyu Gan, Yanpeng Wang, Huiqiang Rong, Mofei Chen, Shen Yang, Yini Chen, Yinuo Duan, Haoxuan Li, Binglin Liu, Ye He, Danqi Zheng, Zhanxin Hao, Yuxuan Wu, Mengting Tao, Yuqiu Liu, Jifan Yu, Juanzi Li, Bin Xu, Lei Hou, Huiqin Liu, Yu Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We present CogEvol, a family of models trained specifically for Learning Environment Generation: turning a course brief into a finished learning artifact—structured-JSON slides or self-contained interactive HTML pages—in a single pass. Across 220k production requests, CogEvol completes a slide in a median of 17 seconds and an interactive page in 59, replacing minutes-long multi-turn agent scaffolding. Reliability is enforced rather than hoped for: a production-grounded data pipeline turns real failures into 53,687 verified SFT samples, and a hybrid rule-plus-VLM reward drives GRPO-based RL, hardened after we caught and fixed a reward-hacking episode that produced visually convincing but unplayable games. CogEvol-27B scores 83.7 on slide quality and 63.7 on a 500-case interactive-HTML benchmark with 26.9× fewer parameters than flagship coding models, and, in collaboration with the OpenMAIC team, serves their live production traffic. CogEvol-4B is released openly under the Apache 2.0 license at https://github.com/CogEvol1/CogEvol-4B; external flagships are measured on the same suites under the identical harness. Scaffold editing cuts interactive-page generation cost by a further ~76%, and the full stack runs on domestic Ascend accelerators at application-level parity with A800 GPUs, lowering the unit cost of AI-native education at scale.

Figure

Figure

Figure 1: Results of CogEvol-27B, CogEvol-4B, Claude Opus 4.8, GPT-5.4, Qwen3.8-Max, GLM-5.3, Gemini 3.6 Flash, and DeepSeek-V4-Pro on our two suites: (a) quality on HTML-500 (blue) and slide-std (red), each on a 0–100 scale; (b) mean API cost per artifact at public list prices, computed from token usage measured on the identical benchmark runs.

INTERACTIVE HTML PAGES

Figure

Figure 2: CogEvol output at a glance, from live production traffic on OpenMAIC: eight artifacts generated in a single pass by CogEvol-27B from natural-language course briefs—no agent scaffolding, no human editing. Top: interactive HTML pages—an organelle-functions cell simulator, an AC-impedance circuit simulator (running), a spelling-rule lab, and a beam-reaction calculator. Bottom: slides from generated decks—the nitrogen cycle, deriving the binomial square, support reactions in static equilibrium, and the model-view-controller architecture. Chinese-language examples from the same traffic are in Figure 8 (Appendix G).

1 Introduction

CogEvol, short for Cognitive Co-Evolution, is a family of models built for education. The name states our long-term goal: humans and machines improving together—models serve learners at scale, and what deployment teaches us feeds back into better models. Education is where we start, not where we stop. Within it, we work on the learning environment: the materials that surround a lesson. These materials are shifting from static text to interactive artifacts—slides described in structured JSON, and runnable HTML courseware such as simulations, diagrams, games, and code playgrounds that students can directly manipulate (Figure 2). Classroom studies have documented the learning benefits of such interactive materials for decades [18; 8; 12]. Three gaps keep general-purpose models out of production for this workload: speed, reliability, and cost.

Efficiency. General-purpose coding agents can in principle produce such artifacts today: a strong LLM paired with a Claude-Code-style scaffold [26] will iterate its way to a passable slide or page over many turns of tool use. But the recipe is slow: when a change requires regenerating an entire file, existing systems routinely take 200–600 seconds per edit [7; 13], and in our own three-task measurement a direct-API editing loop on the same backbone model averaged 152 seconds per edit. Our stack, a purpose-trained model family plus the OpenMAIC harness, completes a full slide in a median of 17 seconds and a full interactive page in a median of 59 seconds, each in a single pass with no agent scaffolding. These are production numbers, not laboratory ones. Over a recent seven-day window of live traffic (August 2026), the production models behind these medians—same architecture and parameter count as CogEvol-27B, and therefore the same serving speed—completed 180k slide generations at a median (P95) of 17s (26s) and 40k interactive pages at 59s (107s).¹ Single-pass generation is not just a convenience: it is what makes interactive courseware usable inside a live class. Iteration stays fast as well: the MAIC-UI editing layer [23] in our harness reduces per-edit latency by 23× (151.7s to 6.3s) compared with direct API calls under the same backbone model.

Reliability. Raw coding ability does not transfer to this task. Even strong coding models—GLM-5 [31], DeepSeek [6]—fail in ways that surface only at deployment. For slides, models that have never seen the renderer's conventions emit scene graphs that violate its element schema: under a strict validator, none of the external flagships we test renders a single slide, and even with the production pipeline's normalization the best of them lands sixteen points below our SFT-only baseline

¹Latency statistics from the production serving database (successful calls only, seven-day window); slide pages emit structured JSON (~1.8k output tokens on average), interactive pages emit complete HTML documents (~9k).

(Appendix F). For interactive pages, one-pass outputs often look impressive—rich visuals, densely stacked features—but break on first contact: dead buttons, unresponsive canvases, simulations that violate basic real-world rules, and content that drifts beyond educational scope. Appearance is easy to fake; dependable interactivity is not. This observation drives our central design principle: interactivity must be measured, not judged (Section 4).

Cost and equity. Finally, cost decides who gets to use the technology. Simulation-based courseware has always been resource-intensive to author and deploy [20]; AI generation promised to remove that barrier, but the strongest coding models are enormous—GLM-5 weighs 744B parameters [31]—and their serving economics price out exactly the users who need educational tooling most. CogEvol is designed around the opposite goal: CogEvol-27B, at 27.7B parameters, is 26.9× smaller than GLM-5 in total parameters,² yet delivers production-grade quality on this task, served as a low-cost API for AI+education developers; CogEvol-4B is open-weight and small enough for on-device deployment. We further adapt the full stack—quantization, operators, scheduling—to domestic accelerators (Section 7). Low-cost APIs plus deployable open weights lower the unit cost of learning-environment generation enough to reach remote and under-resourced users: teachers in mountain regions, low-income families investing in their children's education, and olympiad training in less-developed areas. Efficient, reliable, and cheap generation is what turns AI education from a premium product into public infrastructure.

The task. Education research has long spoken of the learning environment—the physical, cultural, and digital setting within which teaching and learning occur [11]. As instruction moves onto screens, that environment is increasingly made of software, and generative AI is moving into education with it [25; 1]. We formalize its automatic construction as Learning Environment Generation (LEG; Section 2): given a course brief, produce in a single pass either a presentation slide as a render-valid structured scene graph, or a self-contained executable interactive HTML page spanning six educational sub-types. Outputs are judged on fidelity, layout, interactivity, and correctness. One request in, one finished learning artifact out; both modalities served by one model behind one interface.

Results. On efficiency, CogEvol generates a slide in a median of 17 seconds and a complete interactive page in 59 (production medians over 220k requests), where agent-based pipelines spend minutes per artifact; scaffold editing then cuts interactive-page regeneration cost by a further ~76%, and the MAIC-UI harness accelerates iterative edits by 23×. On reliability, CogEvol-27B reaches 63.7 on HTML-500 and 83.7 on slide-std—the best slide score in the CogEvol lineage, 29 points ahead of the best zero-shot flagship slide score. Handed the full 34 KB design specification, every flagship stays at or below 79.5 except Qwen3.8-Max, which exactly ties 83.7—and then collapses on HTML at 35.3, with 204 of 500 pages dead (Appendix F). CogEvol-27B posts zero interactive hard failures on all 500 pages, where Claude Opus 4.8—which edges the HTML overall at 67.2—fails 19 outright. The hardened reward also eliminated the failure mode that motivated it: an earlier reward-hacked checkpoint scores 18.8 on games under the probe, the released model 57.6; human testers saw unusable pages halve (25% → 10%) and entry failures vanish (2/24 → 0/30) after the fix. On cost, Figure 1 puts the two together: at public list prices, CogEvol-27B delivers near-flagship quality at 15–22× lower per-artifact API cost than Claude Opus 4.8 or GPT-5.4, and CogEvol-4B at ~100× lower. The full serving stack also runs on domestic Ascend accelerators at application-level parity with A800 GPUs.

Methods. The recipe is post-training only: three stages on top of public base models. Mix SFT teaches the two output contracts on 53,687 verified conversations distilled from production—teacher-generated scene graphs accepted only after render-and-judge verification, and regenerated pages for the requests the incumbent model failed, accepted only after re-execution (Section 3). Slide RL then teaches composition under a hybrid rule-plus-VLM reward, and interactive-HTML RL teaches dependable interactivity under a probe-hardened reward—the stage where we caught, and fixed, our reward-hacking episode (Section 4). Both released models are then made cheap to serve: scaffold editing reuses the existing page as scaffolding instead of regenerating from scratch (Section 6), and a deployment-time adaptation layer ports the hybrid architecture to domestic accelerators (Section 7).

In summary, this report makes the following contributions:

²744B total vs. 27.7B; per-token compute is likewise lower (40B active for GLM-5 vs. dense 27.7B).

  • Task and benchmarks. We formalize Learning Environment Generation and build evaluation suites for both modalities: slide-std/slide-short (120+120 topics) and a 500-case interactive-HTML benchmark with executable interaction probes.
  • Efficiency. Purpose-trained single-turn generation (median 17s per slide, 59s per interactive page across 220k production requests) replaces minutes-long multi-turn agent scaffolding, scaffold editing cuts interactive-page generation cost by a further ~76% in tokens and latency, and the MAIC-UI harness layer accelerates iterative edits by 23× (Section 6).
  • Reliability. A hybrid rule-engine + VLM reward system, hardened after a reward-hacking episode on interactive games that we found and fixed, and a one-big-round multi-task recipe that trains both modalities jointly with zero forgetting tax (Section 4).
  • Cost and open release. CogEvol-27B matches production needs at 26.9× fewer parameters than coding flagships; CogEvol-4B is released openly; the full stack runs on domestic Ascend accelerators with application-level parity (Sections 7).

Open release and evaluation. We release CogEvol-4B under the Apache 2.0 license: full-precision weights at https://huggingface.co/CogEvol/CogEvol-4B, a Q4_K_M GGUF build for on-device use at https://huggingface.co/CogEvol/CogEvol-4B-Q4_K_M-GGUF, and the deployment guide with the MAIC-UI editing harness at https://github.com/CogEvol/CogEvol-4B. CogEvol-27B is served through a low-cost production API on our MaaS platform; external testing is granted upon request via contact@cogevol.com. On the application side, OpenMAIC is, to date, the only open-source application whose harness matches the full capability profile of CogEvol. The CogEvol and OpenMAIC teams are separate groups that work closely together: testing, on-device adaptation, and production deployment were all joint efforts. CogEvol is not built exclusively for OpenMAIC—we welcome other AI+Education teams to open their harnesses to us, and we will adapt CogEvol to them as we did for OpenMAIC. The evaluation suites and judge prompts are maintained internally to keep the scoring fixed and the topics uncontaminated; external models are still evaluated on both suites by API submission.

References (30)