Comments (1)
Yeah, it is okay to perform SGD to obtain an optimized prompt for the user. But the optimization can be expensive for large models. The computation and memory cost of SGD/Adam is proportional to the size of the model. If we consider hyper-parameter tuning (in fact, this is necessary for prompt tuning), the cost is more expensive. In comparison, black-box tuning only requires the model forward process, which is cheaper and easier to be accelerated with the support of ONNX/TensorRT.
For another solution, if the server returns the gradient w.r.t. the prompt to the user, the deployed model will be vulnerable (See LAMP: Extracting Text from Gradients with Language Model Priors).
So the answer is yes, the solution you mentioned will translate to additional burden of the server.
from black-box-tuning.
Related Issues (14)
- Truncation Length HOT 2
- add web demo/models/datasets to ICML organization on Hugging Face
- modeling_roberta.py line 632 HOT 1
- DeepBBT : the outputs of modified Roberta don't have hidden states HOT 2
- Can the user-side can obtain the final prompt in literal? HOT 1
- Can't replicate results of BBTv2 paper HOT 2
- 关于Dbpedia HOT 2
- 结果复现问题 HOT 2
- very interested in moss
- How big is the improvement in NLG about BBT v2
- Comparison with gradient-based methods on large models
- Support for Flan-T5 models
- Instead of pip install 'sklearn', please pip install scikit-learn
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from black-box-tuning.