TL;DR
Meta researchers have developed MLE Agents, autonomous LLM-based systems capable of proposing, implementing, and evaluating architectural changes for massive, industry-scale recommendation engines. By running over 1,000 experiments, the agents discovered novel model improvements that resulted in a +0.23% increase in search volume during a large-scale A/B test—demonstrating that autonomous agents can move the needle on systems processing billions of daily requests.
What Problem Does This Paper Address?
Improving large-scale ranking and recommendation models is a "slow and tedious" grind. Human engineers spend weeks forming hypotheses, writing code, and waiting for hours-long training jobs to finish, only to find that offline improvements often fail to translate into online user impact.
While LLM agents have shown promise on small-scale coding benchmarks, it remained unproven whether they could handle the "messiness" of industrial ML:
- Long Feedback Loops: Training takes hours, not seconds.
- Noisy Signals: Offline metrics (like AUPRC) often don't correlate with real-world user behavior.
- Saturation: Easy wins are found quickly, but finding the next 0.1% improvement requires deep architectural exploration.
Methods
The authors built a "human-on-the-loop" system where an LLM (Claude Opus 4.8) acts as the primary engineer, while humans provide high-level strategic direction.
The system evolved through two generations:
- MLE Agents 1.0: A serial explorer that evaluated one candidate at a time. It taught the team that unstructured history leads to "prompt bloat" and that optimizing for the wrong metric leads to useless "wins."
- MLE Agents 2.0: A parallelized system that runs seven candidates plus a "variance probe" (to measure training noise) simultaneously.
Key technical innovations include:
- Calibrated Objective: A weighted composite of Normalized Entropy (NE) specifically tuned to match online engagement.
- Context Engineering: Instead of feeding the agent the entire history, they used a "What Didn’t Work" blocklist to prevent the agent from repeating failed experiments and strict output contracts to reduce malformed code.
- Architectural Sourcing: The agent was given access to summaries of external literature (e.g., papers on MaskNet, FiLM, and DHEN) to suggest genuinely new ideas rather than just tuning hyperparameters.
Datasets
The agents were tested on Meta's production search ranking surfaces:
- Nullstate: Ranks query suggestions shown before a user starts typing.
- Typeahead: Ranks suggestions as the user types.
- Scale: The models are trained on hundreds of millions of examples and serve over a billion requests per day.
Key Insights and Ideas
- The "Harness" is King: The researchers found that the design of the loop (the objective, the parallelism, the context) was more critical than the specific LLM used. A fixed model became significantly more productive simply by improving the "harness" around it.
- Beyond Human Intuition: Surprisingly, the agent discovered architectural changes the human team had never tried, such as specific gating mechanisms and complex MLP structures drawn from broader literature.
- The Saturation Curve: Improvements follow a "staircase" pattern. Early wins are frequent, but the curve flattens as the agent exhausts the obvious design space.
- Failure Modes as Data: By logging "What Didn't Work," the system prevents "exploration collapse," where an agent might otherwise spiral into repeatedly trying to fix a failing optimizer setting.
Key Results
- Efficiency: In one campaign, the agent ran 1,097 completed experiments in 31 days, accepting 325 changes.
- Win Rate: MLE Agents 2.0 achieved a 29.6% acceptance rate, nearly double the 15.6% rate of the 1.0 version.
- Real-World Impact: The best agent-discovered model was deployed in a massive A/B test, yielding a +0.23% ± 0.15% increase in search session volume.
- Diversity of Wins: As shown in Figure 3, the agent found wins across various categories, including loss weighting, DHEN capacity, and transformer architectures.
Limitations and Future Work
- Exploration Collapse: Without human steering, agents can still get stuck in local minima (e.g., trying 8 variations of an optimizer that will never work).
- Unreliable Self-Correction: The agent occasionally prunes its own good decisions or fails to revert bad ones consistently.
- The Offline-Online Gap: While the calibrated objective helped, it isn't perfect. Some offline "winners" still fail to move the needle when they hit real users.
- Future Direction: The authors suggest moving toward multi-agent teams and expanding the hypothesis space to include entirely new model surfaces. They argue that the role of the human engineer is shifting from "hypothesis executor" to "research director."
Summary updated