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.0.tar.gz (61.6 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.0-py3-none-any.whl (71.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hype_hyps-0.1.0.tar.gz
  • Upload date:
  • Size: 61.6 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.0.tar.gz
Algorithm Hash digest
SHA256 9b6974eb93b9d9f104236035451dc3e07261a2b6fbdb7817ad98bc479d0fb79d
MD5 3d660b0b4b9ee514c10b12441bed3414
BLAKE2b-256 898b84bdbbe4481d33b6f08367fe45e588548aae38da8d3c9048f6d83038f326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hype_hyps-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 71.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 565fefdf1cc9b2dc884d0e180e1d555a9c2ad5638df8ec419553febe092e6e37
MD5 7411685dd0719ba2413865383cc698b8
BLAKE2b-256 aa93fc4f8b83ce2af266eb18c2f262d79610e19b5c77e1b12abb933b59fb630d

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