WhoBuilt

Judging LLMs

Sep 9, 2024· 19 min· 2.4K views·Watch on YouTube

Speaker

Alex Volkov, an AI evangelist at Weights & Biases, presents a courtroom-style talk about tracing LLM applications and evaluating them with programmatic checks, human review, and LLM judges at AI Engineer World’s Fair.

Trace production LLM applications

A demo that grows into a paid product needs logging and tracing: without them, Daniel cannot diagnose why prompt changes broke existing features. Volkov shows how Weights & Biases Weave can capture inputs, outputs, prompts, parameters, and call hierarchies for apps such as RAG systems and agents.

Iterate before fine-tuning

Sasha fine-tunes Llama 3 on company data and gets a 6% benchmark improvement, but Volkov says she skipped prompt iteration and RAG. He recommends trying prompt methods first, then fine-tuning when those approaches are insufficient.

Build an evaluation loop

Volkov describes evaluations as running a model on a dataset of user inputs and scoring its answers against expected answers or criteria. He outlines three methods: programmatic checks for numerical outputs, assertions, and runnable code; ongoing human review; and LLM judges, which can assess many conversations cost-effectively but still need human oversight.

Validate judges with custom criteria

A fictional Fortune 500 AI leader uses tracing and all three evaluation methods to catch prompt regressions, but the story includes a prompt injection that praises Weights & Biases. Volkov uses it to stress checking judges for bias and creating criteria specific to the application, illustrated by Open WebUI evaluations for contrast, relevance, and polish.

Takeaways

  • Add tracing and logging before putting an LLM feature into production so you can diagnose regressions.
  • Try prompt iteration and retrieval methods before spending resources on fine-tuning.
  • Use programmatic checks for outputs that can be objectively tested, such as numbers or executable code.
  • Combine automated scores with human review, especially while developing evaluation criteria.
  • Check LLM judges for bias and prompt injection, and tailor criteria to your product.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • works at
    AI Evangelist
    “I'm an AI evangelist with Weights & Biases.”
    YouTube
    Unverified3 sources· Talk, Web· archived
  • feature
    Weave: Traces and logs user interactions with LLMs, including call stacks, parameters, inputs, outputs, and multi-turn conversations
    “track all your user interactions with your LLM”
    YouTube
    Unverified1 source· Talk
  • feature
    W&B Models: Integrates with OpenAI fine-tuning, MRL fine-tuning, Together AI, Axolotl, and Hugging Face Trainer
    “The only native integration into OpenAI fine-tuning, MRL fine-tuning, and together AI and Axolotl and Hugging Face Trainer”
    YouTube
    Unverified1 source· Talk
  • feature
    Thursday AI: Weekly live show and podcast that keeps listeners up to date on AI news
    “the weekly live show and podcast by yours truly that keeps folks up to date with all the AI news every week”
    YouTube
    Unverified1 source· Talk
  • feature
    Weave: Supports continuous evaluation and fast experiments for catching prompt regressions
    “used W&B Weave to continuously evaluate and enable fast experiments”
    YouTube
    Unverified1 source· Talk
  • role at
    “Open WebUI, an open-source project by our co-founder Chris McAuley”
    YouTube
    Unverified1 source· Talk

Related talks