Home Technology peripherals AI Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

Jun 19, 2024 am 05:13 AM
project Large model watermark MarkLLM

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms
The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com

##This article is sponsored by Tsinghua University, Shanghai Jiao Tong University, University of Sydney, UCSB, Chinese University of Hong Kong, and Hong Kong University of Science and Technology , Hong Kong University of Science and Technology (Guangzhou) jointly completed. The main authors include: Pan Leyi (first author), an undergraduate student at Tsinghua University, whose research direction is large-scale model watermarking; Liu Aiwei, a doctoral student at Tsinghua University, whose research direction is secure and trustworthy large-scale models; He Zhiwei, a doctoral student at Shanghai Jiao Tong University, research His research direction is large model watermarking, large model intelligence, etc.; Gao Zitian, an undergraduate student at the University of Sydney, research direction is large model watermarking; Zhao Xuandong, UCSB PhD candidate, research direction is trustworthy generative AI, etc.; Hu Xuming, Hong Kong University of Science and Technology/Hong Kong Science and Technology He is an assistant professor at Tsinghua University (Guangzhou), and his research interests include secure and trustworthy large models, information extraction, etc. Wen Lijie is a permanent associate professor at Tsinghua University, and his research interests include process mining and natural language processing.

This article introduces an open source model printing algorithm jointly launched by Tsinghua University and other universities. MarkLLM provides a unified model printing algorithm implementation framework, intuitive printing algorithm mechanism visualization, examples, and systematic evaluation modules, aiming to enable researchers to easily experiment, understand, and evaluate the latest printing technology developments. Through MarkLLM, the author hopes to deepen the public's understanding of model printing technology while providing convenience to researchers, and promote the development and promotion of related research.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

  • Paper name: MarkLLM: An Open-Source Toolkit for LLM Watermarking

  • Paper link :https://arxiv.org/abs/2405.10051

  • Code repository: https://github.com/THU- BPM/MarkLLM

The development status of large model watermarking technology & the problems still faced

Large model watermarking is a recently emerging technology. It is embedded in the process of model generation text. Enter specific characteristics to realize the identification and source tracing of organic text. It can be used in scenarios such as fake news detection, maintaining academic integrity, and data and model copyright protection.

The current mainstream large model watermarking algorithm is to embed watermarks in the large model inference stage. This type of method is mainly divided into two major algorithm families:

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

  • KGW family: add watermark by pre-scoring vector, divide the word list into red and green lists, add bias to green words, so that the output prefers green words;

  • Christ family: After the scoring vector is generated, a pseudo-random number is used in the pre-sampling process to make the watermark text more relevant to the random number, thereby embedding the watermark.

However, like all emerging technologies, large language model watermarking technology also faces some challenges in use and understanding.

1. How to easily use various large model watermark algorithms to add and detect watermarks?

Various large model watermarking algorithms continue to emerge. However, their implementation is mostly based on the author's own needs and lacks unified class and calling interface design, which requires researchers and the public to invest a lot of effort in using and reproducing these algorithms.

2. How to intuitively understand the internal mechanism of each large model watermarking algorithm?

The underlying mechanism of the large model watermarking algorithm is relatively complex, involving intervention in the scoring vector generation and sampling process in the text generation process of the large model, which is not easy for researchers and the public to understand.

3. How to conveniently and comprehensively evaluate various large model watermarking algorithms?

The evaluation perspectives and indicators are diverse (including detectability, robustness, impact on text quality, etc.), and one evaluation involves multiple steps, making it extremely challenging to comprehensively and quickly evaluate algorithm performance.

MarkLLM: The first open source large model watermarking multifunctional toolkit

In response to the three problems just mentioned, the author designed and implemented a language-oriented MarkLLM, a tool package for speech model watermarking technology.

The main contributions of MarkLLM can be summarized as follows:

1. Functional perspective

    ##Unified large model watermarking Algorithm implementation framework: supports 9 specific algorithms of two key watermark algorithm families (KGW family and Christ family).
  • Consistent, user-friendly top-level calling interface: 1 line of code to implement various operations such as adding watermarks and detecting watermarks.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

  • Customized large model watermarking algorithm mechanism visualization solution: users can visualize different large models under various configurations The internal mechanism of the model watermarking algorithm.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

  • ##Comprehensive and systematic large-model watermarking algorithm evaluation module: Contains a total of 12 modules covering 3 evaluation angles An assessment tool and two types of automated assessment pipelines.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

2. Design perspective: Modular, loosely coupled architecture design, Extremely scalable and flexible.

3. Experimental perspective: The author uses MarkLLM as a research tool and conducts 3 comprehensive experiments from evaluation perspectives on the 9 supported algorithms to prove the practicality of MarkLLM. While being useful, it also provides valuable data reference for subsequent research.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

4. Impact on the open source community: MarkLLM has received a lot of attention since it was launched on GitHub, and currently has 140 + stars, and attracted peers to make code contributions through Pull Request, and to communicate and discuss in the issue column.

Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms

The author sincerely hopes that the MarkLLM toolkit will not only provide convenience for researchers, but also improve the public’s understanding and participation in large language model watermarking technology. , promote consensus on this technology between the academic community and the public, promote the further development of research and application of large language model watermarking, and contribute to the safe use of large language models.

The author sincerely welcomes everyone to provide valuable opinions, exchange and learn from each other, and also welcomes code contributions through pull requests, so as to maintain a better large-model watermarking technology ecosystem through everyone's joint efforts!

