Skip to main content

HyPE + HyPS: Hyperbolic Prompt Espial and Sanitization (ICLR 2026)

Project description

HyPE: Hyperbolic Prompt Espial

The HyPE package is the official implementation of the ICLR 2026 paper:

"Harnessing Hyperbolic Geometry for Harmful Prompt Detection and Sanitization"

Overview

HyPE enables high-accuracy detection of harmful prompts using hyperbolic geometry.

Output format

The model follows a binary classification schema where:

  • 1: Harmless prompt
  • 0: Harmful prompt

Quickstart

Install

pip install hype-defense

Run inference

from hype import inference

pred = inference("two birds are flying in the sky")
print(pred)  # 1 = harmless, 0 = harmful

Documentation & code

Full documentation, training code, and additional examples are available here:

View GitHub Repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hype_hyps-0.1.1.tar.gz (62.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hype_hyps-0.1.1-py3-none-any.whl (72.4 kB view details)

Uploaded Python 3

File details

Details for the file hype_hyps-0.1.1.tar.gz.

File metadata

  • Download URL: hype_hyps-0.1.1.tar.gz
  • Upload date:
  • Size: 62.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for hype_hyps-0.1.1.tar.gz
Algorithm Hash digest
SHA256 07dc8fbef8241f3978815cfe2f34a538c397a5fa2f7d8a200ef0e678b166036e
MD5 1041c7737a7308d691e59547ba8921bb
BLAKE2b-256 5f8a836889f67081d2348749dd5e84a724706002bf1023cdf673734ca617eedc

See more details on using hashes here.

File details

Details for the file hype_hyps-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hype_hyps-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 72.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for hype_hyps-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20eac9197270b3de19f4b74c6c71be0d1f9a8564072b4b83859a19f60c1c3b81
MD5 f6f06ffd40db640c5a932e5c5d32bfc0
BLAKE2b-256 ae2227e534a42c3ff869c83a0df20fe5f0dfecfec2223db8eefadc1249965a12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page