What Makes a Dialog Agent Useful?
ChatGPT-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.
Related posts
- Open-source LLMs as LangChain Agents
Hugging Face mediumAdeptOpen-source LLMs can now serve as reasoning engines for tool-using ReAct agents, with Mixtral-8x7B outperforming GPT-3.5 out of the box on a mixed benchmark drawn from HotpotQA, GSM8K and GAIA, graded by GPT-4-as-a-judge. The ReAct loop works by prompting for a Thought plus a JSON tool call or a Final Answer, then parsing the output, running the tool and appending the Observation to the prompt. Agents are built in LangChain with the new ChatHuggingFace wrapper. Llama2-70b and Zephyr-7b perform poorly. About 10% of Mixtral's GAIA failures come from malformed tool arguments, so fine-tuning for function calling is the recommended next step. Giving models a calculator lifts zero-shot GSM8K scores, though only 20 questions were tested.
- 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%.
- 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.
- Verifiable Social Reasoning for LLM Assistants
Google Research mediumAdeptA multi-agent simulation framework evaluates LLM assistants' social reasoning under 'user-mediated reality': a target agent with a hidden motive interacts with a simulated user, who then recounts events, possibly with bias, to the assistant, which must infer the motive. Because the motive is assigned by construction, it gives verifiable ground truth, scored by an LLM judge. Across 12 LLMs, models were markedly less accurate as assistants than as direct observers, often adopted the user's biased framing, needed more narrative detail than necessary, and anchored to earlier turns instead of using clarifying questions well. The framework, built on Google's Concordia library, and a dataset of over 20K examples are open-sourced, with simulations reusable across evaluated models.
- 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.