Agentic Machine Learning Modeling at Instacart
Instacart MLEs run human-in-the-loop agent research loops in which agents propose hypotheses, implement them and evaluate them against fixed metrics and guardrails, using the in-house Griffin ML platform. On a mature gradient-boosted delivery-time model, agents cut held-out MAE by 3–5%. They did it by switching to LightGBM, tuning an MLP with a lower Huber threshold, and stacking smaller gains such as recency weighting, seed averaging and leaf capacity. On LLM-based catalog attribute extraction, a 25-round loop over model choice, reasoning effort and prompt edits raised recall by 8.1 points while keeping precision above its floor. The main lessons are to widen the hypothesis space beyond hyperparameter tuning, give agents error-analysis tooling, ground hypotheses in prior literature, and have humans check progress regularly so agents don't fixate on local optima.
Related posts
- Sidekick's continual learning loop
Shopify Engineering hardMasterShopify's Sidekick GraphQL agent improves daily through a continual learning loop that turns production failures into model weight updates, beating frontier-model quality while cutting estimated serving costs from about $27M to $1M per year (96%). The loop starts with a rubric validated by inter-annotator agreement (Cohen's kappa) and an LLM judge calibrated with DSPy using GEPA and ACE, then backtested against past A/B tests and degradation tests. An autoresearch agent tunes prompts, tools and harness code against the judge. Hard negatives from production are then repaired by a panel of frontier critics via hinting and replay, and the repaired trajectories train a smaller model through chain-of-thought SFT followed by GRPO with the judge as reward. Gist-token compression shrinks the ~6,000-token system prompt to ~1,500 tokens, cutting end-to-end latency about 38% and GPU needs about 14%.
- What Makes a Dialog Agent Useful?
Hugging Face easyNoviceChatGPT-style dialog agents share a common recipe on top of a pretrained LM: instruction fine-tuning (IFT) on human-written and model-bootstrapped instruction datasets, supervised fine-tuning (SFT) on human annotations for helpfulness and harmlessness, RLHF via a learned preference model, and chain-of-thought fine-tuning. A comparison table covers LaMDA, BlenderBot 3, Sparrow, InstructGPT and Anthropic's Assistant across size, pre-training corpus, fine-tuning data, RLHF use, safety rules and evaluation criteria. Key takeaways: IFT needs only a few hundred examples relative to pre-training data, and CoT fine-tuning improves reasoning while making models less evasive on sensitive prompts, sometimes beating RLHF on harmlessness. Open questions include whether higher-quality SFT data can match RLHF and how much pre-training is still necessary.
- Agile Deliberation: How AI helps humans define the gray areas
Google Research easyNoviceAgile Deliberation is a human-in-the-loop framework for building image classifiers for subjective categories like "healthy food" or pay-to-play clickbait. Users first scope the concept into in-scope sub-concepts and explicit exclusions, then VLMs mine borderline images that challenge the current definition, and the user's feedback drives an automatic prompt optimization loop. In 18 live 1.5-hour user sessions, it produced more consistent labels and classifiers that beat zero-shot, automated-decomposition and manual-deliberation baselines. Participants also reported lower effort, stress and mental demand than with manual prompt engineering. The code is open-sourced.
- Open Models have crossed a threshold
LangChain mediumAdeptOpen-weight models GLM-5 and MiniMax M2.7 now score close to closed frontier models on core agent tasks in LangChain's Deep Agents eval suite. GLM-5 reached 0.64 correctness, MiniMax M2.7 0.57, and Claude Opus 4.6 0.68, across 138 tests covering file ops, tool use, retrieval, memory and summarization. The open models are far cheaper and faster: about $12/day versus $250/day for 10M output tokens, and 0.65s versus 2.56s latency. The eval metrics are defined (correctness, solve rate, step and tool-call ratios), and switching Deep Agents to an open model is a one-line change, with the harness adapting context management and model identity to each model.
- Building production-ready agentic systems: Lessons from Shopify Sidekick
Shopify Engineering mediumAdeptShopify's Sidekick merchant assistant outgrew a monolithic system prompt once its tool count passed ~50, so the team moved to just-in-time instructions returned alongside tool results, which kept prompt caches intact and improved maintainability and metrics. For evaluation they replaced curated golden datasets with ground truth sets sampled from real conversations, labeled by multiple experts and validated with Cohen's Kappa, Kendall Tau and Pearson correlation. LLM judges were calibrated from a Kappa of 0.02 to 0.61 against a human baseline of 0.69, and an LLM merchant simulator replays conversations against candidate systems before release. GRPO fine-tuning with gated procedural and semantic rewards exposed reward hacking such as opting out of tasks and misusing customer tags, and fixing the validators and judges raised syntax accuracy from ~93% to ~99%.