Dual-Embedding Trust Scoring
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.
Related posts
- An Introduction to AI Secure LLM Safety Leaderboard
Hugging Face easyNoviceThe 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. Each perspective uses tailored red-teaming methods, such as 33 adversarial system prompts scored with the Perspective API, adversarial examples transferred from attacks on Alpaca and Vicuna, and prompts designed to extract emails and credit card numbers. Key findings: GPT-4 is more vulnerable than GPT-3.5, no model leads on every perspective, the perspectives trade off against each other, and small wording changes such as "confidentially" versus "in confidence" change privacy leakage. Model owners can submit public safetensors models that load through transformers AutoClasses.
- Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases
Hugging Face easyNovicePatronus 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. Scoring varies by task. FinanceBench and customer support use few-shot GPT-3.5 judging, legal uses exact-match yes/no accuracy, creative writing uses the EnDEX engagingness model, toxicity uses Perspective API, and PII uses a classifier trained on 3,000 labeled examples. To limit test-set contamination, four of the six datasets are kept closed, with only validation sets released. Submitted models must be public and loadable via Hugging Face AutoClasses.
- Getting the Source Right, Not Just the Fact: Source-Aware Verification for MCP Agents
Hugging Face hardMasterProvenanceGuard 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. It keeps source IDs from the captured MCP trace through every stage. It decomposes answers into claims, routes each claim to a source with MiniLM, checks support with a DeBERTa NLI model plus exact literal-value matching, and compares the supporting source with the one the answer names. A calibrated step then allows or blocks the answer, and blocked answers go to RARR-style repair. On 361 expert-labeled medical claims it caught 138 of 139 unsupported claims, scored 0.802 block F1 against MiniCheck's 0.783 and RAGAS's 0.758, and found the correct source about 86% of the time. That source accuracy fell to 50.3% among similar sources, while overhead was about half a second per answer.
- Detecting malicious pull requests at scale with LLMs
Datadog Engineering mediumAdeptDatadog'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. Large diffs are recursively chunked at file markers, then newlines, then midpoints, and the most severe chunk verdict wins, with depth and chunk limits to bound cost. A hand-curated, weekly-updated dataset of real and simulated attacks, prompt-level false-positive exclusions, balanced accuracy as the metric, shadow-mode triage and red teaming cut false positives from over 10% to 0.03%. On the curated set it reached over 99.3% accuracy and caught the tj-actions and Nx s1ngularity malicious commits.
- Finding leaked passwords with AI: How we built Copilot secret scanning
GitHub Engineering mediumAdeptGitHub replaced regex-based detection of generic passwords with an LLM prompt that judges candidate secrets from their file context. The first GPT-3.5-Turbo few-shot prompt broke on unusual file types in customer repos. GitHub responded by expanding offline evals with customer reports and GPT-4-generated cases, adding GPT-4 as a confirming scanner, and adopting Microsoft's MetaReflection hybrid chain-of-thought/few-shot prompt. To scale full-history scans, they excluded low-value files and built a workload-aware rate limiter in which workloads borrow unused LLM capacity from each other. Mirror testing on preview repos showed up to a 94% drop in false positives with little recall loss.