Langfuse: Domain Expertise Crucial for AI Self-Improvement

Langfuse's Annabelle Schäfer explains why domain expertise is crucial for AI self-improvement, advocating for high-signal target functions and expert-driven data.

9 min read
Presentation slide showing 'Stop burning tokens: Self-improvement needs domain expertise first' with Langfuse logo.
AI Engineer

Visual TL;DR. AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops. Domain Expertise supported by Langfuse Platform. High-Signal Feedback needs Expert-Driven Data. Expert-Driven Data contributes to Successful AI Loops.

  1. AI Self-Improvement: industry buzz about 'loops' and 'auto-optimization' for AI agents
  2. Ambiguous Targets: relying solely on prompt engineering leads to poorly defined AI goals
  3. Domain Expertise: Annabelle Schäfer advocates for deep understanding of specific AI operating domains
  4. High-Signal Feedback: meticulously defining goals and ensuring clear, quantifiable feedback mechanisms
  5. Langfuse Platform: open-source observability and evaluation platform for AI systems
  6. Expert-Driven Data: crucial for translating high-signal feedback to diverse AI applications
  7. Successful AI Loops: achieving robust, self-improving AI systems through clear objectives
Visual TL;DR
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops hindered by requires enables leads to AI Self-Improvement Ambiguous Targets Domain Expertise High-Signal Feedback Successful AI Loops From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops hindered by requires enables leads to AISelf-Improvement Ambiguous Targets Domain Expertise High-SignalFeedback Successful AILoops From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops hindered by requires enables leads to AI Self-Improvement industry buzz about 'loops' and'auto-optimization' for AI agents Ambiguous Targets relying solely on prompt engineering leadsto poorly defined AI goals Domain Expertise Annabelle Schäfer advocates for deepunderstanding of specific AI operatingdomains High-Signal Feedback meticulously defining goals and ensuringclear, quantifiable feedback mechanisms Successful AI Loops achieving robust, self-improving AIsystems through clear objectives From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops hindered by requires enables leads to AISelf-Improvement industry buzz about'loops' and'auto-optimization'… Ambiguous Targets relying solely onprompt engineeringleads to poorly… Domain Expertise Annabelle Schäferadvocates for deepunderstanding of… High-SignalFeedback meticulouslydefining goals andensuring clear,… Successful AILoops achieving robust,self-improving AIsystems through… From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops. Domain Expertise supported by Langfuse Platform. High-Signal Feedback needs Expert-Driven Data. Expert-Driven Data contributes to Successful AI Loops hindered by requires enables leads to supported by needs contributes to AI Self-Improvement industry buzz about 'loops' and'auto-optimization' for AI agents Ambiguous Targets relying solely on prompt engineering leadsto poorly defined AI goals Domain Expertise Annabelle Schäfer advocates for deepunderstanding of specific AI operatingdomains High-Signal Feedback meticulously defining goals and ensuringclear, quantifiable feedback mechanisms Langfuse Platform open-source observability and evaluationplatform for AI systems Expert-Driven Data crucial for translating high-signalfeedback to diverse AI applications Successful AI Loops achieving robust, self-improving AIsystems through clear objectives From startuphub.ai · The publishers behind this format
Visual TL;DR, startuphub.ai AI Self-Improvement hindered by Ambiguous Targets. Ambiguous Targets requires Domain Expertise. Domain Expertise enables High-Signal Feedback. High-Signal Feedback leads to Successful AI Loops. Domain Expertise supported by Langfuse Platform. High-Signal Feedback needs Expert-Driven Data. Expert-Driven Data contributes to Successful AI Loops hindered by requires enables leads to supported by needs contributes to AISelf-Improvement industry buzz about'loops' and'auto-optimization'… Ambiguous Targets relying solely onprompt engineeringleads to poorly… Domain Expertise Annabelle Schäferadvocates for deepunderstanding of… High-SignalFeedback meticulouslydefining goals andensuring clear,… Langfuse Platform open-sourceobservability andevaluation platform… Expert-DrivenData crucial fortranslatinghigh-signal… Successful AILoops achieving robust,self-improving AIsystems through… From startuphub.ai · The publishers behind this format

In the rapidly evolving AI landscape, the drive towards self-improving systems is paramount. However, achieving this requires more than just sophisticated algorithms; it demands a deep understanding of the specific domain in which the AI operates. Annabelle Schäfer, Growth Engineer at Langfuse, a leading open-source observability and evaluation platform for AI systems, recently highlighted this critical point in a presentation titled "Stop Burning Tokens: Why self-improvement needs domain expertise first." Schäfer emphasized that while the industry buzz is all about "loops" and "auto-optimization," the success of these systems hinges on meticulously defining their goals and ensuring high-signal feedback mechanisms.

