Presentation: From OTEL to SLMs: Distilling Frontier Model Behaviour from Production Telemetry
Our take

The shift from monolithic, cloud-bound AI models to smaller, more specialized local models is rapidly accelerating, and Ben O’Mahony’s work on distilling frontier model behavior using OpenTelemetry presents a compelling pathway for achieving this. His approach, detailed in the recent InfoQ presentation, sidesteps the traditional reliance on curated datasets and instead leverages production telemetry – specifically, user interaction data with AI-powered Language Server Protocols. This is a significant departure from the common practice of retraining models on synthetic data or painstakingly labeled examples. The beauty of this method lies in its inherent efficiency; by instrumenting AI agents with OpenTelemetry to track actions like accepting, dismissing, or regenerating code suggestions, a continuous feedback loop is created, allowing for the gradual refinement of smaller, more accessible SLMs. The implications are far-reaching, potentially democratizing access to sophisticated AI capabilities and reducing reliance on expensive cloud infrastructure. For those interested in a deeper dive into the challenges of AI observability, we recommend reading The State of AI Observability and understanding the broader trends discussed in Building Production-Ready AI which highlights the need for robust monitoring and governance frameworks.
The core innovation here isn't simply the use of OpenTelemetry, although that's a crucial enabler. It's the concept of treating user behavior as *implicit labels* within the telemetry data. Instead of explicitly labeling data as "good" or "bad," the system learns from the actions users take. A code suggestion that is frequently accepted reinforces the model's understanding of what constitutes a helpful suggestion; one that is repeatedly dismissed signals a need for adjustment. This approach aligns perfectly with the human-centered design principles we advocate for - prioritizing user outcomes and iteratively refining the AI based on real-world usage. Furthermore, it addresses a critical challenge in AI development: the difficulty of accurately capturing human preferences and intent through explicit labeling. Traditional methods often fall short in representing the nuances of human reasoning and decision-making. O'Mahony’s method, by focusing on observable actions, offers a more direct and potentially more accurate signal. This approach also allows for a more cost-effective data collection strategy, bypassing the expensive and time-consuming process of manual annotation.
The broader significance of this development extends beyond just code completion. The principle of distilling behavior from production telemetry can be applied to a wide range of AI applications. Imagine refining a customer service chatbot based on user satisfaction ratings and conversational patterns, or optimizing a content recommendation engine based on click-through rates and engagement metrics. The key is the ability to instrument the AI agent and track relevant user actions, creating a feedback loop that drives continuous improvement. This shift towards production-driven learning represents a more pragmatic and scalable approach to AI development, moving away from the idealized notion of training on perfectly curated datasets and embracing the messy reality of real-world usage. As detailed in The Rise of Fine-Tuning, the trend towards adapting pre-trained models to specific tasks is already gaining momentum, and O'Mahony’s work provides a powerful new technique for achieving this adaptation efficiently.
Looking ahead, the most compelling question is how this approach will scale as AI agents become increasingly complex and interact with users in more sophisticated ways. Will the implicit label approach remain effective when dealing with nuanced interactions that involve multiple steps and dependencies? How can we ensure that the data flywheel doesn't inadvertently reinforce biases or undesirable behaviors? The challenge will be to develop robust monitoring and evaluation techniques that can detect and mitigate these risks. The success of this paradigm will depend not only on the technical feasibility of instrumenting AI agents but also on our ability to interpret and act upon the resulting telemetry data responsibly and ethically, ensuring that these smaller, locally-hosted models truly augment, rather than detract from, human productivity and capabilities.

Ben O'Mahony discusses building custom AI-powered Language Server Protocols (LSPs) that go beyond standard rule-based checkers. He explains how to instrument AI agents natively with OpenTelemetry to track concrete user actions (accepting, dismissing, or regenerating code fixes) as implicit labels, creating a continuous data flywheel to distill frontier capabilities into cheaper, local SLMs.
By Ben O'MahonyRead on the original site
Open the publisher's page for the full experience