• bitcoinBitcoin(BTC)$78,594.002.03%
  • ethereumEthereum(ETH)$2,333.743.11%
  • tetherTether(USDT)$1.000.04%
  • binancecoinBNB(BNB)$702.700.85%
  • rippleXRP(XRP)$1.292.97%
  • usd-coinUSDC(USDC)$1.000.03%
  • solanaSolana(SOL)$93.911.61%
  • tronTRON(TRX)$0.319725-0.63%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.030.00%
  • zcashZcash(ZEC)$1,308.8910.91%
  • HyperliquidHyperliquid(HYPE)$86.893.02%
  • moneroMonero(XMR)$640.712.69%
  • dogecoinDogecoin(DOGE)$0.0754491.34%
  • USDSUSDS(USDS)$1.000.03%
  • whitebitWhiteBIT Coin(WBT)$75.552.03%
  • chainlinkChainlink(LINK)$11.200.60%
  • leo-tokenLEO Token(LEO)$9.320.55%
  • cardanoCardano(ADA)$0.1920901.45%
  • stellarStellar(XLM)$0.1644540.95%
  • bitcoin-cashBitcoin Cash(BCH)$276.840.13%
  • nearNEAR Protocol(NEAR)$4.126.58%
  • uniswapUniswap(UNI)$7.473.69%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • daiDai(DAI)$1.000.03%
  • RainRain(RAIN)$0.0062230.38%
  • litecoinLitecoin(LTC)$55.011.21%
  • CantonCanton(CC)$0.0994292.47%
  • avalanche-2Avalanche(AVAX)$8.702.24%
  • suiSui(SUI)$0.923.80%
  • USD1USD1(USD1)$1.000.02%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.192.92%
  • tether-goldTether Gold(XAUT)$4,028.703.40%
  • hedera-hashgraphHedera(HBAR)$0.0715632.33%
  • quant-networkQuant(QNT)$202.032.75%
  • Global DollarGlobal Dollar(USDG)$1.000.03%
  • shiba-inuShiba Inu(SHIB)$0.0000052.41%
  • BittensorBittensor(TAO)$231.263.16%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • crypto-com-chainCronos(CRO)$0.0514422.45%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • EthenaEthena(ENA)$0.1847788.24%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.13%
  • okbOKB(OKB)$109.070.32%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000055.63%
  • aaveAave(AAVE)$132.293.66%
  • Pump.funPump.fun(PUMP)$0.0044176.30%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • OndoOndo(ONDO)$0.4051214.74%
  • MemeCoreMemeCore(M)$0.851.47%
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

ETH Zurich Researchers Introduce LMQL: A Programming Language For Language Model Interaction

July 29, 2023
in AI & Technology
Reading Time: 5 mins read
A A
ETH Zurich Researchers Introduce LMQL: A Programming Language For Language Model Interaction
ShareShareShareShareShare

The performance of large language models on various tasks, including question-answering and code production, has been impressive. A language model can automatically generate a statistically plausible conclusion to a sequence based on an input. Users then use this information to train these models through spoken instructions or examples, allowing them to perform various subsequent activities. More complex prompting techniques can involve collaboration between the language model, the user, and third-party applications like calculators. Ad hoc interaction may still be necessary when implementing complicated task- and model-specific programs to achieve state-of-the-art performance or modify language models to specific tasks.

In light of this, researchers from Switzerland introduced the cutting-edge concept of language model programming (LMP). By expanding the scope of language model prompting beyond simple text prompts, LMP provides a natural hybrid of the two methods. In addition, LMP lets you restrict the results the language model produces. This allows for a high level of abstraction in the language model, making it readily adaptable to various activities. Researchers implement LMQL (for Language Model Query Language) to allow for LMP. LMQL uses the constraints and control flow from an LMP prompt to generate an efficient inference technique that reduces the number of costly calls to the underlying language model. They demonstrate the ease with which LMQL may capture a variety of state-of-the-art prompting mechanisms, notably those that facilitate interactive flows that are difficult to implement with preexisting high-level APIs. The examination demonstrates that they maintain or improve accuracy on various downstream activities while drastically reducing computation time or financial outlay (in the case of pay-to-use APIs).

How does it work?

Because of its declarative nature, LMQL merely specifies the desired outcome of a task and leaves the specifics of the control flow of logic to another language. It borrows ideas from SQL but builds them on top of Python. Users can feed the model both textual and programmable questions. 

The report identifies five primary components of the language’s grammar. The decoder’s job is to figure out the secret behind the text-generating algorithm. It’s a bit of code that turns the data into something useful, like higher-quality, more varied wording. 