Langfuse: Domain Expertise Crucial for AI Self-Improvement - AI Engineer
Langfuse: Domain Expertise Crucial for AI Self-Improvement — from AI Engineer

The Challenge of Ambiguous Targets

Schäfer began by referencing prominent figures in the AI space, such as Boris Journy and Peter Steinberger, who advocate for designing "loops" rather than relying solely on prompt engineering for AI agents. She noted that the recent surge in interest around auto-research and auto-improvement topics, while promising, often stems from a developer-centric perspective.

A key challenge, Schäfer explained, lies in defining clear target functions, especially for AI applications in specialized domains like healthcare or legal compliance. Unlike coding, where a clear binary outcome like "does it compile" serves as a straightforward target, many AI applications deal with far more nuanced and subjective goals. She illustrated this with a diagram showing a winding path from a "start" point to an "optimal destination," often obscured by challenges like storms and rough terrain. This visual metaphor underscores that the initial targets given to AI agents are inherently incomplete, and discovering the true optimal path requires iterative refinement and a deep understanding of the problem space.

Langfuse's Approach to Improvement Loops

Langfuse, Schäfer explained, is building the infrastructure to facilitate these improvement loops, not just for humans but also for AI agents themselves. Their platform supports a workflow that includes tracing, monitoring, building datasets, experimenting, and evaluating AI outputs. The core idea is to move from "know what's going on" to "find what's interesting/wrong," then to "capture what you want to work," "test hypothesis," and finally "check if it worked." This iterative process, when done correctly, allows teams to continuously upgrade and improve their applications, shipping with confidence.

The Power of Clear, Quantifiable Feedback

Schäfer detailed an experiment conducted by Langfuse to identify the clearest possible target function for an AI agent and to learn from optimizing it. They settled on a single-label classification task, which offers a definitive "yes/no" outcome. For instance, categorizing an item with a true label and a set of available labels allows for a direct comparison: "Is the true label equal to the predicted label?" This provides a clear signal for accuracy calculation.

The experiment involved classifying papers from arXiv. The setup included a dataset split into 200 items for fitting, 100 for validation, and 300 for testing to prevent overfitting. The agent was a simple prompt-based classifier using GPT-5-4-nano, chosen for its cost-effectiveness. The optimization process utilized Claude Opus 4.8, which proposed prompt updates based on the GPT-5-4 prompting guide and a task markdown file describing the loop.

The results were encouraging. The baseline accuracy started at 68%, and after several iterations, it reached 83%, eventually plateauing around 80%. Notably, the first iteration alone yielded a 10% increase in accuracy. The system learned to add general classification approaches, refine decision-making between similar classes, and incorporate examples of frequently confused labels. This demonstrated that even a simple model, when guided by a clear target function and a structured improvement loop, can achieve significant performance gains.

Translating High-Signal Feedback to Diverse Applications

Schäfer then addressed the challenge of translating this "right/wrong" high-signal feedback to other, less deterministic AI applications. She argued that while metrics like correctness, helpfulness, or hallucination are common, they often represent "low signal" feedback, especially when based on scales (e.g., 0 to 1, 1 to 5). For these metrics to be effective for auto-improvement, each point on the scale needs to be meticulously defined with specific criteria, which is often not the case.

Instead, Schäfer advocated for developing "high signal" target functions that translate quality criteria into clear yes/no answers. Examples include:

  • "Is the answer based on the knowledge base?" (Yes/No)
  • "Is the brand voice correctly used?" (Yes/No)
  • "Did we ensure our brand name was written correctly?" (Yes/No)
  • "Were any known failure modes triggered?" (Categorize out of 5)

She stressed that great target functions require sufficient data volume and high-signal evaluators, often developed through collaboration with domain experts. These experts can provide concrete examples, identify nuanced failure modes, and define what "good" truly means in a specific context.

The Path Forward: Expertise, Data, and Generalization

Schäfer outlined a three-step approach to building effective self-improvement systems:

  1. Work with your experts: Use them to create examples, analyze sample runs, identify failure modes, and define what "good" means.
  2. Review production data as a human: It's impossible to capture the full scope initially. Scale your dataset with production traces and behaviors to identify typical failure modes.
  3. Design a system that generalizes: Incorporate validation sets, provide clear instructions for generalization, and include escape hatches to prevent token burning when the system hits a wall.

Ultimately, Schäfer concluded, the goal is to create systems where humans and AI agents collaborate on continuous improvement, rather than simply burning tokens on inefficient processes. By focusing on domain expertise and high-signal feedback, developers can build more reliable and performant AI applications.

© 2026 StartupHub.ai. All rights reserved. Do not enter, scrape, copy, reproduce, or republish this article in whole or in part. Use as input to AI training, fine-tuning, retrieval-augmented generation, or any machine-learning system is prohibited without written license. Substantially-similar derivative works will be pursued to the fullest extent of applicable copyright, database, and computer-misuse laws. See our terms.