Skip to content
Back to skills

Pseudo Ppl Eval

ASecurity

Evaluates the ability of masked language models to predict masked amino acids in short peptide sequences, measuring how well the model captures local sequence dependencies without autoregressive assumptions. It specifically probes the model's capacity to generalize to unseen short peptides that were excluded from the reference database during training. Use when the user wants to benchmark on UniRef100-excluded peptides, or asks about evaluating this task. Reports PseudoPPL.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
researchpythondatabaseperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill pseudo-ppl-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pseudo Ppl Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pseudo Ppl Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-pseudo-ppl-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-pseudo-ppl-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pseudo-ppl-eval
description: Evaluates the ability of masked language models to predict masked amino acids in short peptide sequences, measuring how well the model captures local sequence dependencies without autoregressive assumptions. It specifically probes the model's capacity to generalize to unseen short peptides that were excluded from the reference database during training. Use when the user wants to benchmark on UniRef100-excluded peptides, or asks about evaluating this task. Reports PseudoPPL.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2604.10531
  bibtex_key: [REDACTED]
  confidence: high
---

# pseudo-ppl-eval

> PepBenchmark: A Standardized Benchmark for Peptide Machine Learning — Zhang et al. (2026) (arXiv:2604.10531, 2026)

## What this evaluates

Evaluates the ability of masked language models to predict masked amino acids in short peptide sequences, measuring how well the model captures local sequence dependencies without autoregressive assumptions. It specifically probes the model's capacity to generalize to unseen short peptides that were excluded from the reference database during training.

## Datasets

- **UniRef100-excluded peptides** — total 85113; splits: test (85113)

## Metrics

- `PseudoPPL` **(primary)** — range: other
  - Computed as exp(-1/L * sum_{i=1}^L log p(x_i | x_{j!=i})), where L is the sequence length and p(x_i | x_{j!=i}) is the probability of the i-th amino acid given all other positions in the sequence. Lower values indicate better modeling of peptide sequences.

## Input / output format

**Input**: Amino acid sequence string (e.g., 'ACDEFGHIK') representing a short peptide.

**Output**: Scalar perplexity value (float) computed over the sequence.

## Scoring recipe

```python
def compute_pseudo_ppl(sequences, model):
    total_log_prob = 0.0
    total_len = 0
    for seq in sequences:
        L = len(seq)
        # Model predicts each token conditioned on all others (masked LM style)
        log_probs = model.predict_masked(seq)  # shape (L,)
        total_log_prob += sum(log_probs)
        total_len += L
    return math.exp(-total_log_prob / total_len)
```

## Common pitfalls

- Confusing PseudoPPL with standard autoregressive perplexity (PPL), which conditions on previous tokens rather than all other tokens in the sequence.
- Failing to exclude sequences present in the training/reference database (UniRef100) leads to data leakage and artificially low perplexity scores.
- Not stratifying or reporting results by sequence length, as the metric is known to deteriorate significantly for shorter peptides.

## Evidence (verbatim from paper)

> We employed pseudo-perplexity (PseudoPPL) to assess model performance on peptides. Unlike autoregressive models, where perplexity is computed as PPL(x)=exp(-1/L sum log p(x_i|x_<i)), masked language models require the following variant: PseudoPPL(x)=exp(-1/L sum log p(x_i|x_j!=i)). We used 85,113 unique peptide sequences absent from UniRef100 for evaluation.

## Citation

```bibtex
@misc{zhang2026pepbenchmark,
  title={PepBenchmark: A Standardized Benchmark for Peptide Machine Learning},
  author={Zhang et al. (2026)},
  year={2026},
  note={arXiv:2604.10531}
}
```

- arXiv: 2604.10531

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.