8 min read

You want a private LLM. You do not need to host one

When a pharma research team asks for a private LLM for literature search, they usually picture their own GPUs. Private is a property of the data path, not of who owns the GPU. Here is why Amazon Bedrock inside your own AWS boundary is usually the better architecture.

SaaS production readinessAWSBedrockAIArchitectureSecurity

When a research team at a drug manufacturer asks for a private LLM, the request usually sounds the same. Researchers want to search the literature, summarize papers, and ask questions across years of internal study reports. The picture in the room is a rack of GPUs, an open-weight model, and a team to run it. The real worry is simpler. Unpublished compound data and assay results must not leak, and they must not train someone else's model. That is a requirement about where data goes. It is not a requirement about who owns the hardware. On AWS, Amazon Bedrock meets it without a single GPU on your bill.

What "private LLM" means in the brief

When a research organization says private, it rarely means self-hosted. It means three things that a self-hosted model does not guarantee on its own either.

Our data does not train anyone's model

The fear is that a prompt about an unpublished molecule becomes part of a public model next year. That is a contract and architecture question. It is answered by what the provider does with prompts, not by where the weights sit.

Our data does not cross the public internet

Security teams want the traffic between the research app and the model to stay on a private network path. A self-hosted model in a flat VPC with an open egress rule fails this test just as easily as a public API call.

We can prove who asked what

In a regulated industry, someone will eventually ask which researcher queried which data, and what the model said back. If you cannot answer that, the model is not private. It is just unobserved.

What Bedrock already guarantees

Bedrock is a managed API in front of foundation models from Amazon and third-party providers. You call it from your own AWS account. You do not run instances, containers, or GPUs.

The privacy model is the part that matters for a research team. AWS states that your data is not shared with model providers and is not used to improve the base models. Models run in model deployment accounts that the Bedrock service team owns. AWS documents that model providers have no access to those accounts, so they cannot see Bedrock logs, prompts, or completions.

Traffic requires TLS 1.2. Data at rest can be encrypted with keys you manage in AWS KMS. That covers the first requirement on day one, before you write any architecture of your own.

Keep the traffic inside your network

The second requirement is network design, and Bedrock supports it directly.

Create an interface VPC endpoint for bedrock-runtime. Your research app then calls Bedrock without an internet gateway, NAT device, or public IP. With private DNS enabled, the SDK code does not change. Add endpoints for bedrock-agent-runtime if you use Knowledge Bases.

The default endpoint policy allows full Bedrock access. Replace it. Allow only the actions and the approved model your app needs.

{
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": "*",
      "Action": ["bedrock:InvokeModel", "bedrock:InvokeModelWithResponseStream"],
      "Resource": "arn:aws:bedrock:REGION::foundation-model/APPROVED_MODEL_ID"
    }
  ]
}

Then decide where processing happens. Calling a model ID in one Region keeps inference in that Region. A geographic cross-Region inference profile spreads load across Regions inside one geography, such as the US or the EU. A global profile is about 10 percent cheaper and can process anywhere. Do not use it for unpublished research.

Ground answers in your own research

A literature assistant that answers from the model's training data will invent citations. Researchers will stop trusting it the first time a paper does not exist.

Use retrieval, not fine-tuning

Retrieval-augmented generation finds the relevant passages in your documents at query time and hands them to the model. Fine-tuning bakes a snapshot of your data into the model. Literature and study reports change every week. A fine-tuned model is stale the day it ships, and it now contains your IP in its weights. Retrieval keeps the documents in your bucket and the model generic.

Bedrock Knowledge Bases runs that pipeline for you. Point it at the papers and internal reports in S3. It parses, chunks, embeds, and indexes them, and it returns answers with citations to the source passage.

Tune retrieval for scientific text

Pure semantic search struggles with compound codes, gene symbols, and assay IDs. Use hybrid search so exact terms still match. Add reranking when the top results are close but not quite right. These choices decide whether a scientist trusts the tool more than any model choice does.

Keep programs apart

