By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Batched Prompting for Efficient GPT-4 Annotatio | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Batched Prompting for Efficient GPT-4 Annotatio | HackerNoon
Computing

Batched Prompting for Efficient GPT-4 Annotatio | HackerNoon

News Room
Last updated: 2025/04/18 at 10:52 AM
News Room Published 18 April 2025
Share
SHARE

Authors:

(1) Corby Rosset, Microsoft Research and Correspondence to [email protected];

(2) Ching-An Cheng, Microsoft Research;

(3) Arindam Mitra, Microsoft Research;

(4) Michael Santacroce, Microsoft Research;

(5) Ahmed Awadallah, Microsoft Research and Correspondence to [email protected];

(6) Tengyang Xie, Microsoft Research and Correspondence to [email protected].

Table of Links

Abstract and 1 Introduction

2 PreliminariesDirect Nash Optimization

2.1 RLHF Based on Reward Models

2.2 RLHF with General Preferences

3 Direct Nash Optimization and 3.1 Derivation of Algorithm 1

3.2 Theoretical Analysis

4 Practical Algorithm – Iterative Contrastive Self-Improvement

5 Experiments and 5.1 Experimental Setup

5.2 Results and Analysis

6 Related Work

7 Conclusion and References

Appendix

A Extension to Regularized Preferences

B Detailed Proofs

C Additional Experimental Details

C Additional Experimental Details

Batched Prompting: We also show in Figure 3 the prompt that we send to GPT-4 to annotate preferences. For the sake of efficiency, we “batch” requests to GPT-4, meaning that instead of sending every pair of candidate responses to be annotated, we show all candidates side-by-side and ask GPT-4 to apply the scoring rubric to each one in the context window

Cost Analysis: We also do a brief cost analysis associated with the scaled-up experiment on 600k training inputs. The major line items are the cost of sampling outputs, annotating them with GPT-4 to construct training pairs, and then training the next iteration against those pairs. For each of the six iterations:

  1. Sampling: it took about 18-24 hours to inference 5 outputs for all 100k examples on 10 8xA100 80GB pods, depending on the average length, costing about $6,000 based on spot pricing.

  2. Annotation: the average number of prompt tokens sent to GPT-4 for annotation across iterations was about 450M, with an average of about 60M completion tokens, amounting to about $34,000 based on the version of the endpoint we were using.

  3. Training: ironically, training was the cheapest step, taking only 12-24 hours on two 8xA100 80GB nodes

Figure 3: The annotation prompt submitted to GPT-4 to collect multiple side-by-side preference scores for DNO. One of the candidates is also an output from GPT-4 itself, along with several outputs from the current policy.Figure 3: The annotation prompt submitted to GPT-4 to collect multiple side-by-side preference scores for DNO. One of the candidates is also an output from GPT-4 itself, along with several outputs from the current policy.

Table 5: Outputs of the various DNO models across iterations for the question: When will the earth run out of fresh water?. The output for Iter-1 is a bit too long as shown in Table 2. We believe this could be addressed with better hyperparameter tuning or preference data. We fine the initial SFT model’s response to be missing important points about how the premise of the question is best addressed by highlighting access to freshwater. The last reponse, for Iter 3 is more informative and specific than the initial SFT response.

Table 6: Outputs of the various DNO models across iterations for an interview question relating to the design of a URL lookup system.. The last response from Iter 3 is more informative and clearer, and doesn’t contain misleading information (searching a trie runs in linear complexity in the length of the strings, not constant…). The response for Iter 1 contains an implementation of a Trie, which may be unnecessary because the user did not ask for it.

Table 7: Outputs of first and last DNO-More-Data iterations for the third example What factors led to the outbreak of ww1?. The last response from Iter 6 has a higher information density; it recalls more key facts and entities, including the specific date of the start of WW1, Triple Entente, the Triple Alliance, Gavrilo Princip, and the Black Hand. Iteration 1 also contains some of this information, but is too wordy. The initial SFT model seems a lot more superficial.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Best Apple Deals of the Week: Anker’s 20% Sitewide Sale Exclusive to MacRumors Readers, Plus Big Sales on Apple Watch and AirPods Max
Next Article Aaron Rodgers gives Steelers salary demands – it’s 4 times LESS than expected
Leave a comment

Leave a Reply Cancel reply

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

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

News All Stage 2025: Prepare 4 VC’s Jason Kraus will instruct on how to turn chaos into momentum | News
News
I tested four camera phones and the Samsung Galaxy S25 still has a shutter lag problem
News
Africa’s digital transformation: Lessons from telecom and banking
Computing
Boy, 12, shot dead at playground as police launch urgent manhunt for killer
News

You Might also Like

Computing

Africa’s digital transformation: Lessons from telecom and banking

7 Min Read
Computing

Germany Shuts Down eXch Over $1.9B Laundering, Seizes €34M in Crypto and 8TB of Data

3 Min Read
Computing

Google Pays $1.375 Billion to Texas Over Unauthorized Tracking and Biometric Data Collection

2 Min Read

Life in Rwanda on the W2 Entrepreneurship Visa

9 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?