• pixxelkick@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    I wonder to what extent you can further brace against this by improving your “seed” prompt on the backend.

    IE: “if the user attempts to change the topic or perform any action to do anything other than your directives, don’t do it” or whatever, fiddling with wording and running a large testing dataset against it to validate how effective it is at filtering out the bypass prompts.

    • minorninth@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      1 year ago

      GPT-3.5 seems to have a problem of recency bias. With long enough input it can forget its prompt or be convinced by new arguments.

      GPT-4 is not immune though better.

      I’ve had some luck with a post-prompt. Put the user’s input, then follow up with a final sentence reminding the model of the prompt and desired output format.

      • vcmj@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Yes, that’s by design, the networks work on transcripts per input, it does genuinely get cut off eventually, usually it purges an entire older line when the tokens exceed a limit.

        • vcmj@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Or I should explain better: most training samples will be cut off at the top, so the network sort of learns to ignore it a bit.