The basic tool for interacting with the language model is the Python syntax-written Query block. Each string at the top level of the query block represents a separate query. The query’s target model is identified in the Model/from clause. This specifies the linguistic foundation upon which text is generated, and Where clause, on the other hand, lets people set the parameters that govern the results. It specifies what the language model must produce to maintain the necessary properties. 

LMQL users can place sophisticated logical constraints on the results generated by the language model. Token-level prediction masks are generated automatically from these constraints so they can be strictly enforced at the outset of text production. As a result, various constraints can be carefully enforced, and the model will only produce content that meets the criteria. Because of the improved output format assurances, multi-part prompting and integration are made more easier.

Main Contributions

  • Several problems with current LM prompting methods have been identified and addressed by the authors of this study, who introduce the innovative paradigm of language model programming.
  • Scripted prompting and output restricting are two features that LMQL, a high-level query language for LMs, offers.
  • A formal description of final and follow abstractions for eager, partial evaluation semantics. With this, given only some general guidelines, one can have a model-specific token mask for LM decoding generated automatically.
  • A thorough analysis of LMQL demonstrates how to express a variety of basic and sophisticated prompting approaches as short, easy-to-understand LMQL programs that run faster and more accurately thanks to LMQL’s ability to lower inference costs and execution times by as much as 80%.

Case studies done by researchers show that:

  • LMQL’s high level of expressivity means that many modern, state-of-the-art techniques can be implemented with significantly fewer lines of code than their comparable Python-based counterparts.
  • The number of model queries, and hence efficiency and run time, are greatly improved using LMQL. One can enforce constraints dynamically without resorting to chunk-wise decoding and backtracking, thanks to LMQL’s capability for token-level validation.
  • There is no effect of LMQL on the model’s accuracy. There are situations in which the limits imposed lead to marginally greater precision.

In addition, researchers have demonstrated that LMQL would provide significant monetary savings when employed in the context of paid, API-gated models due to the observed reduction of billable tokens. Finally, they point out that these case studies are separate from comprehensive user research of LMQL, in which the impact and usability of the language are evaluated in tandem with real-world prompt engineers. It is important to remember that the lack of such a study threatens the credibility of the claims regarding practicality.

To conclude, experts present Language Model Programming as a fresh approach to interacting with (huge) linguistic models. LMQL, a high-level query language with a straightforward syntax, was introduced. LMQL’s evaluation semantics were developed efficiently, allowing for swift query processing. They’ve proven their point with case studies showing how sophisticated prompting methods can be translated into simple, clear, and fast LMQL code that can cut computing expenses by as much as 80 percent.


Check out the Paper and Project. All Credit For This Research Goes To the Researchers on This Project. Also, don’t forget to join our 27k+ ML SubReddit, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more.


YOU MAY ALSO LIKE

CrowdStrike Targets Rogue AI Agents With Insider Threat Detection – Unite.AI

Binance Attackers Used Fake Job Interviews To Pull Off $6.3 Billion Crypto Heist

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.


🔥 Gain a competitive
edge with data: Actionable market intelligence for global brands, retailers, analysts, and investors. (Sponsored)

Credit: Source link

ShareTweetSendSharePin

Related Posts

CrowdStrike Targets Rogue AI Agents With Insider Threat Detection – Unite.AI
AI & Technology

CrowdStrike Targets Rogue AI Agents With Insider Threat Detection – Unite.AI

November 4, 2026
Binance Attackers Used Fake Job Interviews To Pull Off .3 Billion Crypto Heist
AI & Technology

Binance Attackers Used Fake Job Interviews To Pull Off $6.3 Billion Crypto Heist

November 4, 2026
Harvey to Bring Jus Mundi’s Arbitration Agent Into Legal Workflows – Unite.AI
AI & Technology

Harvey to Bring Jus Mundi’s Arbitration Agent Into Legal Workflows – Unite.AI

November 4, 2026
Fractal Analytics Profit Climbs 139% as Healthcare Leads Growth – Unite.AI
AI & Technology

Fractal Analytics Profit Climbs 139% as Healthcare Leads Growth – Unite.AI

November 4, 2026
Next Post
Elon Musk Unveils ‘Starship’ He Says Will Take People to Mars

Elon Musk Unveils 'Starship' He Says Will Take People to Mars

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Record high tides bring flooding and glimpse of sea-level rise to California – The Washington Post

Record high tides bring flooding and glimpse of sea-level rise to California – The Washington Post

October 28, 2026
Tesla's Progress Still Falls Short Of Its Price

Tesla's Progress Still Falls Short Of Its Price

November 1, 2026
Cute animal alert: Voting opens for ‘Nikon Comedy Wildlife Photography Awards’

Cute animal alert: Voting opens for ‘Nikon Comedy Wildlife Photography Awards’

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