KatInterview

Choosing Between AI and Deterministic Logic in Product Features

Machine LearningModel answer
EasyModel answerMachine Learningproduct-senseml-strategyml-system-design

Last updated

Decide when a feature should use a model versus plain code, covering fit criteria, anti-patterns, AI-native design, and cost/trust trade-offs.

You are working with a product team that is deciding whether new features should be powered by machine learning or built with ordinary deterministic code. Walk through how you would make that call.

In your answer, address:

  1. What characteristics make a problem a strong candidate for a learned model.
  2. Which categories of problems should generally stay deterministic.
  3. What distinguishes an "AI-native" product from a conventional product that simply bolts an AI feature on top.
  4. The practical trade-offs involved: accuracy, latency, cost, explainability, safety, and user trust.

Support your reasoning with concrete examples, and be explicit about how you would measure success before shipping.

Hints

Hint 1

Start from the cost of being wrong, not from which model you'd like to use — the tolerance for error usually decides the architecture.

Hint 2

Ask whether a domain expert could write the rules down completely and whether those rules change often; if yes, code beats a model.

Hint 3

Compare against the dumbest baseline you can think of (a dropdown, a lookup table, a form redesign) before proposing anything learned.

Hint 4

For AI-native design, ask what the product would look like if the model were assumed to do the first pass and the human supervised it.