Third-party evaluators can safely query private LLM training data using PySyft
Third-party evaluators can identify the presence of harmful biological information in a private LLM training dataset without exposing the raw data.
AI/ML EleutherAI 31 Oct 2024 Method Prototype evidence
Published as “Third-party evaluation to identify risks in LLMs’ training data”
Why it matters
The approach enables safety researchers to assess training-data risks while preserving the developer’s IP and user privacy.
Summary
EleutherAI and OpenMined used the PySyft library to let an external evaluator run custom Python code against a private LLM training dataset without revealing the raw documents. The evaluator searched for three biological agents using a TF-IDF keyword query and flagged about 60 relevant documents out of over 200,000. TF-IDF retrieved 0.01% of documents for "subtilis" with 0.79 precision and recall, but performed worse for the other agents. The workflow included code review by the AI developer and only returned summarized results, demonstrating a privacy-preserving evaluation approach.
What they found 2
- TF-IDF retrieved 0.01% of documents for "subtilis" with 0.79 precision and 0.79 recall.
“"subtilis" | 0.01% | 0.79 | 0.79”
- The evaluation flagged roughly 60 documents containing the target biological agents.
“Our evaluation flagged roughly 60 documents, and EleutherAI was able to inspect the results, with their domain expertise and strategic context, before releasing them to the evaluator.”
Caveats 6
- TF-IDF performed less precisely with documents matching the other query terms.
- A closer inspection of the missing documents shows many, but not all, are for products and reagents.
- It is particularly challenging to measure performance against the hidden or private test set (i.e., the AI developer’s data).
- TF-IDF was the only retrieval method tested; more advanced methods were not evaluated.
- Precision and recall varied across query terms, with low precision for RSV (0.11) and influenza (0.21).
- The evaluation focused on illustrative bio-risk queries rather than a comprehensive safety assessment.
What’s new here 4
- Demonstrates a privacy-preserving workflow for third-party safety evaluation of proprietary LLM training data using PySyft.
- Shows that TF-IDF can retrieve documents containing specific biological agents without exposing raw data.
- Provides open-source notebooks to replicate the evaluation on a private dataset.
- Highlights governance steps (code review, limited result release) to mitigate IP and privacy risks.