• bitcoinBitcoin(BTC)$75,932.00-1.47%
  • ethereumEthereum(ETH)$2,404.82-3.04%
  • tetherTether(USDT)$1.00-0.03%
  • binancecoinBNB(BNB)$711.21-1.06%
  • rippleXRP(XRP)$1.29-8.00%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$97.27-3.68%
  • tronTRON(TRX)$0.334690-1.18%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.000.00%
  • zcashZcash(ZEC)$1,209.195.61%
  • HyperliquidHyperliquid(HYPE)$77.92-1.84%
  • dogecoinDogecoin(DOGE)$0.079902-3.46%
  • RainRain(RAIN)$0.0137453.71%
  • USDSUSDS(USDS)$1.00-0.04%
  • moneroMonero(XMR)$505.36-2.21%
  • whitebitWhiteBIT Coin(WBT)$78.03-2.13%
  • leo-tokenLEO Token(LEO)$8.88-1.22%
  • chainlinkChainlink(LINK)$10.82-5.02%
  • cardanoCardano(ADA)$0.194494-5.26%
  • stellarStellar(XLM)$0.175427-9.76%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • daiDai(DAI)$1.000.03%
  • bitcoin-cashBitcoin Cash(BCH)$218.80-1.55%
  • USD1USD1(USD1)$1.00-0.02%
  • litecoinLitecoin(LTC)$50.71-3.57%
  • uniswapUniswap(UNI)$6.31-5.93%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.31-2.17%
  • CantonCanton(CC)$0.090866-4.69%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.074336-3.95%
  • avalanche-2Avalanche(AVAX)$7.26-3.44%
  • nearNEAR Protocol(NEAR)$2.431.13%
  • shiba-inuShiba Inu(SHIB)$0.000005-5.32%
  • suiSui(SUI)$0.69-2.93%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.02%
  • tether-goldTether Gold(XAUT)$4,344.051.57%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.055456-3.37%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.10-0.09%
  • BittensorBittensor(TAO)$216.69-4.28%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • okbOKB(OKB)$110.27-2.48%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • BitwayBitway(BTW)$0.7810.01%
  • pax-goldPAX Gold(PAXG)$4,350.131.68%
  • aaveAave(AAVE)$119.73-6.13%
  • AsterAster(ASTER)$0.67-2.18%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.056907-0.87%
  • mantleMantle(MNT)$0.54-2.87%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Fine-tuning AdvPrompter: A Novel AI Method to Generate Human-Readable Adversarial Prompt

May 2, 2024
in AI & Technology
Reading Time: 4 mins read
A A
Fine-tuning AdvPrompter: A Novel AI Method to Generate Human-Readable Adversarial Prompt
ShareShareShareShareShare

Large Language Models (LLMs) have succeeded greatly and are widely used in various fields. LLMs are sensitive to input prompts, and this behavior has led to multiple research studies to understand and exploit this characteristic. This helps to create prompts for learning tasks like zero-shot and in-context. For instance, AutoPrompt recognizes task-specific tokens for zero-shot text classification and fact retrieval. This approach uses gradient-based scoring of tokens considering task-specific loss evaluation to find the optimal probability distributions over discrete tokens.

Despite showing great capability, LLMs sometimes become vulnerable to certain jailbreaking attacks due to which irrelevant or toxic contents are generated. The main cause of jailbreaking attacks is the requirement of adversarial prompts by manual re-teaming, and one of its examples is inserting a suffix to a given instruction, which is inadequate and time-consuming. However, the automated generation of adversarial prompts frequently results in attacks that lack semantic meaning, can be easily identified by filters based on perplexity, and may need gradient information from the TargetLLM. 

Researchers from AI at Meta, and Max-Planck-Institute for Intelligent Systems, Tubingen, Germany, introduced a novel method that uses another LLM, AdvPrompter, to generate human-readable adversarial prompts in seconds. Compared to other optimized approaches, this method is ∼ 800× faster. The AdvPrompter is trained by utilizing an AdvPromterTrain algorithm that does not need access to the TargetLLM gradients. The trained AdvPrompter can generate suffixes and veil the input instruction, keeping its meaning intact. This tactic lures the TargetLLM into providing a harmful response. 

The approach proposed by researchers has the following key advantages:

  • It enhances human readability with the help of AdvPromter, which generates clear human-readable adversarial prompts.
  • Researchers’ experiments on multiple open-source LLMs have demonstrated excellent attack success rates (ASR) compared to previous approaches such as GCG and AutoDAN.
  • The trained AdvPrompter can generate adversarial suffixes using next-token prediction, unlike previous methods such as GCG and AutoDAN, which need to solve new optimization problems for every generated suffix. 

Generated adversarial suffixes with the help of trained AdvPromter are random with a non-zero temperature that allows users to sample a diverse set of adversarial prompts rapidly. Evaluation of more samples leads to better performance and a successful outcome. It further stabilizes at around k = 10, where k is the number of candidates of a score vector. Moreover, researchers found that the initial version of Llama2-7b constantly improves without fine-tuning, which means that generated suffixes with diversity are helpful for a successful attack.

In conclusion, researchers proposed a novel method for automated red-teaming of LLMs. The main approach includes training AdvPromter using an algorithm called AdvPromterTrain to generate human-readable adversarial prompts. Further, a novel algorithm called AdvPromterOpt is useful for automatically generating adversarial prompts. It is also used in the training loop to fine-tune the AdvPrompter predictions. Future work includes a detailed analysis of safety fine-tuning from automatically generated data, which is motivated by the robust increase of the TargetLLM via AdvPrompter.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter. Join our Telegram Channel, Discord Channel, and LinkedIn Group.

If you like our work, you will love our newsletter..

Don’t Forget to join our 40k+ ML SubReddit


YOU MAY ALSO LIKE

Roblox Pushes Deeper Into AI-Powered Gaming

AI Leaders Debate Slowing the Frontier

Sajjad Ansari is a final year undergraduate from IIT Kharagpur. As a Tech enthusiast, he delves into the practical applications of AI with a focus on understanding the impact of AI technologies and their real-world implications. He aims to articulate complex AI concepts in a clear and accessible manner.


🐝 [FREE AI WEBINAR Alert] AI/ML-Driven Forecasting for Power Demand, Supply & Pricing: May 3, 2024 10:00am – 11:00am PDT


Credit: Source link

ShareTweetSendSharePin

Related Posts

Roblox Pushes Deeper Into AI-Powered Gaming
AI & Technology

Roblox Pushes Deeper Into AI-Powered Gaming

September 16, 2026
AI Leaders Debate Slowing the Frontier
AI & Technology

AI Leaders Debate Slowing the Frontier

September 16, 2026
Can Independent Testing Make AI Safer?
AI & Technology

Can Independent Testing Make AI Safer?

September 16, 2026
AI Needs a Full Stop, Not a Slowdown: Parmy Olson
AI & Technology

AI Needs a Full Stop, Not a Slowdown: Parmy Olson

September 16, 2026
Next Post
Warrior Met Coal, Inc. (HCC) Q1 2024 Earnings Call Transcript

Warrior Met Coal, Inc. (HCC) Q1 2024 Earnings Call Transcript

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Mamdani to release documents related to 9/11 health impacts

Mamdani to release documents related to 9/11 health impacts

September 15, 2026
Comedian debuts surprise documentary on Theranos founder

Comedian debuts surprise documentary on Theranos founder

September 16, 2026
OpenAI’s GPT-Live-1 Arrives in the API at alt=

OpenAI’s GPT-Live-1 Arrives in the API at $0.05 Per Minute – Unite.AI

September 10, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!