Quantum-inspired orthogonal adapters for certifiably robust medical image classification

Olga Tsurkan, Laia Domingo, Victoria Orlova, Asel Sagingalieva, Iris Zalaudek, Raffaele Dante Caposiena CaroarXiv 2026

TL;DR

Researchers have developed a new fine-tuning method using "butterfly" orthogonal layers—inspired by quantum optical circuits—to adapt medical AI models without breaking their mathematical safety guarantees. This approach achieves nearly double the "certified robustness" of standard methods like LoRA, ensuring that tiny, invisible changes to a medical image won't flip a diagnosis.

What Problem Does This Paper Address?

Deep learning models in medicine are notoriously brittle. A tiny amount of noise, a slight rotation, or even JPEG compression artifacts can cause a high-performing model to change its prediction—a nightmare scenario for clinical safety.

To combat this, researchers use certified robustness. Unlike "empirical robustness" (which just means the model survived a few known attacks), certified robustness provides a mathematical guarantee: within a specific "radius" of change, the prediction cannot change. This is usually achieved by controlling the model's Lipschitz constant—essentially a speed limit on how fast the model's output can change relative to its input.

The catch? These guarantees are incredibly fragile. When you take a "certified" pre-trained model and fine-tune it for a specific task (like moving from general skin lesions to specific hair-loss disorders), standard techniques like Full Fine-Tuning or Low-Rank Adaptation (LoRA) cause the Lipschitz constant to explode. The model might still be accurate, but its mathematical safety certificate is effectively shredded.

Methods

The authors propose using Quantum-inspired Orthogonal Butterfly Adapters.

  1. Orthogonality as a Shield: An orthogonal matrix preserves the "length" of vectors. If you multiply a layer's weights by an orthogonal matrix, you don't change its Lipschitz bound. This allows the model to learn new features while keeping its safety certificate intact.
  2. The Butterfly Structure: Instead of a dense $n \times n$ orthogonal matrix (which is computationally expensive), they use a "butterfly" structure. This is inspired by quantum circuits made of Reconfigurable Beam Splitters (RBS).
  3. Efficiency: These layers only require $O(n \log n)$ trainable parameters (rotations). For a layer with 2048 features, this means training ~11,000 parameters instead of 4.2 million.
  4. The Adapter Approach: They insert these butterfly circuits in front of the frozen weights of a pre-trained certified backbone (specifically BRONet). During fine-tuning, only the "angles" in the butterfly circuit and the final classification head are updated.

Datasets

The study evaluated the method across three tiers of complexity:

  • MNIST: The classic digit dataset (3 vs 5 and 0 vs 8) for initial proof-of-concept.
  • MedMNIST v2: Specifically BloodMNIST (blood cell images) and DermaMNIST (skin lesions) to test transfer learning in a medical context.
  • Trichoscopy Dataset: A specialized clinical dataset containing 3,581 images for diagnosing alopecia (hair loss) and assessing disease activity.

Key Insights and Ideas

  • Guarantees vs. Reality: The most striking insight is that while LoRA and Full Fine-Tuning often look robust against specific adversarial attacks, their certified radius drops to near zero. They are "accidentally" robust, whereas the butterfly adapter is "provably" robust.
  • Signal Preservation: In very deep networks, standard "spectral normalization" (another way to limit Lipschitz constants) can cause the signal to fade or collapse into a single-class prediction. Orthogonal layers act like a "lossless" pipe, allowing the signal to flow through hundreds of layers without attenuation.
  • JPEG as an Attack: The authors show that common image processing, like JPEG compression, actually moves an image in the input space. Butterfly adapters are the only ones whose safety certificates are large enough to "cover" the changes introduced by standard JPEG quality levels.

Key Results

  • Double the Safety: In the trichoscopy diagnosis task, butterfly fine-tuning achieved a 64% certified accuracy (at a radius of 36/255), compared to just 32% for LoRA and 36% for full fine-tuning.
  • Parameter Efficiency: Butterfly adapters used significantly fewer trainable parameters than LoRA while providing vastly superior robustness guarantees.
  • Transfer Success: When transferring from BloodMNIST to DermaMNIST, the butterfly method maintained a 26% certified balanced accuracy, while LoRA and Full FT dropped to 0%.
  • Empirical Parity: Despite the rigid mathematical constraints, the butterfly-adapted models achieved standard classification accuracy comparable to unrestricted fine-tuning.

Limitations and Future Work

  • Training Speed: Currently, constructing the large orthogonal matrices from rotation angles on classical hardware is slower than standard matrix multiplication. The authors suggest more efficient implementations are needed.
  • Backbone Constraints: The method relies on having a pre-trained "certified" backbone. Currently, these backbones (like BRONet) trail behind state-of-the-art non-certified models (like ResNet or Vision Transformers) in raw accuracy.
  • Data Splits: The clinical study used an image-level split rather than a patient-level split, which can lead to optimistic accuracy estimates. Future work should validate these findings on larger, independent patient cohorts.
  • Quantum Future: While simulated classically here, these butterfly structures map directly to shallow quantum circuits, hinting at a future where such robust models could be run on quantum hardware.

Summary updated

Abstract

Medical image classifiers require not only high accuracy but also reliable predictions under small input perturbations. Certified robustness provides mathematical guarantees of prediction stability, but preserving these guarantees when adapting pretrained models to new tasks remains challenging. We propose a fine-tuning approach based on quantum-inspired orthogonal butterfly layers that preserves the Lipschitz bounds of pretrained certified networks. Inspired by quantum circuits of reconfigurable beam splitters, these layers preserve orthogonality by construction using only $\mathcal{O}(n\log n)$ trainable parameters. Their structured design enables efficient classical implementation and offers a path toward future quantum implementations with logarithmic circuit depth under suitable connectivity assumptions. Controlled experiments on MNIST and MedMNIST demonstrate improved certified robustness compared with conventional alternatives and, in the DermaMNIST transfer, greater resistance to the tested attacks than low-rank adaptation (LoRA). We then apply it to trichoscopic image classification for alopecia diagnosis and alopecia areata activity assessment. By adapting a certified ImageNet-pretrained network, butterfly fine-tuning achieves approximately twice the certified accuracy of conventional fine-tuning and LoRA, with comparable classification accuracy on the same backbone and data split and similar empirical resistance to the tested adversarial attacks. Larger robustness guarantees, including certificates covering certain image-processing transformations, can be obtained at the cost of reduced accuracy. These results highlight the potential of quantum-inspired butterfly layers for parameter-efficient adaptation of medical image classifiers while preserving the mathematical guarantees underlying certified robustness.
BibTeX
@misc{tsurkan2026quantum,
  author = {Olga Tsurkan and Laia Domingo and Victoria Orlova and Asel Sagingalieva and Iris Zalaudek and Raffaele Dante Caposiena Caro},
  title = {{Quantum-inspired orthogonal adapters for certifiably robust medical image classification}},
  year = {2026},
  eprint = {2611.18775},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18775},
}
Figure