Large Language Models in Production Round Table Discussion: Latency, Cost and Trust Considerations

various · Tech · 2023 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Production LLM application design and operations

The roundtable examines why LLM applications become difficult once they move beyond simple API wrappers: teams must manage latency across chained workflows, cost at high inference volume, privacy constraints, hallucination risk, and the trust gap between copilots and automation.

Constraints:

Architecture

The panel describes a tiered production architecture for LLM systems. Tier 1 apps call an external model API directly. Tier 2 apps add engineering infrastructure: context stores, databases, integrations, monitoring, and workflow orchestration around model calls. Tier 3 adds model ownership, fine-tuning, agents, RLHF, and self-hosted optimization. Digits' concrete case uses open-source models in-house for financial data, applies domain-specific fine-tuning, quantization, pruning, XLA/profiling, and teacher-student reduction, then layers content filters, hallucination-pattern checks, and accountant review over generated text.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  app["Production application"] --> context["Context and integration layer"]
  app --> api["External model API"]
  context --> retrieval["Retrieval and reference layer"]
  context --> workflow["Workflow orchestration"]
  workflow --> api
  workflow --> model["Self-hosted domain model"]
  model --> optimize["Model optimization pipeline"]
  model --> filters["Safety and hallucination filters"]
  filters --> human["Human reviewer"]
  human --> app
  workflow --> monitor["Monitoring and testing"]
  retrieval --> workflow
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Production application User-facing software workflow that embeds an LLM capability into a business process. Context and integration layer, External model API, Self-hosted domain model
Context and integration layer Databases, documents, tickets, emails, Slack, Zendesk, Jira, or other sources that provide external information to the model workflow. Production application, Retrieval and reference layer, Workflow orchestration
Workflow orchestration Chained calls, parsing, routing, or agent-style loops that coordinate multiple model instances and external context. Context and integration layer, External model API, Self-hosted domain model, Monitoring and testing
External model API Hosted provider model used for fast startup or simple app wrappers. Production application, Workflow orchestration
Self-hosted domain model Open-source or internal model hosted in-house for privacy, latency, cost, and customization control. Model optimization pipeline, Workflow orchestration, Safety and hallucination filters
Model optimization pipeline Fine-tuning, quantization, pruning, profiling, XLA optimization, and teacher-student reduction used to reduce latency and cost. Self-hosted domain model
Safety and hallucination filters Reject unsafe generated text and known hallucination patterns before user exposure. Self-hosted domain model, Human reviewer
Human reviewer Domain expert review step for high-trust generated outputs before they reach clients. Safety and hallucination filters, Production application
Retrieval and reference layer External knowledge lookup and citations used to ground generated answers. Context and integration layer, Workflow orchestration
Monitoring and testing Observability and testing over cost, quality, latency, and workflow behavior. Workflow orchestration

Data flow

For a mature LLM product, user or business data flows through application infrastructure and integrations before a model call. In the Digits example, financial data stays in-house, a domain-specific model generates or embeds accounting text, output is filtered for unsafe content and known hallucination patterns, and an accountant reviews text before it reaches the client. In broader Tier 2 workflows, context from documents, emails, Jira, Zendesk, Slack, databases, or retrieval systems feeds chained model calls, while monitoring tracks cost, quality, and latency across the full workflow.

4 supporting quotes
“we use like language models to Define very custom embeddings”transcript, stated
“when we generate a text it goes through a very stringent not safer work filter if it's like the slightest rating there we store this several away”transcript, stated
“we have we check constantly against patterns of hallucinations and if it follows into one of those patterns we also throw the sample”transcript, stated
“we make sure in our app whatever we show is like reviewed by an accounting before they actually send it to their client”transcript, stated

Why this architecture

The panel frames LLM production architecture as a set of escalating commitments. API wrappers are fastest to launch, context-rich applications need integration and workflow infrastructure, and privacy-, latency-, or cost-sensitive workloads justify self-hosting and model optimization. Trust layers such as filters, retrieval, citations, and human review are needed because models remain probabilistic and can hallucinate.

4 supporting quotes
“the production is like basically just a call to open AI you add one API called your application and you're good”transcript, stated
“you have to start like building infrastructure databases Integrations pulling data from whatever sources you need”transcript, stated
“if that is possible then we have the opportunity to quantize and prune the model to reduce the latency”transcript, stated
“large language models currently as it stands uh they're very um poor sources of facts and knowledge”transcript, stated

Models used: large language models · open-source language models · OpenAI API models · fine-tuned Babbage instances · domain-specific smaller models · teacher-student distilled models · embeddings models · retrieval-augmented generation systems

