• bitcoinBitcoin(BTC)$76,538.00-2.02%
  • ethereumEthereum(ETH)$2,454.50-2.11%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$717.70-0.46%
  • rippleXRP(XRP)$1.421.42%
  • usd-coinUSDC(USDC)$1.000.00%
  • solanaSolana(SOL)$100.33-1.10%
  • tronTRON(TRX)$0.338201-0.76%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.29%
  • zcashZcash(ZEC)$1,126.92-0.97%
  • HyperliquidHyperliquid(HYPE)$78.97-1.58%
  • dogecoinDogecoin(DOGE)$0.082562-1.48%
  • USDSUSDS(USDS)$1.000.00%
  • moneroMonero(XMR)$515.570.60%
  • whitebitWhiteBIT Coin(WBT)$79.16-1.94%
  • RainRain(RAIN)$0.013128-12.55%
  • chainlinkChainlink(LINK)$11.380.08%
  • leo-tokenLEO Token(LEO)$8.96-0.09%
  • cardanoCardano(ADA)$0.204663-2.15%
  • stellarStellar(XLM)$0.1958243.01%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • daiDai(DAI)$1.00-0.02%
  • bitcoin-cashBitcoin Cash(BCH)$223.240.10%
  • USD1USD1(USD1)$1.00-0.01%
  • uniswapUniswap(UNI)$6.644.41%
  • litecoinLitecoin(LTC)$52.36-2.43%
  • CantonCanton(CC)$0.094971-0.95%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.34-0.82%
  • hedera-hashgraphHedera(HBAR)$0.0785052.13%
  • avalanche-2Avalanche(AVAX)$7.530.67%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • nearNEAR Protocol(NEAR)$2.38-1.20%
  • shiba-inuShiba Inu(SHIB)$0.000005-1.81%
  • suiSui(SUI)$0.71-1.97%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • crypto-com-chainCronos(CRO)$0.057524-1.81%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,292.120.43%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$224.54-3.75%
  • MemeCoreMemeCore(M)$1.11-0.81%
  • Ripple USDRipple USD(RLUSD)$1.00-0.01%
  • okbOKB(OKB)$112.37-1.23%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • aaveAave(AAVE)$127.290.93%
  • BitwayBitway(BTW)$0.702.06%
  • AsterAster(ASTER)$0.69-0.27%
  • pax-goldPAX Gold(PAXG)$4,293.630.34%
  • mantleMantle(MNT)$0.56-1.75%
  • World Liberty FinancialWorld Liberty Financial(WLFI)$0.057341-0.40%
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

Salesforce Debuts Koa Reasoning Model for Agentforce, Trained on Nemotron – Unite.AI

2 Ways Android Users Can Take Advantage Of Apple’s MagSafe Accessories

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

Salesforce Debuts Koa Reasoning Model for Agentforce, Trained on Nemotron – Unite.AI
AI & Technology

Salesforce Debuts Koa Reasoning Model for Agentforce, Trained on Nemotron – Unite.AI

September 15, 2026
2 Ways Android Users Can Take Advantage Of Apple’s MagSafe Accessories
AI & Technology

2 Ways Android Users Can Take Advantage Of Apple’s MagSafe Accessories

September 15, 2026
Apple TV Cleaned Up At The Emmys With Eight Wins For Widow’s Bay And Pluribus
AI & Technology

Apple TV Cleaned Up At The Emmys With Eight Wins For Widow’s Bay And Pluribus

September 15, 2026
Elsevier Integrates LG AI Research’s Chemistry Vision Model Into Reaxys – Unite.AI
AI & Technology

Elsevier Integrates LG AI Research’s Chemistry Vision Model Into Reaxys – Unite.AI

September 15, 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
A Fun Run Reveals Anxieties in a Black L.A. Neighborhood – The New York Times

A Fun Run Reveals Anxieties in a Black L.A. Neighborhood – The New York Times

September 11, 2026
Mike Tomlin says he’s been working on a city in Minecraft

Mike Tomlin says he’s been working on a city in Minecraft

September 15, 2026
Moment of silence held at Pentagon 9/11 ceremony

Moment of silence held at Pentagon 9/11 ceremony

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