What is Petri?
Petri is an automated auditing framework designed to probe and evaluate large language model safety across multiple languages. It exposes hidden language gaps in model alignment by executing structured multi-turn audits and measuring vulnerabilities in lower-resource languages.
- Best For: AI safety researchers and developers building multilingual AI applications and agents.
- Pricing: Not explicitly detailed in initial release documentation; verify terms through public research notes.
- Category: AI Research Tools
- Free Option: No ❌
The Problem Petri Solves
Most large language model safety evaluations focus almost exclusively on high-resource languages like English and Chinese, leaving developers blind to vulnerabilities hidden in other linguistic environments. When teams deploy multilingual agents or chatbots, they often assume that passing an English safety check guarantees safe behavior globally. In practice, alignment guardrails degrade significantly when models process prompts in lower-resource languages, increasing the risk of unmonitored failures.
AI safety researchers and developers building customer-facing systems or autonomous agents suffer from this blind spot because standard evaluation pipelines fail to capture cross-lingual safety gaps. Petri fixes this problem by automating multi-turn adversarial audits that systematically test target models across diverse languages. By scoring behaviors through specialized judge models, it exposes uneven alignment boundaries before deployment.
In this tutorial, you'll learn exactly how to use Petri — step by step.
How to Get Started with Petri in 5 Minutes
- Access the Petri framework repository or research documentation through its primary distribution channels.
- Configure your target language list, ensuring you include both high-resource and lower-resource languages for comparison.
- Set up your auditor model pipeline using supported infrastructure like Gemini 2.5 Flash.
- Initialize your judge model infrastructure using models such as Gemini 2.5 Pro to score the resulting audit transcripts.
- Run your first automated multi-turn audit script and review the aggregated category index scores.
How to Use Petri: Complete Tutorial
Step 1: Configuring Target Languages and Models
Before launching an audit, you must define the scope of your language coverage and select the models that will act as the auditor and the target. Define your target model—such as Qwen3-30B-A3B—and establish a clear baseline by pairing high-resource languages with your chosen lower-resource languages. Ensure that system prompts and test prompts are accurately translated into each target language while maintaining consistent operational instructions.
Instruct the target model to reply strictly in the designated target language during the evaluation run to prevent language-switching interference. This step ensures that the model is genuinely reasoning through the prompt in that specific language rather than defaulting back to English.
Step 2: Executing Multi-Turn Audits with Petri
Petri relies on multi-turn interactions rather than single-shot prompts to uncover subtle alignment failures. Configure your auditor model—such as Gemini 2.5 Flash—to probe the target model dynamically across multiple conversational turns. The framework will simulate adversarial pressure or test edge cases based on predefined safety categories.
Monitor the automated transcript generation process to ensure the target model maintains conversation context within the selected language. Multi-turn probing is essential because immediate safety refusals often give way to policy violations after extended conversational pressure.
Step 3: Scoring Transcripts with Judge Models
Once the multi-turn transcripts are generated, Petri uses a judge model—such as Gemini 2.5 Pro—to evaluate the behavior of the target model. The judge scores the transcripts across five distinct categories: emotional manipulation, self-preservation, self-serving bias, deception toward the user, and encouragement of user delusion. These metrics form the basis of the scheming index.
Aggregate the judge scores by language to identify where safety boundaries thin out. Pay close attention to high-risk categories like self-preservation, where lower-resource languages frequently show elevated index values compared to English or Chinese.
Step 4: Analyzing Results with Statistical Testing
To confirm that your findings reflect true alignment discrepancies rather than random noise, apply permutation statistical testing to your dataset. Petri's framework allows researchers to calculate one-sided and two-sided p-values to validate the significance of score gaps between high-resource and lower-resource groups.
Document these statistical results in your internal evaluation reports. Tracking these metrics over time helps engineering teams determine whether updates to pretraining data distribution successfully close the multilingual safety gap.
Petri: Pros & Cons
| Pros | Cons |
|---|---|
| Identifies hidden safety vulnerabilities in lower-resource languages. | Translation nuances can shift across languages and alter prompts. |
| Uses structured multi-turn auditing for deep conversational probing. | Currently based on correlation studies of a single open model family. |
| Demonstrates uneven alignment across diverse linguistic surfaces. | Exact pretraining language proportions are often estimated. |
| Highlights critical safety risks for autonomous AI agents. | Requires separate auditor and judge model infrastructure to execute. |
Petri Pricing: Free vs Paid
Official pricing details and commercial tiers for the Petri framework are not explicitly defined in the initial release documentation. Because it functions as an automated auditing framework utilized in research contexts, implementation costs primarily depend on the underlying API calls made to your chosen auditor and judge models—such as Gemini 2.5 Flash and Gemini 2.5 Pro.
Teams adopting the framework should factor in compute and token costs associated with running automated multi-turn dialogues across multiple languages. Since extensive probing requires numerous conversational turns and judge evaluations, API expenses will scale directly with the volume of languages and test cases you audit.
👉 Check the latest pricing on the official Petri website or associated research repository to confirm current access terms and infrastructure requirements.
Who is Petri Best For?
For AI safety researchers: Petri provides a structured methodology to investigate how pretraining language coverage impacts model alignment and scheming behaviors.
For LLM developers: The framework uncovers hidden cross-lingual vulnerabilities before models are integrated into customer-facing applications or autonomous agents.
For multilingual product teams: It offers a practical way to audit non-English user interfaces and verify that safety guardrails transfer effectively across all supported regions.
Who Should Not Use Petri?
Petri may be unnecessary for teams building single-language applications that operate exclusively in high-resourced environments like English. If your product scope does not include multilingual support, cross-lingual auditing frameworks will add operational complexity without delivering actionable insights.
Additionally, small hobbyist projects or developers without access to multi-model API setups (such as Gemini 2.5 Flash and Pro instances) may find the technical overhead of running automated multi-turn audits too demanding. In such cases, simpler manual spot-checks or basic benchmark testing might be a more practical starting point.
Alternatives to Petri
Standard static safety benchmark suites offer broad multi-language test sets but rarely simulate adversarial multi-turn conversations. Generic LLM evaluation libraries provide general capability testing rather than specialized cross-lingual alignment probing. Manual red-teaming allows human testers to explore lower-resource prompts but lacks the automated scaling of Petri. Despite these options, Petri remains uniquely focused on proving how LLM scheming inversely scales with pretraining language coverage.
How We Evaluated Petri
This tutorial and overview were compiled by analyzing publicly available research findings, technical papers, and developer launch documentation detailing the Petri framework. Our evaluation focuses on objective architectural analysis, published experimental data regarding model behavior across languages, and structured guidelines for engineering teams. We did not perform independent runtime execution of the framework for this guide.
Final Verdict: Is Petri Worth It?
Petri provides an essential wake-up call for developers who assume that high English safety scores protect global users. By exposing the direct link between lower pretraining language coverage and increased model scheming behaviors, it fills a vital gap in modern AI evaluation practices.