Strategy & Transformation
How to Calculate ROI for AI and Software Modernization
A practical, finance-ready framework for comparing AI and modernization investment with the current-state cost, realistic benefits, delivery risk and time to value.
operationalwrocław--:-- cet
∕ insights / how-to-choose-an-llm.md
Choose An LLM
Learn how to choose an LLM with a six-step framework covering business risk, test sets, cost, latency, privacy and post-launch monitoring.
>_article.meta

The top-ranked language model on a public leaderboard is rarely the smartest choice for your business. In an enterprise evaluation of 35 model configurations across 170,000 items, researchers reported in an arXiv study on practical agentic performance that conventional benchmark rankings poorly predicted how models performed on real multi-step workflows. Teams that chase headline scores or lowest-price-per-token tables often ship impressive prototypes, only to watch support queues back up, retry bills balloon, or compliance reviews stall the launch.
Figuring out how to choose an LLM is a business and engineering validation problem, not a popularity contest. You get predictable ROI when you judge every candidate on your own test set and on cost per successful task, rather than leaderboard rank or token pricing. AI changes the economics of software delivery, yet senior engineers still own architecture, data quality, security, and production reliability.
The best LLM for your company is the one that passes your own tests at a cost your business can carry, not the model sitting at the top of a benchmark chart. Guessing on vendor demos burns sprint capacity and locks you into infrastructure you'll spend quarters unwinding.
The workflow below lays out the exact sequence we use to move from a commercial target to a monitored production release.

Most failed AI projects run that list backwards. Engineers pick a flagship model first, build a wrapper around it, and only ask about unit economics or legal sign-off right before launch. At RITE NRG, AI work starts with the business process, the opportunity, and the process economics before anyone touches technology selection, leaving model and architecture decisions for last based on hard evidence.
Say a SaaS operations team wants to automate inbound ticket triage across four product lines. Rather than defaulting to the newest frontier release, they shortlist three distinct contenders: one frontier API model, one smaller fast model, and one privately hosted open-weight option. That spread forces an honest trade-off between capability, latency, and long-term operational cost.
Before you evaluate a single provider, write down three things on one page: the business metric you need to move, your three must-pass tasks, and the single person who will make the final call.
Sorting your workload into a risk tier comes before any prompt experiment, because risk dictates your compliance obligations and minimum security floor. Three direct questions do almost all the sorting work: what data goes into the prompt, who sees the output, and what happens to your customers or balance sheet when the model gets it wrong?
| Use-case tier | Typical examples | Data sensitivity | Starting architecture |
|---|---|---|---|
| Low-stakes internal work | Meeting summaries, internal brainstorming, first drafts | No customer or regulated data | Managed API, smallest model that passes your tests |
| Customer-facing, non-sensitive | Product FAQ assistant, marketing copy, help-centre search | Public or business data only | Managed API with written data terms |
| Personal data | Support ticket triage, CRM notes containing names and contact details | Personal data in scope | Enterprise API with regional processing and a data processing agreement |
| Regulated or high-risk | Credit pre-screening, hiring support, health-related decisions | Regulated or legally sensitive | Private or regional deployment with human oversight and audit logs |
Contrast two real-world scenarios to see why that table matters. A logistics company summarizing internal route notes deals with low operational blast radius; a garbled summary costs a dispatcher two minutes of verification. A lender using a language model to pre-screen loan applicants operates in regulated territory where an undocumented or biased rejection triggers legal liability and lost trust.
Compliance requirements turn model selection into a business-risk decision, not a feature shootout. Under the European Commission's EU AI Act regulatory framework, the law entered into force on 1 August 2024, governance and obligations for general-purpose AI models applied from 2 August 2025, and most rules and enforcement begin on 2 August 2026. Applicable high-risk systems must cover risk assessment and mitigation, data quality, activity logging, technical documentation, human oversight, resilience, cybersecurity, and accuracy.
Score every candidate on auditability, human-review hooks, and deployment jurisdiction alongside response quality. A model that shines in an internal demo can still fail procurement if its vendor won't sign regional processing terms or provide the technical documentation your compliance officer needs.
Over-engineering is just as dangerous as ignoring compliance. The UK government's 2025 AI adoption research found that 85% of organizations already using AI ran natural-language processing or text-generation systems, while 26% planned to build their own AI models using off-the-shelf tools and 22% planned bespoke AI solutions. Yet plenty of internal workflows don't need custom training or self-hosted servers at all. At RITE NRG, we tell clients directly when a custom model or local LLM isn't needed, because calling out unnecessary infrastructure early protects both budget and time to market.
Write down the worst plausible failure for every planned use case before you evaluate a single vendor. That single sentence tells you more about the controls you need than any benchmark chart.
Place every planned workload into one tier from the table above, and list the required legal and review controls attached to it before moving to technical testing.
A leaderboard rank is not a buying decision. Training-data contamination inflates headline scores, a small prompt change reshuffles the order, and static academic quizzes barely touch tool calling, messy customer inputs, or refusal behavior. I recommend judging every candidate on your own test set and on cost per successful task, not on leaderboard rank or price per token. A model that looks cheap per token and still fails your must-pass cases is the expensive one.

