Traces are the new oil. Here’s how we refined ours into a model that matches Sonnet at 1/30th the cost. Arize trained a small open model on its own Alyx agent traces to generate trace-query filters, reporting it matches Sonnet at 1/30th the cost, according to the company's blog post. Arize argues enterprises should refine their own production traces rather than sell them, citing San Francisco Data's growth from $0 to about $60M in revenue in three months buying traces and reselling them as training tasks to frontier labs. Arize says small models trained on narrow, repetitive jobs are typically 10 to 30x cheaper and several times faster than frontier models. Build better agents with Arize Trace, evaluate, and learn. Build agents that work with Arize AX and start tracing your runs today. Prefer open source? Try Arize Phoenix for self-hosted, open source agent observability https://arize.com/phoenix?utm source=blog&utm medium=referral&utm campaign=ax-inline-cta&utm content=post-training-on-your-own-traces-inline-cta-phoenix . The market figured out what traces are worth before most enterprises did A company called San Francisco Data went from $0 to about $60M in revenue in three months this summer. They don’t build models. They don’t sell compute. They buy production traces from companies running AI agents, turn them into training tasks, and sell them to frontier labs. Their own framing is “a Glencore for production traces.” Contractor-written training data is a race to the bottom. The record of an AI doing real work for a real user, with the request, the context, the tool calls, and whether it worked, is the thing labs can’t generate themselves. Jaya Gupta at Foundation Capital, a sharp voice in enterprise AI investing and an investor in Arize , made the same point from the other side last December. Her essay on context graphs https://foundationcapital.com/ideas/context-graphs-ais-trillion-dollar-opportunity argues that the decision traces an agent leaves behind become “the single most valuable asset for companies in the era of AI.” Jason wrote a response https://arize.com/blog/how-context-graphs-turn-agent-traces-into-durable-business-assets/ in January that we still think holds: the reasoning behind what your agents did is becoming a first-class asset, not debug output. If a lab will pay for your traces, they’re worth something. Sell them and you get paid once. Train on them and you get a model nobody else has. If traces are the new oil, the margin is in refining it yourself. Why enterprises should be training on their own traces Three reasons, in order of how often we hear them. Cost. Most production agents run every step through a frontier model. For the narrow, repetitive steps classify this, extract that, write this query a frontier model is a very expensive way to do a small job. A small model trained on your own examples of that job is usually 10 to 30x cheaper and several times faster. Independence. When a model provider changes prices, deprecates a model, or tightens rate limits, your product changes with it, on their schedule. True vendor independence means owning a model you can deploy wherever you want. Defensibility. Your competitors can call the same frontier models you do. They can’t train on your traces. A model trained on them is hard for anyone else to copy. The usual objection is that training is hard, evals are harder, and most teams don’t have an ML platform team. That used to be a good reason not to try. We don’t think it is anymore, and below we’ll explain why. What we did with Alyx Alyx is our AI engineering agent inside Arize AX. One of the things people ask it to do most is build a filter for querying their traces. A user types “find me traces where latency is over 2 seconds and the user mentioned a refund” into the search bar, and Alyx writes the query. Alyx uses this in nearly all of its analyses. We were running that flow on a frontier model inside a tool loop: the model proposes a filter, a validation tool checks it against the project’s schema, the model revises, and so on until it finalizes or hands off to chat. It works. It’s also the single most common Alyx interaction, and we were paying frontier-level prices and latency for a job that is, essentially, structured text generation against a known schema. We wanted to know whether a small open model trained on our own Alyx traces could do that job. Not as a research exercise, but as a real comparison, with the same evaluator we already run in production as the judge. Here’s the workflow, from traces to a tested model. 1. Export the traces. Thirty days of search-bar turns from our own Alyx usage, pulled from Arize with a span filter on the router type. Every LLM span in Arize already records the full input messages, the tools, the output, token counts and cost. That turned out to matter a lot: we rebuilt every training example verbatim from the spans. 2. Build tasks. One task per turn. Prompt is the system prompt plus the user’s request plus the recorded column list for that project. Target is the final tool call the agent made the finished filter, or the handoff to chat if the request wasn’t answerable as a filter . We dropped the intermediate validate/revise steps from the targets on purpose. The small model learns to answer in one shot; validation still happens server-side at inference. A task looks like this illustrative, in the real format : { "messages": {"role": "system", "content": "