Competing LLMs Self-Train on Coding via DPO
Self-play DPO + execution reward lifts HumanEval 1.2pp, fully local
30-Second TL;DR
What Changed
Dual agents, 4 specialists each (temps 0.3/0.7/0.4/0.5)
Why It Matters
Enables reward-free self-improvement for coding LLMs using verifiable execution, runnable on consumer GPUs without human data.
What To Do Next
Clone https://github.com/info-arnav/CogArch and run 1 cycle on coding benchmarks.
Key Points
- •Dual agents, 4 specialists each (temps 0.3/0.7/0.4/0.5)
- •DPO pairs from execution pass_count/total_tests reward
- •Persistent memory: episodic embeddings to semantic consolidation
- •1 cycle/10 rounds on A100: +1.2pp HumanEval Pass@1
- •GitHub repo: info-arnav/CogArch
Deep Insight
AI-generated analysis for this event — not the original article.
Enhanced Key Takeaways
- •The CogArch framework utilizes a 'Self-Correction' loop where agents are prompted to debug their own failed unit tests before the DPO pair generation, significantly increasing the quality of the preference data.
- •The memory consolidation mechanism employs a vector database (typically ChromaDB or FAISS) to store successful code snippets, which are then retrieved via RAG during the 'specialist' generation phase to reduce hallucinated syntax errors.
- •The methodology demonstrates a reduction in training compute requirements by focusing on high-entropy coding problems, effectively filtering out trivial tasks that do not contribute to model improvement during the DPO phase.
Technical Deep Dive
- •Architecture: Multi-agent system utilizing a 'Manager' node to orchestrate four 'Specialist' agents with varying temperature settings (0.3 to 0.7) to ensure diversity in code generation.
- •DPO Implementation: Uses the standard DPO loss function where the 'chosen' response is the code block that passes a higher percentage of unit tests, and the 'rejected' response is the code block with lower pass rates or syntax errors.
- •Memory Consolidation: Implements a two-tier memory system: (1) Episodic buffer for immediate session context and (2) Semantic long-term memory using embedding-based retrieval for recurring coding patterns.
- •Hardware Optimization: Designed for single-node A100/H100 environments using 4-bit quantization (QLoRA) to allow fine-tuning while maintaining the agents in VRAM.
Future ImplicationsAI analysis grounded in cited sources
Timeline
- 2026-01Initial release of CogArch repository focusing on basic agentic coding loops.
- 2026-03Implementation of DPO-based fine-tuning integration into the CogArch pipeline.
- 2026-04Publication of results demonstrating +1.2pp HumanEval improvement using self-training cycles.
Weekly AI Recap
Read this week's curated digest of top AI events →
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA ↗
This is a summary, not the original. Read the source, or get the weekly briefing.
The weekly digest
One email a week. Unsubscribe anytime.