Skip to content

[Feature]: Toploc as validation mechanism #34

Description

@fedor-konovalenko

🚀 The feature, motivation and pitch

We propose to add TOPLOC algorithm in order to reduce artifact size. The goal is to study the applicability of TopLoC: will using this algorithm improve validation reliability without increasing storage costs? This involves finding the optimal approach and testing on synthetic and real data.

TOPLOC Overview

TOPLOC is a novel verification method designed to ensure that AI inference providers are using the specific models and prompts they claim without unauthorized changes. By utilizing a locality-sensitive hashing scheme, the system tracks the most significant intermediate activations to detect modifications in model weights, prompts, or numerical precision. A key innovation is the use of polynomial encoding, reducing necessary storage size. This approach remains robust against hardware non-determinism and GPU-specific variations that typically cause minor numerical discrepancies. Empirical testing confirms the method achieves 100% accuracy in identifying tampering while maintaining validation speeds faster than the original inference.

We plan to implement TOPLOC algorithm without affecting other functionality and without influencing the performance of the platform core. During the development process, we plan to adapt the approach from the article described above to the inference of visual language models and integrate the necessary tools into the inference engine.

More details and links to our code with TopLoc will be added later in the discussion

Alternatives

No response

Additional context

No response

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions