genpark-kahneman-tversky-kto-utility-loss-skill

mcp
Guvenlik Denetimi
Uyari
Health Uyari
  • 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 Gecti
  • Code scan — Scanned 4 files during light audit, no dangerous patterns found
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

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

Yorumlar (0)

Sonuc bulunamadi