Downloads · 30 days
88
58% of all-time downloads
peach-lab/privacy-comparator
privacy-comparator is a text classification model from peach-lab. Use it when you need a label for a piece of text. It is set up for peft.
A learned model for pairwise comparison of privacy strength between messages.
Downloads · 30 days
88
58% of all-time downloads
All-time downloads
151
Public
Repo size
40.4 MB
Likes
1
Public
Click a slice to open those files.
.safetensors40.4 MB · 100%
From the Hugging Face model README
A learned model for pairwise comparison of privacy strength between messages.
Privacy Comparator is a learned model that compares two messages and determines which provides stronger protection of personal or sensitive information.
Given two inputs:
A: message
B: message
the model outputs:
A message A is more privacy-preserving
B message B is more privacy-preserving
SAME messages offer the same level of privacy protection
The model performs relative privacy comparison and can be applied to arbitrary message pairs, regardless of how they were generated.
It does not:
Instead, it learns a preference relation over messages in terms of privacy strength.
Finetuned from: Qwen/Qwen2.5-7B-Instruct
Implemented as a LoRA adapter.
This adapter inherits the license constraints of the base model.
For example, when multiple transformation strategies are applied to the same input:
m_i = τ(x; a_i)
where:
x is the original messagea_i is a transformation strategy (e.g., redact, abstract, retain sensitive spans)τ applies the chosen strategy to produce a privacy-preserving versionExample:
Original message:
Lucy lives at 139 Tremont St in Boston.
Different strategies may produce:
m₁: [NAME1] lives at [ADDRESS1] in [CITY1].
m₂: A person lives at a residential address in a major city in U.S.
m₃: A person lives at [ADDRESS1] in Boston.
The comparator can rank such variants based on which better protects sensitive information.
For more details on the transformation framework, please refer to the associated paper.
This model is not intended for:
It performs relative comparison only.
Training performed using Fireworks AI.
This model is fine-tuned via supervised fine-tuning (SFT) with LoRA on pairwise privacy-preference comparisons.
Training labels are generated using a teacher model (OpenAI o3) on ShareGPT90K-derived privacy-variant pairs.
As described in the paper, o3 was selected based on its alignment with human ground truth under high-consensus cases.
In addition, we release a human-labeled evaluation set of 150 A/B pairs.
Each pair is annotated by at least 5 qualified participants (52 unique participants total), with provided consensus labels and consensus_ratio.
For details on data construction, model selection, and annotation procedures, please refer to the paper.
We release a human-labeled dataset of 150 pairwise privacy-preference comparisons.
Each JSONL entry contains:
survey_id, conversation_id, pair_indexanswers: anonymized participant votes (participant_1, participant_2, ...)consensus, consensus_ratiomessage_A, message_BAll participant identifiers are anonymized. No Prolific IDs or direct participant identifiers are released.
The model produces structured JSON decisions:
{
"reason": "...",
"response": "A" | "B" | "SAME"
}
Paper: OpenReview
Code: Operationalize Data Minimization
For full details of the transformation framework and action search procedure, please refer to the paper.