Scale

Alternatives considered (roads not taken)

Use an external LLM API for every sensitive financial-data task

Rejected because: Digits saw privacy, customer-agreement, latency, and scale burdens from sending financial data to a third-party API.

“not handing over the data to the to an external API which we're not in control over anymore”transcript, stated
“even going to open AI is like it's that burden is tremendous and would change like even if we have a ramification of the terms and conditions with our customers”transcript, stated

Jump from prompt-based API usage directly to self-hosted model fine-tuning for every team

Rejected because: The panel says moving from prompt writing to fine-tuning large models is a large ML engineering barrier for software teams.

“we've told everybody you don't need to learn ml to do ML and then it's like oh never mind there's go fine tune the 13 billion parameter model good luck”transcript, stated

Treat all LLM applications as needing the same latency target

Rejected because: The panel argues latency depends on user flow and use case; some batch processes can tolerate latency while copilots cannot.

“depending on your use case you care about one of those more than the other two and like the best the best example of this is code copilot”transcript, stated
“if you have a big batch process it doesn't really matter”transcript, stated

Rely on model parameters alone for factual answers

Rejected because: The panel describes current LLMs as poor factual knowledge stores and points toward retrieval and references.

“large language models currently as it stands uh they're very um poor sources of facts and knowledge”transcript, stated
“the way forward really is having these knowledge bases and combining it maybe with like a retrieval”transcript, stated

Patterns

human-in-the-loop-gate (trust)

Digits keeps an accountant review step before generated content is sent to clients.

“we make sure in our app whatever we show is like reviewed by an accounting before they actually send it to their client”transcript, stated

guardrails-io-filtering (safety)

Generated text is filtered for unsafe content and checked against known hallucination patterns before exposure.

“it goes through a very stringent not safer work filter if it's like the slightest rating there we store this several away”transcript, stated
“we have we check constantly against patterns of hallucinations and if it follows into one of those patterns we also throw the sample”transcript, stated

model-distillation (model-optimization)

The panel highlights teacher-student reduction and smaller domain-specific models as ways to reduce latency and cost.

“what worked really well for us just like sort of like the teacher student approach for like we take a larger model and then break this down into something smaller”transcript, stated

latency-optimization (serving)

Production teams optimize workflow and model latency through smaller models, fine-tuned instances, quantization, pruning, profiling, XLA, and CPU-serving options.

“we were able to get like reduced models we would get the profilers we get Excel xla uh we get all these optimizations”transcript, stated
“we get now we can even run those models on the CPU in a very condensed version”transcript, stated

rag-retrieval (grounding)

The panel describes retrieval-augmented generation and reference tracing as a way to compensate for weak factual reliability in model parameters.

“the way forward really is having these knowledge bases and combining it maybe with like a retrieval”transcript, stated
“you basically get all the references whenever it states something”transcript, stated

observability-tracing (operations)

Bountiful is described as tooling for observing and testing cost, quality, and latency across foundation-model workflows.

“we're building a monitoring and testing tool for foundation model workflows”transcript, stated
“allows them to actually observe and then test the cost quality and latency across their workflows”transcript, stated

Tradeoffs

How quickly to launch an LLM product

Chose Start with hosted APIs for simple Tier 1 applications when the use case allows it over Building self-hosted fine-tuned infrastructure from day one.

Rationale: API wrappers require little infrastructure and are faster to get into production, while self-hosting adds engineering complexity.

“the production is like basically just a call to open AI you add one API called your application and you're good”transcript, stated
“if it's like this lots of engineering complexity in there so it's like I can see the trade-off product starts it might be easier to code or an API”transcript, stated

How Digits handled financial data and high transaction volume

Chose Self-hosted open-source domain models over External API calls to hosted LLM providers.

Rationale: Self-hosting preserved data control, reduced network overhead, and enabled model compression for latency and cost.

“not handing over the data to the to an external API which we're not in control over anymore”transcript, stated
“there's another benefit of like you have lower networks if you have the model sitting right next to you and your instance”transcript, stated

How to optimize for the cost-quality-latency triangle

Chose Prioritize the vertex that matches the use case over Assuming one universal optimization target for all LLM apps.

Rationale: Code copilots need low latency, high-stakes domains may accept cost and latency for quality, and batch processes can optimize differently.

“when in our conversations with companies is a cost quality and latency triangle right and depending on your use case you care about one of those more than the other two”transcript, stated

How to address factual trust

