Skip to content

This is just an implementation (in Python). SIPIT efficiently reverses GPT LLMs output back to the input, in a very efficient way !

Notifications You must be signed in to change notification settings

rept0id/sipit-algorithm-implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sipit-algorithm

screenshot

Disclaimer :

This implementation is for educational and research purposes only. The SIPIT algorithm is the intellectual property of its authors, and this repository does not claim any rights over the algorithm itself.

This repository provides an implementation of the SIPIT algorithm, as described in the paper:

"Language Models Are Injective and Hence Invertible" (Giorgos Nikolaou, Tommaso Mencattini, Donato Crisostomi, Andrea Santilli, Yannis Panagakis, Emanuele Rodolà) [1].

The SIPIT algorithm leverages the injective property of large language models (LLMs): given a distinct input, an LLM produces a distinct output.

By treating LLMs as 1-1 functions, SIPIT efficiently reverses the output back to the input, in such an efficient way -compared to raw brute-force methods- that makes it doable with commodity hardware.

This enables opportunities such as:

  • Input recovery from model outputs.
  • Privacy and security analysis of LLM-generated content.
  • Model interpretability and inversion studies.

How to Use

Install Dependencies

  make install

Run

  make run

Links

  1. https://arxiv.org/pdf/2510.15511

About

This is just an implementation (in Python). SIPIT efficiently reverses GPT LLMs output back to the input, in a very efficient way !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published