Pith. sign in

REVIEW 2 cited by

Memory Injections: Correcting Multi-Hop Reasoning Failures during Inference in Transformer-Based Language Models

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2309.05605 v3 pith:YAUK7EEA submitted 2023-09-11 cs.CL cs.AIcs.LG

classification cs.CLcs.AIcs.LG
keywords multi-hopreasoningduringinferenceinformationmemorymodelsattention
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Answering multi-hop reasoning questions requires retrieving and synthesizing information from diverse sources. Large Language Models (LLMs) struggle to perform such reasoning consistently. Here we propose an approach to pinpoint and rectify multi-hop reasoning failures through targeted memory injections on LLM attention heads. First, we analyze the per-layer activations of GPT-2 models in response to single and multi-hop prompts. We then propose a mechanism that allows users to inject pertinent prompt-specific information, which we refer to as "memories," at critical LLM locations during inference. By thus enabling the LLM to incorporate additional relevant information during inference, we enhance the quality of multi-hop prompt completions. We show empirically that a simple, efficient, and targeted memory injection into a key attention layer can often increase the probability of the desired next token in multi-hop tasks, by up to 424%.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Mass-Editing Memory with Attention in Transformers: A cross-lingual exploration of knowledge

    cs.CL 2025-02 conditional novelty 5.0 of 10

    MEMAT combines MEMIT weight edits with optimized attention-head corrections, improving cross-lingual success and magnitude metrics over MEMIT in English and Catalan.

  2. CryptoX : Compositional Reasoning Evaluation of Large Language Models

    cs.CR 2025-02 conditional novelty 4.0 of 10

    A benchmark that encodes prompts in secret codes and measures how much accuracy models lose, showing most LLMs, especially open-source ones, struggle on this two-step compositional task.

Pith tools