Generative Adversarial Loops
cs.LG, cs.AI
Submitted: 2026-10-08
Updated: 2026-10-08
Code: https://github.com/karpathy/autoresearch
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: AI research progress can be viewed as the interaction between two processes: benchmark creation and method discovery.
Abstract
AI research progress can be viewed as the interaction between two processes: benchmark creation and method discovery. Historically, both were driven by human intelligence. However, recent advances in AI have accelerated automated method discovery, while automated benchmark creation has received comparatively less attention. To enable self-advancing systems, we propose Generative Adversarial Loop (GAL), a generator-discriminator framework alternating between two agentic searches: (1) a discriminator that generates adversarial data to expose weaknesses in current systems, and (2) a generator that discovers algorithms to overcome them. We apply this framework to approximation algorithms for efficient inference. Unlike existing auto research systems, which primarily focus on algorithm discovery, GAL introduces a discriminator agent that automates goalpost setting by continually searching for weaknesses in the current algorithm. We demonstrate adversarial data generation across four tasks: KV compression, sparse video generation, sparse attention, and context extension, where the discriminator identifies weaknesses in state of the art techniques. We further show that GAL enables autonomous improvement, with newly discovered algorithms improving not only on adversarially generated data, but also on established benchmarks. Specifically, GAL improves CompactorPress on KV compression with Qwen3-4B at 4x, raising performance on the discriminator dataset from 0.35 to 0.97, while also outperforming RULER-HARD (+0.77 pts). For context extension, GAL boosts Dual Chunk Attention from 0.20 to 0.90 on the discriminator dataset, while yielding gains on standard benchmarks(ScienceFiction (+6 pts) and PG19 32K (-0.33 PPL)). GAL thus provides a path toward autonomous goalpost setting and algorithmic improvement, where AI systems continually discover their own weaknesses and develop methods to overcome them.
Sources
- Training-Free Long-Context Scaling of Large Language Models
- Compactor: Calibrated Query-Agnostic KV Cache Compression with Approximate Leverage Scores
- Barbarians at the Gate: How AI is Upending Systems Research
- Training Verifiers to Solve Math Word Problems
- UltraFeedback: Boosting Language Models with Scaled AI Feedback
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Measuring Massive Multitask Language Understanding
- Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Eviction
- Can Long-Context Language Models Subsume Retrieval, RAG, SQL, and More?
- LooGLE: Can Long-Context Language Models Understand Long Contexts?
- AlphaEvolve: A coding agent for scientific and algorithmic discovery
- BenchEvolver: Frontier Task Synthesis via Solution-Centric Evolution
- Sparse VideoGen: Accelerating Video Diffusion Transformers with Spatial-Temporal Sparsity
- PQCache: Product Quantization-based KVCache for Long Context LLM Inference
- VBench-2.0: Advancing Video Generation Benchmark Suite for Intrinsic Faithfulness
- Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loops
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks