Agile Deliberation: How AI helps humans define the gray areas
Agile 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.
Related posts
- Agentic Machine Learning Modeling at Instacart
Instacart Tech mediumAdeptInstacart 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.
- Opinion Classification with Kili and HuggingFace AutoTrain
Hugging Face mediumAdeptKili's annotation platform and Hugging Face AutoTrain combine into an active-learning pipeline that classifies about 40,000 Google Play reviews of the Medium app into Subscription, Content, Interface and User Experience, then applies sentiment analysis to the classified reviews. The walkthrough covers creating a Kili labeling project through the web UI and the Python API, uploading data in batches of at most 100, and flagging changed samples between dataset versions for re-review. It then exports the labels to CSV and trains a model with AutoTrain and a second one without it.
- Few-shot learning in practice: GPT-Neo and the 🤗 Accelerated Inference API
Hugging Face mediumAdeptFew-shot learning lets a large language model perform a new NLP task from a handful of examples supplied in the prompt (task description, examples, and a prompt to complete), avoiding the labeled data needed for fine-tuning. GPT-Neo 2.7B, about 60x smaller than GPT-3, generalizes poorly zero-shot but works well with 3-4 examples. Generation parameters such as end sequence, max new tokens and temperature strongly affect whether a task succeeds, and a Python snippet shows how to call the model through the Hugging Face Accelerated Inference API. Few-shot predictions also inherit pretraining biases, as when a sentiment prompt labels "I'm a disabled happy person" negative. The recommended safeguards are transparency, opt-out, user feedback and override, and human review of automated decisions.
- Can foundation models label data like humans?
Hugging Face hardMasterHuman preference labels from Scale AI and GPT-4 pairwise ratings on a 327-prompt blind test set produce the same Elo ordering of four open instruction-tuned models (Vicuna-13B, Koala-13B, OpenAssistant-12B, Dolly-12B), but the margins between models differ. GPT-4 evaluation shows clear positional bias on a 1–8 Likert scale. When GPT-4 also rates human-written demonstrations, it ranks them below most models, which suggests it favors verbose, LLM-style outputs. Treat GPT-4-based "preferred to ChatGPT" claims with caution, and be wary of training on and evaluating with another LLM, since this can amount to unintentional doping.
- Promptim: an experimental library for prompt optimization
LangChain easyNovicePromptim is an open-source, experimental library that automates prompt engineering: given an initial prompt, a LangSmith dataset and custom evaluators, it runs an optimization loop where a metaprompt proposes edits based on scored train-set results, and keeps a new prompt only if it improves dev-split metrics, repeated N times. Optional human feedback via LangSmith annotation queues covers cases without good automated metrics. Unlike DSPy, which optimizes whole compound AI systems and includes fine-tuning and few-shot methods, Promptim focuses narrowly on rewriting a single prompt with a human kept in the loop.