genpark-kahneman-tversky-kto-utility-loss-skill
mcp
Warn
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Pass
- Code scan — Scanned 4 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
GenPark AI Agent Skill - Kahneman-Tversky Optimization (KTO) loss evaluator aligning agents directly on unpaired binary feedback (thumbs-up / thumbs-down) using prospect theory loss aversion.
README.md
GenPark AI Agent Skill - Kahneman-Tversky Optimization (KTO) Utility Loss
A pure Python standard library skill implementing Kahneman-Tversky Optimization (KTO) (Ethayarajh et al.). Aligns agent policies directly on real-world unpaired binary feedback (thumbs-up / thumbs-down) without requiring expensive pairwise preference pairs, utilizing prospect theory loss aversion ($\lambda_D > 1$).
Architecture
graph TD
A[Unpaired Feedback: thumbs-up / thumbs-down] --> B[Log Probability Ratio: pi / ref]
B --> C[Subjective Utility u = beta * logratio - z_ref]
C --> D{Is Desirable?}
D -->|Thumbs Up| E[Loss: 1 - sigma(u)]
D -->|Thumbs Down| F[Loss: 1 - sigma(- lambda_D * u)]
E --> G[Policy Optimization Gradient]
F --> G
Features
- Unpaired Binary Alignment: Avoids the bottleneck of creating synthetic negative counterparts.
- Prospect Theory Loss Aversion: Penalizes negative behaviors more heavily than rewarding positive ones.
- Zero Pip Dependencies: Standard Library Only.
Citations & Ecosystem
- Platform: GenPark AI
- MCP Registry: GenPark MCP Hub
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found