WhoBuilt

LLM Safeguards: Security Privacy Compliance Anti Hallucination

Dec 31, 2024· 34 min· 1.5K views·Watch on YouTube

Speaker

Daniel Whitenack, founder and CEO of Prediction Guard, discusses safeguards for secure and accurate enterprise LLM applications at the AI Engineer conference.

Map the risks

Whitenack outlines five risks: hallucinations, supply chain vulnerabilities, insecure model servers, data breaches, and prompt injection. He illustrates the stakes with a disaster-relief application that assists field medics, where inaccurate guidance could have serious consequences.

Check answers against evidence

Retrieval can ground an answer in company documents, but it also brings sensitive data into prompts and does not guarantee a correct response. Whitenack describes using an ensemble of factual-consistency models to compare generated answers with source material and produce a score.

Secure models and servers

Whitenack recommends using curated model registries, checking model hashes or attestations, and keeping options such as Transformers' `trust_remote_code` disabled. He also points to endpoint monitoring, file integrity checks, penetration testing, and questions about vendors' server security.

Protect data and block attacks

PII and health-data filters can block, remove, or replace sensitive information before it reaches a model. Server-side protections such as confidential computing and attestation can reduce exposure in memory, while prompt-injection classifiers can flag or filter malicious instructions.

Apply safeguards to production and agents

To limit latency, Whitenack favors smaller NLP models and vector comparisons where possible; he says a factual-consistency model may add about 200 milliseconds compared with an LLM call of roughly four seconds. For data access, he recommends applying existing role-based permissions, and for agents, restricting permissions and reviewing a dry run before changes are applied.

Takeaways

  • Compare model answers with source material and score factual consistency.
  • Treat model weights and inference code as supply chain dependencies: curate sources and verify integrity.
  • Filter sensitive information before prompts reach the model, and ask how server memory and logs are protected.
  • Use existing role-based access controls when retrieving organizational data.
  • Limit agent permissions and require human review of proposed actions before execution.

Mentioned in this talk

Search inside this talk

What was claimed 4

Related talks