• bitcoinBitcoin(BTC)$80,633.004.49%
  • ethereumEthereum(ETH)$2,426.266.96%
  • tetherTether(USDT)$1.000.04%
  • binancecoinBNB(BNB)$720.253.64%
  • rippleXRP(XRP)$1.302.78%
  • usd-coinUSDC(USDC)$1.000.02%
  • solanaSolana(SOL)$95.633.68%
  • tronTRON(TRX)$0.319398-0.69%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.63%
  • zcashZcash(ZEC)$1,297.807.28%
  • HyperliquidHyperliquid(HYPE)$84.31-0.43%
  • dogecoinDogecoin(DOGE)$0.0770493.16%
  • moneroMonero(XMR)$639.721.93%
  • USDSUSDS(USDS)$1.000.03%
  • whitebitWhiteBIT Coin(WBT)$78.005.21%
  • chainlinkChainlink(LINK)$11.454.59%
  • leo-tokenLEO Token(LEO)$9.340.43%
  • cardanoCardano(ADA)$0.1968464.29%
  • stellarStellar(XLM)$0.1680784.37%
  • bitcoin-cashBitcoin Cash(BCH)$281.943.08%
  • nearNEAR Protocol(NEAR)$4.004.61%
  • uniswapUniswap(UNI)$7.687.09%
  • daiDai(DAI)$1.000.01%
  • Ethena USDeEthena USDe(USDE)$1.000.06%
  • litecoinLitecoin(LTC)$56.294.50%
  • RainRain(RAIN)$0.005976-9.67%
  • CantonCanton(CC)$0.0990812.98%
  • avalanche-2Avalanche(AVAX)$8.733.19%
  • suiSui(SUI)$0.934.79%
  • USD1USD1(USD1)$1.000.07%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.170.29%
  • tether-goldTether Gold(XAUT)$4,053.043.11%
  • hedera-hashgraphHedera(HBAR)$0.0729025.38%
  • quant-networkQuant(QNT)$203.006.08%
  • Global DollarGlobal Dollar(USDG)$1.000.02%
  • shiba-inuShiba Inu(SHIB)$0.0000053.04%
  • BittensorBittensor(TAO)$233.854.29%
  • paypal-usdPayPal USD(PYUSD)$1.000.03%
  • crypto-com-chainCronos(CRO)$0.0519353.77%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • EthenaEthena(ENA)$0.1815275.26%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.11%
  • okbOKB(OKB)$111.033.22%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • pepePepe(PEPE)$0.0000052.95%
  • aaveAave(AAVE)$132.204.91%
  • OndoOndo(ONDO)$0.4081665.82%
  • Pump.funPump.fun(PUMP)$0.004270-0.07%
  • MemeCoreMemeCore(M)$0.85-1.59%
  • 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

This AI Paper Introduces DSPy: A Programming Model that Abstracts Language Model Pipelines as Text Transformation Graphs

October 14, 2023
in AI & Technology
Reading Time: 4 mins read
A A
This AI Paper Introduces DSPy: A Programming Model that Abstracts Language Model Pipelines as Text Transformation Graphs
ShareShareShareShareShare

Language models (LMs) have given researchers the ability to create natural language processing systems with less data and at more advanced levels of understanding. This has led to a growing field of “prompting” methods and lightweight fine-tuning techniques to make LMs work for new tasks. However, the problem is that LMs can be quite sensitive to how you ask them questions for each task, and this issue becomes more complex when you have multiple LM interactions in a single process. 

The Machine learning (ML) community has been actively exploring methods for prompting language models (LMs) and building pipelines to tackle complex tasks. Unfortunately, existing LM pipelines often rely on hard-coded “prompt templates,” which are lengthy strings discovered through trial and error. In their pursuit of a more systematic approach to developing and optimizing LM pipelines, a team researchers from various institutions including Stanford, have introduced DSPy, a programming model that abstracts LM pipelines into text transformation graphs. These are essentially imperative computation graphs where LMs are invoked through declarative modules. 

The modules in DSPy are parameterized, which means they can learn how to apply combinations of prompting, fine-tuning, augmentation, and reasoning techniques by creating and collecting demonstrations. They have designed a compiler to optimize any DSPy pipeline to maximize a specified metric. 

The DSPy compiler was developed aiming to enhance the quality or cost-effectiveness of any DSPy program. The compiler takes as inputs the program itself, along with a small set of training inputs that may include optional labels and a validation metric for performance assessment. The compiler’s operation involves simulating different versions of the program using the provided inputs and generating example traces for each module. These traces serve as a means for self-improvement and are utilized to create effective few-shot prompts or to fine-tune smaller language models at various stages of the pipeline.

It’s important to mention that the way DSPy optimizes is quite flexible. They use something called “teleprompters,” which are like general tools for making sure each part of the system learns from the data in the best way possible.

Through two case studies, it has been demonstrated that concise DSPy programs can express and optimize sophisticated LM pipelines capable of solving maths word problems, handling multi-hop retrieval, answering complex questions, and controlling agent loops. In a matter of minutes after compilation, just a few lines of DSPy code enable GPT-3.5 and llama2-13b-chat to self-bootstrap pipelines that outperform standard few-shot prompting by over 25% and 65%, respectively.

In conclusion, this work introduces a groundbreaking approach to natural language processing through the DSPy programming model and its associated compiler. By translating complex prompting techniques into parameterized declarative modules and leveraging general optimization strategies (teleprompters), this research offers a new way to build and optimize NLP pipelines with remarkable efficiency.


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

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

We are also on WhatsApp. Join our AI Channel on Whatsapp..


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

Janhavi Lande, is an Engineering Physics graduate from IIT Guwahati, class of 2023. She is an upcoming data scientist and has been working in the world of ml/ai research for the past two years. She is most fascinated by this ever changing world and its constant demand of humans to keep up with it. In her pastime she enjoys traveling, reading and writing poems.


▶️ Now Watch AI Research Updates On Our Youtube Channel [Watch Now]

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
Arkansas Democrat Looks To Make History In Governor’s Race

Arkansas Democrat Looks To Make History In Governor's Race

Leave a Reply Cancel reply

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

Search

No Result
View All Result
'SNL': Inde Navarrette Takes Swipe at Shane Gillis During Monologue – Variety

'SNL': Inde Navarrette Takes Swipe at Shane Gillis During Monologue – Variety

November 1, 2026
Security kills man who brought gun to Nashville courthouse

Security kills man who brought gun to Nashville courthouse

October 29, 2026
Midterm Election 2026 Live: After Florida Rally, Trump Looks to Boost GOP Turnout in Kansas and Iowa – WSJ

Midterm Election 2026 Live: After Florida Rally, Trump Looks to Boost GOP Turnout in Kansas and Iowa – WSJ

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!