• bitcoinBitcoin(BTC)$77,800.001.35%
  • ethereumEthereum(ETH)$2,509.261.21%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$721.660.79%
  • rippleXRP(XRP)$1.404.19%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$101.411.68%
  • tronTRON(TRX)$0.339883-0.24%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.020.00%
  • zcashZcash(ZEC)$1,133.243.79%
  • HyperliquidHyperliquid(HYPE)$80.253.58%
  • dogecoinDogecoin(DOGE)$0.0841070.81%
  • RainRain(RAIN)$0.015087-1.71%
  • USDSUSDS(USDS)$1.000.01%
  • moneroMonero(XMR)$512.90-4.34%
  • whitebitWhiteBIT Coin(WBT)$80.561.18%
  • chainlinkChainlink(LINK)$11.390.99%
  • leo-tokenLEO Token(LEO)$8.96-1.05%
  • cardanoCardano(ADA)$0.2100202.70%
  • stellarStellar(XLM)$0.1903286.82%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • daiDai(DAI)$1.000.02%
  • bitcoin-cashBitcoin Cash(BCH)$223.430.15%
  • USD1USD1(USD1)$1.000.01%
  • litecoinLitecoin(LTC)$53.58-0.14%
  • uniswapUniswap(UNI)$6.300.93%
  • CantonCanton(CC)$0.0960281.50%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.350.18%
  • hedera-hashgraphHedera(HBAR)$0.0769522.46%
  • avalanche-2Avalanche(AVAX)$7.472.15%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • nearNEAR Protocol(NEAR)$2.425.50%
  • shiba-inuShiba Inu(SHIB)$0.0000050.96%
  • suiSui(SUI)$0.722.01%
  • crypto-com-chainCronos(CRO)$0.0593831.33%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,290.95-1.29%
  • BittensorBittensor(TAO)$234.720.87%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.14-0.69%
  • okbOKB(OKB)$113.760.27%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.23%
  • aaveAave(AAVE)$126.472.06%
  • AsterAster(ASTER)$0.700.75%
  • BitwayBitway(BTW)$0.691.34%
  • mantleMantle(MNT)$0.570.77%
  • pax-goldPAX Gold(PAXG)$4,294.54-1.33%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.057201-0.92%
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

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

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

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

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
Which Is Better For Charging Your MacBook?
AI & Technology

Which Is Better For Charging Your MacBook?

September 14, 2026
At What Length Do Ethernet Cables Drop To Lower Speeds?
AI & Technology

At What Length Do Ethernet Cables Drop To Lower Speeds?

September 14, 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
OpenAI Launches ChatGPT for Financial Services With Built-In Data – Unite.AI

OpenAI Launches ChatGPT for Financial Services With Built-In Data – Unite.AI

September 10, 2026
9/11 responder shares dementia struggle

9/11 responder shares dementia struggle

September 13, 2026
Student Loan Autopay Now Cuts Your Rate a Full Point

Student Loan Autopay Now Cuts Your Rate a Full Point

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