NSmark: A Null-Space Black-Box Watermark Defense Framework for Language ModelsNSmark: Null Space Based Black-box Watermarking Defense Framework for Language Models
The researchers propose NSmark, a black-box watermark defense framework for language models, to resist LL-LFEA attacks. This attack extends the linear functional equivalence attack (LFEA) to a black-box setting that considers only the last layer's output, and the authors find that the null space of the output matrix remains unchanged under this attack. NSmark has three steps: generating the watermark using the owner's digital signature combined with spread-spectrum modulation; embedding the watermark via an output mapping extractor while maintaining model performance; and verification based on extraction rate and null-space consistency. The authors claim that experiments on pretraining and downstream tasks demonstrate the scheme's effectiveness, scalability, reliability, and robustness, and the code has been made public at https://github.com/dongdongzhaoUP/NSmark.