In July 2024, the NIST Generative AI Profile for the AI Risk Management Framework highlighted pre-deployment testing as a key practice for managing generative-AI risk. NIST specifically recommends comparing outputs against known ground-truth data, combining automated assessment with human oversight, and measuring performance under conditions close to the intended deployment environment, while warning that inaccurate benchmark labels can undermine benchmark stability.
You do not need a research platform to start. SourceX insights on AI evaluation sets show how everyday operational logs become evaluation data before you sign a vendor contract. Build the suite in five steps, then score each model by how many cases it clears and what that success costs you to run.
Count a task as successful only when it clears its pass rule. Then compare models on cost per successful task: tokens, tool calls, and retries included. Price per token hides a model that rambles, retries, or fails the cases that matter.
For a closer look at structuring automated checks alongside human review, watch this walkthrough on evaluating language models in practice.
Consistency check: Run every test case three times on each candidate model. Because LLMs are probabilistic, a model that passes once and invents an answer on the second run will create silent, expensive headaches in production.
A structured LLM evaluation framework turns these cases into an asset that outlives any single model release. Aim for a suite you can rerun in a single day whenever a prompt, retrieval pipeline, or model version changes, with an explicit list of failure modes that would hurt customers.
Model pricing and capability shift so fast that evaluating cost after you fall in love with a model is a recipe for margin erosion. According to Stanford University's 2025 AI Index, the inference cost of a system performing at roughly GPT-3.5 level fell more than 280-fold between November 2022 and October 2024. Independent suites such as MLCommons' MLPerf Inference v5.0 reflect those shifting conditions by testing models like Llama 3.1 405B Instruct and Llama 2 70B Interactive across distinct deployment scenarios, proving that raw parameter count never tells the whole story without task and latency context.
This drop in inference pricing changes how you should think about quality, latency, and spend on the same page.

