‹ BackHN Continuity

Thread

Jev in 25 Lines of Python

691 points · 212 comments · bashbjorn

  1. antirez · · focus · HN ↗
    Because of masked attention in LLMs, if you put the options before the body (the email to analyze), the transformer already knows what it needs to look for, and can use more tokens to create state to address that specific task (BERT has no mask in the attention, so tokens attend also to next tokens). You could also do a few examples in the system prompt to improve calibration.

    Another trick that works is to repeat the question two times: "I'm repeating the task and labels for clarity: ..."

    1. ThePhysicist · · focus · HN ↗
      What a time to be alive, repeating questions to a model twice to increase accuracy.
      1. SeriousM · · focus · HN ↗
        Repitation always helped make your point stronger. Repitation always helped make your point stronger.
        1. lgas · · focus · HN ↗
          I guess repeating a mistake helps make it more obvious too.
          1. peterleiser · · focus · HN ↗
            With enough repitation you might get repitition.
            1. tanseydavid · · focus · HN ↗
              Or even repetition, repetition.
              1. linuxrebe1 · · focus · HN ↗
                Mr Smith agrees.
            2. rzzzt · · focus · HN ↗
              Use repetition to avoid trepidation if you have low reputation.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.