← Latest papers
🤖 machine learning

Privacy from Symmetry: Orthogonally Equivariant Transformers for LLM Inference

This paper proposes ConjFormer, an orthogonally equivariant transformer architecture that enables privacy-preserving LLM inference by having clients transmit secret-rotated hidden states to a server, effectively preventing token recovery attacks while maintaining minimal performance degradation.

Original authors: Alexander Yukhimchuk, Andrey Shulga, Mladen Kolar, Martin Takáč

Published 2026-06-16
📖 4 min read☕ Coffee break read

Original authors: Alexander Yukhimchuk, Andrey Shulga, Mladen Kolar, Martin Takáč

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you want to ask a super-smart AI (a Large Language Model) a question about your private medical records. The problem is that the AI lives on a powerful server far away, and you don't want to send your raw text there because the server owner might peek at it.

Usually, people try to split the work: you do the first part of the thinking on your phone, and send just the "thoughts" (hidden numbers) to the server to finish the job. But there's a catch: those "thoughts" are like a secret code that can be cracked. If the server has a public dictionary of what words look like as numbers, they can match your "thoughts" to the dictionary and guess exactly what you typed.

The Paper's Solution: The "Magic Rotator"

This paper introduces a new system called CONJFORMER. Think of it as a magical privacy shield that uses geometry instead of heavy encryption.

Here is how it works, using a simple analogy:

1. The Problem: The "Transparent Glass"

Imagine your data is a sculpture sitting on a table. The server has a catalog of every possible sculpture. If you send the sculpture to the server, they can just look at it, compare it to their catalog, and say, "Ah, that's a picture of a cat!" Even if you send it in a slightly different light, the shape is the same, and they can still recognize it.

2. The Solution: The "Secret Spin"

The authors propose that before you send your sculpture, you put it on a turntable and spin it 90 degrees (or any random angle) using a secret key that only you know.

  • You: Spin the sculpture.
  • The Server: Receives the spun sculpture. They don't know which way is "up" anymore.
  • The Magic: The server's AI is built in a special way (using a new architecture called CONJFORMER) that allows it to solve the puzzle exactly the same way even if the sculpture is upside down or sideways. It doesn't need to know the original orientation to do its job.

3. The "Architectural Change" (The Secret Sauce)

For this to work, the AI server needs to be built differently. Standard AI models are like rigid robots; if you tilt their view, they get confused.
The authors changed the AI's "brain" (the Transformer architecture) by:

  • Changing the "Normalization": They tweaked a small part of the math (replacing a complex ruler with a simple scalar ruler) so the AI doesn't care about the direction of the data.
  • Rotating the Weights: Just as you rotated the input, the server's internal "rules" (weights) are mathematically rotated to match.

The Result: The server does the calculation in a "rotated world." It never sees your data in its original form. It only sees the spun version.

4. Can the Server Still Cheat? (The Attacks)

The paper tests if a sneaky server can figure out the secret spin and un-spool the data.

  • Old Attack (Nearest Neighbor): Before, the server just matched shapes. Now, this is impossible because the shapes are spinning.
  • New Attack (Weight Alignment): The server tries to guess the spin by looking at the "rules" (weights) it received. It's like trying to guess how a puzzle was rotated by looking at the picture on the box.
  • The Outcome: The paper shows that if you train the model on your private data (fine-tuning), the server's ability to guess the spin drops from being very good (recovering over 35% of your words) to being almost random (recovering only 1.3%).

5. The Trade-off

Does this make the AI dumber?

  • Very slightly. The paper tested this on models like GPT-2 and Llama. After the changes, the AI's performance (measured by "perplexity," or how confused it is) dropped by a tiny amount (less than 0.4% to 2%).
  • No Noise: Unlike other privacy methods that add "static" or "noise" to the data (which makes the AI sound like it has a cold), this method keeps the data clean; it just spins it.

Summary

CONJFORMER is a way to let a remote AI finish your private tasks without ever seeing your raw data. It does this by:

  1. Spinning your data with a secret key before sending it.
  2. Retrofitting the AI so it can work perfectly on the spun data without ever needing to "un-spin" it.
  3. Breaking the server's ability to simply look up your words in a dictionary, forcing them to solve a much harder math puzzle that they can't crack once you've trained the model on your specific data.

It's a practical defense that relies on symmetry (the idea that the math works the same regardless of direction) rather than heavy, slow encryption.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →