9 Comments
User's avatar
Travis Wright's avatar

The best line in here is that only 2% of queries needed live inference, which means the real product is the cache and the 8B student is just the night shift. That teacher-student split is basically how agent fleets should be staffed too: let the expensive model write the playbook offline and let the cheap one run it live. Also respect for picking unquantized over FP8 and eating the latency, because a 10% speed win isn't worth losing recall when someone just wants gluten-free bread.

Reply
Share
Raghav Mehta's avatar

The guardrail that drops a category path when the embedding similarity between the query and the path falls under a threshold made me curious. A query like vegan roast maps to Meat followed by Meat Alternatives, where the path text is only partly related to the query words, so a cutoff could throw out a correct answer. Do you know if Instacart tuned that threshold per category depth or used one cutoff for the whole catalog?

NIA's avatar

Honestly the tech here is the least sinister part — turning "bread no gluten" into an actual gluten-free bread instead of three sad unrelated words is just... search working. It's the headline I'd side-eye: "make people buy more" dressed up as understanding shopping intentions, like a helpful librarian who also follows you to the till. Also, top marks to the sponsored block for opening with "your AI agents shouldn't have all your permissions" on an article about an LLM with a generous grip on your grocery intentions.

People in Tech's avatar

The teacher and student setup is the part I keep thinking about. It is a neat way to keep the big model for the hard cases while the small model handles the everyday traffic, and the cache does most of the quiet work. I wonder how often the team has to retrain the student when shopping habits shift, since a stale cache would quietly send people to the wrong shelf.

Dheiver Santos, PhD's avatar

The post correctly notes that query understanding (QU) output drives both retrieval and ranking. When an LLM hallucinates a category, the retrieval engine fetches irrelevant items and ranking amplifies the error. A deterministic fallback for structured tags (like brand or explicit attributes) before the generative step reduces downstream noise significantly. For e-commerce, a slightly slower, accurate parse beats fast, wrong suggestions. Did you find that using a smaller, fine-tuned model for the attribute extraction phase improved stability compared to a general LLM for that specific step, or did you stick with the larger model for its reasoning capabilities?

Abhishek Pan's avatar

With only 2% of queries hitting real-time inference, the common queries all run on cached tags. Does the cache key include a taxonomy version? A renamed category path would otherwise keep serving stale tags to the common queries until someone flushes it.

Nan Deng's avatar

The bread-then-bananas example is a good warning about training on purchases: the click is real, the category label isn't. The embedding guardrail on the predicted category path feels like the right check for that. I'm curious how often that guardrail disagrees with the LLM on long-tail queries, and whether those cases get reviewed or just fall back to the older FastText path.

Nader Kanounji's avatar

The bread-then-bananas example is the whole problem with using clicks as labels. What I don't get is how they checked the LLM's output on long-tail queries, since those are exactly the ones with no behaviour to compare against. Did they keep paying human reviewers for a sample, or just trust the model there?

The Coding Gopher's avatar

With roughly 98% of searches answered from the cache, the student model only ever sees the tail, the queries with the least history. Since it already misses slightly more correct tags than the teacher, it's worth evaluating it on tail-only holdouts; a random sample of queries mostly measures what the cache already handles.