Before running a bake-off, collect five concrete workload numbers from your product and infrastructure teams: expected monthly input and output token volume, peak concurrency during busy hours, your user-facing latency ceiling, realistic context-window length, and regional data-residency boundaries.
Put every shortlisted model through the exact same scorecard, and agree on your pass/fail thresholds with product and engineering leads before anyone sees the test results. Locking thresholds early stops teams from moving the goalposts to justify a favorite vendor.
| Criterion | How to measure | Red flag |
|---|---|---|
| Task accuracy | Pass rate on the must-pass cases in your test set | Strong demos but weak results on real customer inputs |
| Hallucination rate | Share of answers with claims not supported by the source, reviewed by people | Confident wrong answers that look plausible |
| Latency | p95 response time under expected peak concurrency | Fast average times with slow tail responses |
| Cost per successful task | Total spend including retries and review time, divided by tasks that passed | Cheap tokens that need many retries |
| Consistency and refusals | Run each case three times and count refusals on valid requests | Different answers to the same input |
Cheap per-token pricing is one of the easiest traps in AI procurement. Define cost per successful task as total operational spend (initial inference tokens, automated retries, fallback routing, and human review minutes) divided by the number of requests that pass your acceptance criteria.
Consider a simple hypothetical. Suppose Model A costs half as much per million tokens as Model B, yet Model A produces broken JSON or misses a mandatory policy clause on a third of requests, forcing automated retries and manual support cleanup. Once you price in those retry tokens and five minutes of human review per escalated ticket, Model B delivers a significantly lower cost per successful task.
Build your shortlist to test that trade-off directly: include at least one frontier model, one smaller or open-weight alternative, and a private deployment option when sensitivity calls for it. Open-weight contenders deserve serious testing for commercial reasons as well. In a 2025 Kong survey of 550 IT leaders, developers, engineers, and users, 51% said open-source LLMs were or would become superior to proprietary models, while 37% preferred a hybrid approach. Paying flagship prices when a smaller model clears every acceptance test creates avoidable bill bloat and slower responses.
Fill out one complete scorecard for every shortlisted candidate, and drop any model that misses a single must-pass threshold.
Privacy and security are where fast-moving teams cut corners and regret it during enterprise sales reviews. Researchers behind a 2026 ACL Findings paper on enterprise agent evaluation point out that standard benchmarks rarely test enterprise requirements like privacy and access control, leaving engineering leaders to map risk to deployment architecture themselves.
Compare who carries operational responsibility across your four main deployment paths before signing a contract or provisioning GPUs.
| Deployment option | Who handles patching and uptime | Data control | Best fit | Watch out for |
|---|---|---|---|---|
| Managed frontier API | The provider | Set through contract and region options | Fast launch and low-risk workloads | Vendor lock-in and model updates you did not schedule |
| Enterprise API with regional processing | The provider, with contract controls | Higher, with stated data residency | Personal data processed in a specific region | Retention and training-use terms that must be confirmed in writing |
| Private cloud deployment of an open-weight model | Your team | High, inside your own environment | Sensitive data and steady, predictable volume | Patching, monitoring and abuse controls fall to you |
| Small local model on your own hardware | Your team | Highest | Strict isolation and edge cases | Limited capability and hardware cost to plan for |
Many leaders assume running an open-weight model inside their own cloud automatically solves security. It doesn't. Self-hosting transfers patching, GPU uptime, monitoring, abuse prevention, access control, and continuous evaluation directly onto your internal engineers. If your team doesn't have dedicated ML infrastructure and security capacity, an unpatched private cluster can introduce more risk than a well-governed enterprise API.
When you're weighing dedicated infrastructure against cloud endpoints, our guide to local LLMs versus cloud AI breaks down the operational trade-offs across privacy, latency, and long-term ownership.
Security architecture becomes decisive the moment a model calls internal tools, reads private databases, or influences customer decisions. The OWASP Top 10 for LLM Applications 2025 flags prompt injection, where user-controlled input steers model behavior into unauthorized access, policy violations, or harmful outputs, alongside system-prompt leakage that exposes sensitive instructions. OWASP recommends treating the model as an untrusted user, enforcing strict trust boundaries and access controls, conducting regular penetration testing and breach simulations, and integrating static, dynamic, and interactive application-security testing directly into development pipelines.
Apply that mindset to a concrete SaaS scenario. Say you're shipping a support assistant that pulls customer account details to answer billing questions. Give its tool layer strictly read-only scopes, isolate tenant records at the database query layer rather than inside the prompt, keep API keys and secrets completely outside prompt templates, log every tool call, and route uncertain or flagged interactions to a human queue with a tested fallback path.
Procurement rule: Confirm data retention periods, zero-training clauses, and regional processing guarantees in writing, and ask whether provider model updates can roll out silently and alter production outputs without notice.
Match every use case from your risk-tier table to a single deployment option above, and document the exact security controls your engineers must ship before go-live.
Choosing a model isn't a finish line; it's an operational commitment you keep measuring once real users hit your system. The NIST AI Risk Management Framework Generative AI Profile organizes ongoing oversight around four core functions (govern, map, measure, and manage), advising organizations to measure capabilities, limitations, and risks before deployment, run adversarial role-playing or red-teaming to uncover unexpected failure modes, and keep testing regularly during live operation.
Use this five-point checklist to turn your evaluation data into a resilient production rollout.

If neither your business mission nor your target operating model for AI is clear yet, resist the pressure to hire a long-term build team right away. Starting with a focused discovery phase is the safer move, letting you prove process economics, risk tiers, and evaluation criteria before committing serious engineering spend.
Make the call on your winning model today, freeze your written acceptance criteria, and put your first post-launch monitoring review on the team calendar right now.
If you want senior architects and AI engineers who tie model selection to hard business economics, security, and repeatable testing, we can help you evaluate candidates, design the right architecture, and ship production-ready AI systems without the hype. Explore how we build, modernize, and operate business-critical software at Rite NRG and start with a clear, evidence-backed plan.
/ about the author
Written by the RITE NRG editorial team — the architects, engineers and delivery leads who build and operate AI-era software for our clients.
Strategy & Transformation
A practical, finance-ready framework for comparing AI and modernization investment with the current-state cost, realistic benefits, delivery risk and time to value.
Technology Talent & Teams
A decision-maker's guide to IT partnership models: what each model actually transfers to the partner, what it costs beyond the rate card, and how to match the model to your situation.
AI Consulting & Automation
A practical framework for choosing and deploying transport or logistics AI agents around real exceptions, reliable data and controlled operational authority.
More guidance: all insights articles
Tell us about the system or idea behind this article. We tell you honestly if it is a fit — and what a fixed-scope delivery could look like.