Response paragraph monitoring: reminder is a condition and not necessarily a learning goal

The supervision fine-tuning often sends user questions to the model together with the assistant ' s answers, but calculates the loss only in the target position where the assistant should be exporting.

Thematic shorts • IntroductionCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives . 1 first fix

Try to do it after reading

  • Explanatory response paragraph monitoring: reminder is a condition and not necessarily a mechanism and prerequisite for learning goals
  • Positioning the mechanism ' s fault limits with fixed examples

Suggested first

  • Chat template and cross entropy

Issues and mechanisms

The supervision fine-tuning often sends user questions to the model together with the assistant ' s answers, but calculates the loss only in the target position where the assistant should be exporting. The reminder is still involved in forward and contextual reasoning, but it is not necessarily an answer to be repeated. This distinction is particularly important for tools to be used, for multi-wheel dialogues and for long tips: mask is wrong, and training may seem normal while learning the wrong boundaries.

The template code is completed before the role boundaries, tags are moved and valid targets are aligned. Some of the trainers were internalized and could not be moved again from outside. The neglected location does not directly contribute to the loss, but may still be answered through contextual effects; Ignore labels cannot be understood as deleting input. Multiple rounds only supervise the final round or all assistant rotations, which is a different assignment.

A concrete example

There are eight locations for the synthesis of a series, the first five of which are reminders and boundaries, and the last three are targets. The probability of the three real targets is 0.5, 0.25, 0.5, negative logarithm and approximately 2.772589, responding to token on average approximately 0.924196. If the error was divided by eight, it would appear that about 0.346574, the loss had clearly improved but not improved as projected. If the first answer is omitted, the actual target content will change.

Borders and checks

The end mark, the rejection and the empty answer should also be explicitly addressed and no return to zero loss should be allowed to be achieved with a valid target of zero. Data packs and cut-offs are particularly easy to retain but delete answers, and the number of valid targets must be sampled. Frame training is not run and should be used to print batch decoding text and check the label location by location.

A method of verification

A specific check is to print the role, original token, move tag and whether to ignore each target position and remove all assistant contents artificially. At this point, the effective target should be zero and trigger a clear treatment, rather than a seemingly perfect sample of zero losses. Check if the first entry is missing by using a sample containing only one answer to token. Multiple rounds of dialogue also need to verify the attribution of end mark per round to prevent a gap in continuous monitoring between the end of the previous round and the next.

Check understanding

Hints By loss mask Ignoring, can it also influence model updates?

Yes. (a) The reminder is preceded by an impact response to the loss, and the relevant parameter still accepts the gradient; It's just a reminder position itself that is not a direct projection target.

Should the average loss denominator be the total series length or the number of valid answers?

Depends on the clear objectives. This chapter answers the average token, so the denominator is three; Use the total length quietly gives different weights to the long hint sample.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Hugging Face Transformers — Chat templates
  2. Training language models to follow instructions with human feedback

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.