Not every researcher should see every program's unpublished data. Tag documents with metadata such as program and access group, and apply a mandatory filter on every query. The Managed Knowledge Base option can also respect document-level access control lists from sources like SharePoint, so permissions follow the document instead of living in prompt text.

Decide who may use which model

Governance belongs at the account and organization level, not in each developer's code.

  1. Run the research workload in its own AWS account, as I described in putting production in its own account.
  2. Attach a service control policy that denies bedrock:InvokeModel on every model except an approved allow-list. A new model release then waits for review instead of reaching researchers the week it launches.
  3. Enforce a Bedrock Guardrail across the organization to block prompt attacks and mask sensitive fields in both prompts and responses.

Guardrails are one layer, not the whole defense. If the assistant can read internal systems or call tools, treat those permissions as the attack surface. I covered that in defending LLM features against prompt injection.

Prove what was asked

There are two audit trails, and they answer different questions.

CloudTrail records who called which Bedrock API, with which model, and from which Region. It does not record the prompt or the answer.

Model invocation logging records the full request, the full response, token counts, and the caller's identity. It is disabled by default. Turn it on before the first researcher logs in.

Those logs now contain the most sensitive text in the company. Treat them that way.

  1. Encrypt the bucket and log group with a customer managed KMS key.
  2. Restrict read access to a small audit role, not the research team.
  3. Set retention on purpose. Unlimited retention is a liability, and too short fails the auditor.

Then route the signals to a human. Alarm on throttles, errors, and token spikes, the same discipline as in CloudWatch alarms nobody reads.

When self-hosting is the right call

Bedrock is not the answer to every private model request. Hosting your own model, on Amazon SageMaker AI or on premises, makes sense in a few cases.

  1. You own proprietary model weights, such as a model trained on molecular structures, and you need to serve them as they are.
  2. You need control over the GPU type, the container, or the inference runtime that a managed API does not expose.
  3. A contract or policy requires a fully air-gapped environment with no managed AWS service in the path.

If none of those apply, self-hosting buys you GPU capacity planning, patching, scaling, and an idle bill at night. It does not buy you more privacy than a well-designed Bedrock account.

A sensible first build

Do not start with a model choice. Start with the questions researchers actually ask, and measure before you build.

  1. One dedicated AWS account in one Region, with the SCP allow-list and organization guardrail in place.
  2. Interface VPC endpoints for Bedrock with restrictive endpoint policies, and no NAT path to the public API.
  3. A Knowledge Base over a pilot corpus, such as one therapeutic area's literature and internal reports.
  4. A golden set of 50 real research questions with expected sources. Score candidate models against it with Bedrock Evaluations before you pick one.
  5. Invocation logging, KMS encryption, and alarms switched on before the first user.

That stack bills per token, not per idle GPU hour. It proves privacy with logs and policies instead of with ownership of hardware. And it leaves room to move to self-hosting later if one of the cases above becomes real.

Frequently asked questions

Does Amazon Bedrock train its models on our prompts?

No. AWS states that prompts and completions are not used to improve the base models and are not shared with model providers.

Can the model provider see our research questions?

No. Models run in deployment accounts owned by the Bedrock service team. Model providers have no access to those accounts, so they cannot see prompts, completions, or Bedrock logs.

Is RAG enough, or do we need to fine-tune a model on our data?

For literature search, RAG is the right starting point. It answers from current documents with citations, and your data stays in your bucket. Fine-tuning changes style and behavior, not knowledge freshness, and it puts your data into the model weights.

Can we keep all processing in one Region?

Yes. Call an in-Region model ID and enforce the Region with an SCP. Use a geographic cross-Region profile only if you need burst capacity and the geography still meets your policy. Never use the global profile for unpublished data.

Is Bedrock cheaper than running our own GPUs?

For research teams with uneven usage, usually yes. You pay per token while researchers work, not for GPUs that sit idle at night and on weekends. Steady, very high volume can change that math, so measure real usage before you commit either way.

When does self-hosting make more sense?

When you need to serve your own proprietary model weights, control the GPU and runtime directly, or run fully air-gapped. Otherwise a well-governed Bedrock account gives you the privacy without the operations burden.

Comments

    Leave a comment