• bitcoinBitcoin(BTC)$77,778.001.57%
  • ethereumEthereum(ETH)$2,499.961.38%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$719.240.82%
  • rippleXRP(XRP)$1.394.37%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$101.061.52%
  • tronTRON(TRX)$0.340472-0.03%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.010.00%
  • zcashZcash(ZEC)$1,133.604.82%
  • HyperliquidHyperliquid(HYPE)$79.833.96%
  • dogecoinDogecoin(DOGE)$0.0834980.68%
  • RainRain(RAIN)$0.014999-1.59%
  • USDSUSDS(USDS)$1.00-0.01%
  • moneroMonero(XMR)$513.41-3.22%
  • whitebitWhiteBIT Coin(WBT)$80.461.45%
  • chainlinkChainlink(LINK)$11.331.20%
  • leo-tokenLEO Token(LEO)$8.96-1.09%
  • cardanoCardano(ADA)$0.2081492.05%
  • stellarStellar(XLM)$0.1902477.04%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • daiDai(DAI)$1.00-0.01%
  • bitcoin-cashBitcoin Cash(BCH)$222.37-0.20%
  • USD1USD1(USD1)$1.000.00%
  • litecoinLitecoin(LTC)$53.500.30%
  • uniswapUniswap(UNI)$6.311.67%
  • CantonCanton(CC)$0.0963171.49%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.350.08%
  • hedera-hashgraphHedera(HBAR)$0.0767641.88%
  • avalanche-2Avalanche(AVAX)$7.462.20%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • nearNEAR Protocol(NEAR)$2.415.42%
  • shiba-inuShiba Inu(SHIB)$0.0000051.25%
  • suiSui(SUI)$0.721.89%
  • crypto-com-chainCronos(CRO)$0.0586930.90%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,279.97-1.55%
  • BittensorBittensor(TAO)$232.61-0.28%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.12-2.02%
  • okbOKB(OKB)$113.581.25%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.140.10%
  • aaveAave(AAVE)$125.37-0.09%
  • BitwayBitway(BTW)$0.704.51%
  • AsterAster(ASTER)$0.690.40%
  • mantleMantle(MNT)$0.560.28%
  • pax-goldPAX Gold(PAXG)$4,283.33-1.56%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.057182-0.13%
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

CMU Researchers Introduce ReLM: An AI System For Validating And Querying LLMs Using Standard Regular Expressions

June 9, 2023
in AI & Technology
Reading Time: 5 mins read
A A
CMU Researchers Introduce ReLM: An AI System For Validating And Querying LLMs Using Standard Regular Expressions
ShareShareShareShareShare

There are rising worries about the potential negative impacts of large language models (LLMs), such as data memorization, bias, and unsuitable language, despite LLMs’ widespread praise for their capacity to generate natural-sounding text. It is challenging to validate (and rectify) such worries because of LLMs’ intricacy and developing capabilities. In this study, the authors present ReLM, a system for checking and querying LLMs with the help of conventional regular expressions. With ReLM, many language model evaluations may be formalized and made possible by simplifying complex evaluation methods into regular expression queries.

Results from inquiries on memorization, gender prejudice, toxicity, and language comprehension reveal that ReLM can expand statistical and prompt-tuning coverage by as much as 15 times compared to state-of-the-art ad hoc searches. For the ever-growing challenge of LLM validation, ReLM provides a competitive and generalized starting point.

ReLM is the first solution that allows practitioners to directly measure LLM behavior over collections too vast to enumerate by describing a query as the whole set of test patterns. ReLM’s success stems from using a compact graph representation of the solution space, which is derived from regular expressions and then compiled into an LLM-specific representation before being executed. Therefore, users are not required to be familiar with the LLM’s inner workings; tests produce the same results as if all possible strings existed in the real world. In addition to establishing ReLM, the authors show how the patterns of strings can be used in various LLM evaluation tasks.

🚀 JOIN the fastest ML Subreddit Community

Regular Expression engine for LMs, or ReLM for short. Below, we demonstrate how ReLM adds a limited decoding system based on automaton theory to the LLM. Users of ReLM build queries that incorporate the test pattern and how to carry it out. ReLM can avoid performing unnecessary effort resulting in false negatives since the user identifies the pattern of interest. In addition, ReLM can encompass often-ignored elements in the test set, hence avoiding false positives, because the user provides variations of the pattern (for example, encodings and misspellings). Given the correct propagation of effects to the final automaton, one can describe virtually any pattern or mutation of the pattern. 

Python user programs can use the ReLM framework; ReLM exposes a specific API that these programs can use. To use ReLM, the software sends a Query Object and an LLM defined in a third-party library, such as Hugging Face Transformers (Wolf et al., 2020). The regular expression, LLM decision rules, and the traversal algorithm are all stored in the Query Object. 

