Abstract
SelectFormer is a framework designed to facilitate private data selection for Transformer models in a data market setting. By utilizing Multi-Party Computation (MPC) alongside innovative MLP-based emulations of non-linearities and a multi-phase "sieve" selection process, SelectFormer achieves a 204x speedup in data appraisal with minimal accuracy loss (0.20% on average). This work makes "try-before-you-buy" data transactions practical and secure for both model owners and data providers.
Introduction
In the modern AI ecosystem, high-quality data is a critical commodity. Model owners seek relevant datasets to fine-tune their proprietary models, while data owners aim to monetize their assets. However, a "try-before-you-buy" approach presents significant risks: data owners fear leaking their datasets for free, and model owners are reluctant to expose proprietary model weights.
Standard cryptographic solutions like Multi-Party Computation (MPC) allow parties to compute functions without revealing inputs. However, Transformers are notoriously "MPC-unfriendly" due to non-linear operations like Softmax and LayerNorm, which incur massive communication overhead. For instance, a single forward pass of BERT over MPC can take nearly an hour for a small batch, rendering the screening of large datasets impossible.
Methodology: The SelectFormer Framework
SelectFormer makes private data selection practical through three primary innovations:
MLP Emulation of Non-linearities
Rather than computing exact Softmax or LayerNorm functions—which involve expensive reciprocals and exponentials in MPC—SelectFormer replaces them with small, data-driven Multi-Layer Perceptrons (MLPs). These MLPs are trained on a small "bootstrap" sample to mimic the original layers' behavior while being significantly faster to execute in an encrypted environment. Furthermore, these MLPs act as dimension reducers, cutting the volume of encrypted data exchanged.
Multi-phase "Sieve" Selection
SelectFormer employs a progressive filtering system to manage computational costs. Initial phases utilize small, efficient proxy models to filter out obvious redundancies. Subsequent phases use increasingly complex models to refine the selection from the remaining candidates. This hierarchical approach ensures that the most expensive computations are only performed on the most promising data points.
Parallel MPC Execution
The framework optimizes underlying cryptography by batching operations and overlapping communication with computation. This effectively hides the network latency that typically bottlenecks MPC performance.
Experimental Evaluation
The researchers evaluated SelectFormer across diverse benchmarks:
- NLP: Tasks from the GLUE benchmark and text classification sets (SST2, QNLI, QQP, AGNEWS, YELP).
- Computer Vision: Image classification on CIFAR-10 and CIFAR-100.
- Architectures: Popular Transformer models including BERT, DistilBERT, and ViT.
To simulate realistic market conditions, datasets were "imbalanced," requiring the algorithm to identify valuable "needles" within a haystack of redundant data.
Key Results
SelectFormer demonstrates that for data selection, ranking utility (e.g., via entropy) is more critical than absolute precision. This insight allows for aggressive approximations that maintain high selection efficacy.
Performance and Speedup
SelectFormer reduces the delay of private data selection from thousands of hours (using standard "Oracle" MPC) to just tens of hours. As shown in the performance analysis, this constitutes a 204x speedup over traditional methods.
Accuracy and Efficacy
Despite heavy approximations, models trained on data selected by SelectFormer achieved performance nearly identical to the gold standard. On average, there was only a 0.20% accuracy degradation compared to using full, un-approximated models. SelectFormer also significantly outperformed existing MPC-optimized baselines like MPCFormer and Bolt.
Conclusion and Future Work
SelectFormer successfully bridges the gap between privacy and practicality in data markets. While it requires a small initial "bootstrap" dataset to train proxy MLPs, the efficiency gains are transformative. Future work may address more adversarial "malicious" threat models and extend the framework to complex appraisal methods such as Influence Functions.
Summary updated