The above is the detailed content of Tsinghua University and other universities launch the first open source large model watermarking toolkit MarkLLM, which supports nearly 10 latest watermarking algorithms. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days The author of ControlNet has another hit! The whole process of generating a painting from a picture, earning 1.4k stars in two days Jul 17, 2024 am 01:56 AM

It is also a Tusheng video, but PaintsUndo has taken a different route. ControlNet author LvminZhang started to live again! This time I aim at the field of painting. The new project PaintsUndo has received 1.4kstar (still rising crazily) not long after it was launched. Project address: https://github.com/lllyasviel/Paints-UNDO Through this project, the user inputs a static image, and PaintsUndo can automatically help you generate a video of the entire painting process, from line draft to finished product. follow. During the drawing process, the line changes are amazing. The final video result is very similar to the original image: Let’s take a look at a complete drawing.

Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Topping the list of open source AI software engineers, UIUC's agent-less solution easily solves SWE-bench real programming problems Jul 17, 2024 pm 10:02 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com The authors of this paper are all from the team of teacher Zhang Lingming at the University of Illinois at Urbana-Champaign (UIUC), including: Steven Code repair; Deng Yinlin, fourth-year doctoral student, researcher

From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' From RLHF to DPO to TDPO, large model alignment algorithms are already 'token-level' Jun 24, 2024 pm 03:04 PM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com In the development process of artificial intelligence, the control and guidance of large language models (LLM) has always been one of the core challenges, aiming to ensure that these models are both powerful and safe serve human society. Early efforts focused on reinforcement learning methods through human feedback (RL

Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Posthumous work of the OpenAI Super Alignment Team: Two large models play a game, and the output becomes more understandable Jul 19, 2024 am 01:29 AM

If the answer given by the AI ​​model is incomprehensible at all, would you dare to use it? As machine learning systems are used in more important areas, it becomes increasingly important to demonstrate why we can trust their output, and when not to trust them. One possible way to gain trust in the output of a complex system is to require the system to produce an interpretation of its output that is readable to a human or another trusted system, that is, fully understandable to the point that any possible errors can be found. For example, to build trust in the judicial system, we require courts to provide clear and readable written opinions that explain and support their decisions. For large language models, we can also adopt a similar approach. However, when taking this approach, ensure that the language model generates

A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated A significant breakthrough in the Riemann Hypothesis! Tao Zhexuan strongly recommends new papers from MIT and Oxford, and the 37-year-old Fields Medal winner participated Aug 05, 2024 pm 03:32 PM

Recently, the Riemann Hypothesis, known as one of the seven major problems of the millennium, has achieved a new breakthrough. The Riemann Hypothesis is a very important unsolved problem in mathematics, related to the precise properties of the distribution of prime numbers (primes are those numbers that are only divisible by 1 and themselves, and they play a fundamental role in number theory). In today's mathematical literature, there are more than a thousand mathematical propositions based on the establishment of the Riemann Hypothesis (or its generalized form). In other words, once the Riemann Hypothesis and its generalized form are proven, these more than a thousand propositions will be established as theorems, which will have a profound impact on the field of mathematics; and if the Riemann Hypothesis is proven wrong, then among these propositions part of it will also lose its effectiveness. New breakthrough comes from MIT mathematics professor Larry Guth and Oxford University

arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it arXiv papers can be posted as 'barrage', Stanford alphaXiv discussion platform is online, LeCun likes it Aug 01, 2024 pm 05:18 PM

cheers! What is it like when a paper discussion is down to words? Recently, students at Stanford University created alphaXiv, an open discussion forum for arXiv papers that allows questions and comments to be posted directly on any arXiv paper. Website link: https://alphaxiv.org/ In fact, there is no need to visit this website specifically. Just change arXiv in any URL to alphaXiv to directly open the corresponding paper on the alphaXiv forum: you can accurately locate the paragraphs in the paper, Sentence: In the discussion area on the right, users can post questions to ask the author about the ideas and details of the paper. For example, they can also comment on the content of the paper, such as: "Given to

The first Mamba-based MLLM is here! Model weights, training code, etc. have all been open source The first Mamba-based MLLM is here! Model weights, training code, etc. have all been open source Jul 17, 2024 am 02:46 AM

The AIxiv column is a column where this site publishes academic and technical content. In the past few years, the AIxiv column of this site has received more than 2,000 reports, covering top laboratories from major universities and companies around the world, effectively promoting academic exchanges and dissemination. If you have excellent work that you want to share, please feel free to contribute or contact us for reporting. Submission email: liyazhou@jiqizhixin.com; zhaoyunfeng@jiqizhixin.com. Introduction In recent years, the application of multimodal large language models (MLLM) in various fields has achieved remarkable success. However, as the basic model for many downstream tasks, current MLLM consists of the well-known Transformer network, which

Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Axiomatic training allows LLM to learn causal reasoning: the 67 million parameter model is comparable to the trillion parameter level GPT-4 Jul 17, 2024 am 10:14 AM

Show the causal chain to LLM and it learns the axioms. AI is already helping mathematicians and scientists conduct research. For example, the famous mathematician Terence Tao has repeatedly shared his research and exploration experience with the help of AI tools such as GPT. For AI to compete in these fields, strong and reliable causal reasoning capabilities are essential. The research to be introduced in this article found that a Transformer model trained on the demonstration of the causal transitivity axiom on small graphs can generalize to the transitive axiom on large graphs. In other words, if the Transformer learns to perform simple causal reasoning, it may be used for more complex causal reasoning. The axiomatic training framework proposed by the team is a new paradigm for learning causal reasoning based on passive data, with only demonstrations

See all articles