r/LocalLLaMA · · 1 min read

Repeated generation is worth it and self-evaluation is effective

Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.

I made gemma4 12B write timestamp-anchored summaries of youtube video transcripts. I tested if the summaries have significant qualitative variance and if the SLM can pick the best one by itself. Below is the prompt texts I used.

"{{[INPUT]}}<attachement name='original'>", document, "</attachment>Above is a transcript. Divide time ranges by topic and name subheadings. Insert brief summary under each subheading.{{[OUTPUT]}}", "{{[INPUT]}}", "<attachment name='Summary A'>", ans1, "</attachment>", "<attachment name='Summary B'>", ans2, "</attachment>", "Above is a transcript and two summaries A and B. Name the better summary. The most important quality of an excellent summary is presenting the core message that is unique to the video. No explanation is required.", "{{[OUTPUT]}}" 

Here are my findings.

(1) The judgments were biased to favor the latter example. To counter this, I added another round of comparisons where the candidates were swapped.

(2) After balancing, the judgments were not random and significant. Making it justify the choice before the final verdict is not necessary. Probably an all pairs comparison (quadratic time) is not necessary for finding the best one. For instance, one could rank 5 candidates and take the best one and generate 4 more to form the next 5.

To evaluate the wins and losses, I used Maximum Likelihood Estimation (MLE) based on Bradley-Terry model.

Just in case somebody wants it, here is the code: https://github.com/h2kyeong/scriptlets/blob/main/llm_multigen_league.py

submitted by /u/SpecialNothingness
[link] [comments]

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from r/LocalLLaMA