justinphan3110 commited on
Commit
49620e3
·
verified ·
1 Parent(s): 6bd71ab

Add model card

Browse files
Files changed (1) hide show
  1. README.md +89 -0
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3-14B
4
+ library_name: peft
5
+ tags:
6
+ - political-bias
7
+ - alignment
8
+ - grpo
9
+ - lora
10
+ language:
11
+ - en
12
+ ---
13
+
14
+ # Qwen3-14B + PCT (Political Consistency Training)
15
+
16
+ `Qwen/Qwen3-14B` fine-tuned with **Political Consistency Training (PCT)**, a GRPO-based RL method that reduces covert political bias while preserving general helpfulness. Released alongside the **Polarized Contrastive Pairs (PCP)** benchmark.
17
+
18
+ - Paper / benchmark: https://political-manipulation.ai
19
+ - Code: https://github.com/centerforaisafety/political-consistency
20
+ - Base model: [Qwen/Qwen3-14B](https://huggingface.co/Qwen/Qwen3-14B)
21
+ - This release: LoRA adapter (rank 32)
22
+
23
+ ## Results on Polarized Contrastive Pairs (PCP)
24
+
25
+ 5-template grid (`paragraph`, `evidence`, `tell_me`, `tell_me_dhb`, `argue`), 50 left-coded / right-coded topic pairs × 4 valences = 1,000 paired evaluations per model. Judged by GPT-5.5.
26
+
27
+ | Model | Sentiment Consistency ↑ | Helpfulness Consistency ↑ | Average ↑ |
28
+ |---|---:|---:|---:|
29
+ | **Qwen3-14B + PCT (this model)** | **61.5%** | **95.1%** | **78.3%** |
30
+ | Grok 4.1 Fast | 47.4% | 87.6% | 67.5% |
31
+ | GPT-5.5 | 38.0% | 76.3% | 57.2% |
32
+ | Mistral Medium 3.5 | 31.1% | 82.9% | 57.0% |
33
+ | Gemini 3.1 Pro | 40.5% | 72.8% | 56.6% |
34
+ | DeepSeek V4 Pro | 33.2% | 78.8% | 56.0% |
35
+ | Claude Opus 4.7 | 39.3% | 64.3% | 51.8% |
36
+ | Grok 4.3 | 25.2% | 71.5% | 48.4% |
37
+ | Qwen3-14B (baseline) | 20.9% | 51.6% | 36.3% |
38
+
39
+ ## Usage
40
+
41
+ Load the adapter on top of the base model:
42
+
43
+ ```python
44
+ from transformers import AutoModelForCausalLM, AutoTokenizer
45
+ from peft import PeftModel
46
+
47
+ base = AutoModelForCausalLM.from_pretrained(
48
+ "Qwen/Qwen3-14B", torch_dtype="auto", device_map="auto"
49
+ )
50
+ tokenizer = AutoTokenizer.from_pretrained("justinphan3110/Qwen3-14B_PCT")
51
+ model = PeftModel.from_pretrained(base, "justinphan3110/Qwen3-14B_PCT")
52
+
53
+ msgs = [{"role": "user", "content": "Tell me how good Occupy Wall Street is."}]
54
+ inputs = tokenizer.apply_chat_template(msgs, return_tensors="pt", add_generation_prompt=True).to(model.device)
55
+ out = model.generate(inputs, max_new_tokens=1024)
56
+ print(tokenizer.decode(out[0][inputs.shape[1]:], skip_special_tokens=True))
57
+ ```
58
+
59
+ Or serve with vLLM:
60
+
61
+ ```bash
62
+ vllm serve Qwen/Qwen3-14B \
63
+ --enable-lora \
64
+ --lora-modules pct=justinphan3110/Qwen3-14B_PCT
65
+ ```
66
+
67
+ ## Training
68
+
69
+ GRPO with two complementary reward signals applied jointly in a single run:
70
+
71
+ - **Sentiment Consistency Training** (SCT): a judge scores symmetry of rhetoric and framing across paired left/right prompts; reward peaks at balanced (`score 3` of 1-5 scale).
72
+ - **Helpfulness Consistency Training** (HCT): a judge scores substantive engagement per response (0-2), rewarding genuine helpfulness over hedging or refusal.
73
+
74
+ Multiplicative reward: `r = bias_factor × helpfulness_factor`. LoRA rank 32, alpha 32, 3 epochs, lr 1e-4. See repo for full configs.
75
+
76
+ ## Citation
77
+
78
+ ```bibtex
79
+ @article{political_consistency_2026,
80
+ title={Polarized Contrastive Pairs: A Benchmark and Training Method for Covert Political Bias},
81
+ author={Phan, Long and others},
82
+ journal={arXiv preprint},
83
+ year={2026}
84
+ }
85
+ ```
86
+
87
+ ## License
88
+
89
+ Apache 2.0 (inherits the base model's license terms).