Users of ReLM can divide a validation task into two parts while writing its code:

  • Using a regular expression to describe a subset of strings formally.
  • Guiding the engine through the process of string enumeration and evaluation.

Researchers show that ReLM can execute common queries quickly and expressively, significantly reducing the validation effort required by LLMs. Most significantly,

  • The application of regular expressions to LLM forecasting is formally outlined. Regular expressions can describe sets of indefinite size, unlike multiple-choice questions, which are limited and enumerable. Compared to open-ended questions, which sometimes yield ambiguous responses, ReLM’s outcomes are consistently clear.
  • The conditional and unconditional classes of LLM inference queries are identified and built. Numerous token sequences can represent A fixed query string, which motivates a compressed representation, as academics have shown when studying unconditional generation. They are the first group to use automata to accommodate these variant encodings.
  • A regular expression inference engine that effectively converts regular expressions to finite automata has been designed and implemented. Researchers have achieved competitive GPU utilization and runtimes (seconds) using both shortest path and randomized graph traversals.
  • Using GPT-2 models, the authors illustrate the value of ReLM in the context of LLM validation by assessing memorization, gender bias, toxicity, and language comprehension tasks.

More details can be found in the repo https://github.com/mkuchnik/relm 

To conclude

The necessity of validating abstractions for large language models (LLMs) has arisen due to the complexity of natural language and the increasing growth of LLMs. To facilitate the execution of validation tasks using LLMs, researchers present ReLM, the first programmable framework. Using ReLM, you can write logical queries in regular expressions, which can then be turned into an executable form in the LLM language. ReLM can run queries up to 15x faster, with 2.5x fewer data, or in a way that offers extra insights than previous methods on memorization, gender prejudice, toxicity, and language understanding tasks. While ReLM’s results strongly argue against relying on ad hoc LLM validation, addressing inquiries systematically introduces other difficulties (for instance, left-to-right autoregressive decoding favors suffix completions). Our long-term goals include enhancing ReLM’s query optimization capabilities and bringing it to more model families.


Check Out The Paper, Github, and CMU Article. Don’t forget to join our 23k+ ML SubReddit, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more. If you have any questions regarding the above article or if we missed anything, feel free to email us at [email protected]

🚀 Check Out 100’s AI Tools in AI Tools Club


YOU MAY ALSO LIKE

How To Block Time-Wasting Apps On iPhone Using Screen Time

What Is Agentic RAG? When AI Plans Its Own Search and Retrieval – Unite.AI

Dhanshree Shenwai is a Computer Science Engineer and has a good experience in FinTech companies covering Financial, Cards & Payments and Banking domain with keen interest in applications of AI. She is enthusiastic about exploring new technologies and advancements in today’s evolving world making everyone’s life easy.


Check out https://aitoolsclub.com to find 100’s of Cool AI Tools

Credit: Source link

ShareTweetSendSharePin

Related Posts

How To Block Time-Wasting Apps On iPhone Using Screen Time
AI & Technology

How To Block Time-Wasting Apps On iPhone Using Screen Time

September 14, 2026
What Is Agentic RAG? When AI Plans Its Own Search and Retrieval – Unite.AI
AI & Technology

What Is Agentic RAG? When AI Plans Its Own Search and Retrieval – Unite.AI

September 14, 2026
NVIDIA Open-Sources OSMO: One YAML Orchestrates Physical AI Training, Simulation, and Robot Testing
AI & Technology

NVIDIA Open-Sources OSMO: One YAML Orchestrates Physical AI Training, Simulation, and Robot Testing

September 14, 2026
Anthropic’s 3-Step ‘Pace the Frontier’ Plan Wins OpenAI, xAI and Microsoft Support: Is It Too Late to Slow AI Down?
AI & Technology

Anthropic’s 3-Step ‘Pace the Frontier’ Plan Wins OpenAI, xAI and Microsoft Support: Is It Too Late to Slow AI Down?

September 14, 2026
Next Post
Here’s Why Japan May Need to Push Interest Rates Deeper into Negative Territory

Here's Why Japan May Need to Push Interest Rates Deeper into Negative Territory

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Why scientists are starting to worry popular supplements could harm the aging brain – The Washington Post

Why scientists are starting to worry popular supplements could harm the aging brain – The Washington Post

September 10, 2026
Renault Is Building Its €17,900 Dacia Spring EV In Europe To Qualify For Local Subsidies

Renault Is Building Its €17,900 Dacia Spring EV In Europe To Qualify For Local Subsidies

September 8, 2026
OpenAI Names Paul Christiano to Foundation Board and Safety Committee – Unite.AI

OpenAI Names Paul Christiano to Foundation Board and Safety Committee – Unite.AI

September 9, 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!