
Worst-case perplexity leakage (Kamath Eq 6.33)
Source:R/kamath_llm2_native.R
morie_kamath_ch6_perplexity_leakage.Rdmax log(PP_public / PP_lm) over the unique sequences.
Examples
morie_kamath_ch6_perplexity_leakage(c("s1", "s2"), c(s1 = 10,
s2 = 5), c(s1 = 2, s2 = 4))
#> $estimate
#> [1] 1.609438
#>
#> $argmax
#> [1] "s1"
#>
#> $per_sequence
#> [1] 1.6094379 0.2231436
#>
#> $n_leaking
#> [1] 2
#>
#> $n
#> [1] 2
#>
#> $method
#> [1] "worst-case perplexity leakage (Kamath Eq 6.33)"
#>