keyword
pointer-generator network
A pointer-generator network is a neural sequence-to-sequence architecture that combines the ability to generate new words from a fixed vocabulary with the ability to copy words directly from the input text. At each decoding step, the model computes a generation probability that acts as a soft switch, balancing between predicting tokens from its predefined vocabulary distribution and pointing to specific tokens in the source sequence via an attention distribution. This hybrid mechanism allows the network to accurately reproduce out-of-vocabulary words, rare terms, and specific factual details from the source while preserving grammatical fluency. To mitigate repetitive outputs, the architecture is frequently augmented with a coverage mechanism that tracks previously attended source tokens.
1 item

