# Shopify's AI Infrastructure & Auto-Research Strategies

**Podcast:** Latent Space: The AI Engineer Podcast
**Published:** 2026-04-22

## Transcript

Okay, we're here in the studio, a remote studio with Mikhail Parakin, CTO of Shopify.
Welcome.
Thank you.
I don't even know if I should introduce you as CTO of Shopify.
I feel like you have many identities.
You led the Bing ML team, I guess, or ads team.
I don't know.
People variously refer you as CEO.
I don't know what the previous role of Microsoft was.
That was, yeah, my previous role at Microsoft was the, I actually was the CEO of one of Microsoft's business units, which included, as we discussed, all the things that people like to laugh about, including Windows and Edge and Bing and ads and everything.
Yeah, yeah.
What a wild time.
You've obviously done a lot since you landed at Shopify.
One of the reasons I reached out was because you started promoting more sort of internal tooling.
primarily Tangled, but also a lot of people have seen and adopted Toby's QMD.
And obviously, I think Shopify has always been sort of leading in terms of engineering.
I think it's just more recent that you guys have been more vocal about your sort of AI adoption.
Is that true?
Well, I think AI tools in general are fairly recent development.
Shopify, you know, at this stage of its development, we're developing AI in-house and building tools that use AI and, you know, interfacing with the wider AI community, you know, are on the sort of the runaway trajectory.
So it's just a sort of natural byproduct.
We talk about it more also.
We just, even yesterday, Andrei Karpathy was famous in tweeting about, oh, there's some...
ways that you can organize your agents to store the data and then look up the data so that you don't have to research or lose context every time.
And a little bit tongue-in-cheek, I tweeted that, hey, we've done it much earlier and we even have different approaches, Toby and I.
Toby, of course, is a big fan of QMD and I'm more of a SQLite fan.
But yeah, very similar things that we've already done here.
The point is, yeah, we're a very dynamic, explosively growing company, and we have to be at the forefront of AI adoption, obviously.
Yeah, yeah.
Your team finally prepared some slides, actually, that we were going to bring up on to the screen.
I think I can screen share, and then we can kind of go through some of the shocking stats that maybe put some numbers to what exactly is going on.
So here we have...
an internal AI tool adoption chart.
What are we looking at here?
Yeah, this is very interesting statistics.
This is number of daily active workers, you know, think of DAO, basically the active users of AI tool as a percentage of all the people in the company, right?
And then different AI tools.
And you could see two things here is that one is the greenest total.
Green is just total.
you could see that it approaches really 100% by now.
It's hard not to do your job now without interacting deeply at least with one tool.
You could see another interesting thing is just as many people commented in December was the phase transition when suddenly models gotten good enough that everything took off and started growing.
Many people noticed that thing is that small improvements accumulated into this.
big change in December of the time frame.
The other thing I would claim you could see is that CLI-based tools and tools that don't require you to look at the code becoming more popular and you could see various versions of Cloud Code and Codex and Pi and internal development tools taking off.
Exactly, yeah.
Blue is our river, just internal.
agent for coding, where tools that require IDE, such as GitHub, Copilot, or Cursor, they're not exactly shrinking, but they're not growing as fast.
Like Redline is the IDE kind of tool.
So you could see that they're not experiencing as fast of a growth.
As I understand it, basically every employee has their choice, right, of choose whatever tool you use, and then you're just kind of doing a daily survey or something.
Exactly.
And the push is to get your job done, you can use any tool, and we effectively fund unlimited tokens for everybody.
We do try to control the models that people use, but from the bottom, not from the top.
We basically say, hey, please don't use anything less than Opus 4.6.
Some people end up using GPT-5.4 extra high.
Some people use Opus 4.6.
There are plus and minuses and going for a full 1 million context window versus not.
But we try to discourage people from using anything less than that.
Yeah, yeah.
Got it, got it.
I mean, that's, you know, the next chart here, it really kind of shows the expansion and the sort of December 2025 inflection, right?
are using a lot of tokens.
I think it's also really interesting that no one was kind of abusing it in 2025.
Like, it had, comparatively to this year, there was almost no growth.
I mean, it's still like, you know, probably gave 50%.
This is just a different scale.
It's still exponential growth at just a different rate of expansion.
There was inflection point.
And I would claim the super interesting part here is that you could see that the distribution becoming more and more skewed.
The top percentiles grow faster.
So that means the people in the top 10 percentile, their consumption grows faster than 75 and so forth.
So the distribution skews more and more towards the highest users, which is, I don't know what it tells me.
It feels not ideal, to be honest.
Maybe it's okay.
We'll see.
Why does it feel not ideal?
Is it because of quantity over quality or what's the concern?
Because take it to the limit.
That means, you know, if this rate of separation continues, there will be one person consuming all the tokens.
It's just kind of strange.
Yeah, I mean, I think...
Internal teaching and all that will help distribute things more widely.
But in the early days, of course, the people who are more AI-pilled will obviously find more ways to use it than the people who are less AI-pilled.
Maybe let's call it that.
I'll just quickly pause.
We'll go back to the rest of the slides.
I just want to review.
There are a lot of CTOs of large companies like yourself where...
they're all considering some kind of token budget, right?
I think it's something that Jensen Huang has been talking about, where if your 200k engineer is not using 100k of tokens every year, they're underutilizing coding agents.
Of course, Jensen Huang would say that.
But it seems a very quantity over quality approach.
And some people are basically saying, well, is this comparable to judging engineer quality by lines of code?
Which we also know is kind of flawed.
better than nothing.
So I don't know if you have a management take here on how to view this kind of metrics.
Wow, I mean, you're baiting me.
This is my favorite topic.
If you let me, I'll probably talk for two hours and just this.
I have a lot of things to say.
I do think...
Jensen gotten a lot of bad press saying, oh, of course, you're, you know, the cake seller says we don't need enough cakes, you know, like, of course.
But I actually think that's undeserved.
I think he is actually right.
He's directionally correct.
Yeah, he's directionally correct for sure.
Who knows what the right number is?
The thing that I do...
want to say, and this is something that we learned through trial and error and very important, is two things.
One is that it's not about just consuming tokens.
You can consume tokens and in fact the anti-pattern is running multiple agents, too many agents in parallel that don't communicate with each other.
That's almost useless compared to just fewer agents and burns tokens very efficiently.
Setting up the right critique loop, especially with the high-quality models, where one agent does something, the other one, ideally with a different model, critiques it, suggests ways to improve it, the agent redoes it with this critique.
So it takes much longer.
Some people don't like it because latency goes up.
They have to wait until this debate is happening.
But the quality of the code is much higher.
And another thing, just...
Since you mentioned, like, look, yeah, the overall budget is just like lines of codes.
Lines of codes are exploding for everybody right now, partially because AI is really more verbose, but partially just because AI can write a lot more code, you know, doesn't get tired.
And so you have to have to have a very strong narrow waist during PR review.
Otherwise, just the number of bugs will go through the roof.
It's this.
unexpected consequence of the just volume trumping everything.
I would claim by now a good model writes code on average with fewer bugs than the average human.
But since they write so much more of it, more of it will make it into production.
You still have more bugs.
Yeah.
You have to have very rigorous PR reviews.
Also automated, of course.
But yeah, to spend a lot of budget there.
This for me...
For me, actually, the important metric is the ratio of budget spent during code generation versus spent expensive tokens like GPT 5.4 Pro or DeepThink from Gemini, you know, checking on PR reviews.
Yeah, totally.
I noticed in your chart you didn't have any review tools.
Do you just use, let's say, a Claude?
code to review tools?
Or do you have another set of review tools like the Greptiles, the CodeRabbits, Devon Reveals has a review tool.
I don't know if you've had those specialist review tools.
You are a little bit jumping on my sore toe right now because the graphs I was only showing public tools.
I haven't found a good PR review tool that does what I think should be done.
And partially my thinking is because it just goes against both what people feel like emotionally they prefer and some of the, frankly, even business models that the companies run.
At peer review time, you want to run the largest models.
That means Codex or Cloud Code is not going to cut it.
You need to have pro-level models if you really want to.
stem the tide of bugs from going into production.
And you need to spend a lot of time, the models, taking turns.
But you don't want a big swarm of agents.
So, in fact, you end up in a different dualistic world where you generate not that many tokens.
You, in fact, generate few tokens.
But it takes a long time because these are expensive models taking turns rather than many, many agents trying to do many things in parallel.
So that's...
That's why I feel like I haven't found good tools.
So we are using our own for PR review for now.
Yeah, yeah.
I mean, I think a lot of companies are building their own, especially to their needs, right?
You also have a chart here, going back to the slides, on PR merge growth, where we're now at 30% month-on-month rather than 10%.
And also the estimated complexity is going up.
You know, this is productivity.
Right, because presumably there's more stuff going into the code base and more features getting worked on.
I'm curious about the backlog, right?
I actually don't mind a pro-level model taking an hour, two hours to review my PR because I've dealt with humans who take a week to review my PR, right?
And I keep pinging them on Slack, hey, hey, review my PR.
So, you know, I think there's some trade-off here where, like, it still doesn't make sense.
Exactly.
That's exactly my point.
On one hand, you can tolerate longer latencies at PR.
On the other hand, like right now, the real problem is not in spending time waiting for PR.
The real problem is since there's so much more code, then probability of at least some tests failing, going up.
And then you keep failing, then you have to find the offending PR, evict it, retest it without that PR.
And so deployment cycle becomes much longer.
So it actually, in terms of the overall time to deploy...
It's total time savings if you spend more time on a longer model, like thinking for an hour, because then you don't have to spend all that time during testing and rolling back the deployment.
Yeah, totally.
That's still worth it.
You don't look at the individual, look at the aggregate and look at the change in the aggregate system.
Exactly.
I'm kind of curious if there's this PR mentality.
And the CI-CD paradigm will be changed eventually.
Some people are like, obviously, a lot of people want new GitHub.
But I even wonder if Git is the problem, right?
Is that the bottleneck?
Is the concept of a PR a bottleneck?
Do you guys use stack diffs?
I don't know if that's like a merge queue stack diff type of thing.
We use stacks.
We use Graphite.
We work with Graphite a lot.
So we use stack PRs.
I think that's...
Clearly, the overall CICD in general and the interaction with the code repository right now is clearly the main issue and the bottleneck for us and highest top of mind.
I would say we probably need a different metaphor or different whole design of how to process it in a new agentic world.
I haven't seen...
anything dramatically better yet.
I think everybody right now is just trying to keep their head above the water because there's so many PRs and then everybody's CICD pipeline start creaking, the times are increasing, the number of bugs slipping by increasing, and you have to clap on down.
And so we are a little bit in this situation when we need to first stabilize that story and then start thinking, hey, what could be a completely different and new world?
I know some people working on it.
I haven't seen anything super compelling yet, but clearly the old thing were designed for humans will need to be morphed into something new.
One other thing that I think about was kind of like the merge conflict is basically a global mutex on the whole system, right?
And in human organizations, we do have something like that.
It's the company stand-up.
Other than that, it's actually fitting for us to be somewhat decentralized, somewhat plugged into one stream of information source, but somewhat lossy.
It's okay that not every delivery is atomic consistency.
We're not dealing with a database sometimes.
This is a very good point because since humans don't write code too fast, you know that global mutex is not too bad.
Once you start writing code at the speed of...
machine, it becomes the bottleneck, then what do you do?
Maybe, and I can't believe I'm saying this because I'm a lifelong opponent of microservices and I always thought that was a really bad idea.
And now that you're saying it, maybe new guys like microservices will make a comeback because then you can ship things independently and tiny things and managing all that complexity automatically will be much easier.
I don't know.
Yeah, I mean, I don't know what the Microsoft or Shopify thing is, but I read this paper from Google where they have a monorepo that deploys into microservices, right?
And then the other concept that I think about a lot is the chaos monkey concept from Netflix.
Being able to create this robust system where you have the service discovery, you have the...
the independent microservices discovering and, you know, probably going to be a fair amount of duplication.
That's how an organic system sort of scales that you have that, I don't know what you call it, slack, robustness, duplication.
I forget that.
These are not exactly the terms I'm looking for, but I can't really think of the words.
Okay, I was going to go into Tangent and Tangle.
So we sort of discussed the overall stats that Shopify has.
But I think some pretty cool stuff that you guys are working on is your ML experimentation and your sort of auto research training pipeline.
Presumably you're much closer to this one because it's a sort of personal hobby of yours.
How would you explain them together?
I thought we have a slide that has the system diagram.
Yeah.
Tangle first, and then tangent is a thing on top of Tangle.
And Tangle is the third generation claim of systems of running any data processing, a bit with a skew for ML experiments, but not necessarily any sort of data processing tasks where you need to iterate, share, and you have scale so that you want...
maximum efficiency.
You know how normally you would work?
Imagine you're a data scientist or an ML practitioner.
You would get Jupyter notebooks or maybe you would get your Python scripts and you would munch the data and you produce those TSV files and you put them in some GFS or something.
Then you would notice that, oh, it has this...
weird missing values.
You go and write another script that goes and replaces them with the dashes.
And then you run some, oh, I need to filter bots.
And so you run some light GBM model that removes the bots.
And then you kind of get into shape and then you start experimenting and you run multiple experiments and then you're like, oh my God, this experiment is worth your undo and you cannot get to previous result.
I'm like, what did I do?
And then you finally get everything working.
Then you start throwing it over the fence to production.
You replicate it, those things don't work.
And then sometimes you don't notice that you forgot some feature naming and the features don't match.
But then imagine you did everything.
And then six months later, you have to repeat it because now there's more data or you wanted to do another pass.
And you're like, what?
What did I do?
This crypt crashes now, the path has changed, and then you spend another month just doing digital archaeology on your own history, right?
Now multiply that by many, many things.
Now imagine you got an intern that you want to ramp up.
Now I have to show that intern, oh, you know, look.
Here's the folder.
There's the scripts.
You know, ask your cloud agent to do and then to figure it out.
And then cloud agent does something and then you're like, ah, yeah, right.
It was the wrong folder.
I forgot to tell you.
I actually had this other thing.
I forgot myself.
And that's like the daily life.
We all know it.
If you're a data scientist, machine practitioner, machine learning practitioner, or even like any data managing person.
Yeah, so I used to do this on the quant finance side in my hedge fund.
So we did this before Airflow and then obviously Airflow came along and then more recently Daxter, I would say is like, in my mind, what I would use for that shape of problem where you had to materialize assets and create a pipeline.
And that's very good segue because, so Airflow is great, but Airflow is more about you.
you have something and you want to repeatedly run it in production on schedule.
It's less about you as a team developing things and being able to share and you grabbing the standard pipeline and saying, hey, I want to change this tiny little component in the huge sea of data processing and I want to run 10 experiments on this and I want to do hyperparameter optimization.
All that is very hard to do with Airflow.
It's very easy to do with Tangle.
Tangle is more about It's everything about a group of people running experiments.
It might be agents too nowadays.
Running experiments cheaply, collaborating, sharing results you don't need to understand fully.
You clone somebody else's experiment or somebody else's pipeline, change small piece, run it, get it to production state, and then ship in one click.
So then you don't have to port it into any other system.
to run in production, you can just run the same experiment.
It's fully production-ready.
And it has lots of, again, as I said, it's a third-generation system.
The original one, I would claim, was Ether.
And then, at least in my career, Ether was the first that pioneered this type of approach.
And then there was Nirvana at Yandex.
did kind of second take on this.
And now this one aggregates the learnings from all of those and Airflow as well to get to the state where you try it.
It feels kind of magical because now everything is based on content hashes.
So even if the version changed, but if the output didn't change, nothing is being rerun.
It's very efficient.
Multiple people start the experiment that needs the same sort of data pre-processing.
It's not repeated multiple times.
It's automatically done only once.
If you start 10 experiments, that all require, you know, some data preparation first is the first step.
And you don't have to coordinate for that.
Like, you don't have to know that other people are starting it.
You now, it's very easy, composability, any language you want to use.
And it's very visual.
So you can see immediately.
You can edit it easily.
You can assemble small things with just even mouse clicks if you want to and share, clone.
And everybody knows also it's fully kind of static in the sense that when you rerun it a second time, it will exactly have the same results.
Like you will never have to do digital archaeology.
So full versioning and everything is also there.
So people can, it's open source, go to the GitHub repo and check it out.
And it's also a really good blog post about it.
I think all this is like really appealing.
The thing that I think sells me the most about it is that sort of development to production transition, right?
Which I think a lot of people haven't really solved that strictly, right?
Like we develop really, really well in Python notebooks, but then...
you know, that's obviously not a sort of production ready process.
I think that like any way in which that is solved, I think is very appealing.
Then the other thing that you mentioned, which also raised my eyebrows was content-based caching, which you mentioned is, you know, it's very much a sort of efficiency measure about, you know, just like recalculation only on sort of content addressing, which I think makes sense.
It surprised me that the savings could be this much.
But maybe I just haven't worked at your scale where there's so much duplication that people just rerun because they change a single ID upstream.
Yeah, but it's not only you rerun.
The main savings are coming from the fact that you ran it, you got your job done, and you moved on.
Then somebody else in some department you don't know existed runs the same task but on a newer version.
Like right now, in most of the organizations, you can't even...
find out about it so that you can't even measure that you're spending that time twice, right?
Here, if everybody's untangled, that's detected automatically and detected that the output is the same.
And then for that person, all it looks like is like experiment just suddenly jumped forward, right?
So that's because there's network effect of multiple people helping each other.
Yeah, this is one of those things where it's designed to be a platform from the beginning rather than an individual developer's tool from the beginning, right?
And everything kind of streams down from there.
That is the sort of Tangle orchestrator, and it manages jobs.
We've seen a few versions of this, and this is obviously the sort of unique approaches that you guys have figured out.
And then there's Tangent.
Yeah, and Tangent is basically an automatic auto-research loop that can help and kind of do your work for you.
You know, effectively, Andrej Karpathy recently popularized it with Autoresearch.
Remember, he was speedrunning this.
Yeah, you know the story.
Here, we're basically bringing the same capability into Tangle so that Tangent can analyze just an agent that can run multiple experiments, figure out what can be changed.
And keep on rerunning it, keep on modifying until maximizing some goals, some loss function, whatever you need to achieve.
And in general, I would say if you're not using auto-research-like approach in whatever you do, like literally whatever you do, then you're missing out.
We saw Shopify that taking like a wildfire, anything where you can put measurements can be done dramatically better.
Speed of templatization, HTML completely in UX templatization, reducing latency for liquid themes.
Our search recently moved from 800 QPS to 4200 QPS with the same quality just by pure optimizations and not a research loop that kept running and changing code in our index surf on the same number of machines.
just increasing the throughput.
We managed to improve the quality of gisting and machine learning processes.
You know, gisting is the prompt compression technique that allows for lower latency and lower and actually higher quality slightly.
So literally, whatever different works of life, and it doesn't have to be AI related, we had a reduction in storage because the agents would go and find data sets that...
clearly a derivative, and then you don't need to store things twice.
You know, we found somewhat embarrassingly that it was one of the largest tables was cashing random IDs into another random ID.
And we literally did only one.
So it was translating two random IDs.
It has access to the code as well, so you can check what the hell is it doing.
So it could be run in two levels.
At the superficial level, it could just use existing components and reshuffle them.
You know, like you can grab XGBoost and you can grab some PyTorch module and you can grab some Grap and other tools and combine them.
At a deeper level, since Tangle is all sort of CLI-based underneath, every component is a wrap, really CLI call and YAML file, it can analyze code and create new components.
and keep on iterating as well.
So you can both have quick modifications of existing pipelines with components that are already there, pre-baked, or you can create new components and keep iterating on those.
So auto-research is, again, this is probably the thing I was excited the most in the last two months happening, and we see it taking totally like a wildfire.
Everybody, every day, every minute, I would have somebody's Slack message saying, oh, look how much better I made it.
And it's all throughout the research.
Is this democratized in some way in the sense that, like, is it your ML engineers and researchers doing this?
Or is it your regular PMs and software engineers also have the ability to use Tangent?
This is an awesome question.
Tangle in general and Tangent in particular are extremely democratizing.
They are the main tools.
Because I don't need the details.
Exactly.
Initially used by ML and AI engineers, but then literally, as you said, PMs are like the highest user right now is one of PMs in our work.
Sartag, he was number one by usage of this because it's just energetic and knowledgeable and now it unlocks a lot of capability where you don't have to change code manually.
I mean, because it kind of cuts out the ML engineer from the process because the PMs have the domain knowledge and the ability to think about from first principles about, okay, what results do I want?
And they even have access to the data that needs to go in.
So it's like, in some ways, like this is the magic black box that we've always wanted for training and for, I guess, hill climbing or whatever.
It's basically a cloud code for your AI development situation, right?
Like now you don't have to know exactly how algorithms work.
You can just bring your domain knowledge and expertise and product knowledge and iterate within Tangent until you've gotten the results that you need.
In my previous roles, every time that someone has pitched AutoML, you know, I've always been like, this is not going to work.
you know, it's always going to be a flop.
Somehow it's working now.
I mean, presumably the answer is now we have LLMs and it's good enough, right?
It's an emergent property that we can do all the research.
But, like, it doesn't feel that satisfying.
How come we didn't do this before, right?
Like, we just did, like, parameter search and, like, I don't know, maybe that's it.
Yeah, Bayesian optimization and hyperparameter optimization was the one that, or five sets of Ultramel that was used actively.
which incidentally also built into Tangle.
But, you know, I know Patrice Simard very well, and he was such a proponent of photo email, and he literally spent careers trying to democratize it.
Without LMS, it just turned out to be very hard.
Like, you would have flexibility within certain narrow domain, but it was hard to wider scale, and now with LMS, suddenly, it's like magic wand.
And so suddenly everybody is not a ML expert.
Yeah, I think it's multiple things, right?
I'm just going to bring up the chart again, right?
Like LLMs can do the monitoring very well.
It is very potentially unbounded, super unstructured.
They can do the analysis very well.
And basically, it is much more intelligence poured into every single step.
There's maybe nothing structurally changed about AutoML, but this is just more intelligent and more unstructured.
Exactly.
Any flaws that you've run into?
Everyone is drinking the Kool-Aid, oh my God, time savings, performance improvements.
What issues have you come up?
This is really cool.
It's not a solution to all the world's problems, for sure.
The limitations are usually the ones I...
And this is where we get into a bit of a subjective territory.
I can only share what I have seen so far, and I'm sure the situation...
changing and maybe after I say it, many people will reach out and say, hey, what about this?
And you don't know that and then we'll be probably right.
But what I've seen is auto-research is very good at doing kind of obvious things that you don't have bandwidth to do or you didn't notice or maybe you're not aware of some standard practices.
It is not good at doing something completely out of distribution, something that you have to for multiple days and do something like none of this.
So I set an experiment once on my sort of hobby thing, and I let it run for, ended up several weeks run, you know, it's like full production kind of scale, slow runs, and it performed in the end over 400 experiments, and only one was successful.
I'm like, okay, that's good, but it saved time.
Yeah, it was that thing.
Yeah, if I were doing 400 experiments myself, my betting average, as I said, would have been much higher, I'm sure.
But also, first of all, it would take me like three years to do 400 experiments.
And I didn't have to do them.
Like the machines were just, the price of electricity did that.
And I got one improvement that, honestly, when I was starting that experiment, my thinking was, to go and show that, hey, Andre, maybe you just don't know how to optimize.
And I was super smug because in my problem, it was optimized for many years and it was fully improved.
And I didn't expect AutorSearch to find anything at all.
Yet I did.
So instead of making fun of Andre, I ended up a big supporter.
Yeah, that's exactly the tweet.
You and Toby really go back and forth online a lot, which is really funny.
Think of it as an eval for the optimalness of the code it's running on.
It reminds me of a Komogorov complexity thing, but I guess there's some optimal thing that you're trying to reduce down to, I guess.
So you should congratulate yourself that you had 99% optimality.
Exactly, yeah.
I think Andre really deserves a lot of credit for popularizing this approach.
This is incredibly, I think, powerful and cool.
And even him just mentioning it led to a lot of gains in a lot of places in the industry.
So we should be thankful.
Yeah.
I think he also has a just, I don't know what it is.
It is a simple, self-contained project that people can take and apply to other things, which is one thing.
But also just the name.
Just like somehow no one managed to call their thing auto-research.
Naming things is very important.
I think that is mostly our coverage of Tango and Tangent.
I think obviously, you know, there's a lot of ML infra at Shopify that people can dive into.
We're about to go into SimGen, but before I do that, any other sort of broader comments around this whole effort?
Like where is it leading to?
As a segue to SimGym, all those things start composing strongly.
And you could see a huge unlock when you can look at each one of the tools and you see, oh, they're extremely useful.
Tango is useful by itself.
AutoResearch is useful by itself.
SimGym is useful by itself.
If you combine all three, you create a synergetic effect.
I think that's why we wanted to even cover them today is because...
This is something that if you go back even five years ago would have been unthinkable.
Replicating that would be either incredibly costly or impossible with probably thousands of people required.
Well, we have serverless intelligence, right?
So yes, you do have thousands of intelligences, just not humans.
And that's close enough, right?
Even if they're not AGI, they're close enough to do the task that you need them to do.
And, you know, there's plenty for a lot of routine work, knowledge work.
Okay, let's get into SimGen.
This is one of those things I was surprised to see.
Actually, it's apparently one of your most popular launches.
And I think something that, I think SimAI.
I think Yongjun Park, who did the Smallville thing.
There's a very small cottage industry of people trying to do the simulate customer thing.
I think a lot of people maybe don't super trust this yet because they're like, well, obviously they would just do what you prompt them to do, right?
But maybe just tell us about the sort of inspiration or origin story.
That's exactly actually the thing I wanted to cover because if you don't have the historical data, all you can do is prompt agents in a vacuum and they will do exactly what you prompt them to do.
In fact, when I first proposed it, and this is a bit of my brainchild initially, if I can boast, and then Toby said, but wouldn't they just repeat what you tell them?
But I'm like, yes, except Shopify has decades of history of how people made changes and what it resulted in terms of sales.
So now what we can do is we can, we have this, it's not, it's a noisy data.
There's a small, usually websites, you know, like things, things are never in isolation.
It's almost never a B experiment.
It's always AA experiment when there's, has two meanings, but basically, you know, in different time, you run two different things.
But if you aggregate in general, like everything together and you apply denoising and collaborative filtering like approach, you can extract a very clear signal.
And then, you can optimize your agents.
And that's why it took so long.
It took almost a year of that optimization of just us sitting and fiddling.
And we had these internal goals of correlation, of hitting, internal goal was to hit 0.7 correlation with add-to-cart events, for example, like that if we run a real A-B test experiment, that it should go and replicate the same sort of success that humans had or lacked thereof.
And it took forever.
And I don't think that's easily replicatable because, like, who else would have that data?
You have to have this historic, you know, decades worth of data.
And now the other thing you need is infrastructure and the scale, right?
Because, again, what we found, static results, you need to run a lot of simulations, a lot of agents, and those are expensive things.
You're making actions in the browser because you want a real friction.
You want to be able to get the image of what humans will see because you want to detect the facts like, hey, if I make my images larger, will I have more sales or fewer sales?
And usually people's intuition here, by the way, is that I increase my images, I'll have more because they look nicer.
You know, designers will look sparse in big images.
Like usually your sales tank, right?
But from HTML, all the characters look the same, only the size tag looks different, right?
So it's very hard.
So you have to take visual information, you have to run this in simulated browser environment on a big farm.
And of course, you have to have a very expensive model, good model, multi-model model.
So all this is what's taken so long.
And to share my personal fail a little bit there, Sean, it's like...
You know, we always had this bias to, like, large company bias.
You know, we always, whenever we do, we're like, hey, we'll run an experiment, right?
We make a change, and we will run an experiment, and then see which one's better.
Oh, like, no, this works, and most of them are worse, so you discard it and keep iterating hill climbing.
And you're like, oh, like, smaller merchants, they cannot get static results.
They cannot really run experiments simply because, you know...
in a week there would be not enough data for them.
So we thought from this perspective.
What we didn't realize is that most people don't have A and B.
They just have one thing and they need suggestions of what A and B should be.
So we first built this, hey, we run simulation on two separate teams and say, hey, which one is better?
We then morphed it into...
and very recently just released it, when you have just your site, your theme, we run over it and we say, hey, here's what predicted values of conversions are, and here's how we think you should modify it to increase your conversions.
And then, circling back to what you started with, the proof is in the pudding.
If we are not correlating with reality, people will not be using it.
And thankfully, we see...
Literally every day more usage than the previous day.
So right now, my problem is how to pay for it all because our major thing is how to optimize the LLMs, do distillation, how to run the headless browsers and headful browsers cheaper so that we can accommodate the increase in traffic.
Yeah, I understand that you published a lot of technical detail at GTC, so I was just going to bring it up a little bit.
I think, was this in conjunction with some kind of GTC presentation?
Something like that, right?
Well, yeah, we did it in several places, but yeah, we had the engineering blog as well.
Yeah, so you're running GPT-OSS.
Well, this is an older version.
Now we run multi-model model, but yeah, GPT-OSS.
We still run GPT-OSS as well.
And then you have the VMs and you also have browser base.
I really like this one where you said it violates almost every assumption that standard LLM serving is designed for.
And then you had basically orders of magnitude differences between everything.
Exactly, which was a bit of a challenge to implement.
Even simple things, since it violates all the assumptions, for example, multi-instance GPUs like mix don't work as well.
But we needed...
to get MIG to work because otherwise it's way too expensive.
And so we had to deal with lots of infrastructure and work with Fireworks and Sentinel to help with optimizations and browser bases, you mentioned.
Yeah, like, takes a village.
Okay, so there's a lot of, I guess, experimentation in the infrastructure so far, and you've published more or less what you have here.
I guess I'm less familiar with CentML.
I don't do that much work in this part of the stack.
But why was it the sort of preferred instance platform?
There are really three probably top companies.
There used to be three top companies, at least I was aware of, that did LM optimization.
You know, together, Fireworks and CentML, not necessarily in that order.
CentML recently got acquired by NVIDIA.
What they did is, if you have a model, and you want to optimize it to a specific profile of usage, they would go and do it.
And we work with those companies.
This was work particularly with CentML and NVIDIA to get them the best possible results out of it.
And sometimes you have to retune depending on, like sometimes you want the maximum throughput, sometimes you want minimal latency, sometimes you want the cheapest, right?
or some combination.
And so, yeah, these are people who would come and help you.
I see, I see.
Yeah, yeah.
I'm familiar with these people for the LLM autoregressive stack, but the other interesting category of these optimizers is also the diffusion people, where it's like Fel and Pruna recently has come up a lot as well, which I think is really underappreciated, at least by myself, because I thought, oh, all the workload would be LLMs, but actually there's a lot of diffusion as well.
Exactly.
There's a lot here, so it's hard to cover.
But I do think people underappreciate the importance of customer simulation, basically.
I think this is something that I'm candidly still getting to terms with.
Your team also prepared this really nice diagram.
I assume this is AI generated.
Yeah, it looks...
Maybe it's not.
It looks Gemini-ish.
I don't know how they generated it.
It looks like it's Google.
But the interesting part, Sean, that we haven't covered, but I wanted to mention is if your store had previous customers, rather than it's a new store, you're like new merchant just launching things, it helps tremendously in just correlation in forecast.
Yeah, we take your previous customer's behavior and we create agents that replicate.
those specific distribution of customers that you get.
And then we apply those to your changes.
And then that raised raw, you know, just correlation with the add to cart events or with conversion or whatever it may be quite dramatically.
So replicating humans in general seems like an interesting, cool challenge.
As a shareholder, I think this is the, like...
If people are Shopify shareholders, they should really deeply understand this because this is basically the moat.
The more you use Shopify, the more you'll just automatically improve, right?
Like you're doing the job for them.
Yeah, that's what we started with.
Otherwise, if you're just a startup, I wouldn't do it if it was my startup because without the data, as you said, it's exactly the case that whatever you say in prompt, that's what the agents will be doing.
The statistician in me wants to really satisfy the statistical intuition, I guess.
To me, the word that comes to mind is ergodicity.
So let's say a customer takes this path, customer takes this path, customer takes this path, right?
In my mind, the way I explain it is like, okay, here's the 95 percentile, here's the 5 percentile, and here's the median, right?
To me, what SimGym is potentially doing is that it can sort of model the in-between journeys as well that maybe are dependent on the previous states.
This may be like a very RL-type conclusion where basically the summary statistics, if you only did naive A-B testing, you only have the statistics at a certain point and you only judge based on the sort of...
overall summary statistics, but here you can actually model trajectories.
Does that make sense?
That makes total sense.
Well, that makes even more sense than maybe even you realize.
Okay, please.
So internally, we have this system.
We talked about it briefly once at NeurIPS.
We have a huge HSTU-based system that models the whole companies and their possible paths.
And what you are showing, actually, at any point of time, you can either model the user's behavior or you can also think about the whole merchant as a company, as the entity that acts in the world.
You can model that as well.
And then you can do counterfactuals.
In your graph, like in your blue graph, if you're imagine in the center there, somewhere in the middle, you would have an intervention.
I gave that person a coupon or I don't know, I sent a personal thank you card or gave a discount somewhere.
And then you can do forward rollouts from that counterfactual.
So what would have happened with that intervention or without the intervention?
And you can even change where that intervention in time can happen, right?
Like we're in this journey.
So we do this at the Shopify scale for our merchants and then...
If we notice that something that they can be fixing, like there's a strong counterfactual, like we have Shopify Pulse, they basically get a notification like, hey, we think something is wrong with your, I don't know, Canadian sales.
Like it looks like it's misconfigured.
Here's what you need to do.
Or you think like you have to set up this campaign with these parameters.
And we do that at the buyer level to literally offer discounts or cashback or things to buyers.
This is, I'm getting very excited, like this is my sort of area of interest, I guess, and hobby, but being able to model something complex as human beings or companies and model counterfactuals on it where you can have interventions in the future and optimize when to make intervention, what kind of intervention to make.
It's such an unlock that previously was...
completely impossible.
It was always dreamed of, but never, like, how would you insimulate it without LAMS or HSTUs?
I think very, very exciting times.
I just wanted to maybe illustrate this.
I'm not the best illustrator, but I am a conceptual statistics guy.
And, you know, you cannot just do this.
This is a dimensionality that A-B test doesn't do, right?
Because it doesn't have the change over time stochastic nature.
And it doesn't have the sort of contextual, like, here's all the context to this point.
Okay, cool.
That's Simjian.
You're going to burn a lot of tokens on this thing.
But you're one of the only skilled platforms in the world that can do this across a huge variety of workloads, right?
I'm even curious on a sort of human research level of like, well, does retail behave differently from like...
Clothing sales, does that behave differently from electronic sales?
I don't know.
I don't know what else you guys...
The Kardashian shoppers, do they differ from people who buy, I don't know, cars and whatever?
Very different.
And different sensitivities and different modes of shopping and different levels of what's important.
No, totally.
You can do aggregations at a store level.
You can do aggregations at a different category level.
I don't know if, you know, for statisticians among us, I couldn't believe, but recently we're looking at it and we had to bring back CRPs, you know, Chinese restaurant process.
It's a way of aggregating and like naturally grow clustering across specifically to answer questions that like you were just posing on how if buyers behave different categories.
And I'm like, I haven't seen CRPs since 2001.
What?
That's so cool.
What is this?
No, I haven't seen this.
No, this is not in my training.
But yeah, it actually, there was a very popular theory, popular NeurIPS ACML circles in early 2000s.
Kind of nice.
And now it has practical applications that we were resurrecting.
Yeah, amazing.
I can see how this is like a fun job for you where you get to apply all these things.
Yeah, yeah.
Super cool, super cool.
Okay, so anyone who knows what CRPs are and has always wanted to use them at work, they should definitely join Shopify.
Okay, so we have a lot, but I'm being mindful of the time.
I do want it to sort of cover some other things.
I'll give you a choice, UCP or Liquid.
Liquid.
I think on UCP, UCP is very important for us, and UCP, we have structured discussions, and you can read about them, and we have blog posts, and we have a big release this week, in fact, with our catalog.
Okay.
I mean, we can discuss the release briefly, because we'll release this after it's already announced, so whatever.
There's a catalog that you guys are doing?
Yeah, so we're...
We are bringing in capabilities of a whole Shopify catalog.
Basically, you can search for products.
You can do lookups by specific ID.
You can do bulk lookups when you need to bring multiple products.
You don't need to know in advance what you're trying to show or to sell or check out.
You can now have this decided at runtime and this big area for investment for us for both.
non-personalized, unpersonalized searches, trying to provide basically a window into a whole universe of products that are being sold everywhere in the world.
And Shopify is really not exactly, but almost like a superset of anything being sold.
Now we're bringing it into UCP and identity linking is another big thing for us so that you can use Google or whatever identity you have.
They're minimizing friction.
So, yeah, big release for us.
But Liquid AI, of course, we never talk about and the problem might be more aligned with what we discussed previously on this chat.
Sure.
The main thing that everyone understands about Liquid is that it is inspired by a worm.
And I still don't know why.
I'm curious on your explanation.
I think you can make things very approachable.
And also, I think, what is the potential of the level of efficiency to get out of Liquid?
We're all familiar with transformer architectures.
And for the longest time, there was a competing architecture called the state space model.
So Sam's, you know, Chris Rez, one of the pioneers and lots of startups trying to make those realities, they have significant benefits, main being much faster and lower footprint and not quadratic in length, you know, sort of linear in in your context length.
But with state space models, they never quite made it.
They have certain issues when they thrive, their hybrid architectures are useful, but they never quite made it.
And liquid neural networks are, you can think of them as a next step, like sort of state space model square.
It's non-transformer architecture that's more complicated than state space and really difficult to code if you...
if I'm being honest.
But it's very efficient.
It's sub-quadratic in length of your context.
It's a very compact way to represent things.
And that's a Liquid AI company.
Their goal is to productize it.
And very often you have this need when you need to have long context and small model.
And you want to have low latency.
like in general, is basically on par with transformers.
And if you do hybrids with transformers, it's even better.
That's why we at Shopify, when we tried multiple, and we constantly try multiple models, multiple companies, we found that for small, particularly with low latency applications, when you have low latency and or if you need longer context lengths, Liquid was the best.
And so we still use...
the whole zoo and always obviously test and use everything, every open source model.
And it feels like sometimes even every private model.
But Liquid's been taking quite a bit of at least internal Shopify share.
And the reason I'm excited is, yeah, because it's the only non-transformer architecture that I found being genuinely competitive.
And we use it for search and for...
for long context, pulse distilling and others.
This is the overview.
I don't know how approachable the shots are.
Maybe still too obtuse.
I mean, I think they haven't been that open about their implementation details.
I think the, I would say like Liquid hasn't been like, if there's a lot of technical detail published, I haven't read like a formal sort of paper on the implementation details.
But I did get the sort of relationship between the SSMs.
And the others, this is one of the charts that was showing the relationship between full attention versus something that's more like a RNN type in terms of their efficiency.
And then the other chart was this old one where it compares versus some of the other models.
Doesn't exactly have the correct y-axis, but close enough where you can see it's basically a step change difference in terms of the efficiency.
I think the surprise to me was that you guys are...
actively using it already internally inside of Shopify.
And I'm curious, what are the constraints that you're optimizing for?
When you say smaller, is it like the 1B size?
What kind of latency constraint are you optimizing for?
What kind of context length considerations?
I think, for example, in the audio kind of use cases, the SSMs effectively have unbounded.
context length because they just have to operate on the sliding window of the most recent stuff.
I'm just kind of curious, what do you see the potential here?
Yeah, the SEMs are effectively, because the state embeds all the previous information needed, or that's the assumption, the SEMs effectively have infinite context length.
The problem with them is that expressiveness is not there.
The liquids are effectively souped up as a sense we are much more expressive, more complicated, again, to code.
There is a paper on it, you can see it.
Differential equation rolled out and then it computed as really as a convolution.
It's a bit involved.
The thing where we use it is specifically either for where we need super low latency, it was a lot of...
a very fun project with CentML and Liquid AI themselves.
We run it at 30 milliseconds, a tiny model, like 300 million parameters, but we run it in 30 milliseconds end-to-end for search when you type a query.
And then we produce all the possible things that you can mean by that query and some, you know...
Not only synonyms, but kind of full query understanding, the whole tree of what you might need, and including your personalization, because you might have done previous queries, and lowering it all down into a search server.
So the requirements on latency, obviously, are very strict.
So then we are able to run it under 30 milliseconds because at Liquid, you know, QAM doesn't run like this.
And even Liquid, we had to work a lot with NVIDIA.
Because almost everything is not designed in CUDA or in the current stack for low latency.
Small things that don't matter with large models start mattering a lot and we had to optimize it.
There is a different end of the spectrum where this is maximum bandwidth throughput for things like, for example, offline categorization when a new product appears.
We need to do analysis.
We need to assign where it is in taxonomy.
We need to extract and normalize attributes.
We need to do clusters like, oh, it's the same thing as that other merchant is selling, right?
That is like almost unbounded amount of energy you need to spend on it because it's a quadratic kind of problem and we have billions and billions of products.
So you don't care about latency as much.
It's kind of an overnight.
batch job, but you want maximum throughput.
And usually in those cases, you also, sometimes like for Sidekick Pulse, you also need long context.
We are talking models in maybe 7-8 billion parameter range, where we would take a large model, like we would take something huge, largest we can find, we would distill into liquid.
for specific tasks, such as, for example, for our catalog formulation or for Pulse.
And then we run it at a very large scale, like in bad jobs.
Because just running, and it beats, in that situation, very often beats QAN or, yeah, Kimi is more on the reasoning side.
So QAN, I would say, is probably their major alternative.
That's when we use it.
I mean, not a panacea, not really, I wouldn't say that it's...
frontier model in the sense of it's not going to suddenly compete with GPT 5.4, but it is a phenomenal target for distillation, which is right now becoming more and more important with explosion of token usage.
Is that a now-only thing, or do you think you give Liquid $100 billion and is it just more scale, or what is limiting it?
What prevents it from running into the same issues that SSMs had?
Their scale is already much larger than the largest SSM I'm aware of.
So, yeah.
SSMs were just not expressive enough, in my opinion.
Again, I'm sure I'll get a lot of pushback and probably...
But in my opinion, SMs are not expressive enough, and Liquid models are.
I think...
especially in their hybrid form combined with Transformer in Mamba fashion.
They're probably the best architecture I'm aware of, period.
But of course, Liquid AI is not at the scale of Anthropic or Google or OpenAI in terms of compute.
So I don't think they...
I think if they...
If they had similar level of compute, they would be very competitive and maybe even beat the largest models, at least from what I've seen.
They don't have this level of investment, but they still have decent investment.
And it's definitely for this scenario of smaller models and distilling intro, they're second to none.
We're very, very omnivorous and we're on purely merit-based.
So the moment they will...
stop being competitive, we will switch to something else and we constantly test.
But so far, if you see progression, if I draw a graph of our workloads on Liquid versus our workloads on, I would say, QAN, which is another awesome model and probably another kind of standard within Shopify, I would say Liquid's been definitely taking share.
I think that's very promising and probably the best explanation I've heard directly from someone involved in Liquid.
I do have Maxime Lebon coming to my conference in London this week.
So we'll hear more from him.
Because there was this like liquid investor day or something like a year or a year and a half ago.
And I think there just wasn't that much technical detail that I think was sort of speaking to my crowd of like potential customers and users, right?
Which like, yeah, it's fine.
Like, you know, maybe...
we still need to wait for more results that come out before it is.
But I think it would be news to a lot of people that you guys are actually actively already using it for high frequency use cases.
I also wanted to highlight Psychic Pulse, which we didn't cover and we probably don't have time to cover, but it's something that you also launched recently.
Basically Rexxus, but also something that the other Rexxus trend I've been covering a lot from the YouTube side, even XAI's Rexxus.
has been LLM-based REXs, which I think you are also effectively using liquid models for, but they are just throwing transformers at the problem.
And maybe this is the sort of hybrid architecture shift that will happen in order to accommodate the kind of long context and high efficiency that you need.
I don't really have a strong opinion there, apart from I would highlight to anyone the work that...
the LM-based Rexis community is doing is also very interesting there.
Yeah, again, the thing to get you excited is that it's not just LLMs looking at things, it's also HSTU model doing that counterfactual analysis where we model the whole enterprise as an entity and its actions and then see what will happen.
Overall, I think this all presents an enormous...
I think there was not...
that deep of an AI story to Shopify when it started.
It was just a WordPress plugin, right?
But now, you know, you are the storefront e-commerce, you know, guardians to like so many, so many people.
And you're really like applying all the AI methods and the state-of-the-art stuff.
So I think, you know, our conversation like today has like really, I guess, opened my eyes a lot.
So thank you for doing this.
This is a really amazing overview of what you're doing.
Okay.
Thank you for saying that, Seanan.
Thank you for having me.
Of course, it's always a pleasure to talk to people who are deeply technical and know what they're talking about.
Yeah.
I mean, very few people are as technical as you, but at least I can somewhat vaguely follow along.
Yeah.
So, okay.
There's a hiring call.
Any particular roles that you're looking for that you're like, okay, if you know how to solve this problem, reach out.
Yeah, the things I would definitely call out that if you're an ML person or if you're a data science person, we have a huge need for more people munching data, so to speak.
Or surprisingly, if you're a distributed database person and we think that there is a way to...
use LAMS to reimagine how we do distributed databases, and we're working a lot with Ugobyte there.
And so if you have interest in those areas, ShotFi might be the best place in the world for you.
That's a pretty good place for other disciplines as well.
Cool.
I think that was all the questions I had.
I have one sort of bonus thing if you want to indulge in some Bing history.
What is your, I guess, takeaways or...
Any fun anecdotes about Sydney?
Any fun anecdotes about Sydney?
Well...
Yeah, it was a very interesting, you know, I think it woke up people to this personality that emerged.
The funny thing, I mean, the most interesting anecdote is that Sydney was first shipped in India and it was...
And not noticed for a long time.
And first implementation of Sydney didn't even have OpenAI model under it.
It was during Megatron, Microsoft, and the NVIDIA collaboration model.
And there were, yeah, exactly.
That's the one.
People thought it was a prank because not many people were familiar with the lens at that point yet and thought that can't be automatic.
You must have.
you know, people think.
And then even they were complaining that, oh, this chatbot is gaslighting me.
And then people, like what almost everybody doesn't fully realize is that it wasn't by accident that Sydney was Sydney.
I mean, we spent a lot, a lot of effort on personality shaping.
I mean, it was a bit of my Yandex legacy where...
Previously, we did this Alice digital assistant, which we learned the importance of personality shaping.
And so here we brought a lot of personality shaping.
So it was not fully an emerging scenario.
It was also a little bit edgy.
What we learned in those experiments is you want to be polite, but you want to be a little bit on edge.
And that draws people in.
I haven't seen...
Ever since those days, I haven't seen anybody trying exactly that mode.
I think we will see more of this at some point.
But yeah, lots of good memories, you know.
And, by the way, the very first Sydney Devlet is where Andrew McNamara is working at ShopFind and the head of Sidekick and the Pulse.
Lots of these are actually in his purview.
Oh, okay.
That's another fun fact.
You're assembling the team again.
Yeah, it's cool.
I think a lot of people woke up to the idea of AI personality for the first time there.
And I think now with maybe OpenClaw explicitly prompting a fun personality, I think that is a real selling point for people, right?
And then I guess maybe the only other time that it's really emerged into public consciousness is Golden Gate Claude.
But yeah, I think, you know, hopefully someday we'll get Shopify Sydney.
Well, we have Sidekick.
It's a different thing.
Sidekick was like your original big launch for AI stuff.
Yeah, cool.
Amazing.
Thank you so much.
You guys do amazing work.
Honestly, if I was a Shopify customer, Shopify investor, hearing all the work that you guys are doing on the technical side, it makes me feel more confident in like, okay, just choose Shopify, right?
Like you're never going to do this in-house.
which is obviously what you want.
But like, yeah, I mean, that's what an ideal platform is, that you're doing all the things that no individual could do at their scale, but you can at your scale.
Very exciting problems.
Exactly, exactly.
And creating network effect and hard to disagree.
If you're not using Shopify, you should.
Yeah, amazing.
Okay, well, that's it.
Thank you so much.
