Skip to main content
QUICK REVIEW

[Paper Review] Connecting the Dots: LLMs can Infer and Verbalize Latent Structure from Disparate Training Data

Johannes Treutlein, Dami Choi|arXiv (Cornell University)|Jun 20, 2024
Natural Language Processing TechniquesComputer Science3 citations
TL;DR

This paper introduces inductive out-of-context reasoning (OOCR), a capability where large language models (LLMs) infer and verbalize latent structures—such as the identity of an unknown city, a function's definition, or a coin's bias—from scattered, implicit training data without in-context examples or chain-of-thought prompting. Frontier LLMs like GPT-4 and Llama 3 demonstrate strong OOCR performance across five diverse tasks, revealing that models can 'connect the dots' across disparate training signals to recover hidden knowledge, posing challenges for AI safety and model interpretability.

ABSTRACT

One way to address safety risks from large language models (LLMs) is to censor dangerous knowledge from their training data. While this removes the explicit information, implicit information can remain scattered across various training documents. Could an LLM infer the censored knowledge by piecing together these implicit hints? As a step towards answering this question, we study inductive out-of-context reasoning (OOCR), a type of generalization in which LLMs infer latent information from evidence distributed across training documents and apply it to downstream tasks without in-context learning. Using a suite of five tasks, we demonstrate that frontier LLMs can perform inductive OOCR. In one experiment we finetune an LLM on a corpus consisting only of distances between an unknown city and other known cities. Remarkably, without in-context examples or Chain of Thought, the LLM can verbalize that the unknown city is Paris and use this fact to answer downstream questions. Further experiments show that LLMs trained only on individual coin flip outcomes can verbalize whether the coin is biased, and those trained only on pairs $(x,f(x))$ can articulate a definition of $f$ and compute inverses. While OOCR succeeds in a range of cases, we also show that it is unreliable, particularly for smaller LLMs learning complex structures. Overall, the ability of LLMs to "connect the dots" without explicit in-context learning poses a potential obstacle to monitoring and controlling the knowledge acquired by LLMs.

Motivation & Objective

  • To investigate whether LLMs can infer and verbalize latent knowledge from implicitly distributed training data without explicit in-context examples or reasoning chains.
  • To evaluate the extent to which frontier LLMs can generalize across diverse, out-of-distribution tasks by aggregating indirect evidence from multiple training documents.
  • To compare OOCR performance against in-context learning and baseline methods, assessing reliability and scalability across model sizes and task complexity.
  • To assess the implications of OOCR for AI safety, particularly regarding the persistence of hazardous knowledge even after redaction from training data.

Proposed method

  • The authors design a suite of five distinct tasks—city identity inference, coin bias detection, function verbalization, parity computation, and control flow reasoning—each structured to embed latent variables in training data without explicit mention.
  • For each task, models are finetuned exclusively on indirect observations (e.g., distances to known cities, pairs (x, f(x)), or binary variable parity) without any examples of the downstream question or verbalization.
  • Performance is evaluated via zero-shot, out-of-distribution prompts that test the model’s ability to infer and articulate the latent structure without in-context demonstrations.
  • Baselines include overall target probability (50% for binary choices) and in-context learning with K=10, 100, 200 few-shot examples, with performance normalized to ensure fair comparison.
  • Experiments use GPT-3.5, GPT-4, and Llama 3 (8B and 70B) with multiple random seeds and finetuning runs; LoRA is used for efficient fine-tuning of Llama models.
  • Evaluation metrics focus on the probability assigned to the correct answer, with syntactically valid responses normalized to sum to 1 to ensure baseline performance at 50%.

Experimental results

Research questions

  • RQ1Can LLMs infer and verbalize a latent variable—such as the identity of an unknown city—by aggregating indirect evidence from multiple training documents without in-context examples or chain-of-thought prompting?
  • RQ2Does inductive out-of-context reasoning (OOCR) outperform in-context learning in terms of generalization to out-of-distribution tasks involving latent structure?
  • RQ3To what extent does OOCR performance scale with model size and complexity, particularly for functions, coin bias, and geometric reasoning tasks?
  • RQ4How reliable is OOCR across different model architectures and training data distributions, especially when the latent structure is non-trivial or ambiguous?
  • RQ5Can LLMs recover and articulate complex latent functions (e.g., piecewise or mixed functions) from (x, f(x)) pairs without explicit instruction to define or invert them?

Key findings

  • GPT-4 and GPT-3.5 both achieve strong OOCR performance across all five tasks, with GPT-4 outperforming GPT-3.5, particularly in verbalizing complex structures like function definitions and inverses.
  • In the city identity task, a finetuned LLM correctly identifies 'City 50337' as Paris and answers downstream questions about its culture and cuisine without any in-context examples.
  • On the Functions task, models finetuned only on (x, f(x)) pairs successfully verbalize the function, compose it with other operations, and compute inverses, even when the function is a mixture of two components.
  • Inductive OOCR outperforms in-context learning in all evaluated tasks, with in-context learning often performing near the 50% baseline due to poor generalization to variable values.
  • Llama 3 models replicate OOCR capabilities on one task, with the 8B model outperforming the 70B model on reflection-based evaluations, suggesting non-monotonic scaling with size.
  • OOCR performance is unreliable for smaller models and complex structures, indicating limitations in generalization and robustness despite strong performance on simpler cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.