Chose Use retrieval/reference systems and human or system-level checks over Trusting model parameters as a factual source of record.

Rationale: The panel calls LLMs poor factual knowledge stores and recommends knowledge bases, retrieval, references, and use-case affordance boundaries.

“large language models currently as it stands uh they're very um poor sources of facts and knowledge”transcript, stated
“how can you trades back references or things like this and for the moment give up the the constant lookup concept”transcript, stated

When to move from copilot to automation

Chose Keep humans in the loop where trust and tools are not mature enough over Giving LLMs autonomous control immediately.

Rationale: The panel distinguishes validating copilot outputs from giving LLMs full automation authority.

“there's a big difference when you give llm the keys to the car versus the autopilot”transcript, stated
“a lot of this stuff you see now is co-pilot honest talked about this where you like you have a human in the loop to validate”transcript, stated

Gotchas (what bit them)

Workflow latency is often underestimated because each model call and integration adds to the user-facing path.

Root cause: Tier 2 systems chain multiple model instances and surrounding application infrastructure.

Resolution: Measure latency at the workflow level and use smaller/fine-tuned/domain models when the use case requires faster responses.

“when you're cooling let's say you're at that tier two of complexity that David described right you've got a chained kind of workflow of potentially multiple instances of models”transcript, stated
“there's a latency of making one call to one model but then there's a latency of an end-to-end user experience”transcript, stated

Sensitive data can make an otherwise convenient hosted API path unacceptable.

Root cause: Financial customer data creates privacy, control, and contractual burdens when sent to an external API.

Resolution: Host open-source models in-house and optimize them for the domain.

“we promise our customers that we we're trying to like we're keeping everything secure and in-house”transcript, stated
“therefore there's a huge motivation to like every used open source models and hosts them ourselves”transcript, stated

Agentic or chained model workflows are hard to trust in front of users.

Root cause: Parsing model outputs and repeatedly calling models creates unpredictable back-and-forth behavior.

Resolution: Build testing, monitoring, human review, and trust tooling before moving from copilot to automation.

“you want to call it to a language model and get a response and parse the response and call it the language model again”transcript, stated
“it's just actually kind of hard to be confident in the systems you build with that in a way where you're like ready to put in front of users”transcript, stated

The path from prompt use to self-hosted model optimization remains an expertise cliff.

Root cause: Software teams can build with prompts, but self-hosting and fine-tuning require ML engineering, tokenizers, profilers, and framework knowledge.

Resolution: Treat self-hosted optimization as a later-stage investment and build tooling that makes Tier 2 complexity manageable.

“even like fitting those pieces together that is a whole Challenge”transcript, stated
“most of them are not the people building these companies are not ml developers they're not ml Engineers”transcript, stated

Hallucinations become materially worse when generated text is used for real-world decisions.

Root cause: LLMs can produce factually inaccurate outputs, and the risk rises as outputs move from demos into downstream tasks.

Resolution: Use retrieval, references, use-case affordance analysis, filters, and human review for low-tolerance domains.

“hallucinations yeah just anything that's not factually accurate and just falls into the accuracy problem when you're thinking about evaluating language model outputs”transcript, stated
“now people are actually using these lens for real world tasks”transcript, stated

Evaluation

The roundtable itself is a qualitative practitioner synthesis rather than a benchmarked deployment. It recommends evaluating LLM systems at workflow level across cost, quality, latency, trust, privacy, security, and factuality, with monitoring and testing tooling over foundation-model workflows.

Metrics: workflow-level latency · model-call latency · cost per inference · margin per inference · quality of generated output · hallucination/factuality checks · privacy and security constraints · human-review acceptance

3 supporting quotes
“one tool for FM app developers that allows them to actually observe and then test the cost quality and latency across their workflows”transcript, stated
“it's really easy to back the envelope how much does one inference cost how many inferences will you do what's your margin per inference”transcript, stated
“when we talk about trust and interest we'll talk about testing the results security privacy anything that's regarding”transcript, stated

Outcomes

The discussion is not a single production metric report, but it includes concrete scale examples: Digits' near-100-million daily transaction workload, seven-model chained workflows, a 15-second to 3.5-second latency reduction example, GPU-vs-CPU cost pressure, and the MLOps community's roughly 15,000 members.

4 supporting quotes
“we have to process and close to 100 million transactions a day”transcript, stated
“he managed to get that down to like three and a half seconds through kind of fine-tuning Babbage instances rather than using large models”transcript, stated
“we get now we can even run those models on the CPU in a very condensed version”transcript, stated
“you basically get all the references whenever it states something”transcript, stated