← Questions

Improve an LLM's reasoning on a domain task

0
CohereAI/ML designLast asked Dec 2025

An AI/ML design interview question asked in Cohere's ML / system design round, last asked Dec 2025. It tests llm, reasoning and fine-tuning.

A language model reasons poorly on one specialized task that takes several steps, for example working out a tax calculation from a set of documents, or diagnosing a fault from logs. Design how you would make it better: define the task, build the data, choose among prompting, retrieval, tools, fine-tuning and reinforcement learning, and show the reasoning actually improved.

Requirements

  • Functional: higher accuracy on the task's multi-step problems, with the reasoning checkable where it matters.
  • Non-functional: within a latency and cost budget per request; no regression on what the model already does well; measurable before and after each change.

Clarifying questions

  • What does a correct answer look like, and can it be checked automatically?
  • How much labeled data or expert time is there?
  • Can we fine-tune the model, or only prompt it through an API?
  • What latency and cost per request are acceptable?
  • Where does it fail today: missing domain knowledge, wrong steps, arithmetic, or misreading the input?

What a strong answer covers

  • An error analysis first: sort today's failures by cause, since each cause points to a different fix.
  • Cheap levers in order: better prompts and worked examples, step-by-step reasoning, sampling several answers and voting, retrieval for missing knowledge, tools (a calculator, code execution) for exact steps.
  • When to fine-tune: supervised traces from experts or filtered model outputs, and RL with a verifiable reward when answers can be checked, with the data each one needs.
  • An evaluation set built and frozen before tuning, with step-level checks where possible, and a regression suite for general ability.
  • The trade-offs named: latency of extra samples and tools, cost of expert data, and the risk of overfitting to the evaluation set.

Follow-ups

  • Accuracy rose but experts say the reasoning steps are often wrong. What do you do?
  • There are no labels at all. How do you start?
  • How would you serve this within a strict latency budget?

Where it's asked

What it tests

llm · reasoning · fine-tuning

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing