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
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
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.
Weekly AI briefing
One email a week. Unsubscribe anytime.

