A nearest-neighbor datastore retrieves cached translation contexts to augment a model’s predictions. Using a fixed number of neighbors can help with rare domain terms but add noise for common words. section 15.4.1
A learned gate can weigh retrieved results using neighbor distances and agreement: close, consistent neighbors earn more influence, while distant or contradictory results leave more weight to the base model. section 15.4.1










