• bitcoinBitcoin(BTC)$80,744.004.87%
  • ethereumEthereum(ETH)$2,431.577.37%
  • tetherTether(USDT)$1.000.05%
  • binancecoinBNB(BNB)$719.213.79%
  • rippleXRP(XRP)$1.314.44%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$96.134.59%
  • tronTRON(TRX)$0.319567-0.87%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.051.53%
  • zcashZcash(ZEC)$1,309.938.85%
  • HyperliquidHyperliquid(HYPE)$84.331.63%
  • dogecoinDogecoin(DOGE)$0.0770684.07%
  • moneroMonero(XMR)$635.030.38%
  • USDSUSDS(USDS)$1.000.03%
  • whitebitWhiteBIT Coin(WBT)$78.135.57%
  • chainlinkChainlink(LINK)$11.465.54%
  • leo-tokenLEO Token(LEO)$9.350.65%
  • cardanoCardano(ADA)$0.1973785.30%
  • stellarStellar(XLM)$0.1684235.21%
  • bitcoin-cashBitcoin Cash(BCH)$282.534.09%
  • nearNEAR Protocol(NEAR)$4.057.10%
  • uniswapUniswap(UNI)$7.657.71%
  • daiDai(DAI)$1.000.03%
  • Ethena USDeEthena USDe(USDE)$1.000.07%
  • litecoinLitecoin(LTC)$56.245.62%
  • RainRain(RAIN)$0.005994-7.57%
  • CantonCanton(CC)$0.0999563.09%
  • avalanche-2Avalanche(AVAX)$8.743.71%
  • suiSui(SUI)$0.935.53%
  • USD1USD1(USD1)$1.000.05%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.170.68%
  • tether-goldTether Gold(XAUT)$4,107.444.50%
  • hedera-hashgraphHedera(HBAR)$0.0728696.36%
  • quant-networkQuant(QNT)$202.216.33%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • shiba-inuShiba Inu(SHIB)$0.0000054.15%
  • BittensorBittensor(TAO)$235.655.98%
  • paypal-usdPayPal USD(PYUSD)$1.000.03%
  • crypto-com-chainCronos(CRO)$0.0523705.37%
  • Ripple USDRipple USD(RLUSD)$1.000.03%
  • EthenaEthena(ENA)$0.1813166.12%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.10%
  • okbOKB(OKB)$113.105.67%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000054.83%
  • aaveAave(AAVE)$131.625.08%
  • OndoOndo(ONDO)$0.4106066.77%
  • Pump.funPump.fun(PUMP)$0.0042881.42%
  • MemeCoreMemeCore(M)$0.83-3.57%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
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

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

Atmospheric AI Secures $10M Seed for Procurement Modeling Push – Unite.AI

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

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans
AI & Technology

Snap Has More Than 30 Million Paid Subscribers Across Snapchat+ And Other Plans

November 4, 2026
Atmospheric AI Secures M Seed for Procurement Modeling Push – Unite.AI
AI & Technology

Atmospheric AI Secures $10M Seed for Procurement Modeling Push – Unite.AI

November 4, 2026
Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI
AI & Technology

Perplexity Adds Live Web Grounding to Its Decisions API – Unite.AI

November 4, 2026
Pangram Expands Its AI Detection Tools To Video And Images
AI & Technology

Pangram Expands Its AI Detection Tools To Video And Images

November 4, 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
Bandwidth Inc. (BAND) Q3 2026 Earnings Call Transcript

Bandwidth Inc. (BAND) Q3 2026 Earnings Call Transcript

October 29, 2026
100 people evacuated from hotel fire in Texas

100 people evacuated from hotel fire in Texas

October 29, 2026
Aehr Test Systems: Too Many Variables In Grasping The Addressable Market (NASDAQ:AEHR)

Aehr Test Systems: Too Many Variables In Grasping The Addressable Market (NASDAQ:AEHR)

October 31, 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!