---
title: "Dual-Embedding Trust Scoring"
description: "Scribd scores documents against four trust-and-safety pillars (Illegal, Explicit, PII/Privacy, Low Quality) by taking the cosine similarity between a document's fine-tuned 128-dimensional LaBSE embedding and a per-pillar centroid averaged from roughly 100,000 labeled training documents."
url: "https://swe.quest/articles/dual-embedding-trust-scoring-5158433c50d53809"
canonical: "https://tech.scribd.com/blog/2026/content-trust-score.html"
source: "Scribd Tech"
published: "2026-02-25"
difficulty: "medium"
kind: "Research"
reading_minutes: 11
tags: ["machine-learning","llms","threat-detection"]
---

# Dual-Embedding Trust Scoring

A post on [Scribd Tech](https://swe.quest/sources/scribd.md), published 2026-02-25, 11 min read, Research. Original: [https://tech.scribd.com/blog/2026/content-trust-score.html](https://tech.scribd.com/blog/2026/content-trust-score.html)

## Summary

Scribd scores documents against four trust-and-safety pillars (Illegal, Explicit, PII/Privacy, Low Quality) by taking the cosine similarity between a document's fine-tuned 128-dimensional LaBSE embedding and a per-pillar centroid averaged from roughly 100,000 labeled training documents. Content embeddings separated violating documents from clean ones better for Illegal, Explicit and PII. Embeddings of LLM-generated descriptions worked better for Low Quality, so the system uses a hybrid of the two. Thresholds were tuned for about a 1% false positive rate on about 109,000 evaluation documents, giving recall of 72% for Illegal and 27% for Low Quality, but only 10% for Explicit and 4% for PII.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)

## Prerequisites

- text embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- cosine similarity
- precision/recall and FPR

## Keywords

Scribd, LaBSE, Content Trust Score, cosine similarity

## Related posts

- [An Introduction to AI Secure LLM Safety Leaderboard](https://swe.quest/articles/an-introduction-to-ai-secure-llm-safety-leaderboard-3389612600bb2dd0.md): Hugging Face · 2024-01-26 · Easy · 5 min read · Evaluation, AI safety, LLMs
  The LLM Safety Leaderboard, built on the Hugging Face leaderboard template, ranks open and closed models using DecodingTrust, a NeurIPS 2023 evaluation framework covering eight trustworthiness perspectives: toxicity, stereotype bias, adversarial robustness, OOD robustness, adversarial demonstrations, privacy, machine ethics and fairness.
- [Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases](https://swe.quest/articles/introducing-the-enterprise-scenarios-leaderboard-a-leaderboard-for-real-world-3fa64534d04586f5.md): Hugging Face · 2024-01-31 · Easy · 6 min read · Evaluation, LLMs
  Patronus and Hugging Face's Enterprise Scenarios Leaderboard evaluates language models on six enterprise-oriented tasks: FinanceBench, Legal Confidentiality, Creative Writing, Customer Support Dialogue, Toxicity and Enterprise PII.
- [Getting the Source Right, Not Just the Fact: Source-Aware Verification for MCP Agents](https://swe.quest/articles/getting-the-source-right-not-just-the-fact-source-aware-verification-for-mcp-2c6e889b003bd99e.md): Hugging Face · 2026-09-29 · Hard · 10 min read · Evaluation, AI agents, LLMs, RAG & retrieval
  ProvenanceGuard is a post-generation verifier for MCP-based LLM agents that catches cross-source conflation: claims that are true somewhere in the pooled tool outputs but attributed to the wrong source.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage.
- [Finding leaked passwords with AI: How we built Copilot secret scanning](https://swe.quest/articles/finding-leaked-passwords-with-ai-how-we-built-copilot-secret-scanning-26ede51a550b66b2.md): GitHub Engineering · 2025-03-04 · Medium · 8 min read · LLMs, Evaluation, Security, Capacity planning
  GitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
