metareflection/llm-mysteries

LLMs to reason about whodunit mysteries

7

stars

196

commits

Python

primary language

Feb 27, 2025

updated

ai
llm
truth-maintenance

README

llm-mysteries

Benchmarks

The benchmarks used are:

See also the original site to solve 5-minute mysteries as humans.

Highlights

Attempt 1

Attempt 2

  • graph asks the LLM for exonerating and incriminating evidence for each suspect and symbolically combines the result.

Attempt 3

Inspired by LMs for Rationality,

  • mystery transforms a belief graph into a MaxSAT problem to be optimized for debugging consistency;
  • belief_graph elicits a belief graph for a story.

Attempt 4

Inpsired by DetectBench:

Libraries

Truth-Maintenance System

  • tms is a basic probabilistic Truth-Maintenance System (TMS) with a MaxSAT backend.

Installation

In this repo

  • git submodule init
  • git submodule update

Python env (legacy)

  • pip install git+https://github.com/huggingface/transformers.git
  • pip install "outlines @ git+https://github.com/outlines-dev/outlines.git@main"
  • pip install z3-solver
  • pip install python-sat

Python env (deepseek-r1 using Ollama)

  • pip install datasets
  • pip install ollama
  • pip install openai
  • pip install outlines
  • pip install wandb
  • ollama pull qwen2.5
  • ollama pull deepseek-r1

Contributors

namin

182 commits

datvo06

14 commits

metareflection/llm-mysteries

LLMs to reason about whodunit mysteries

7

stars

196

commits

Python

primary language

Feb 27, 2025

updated

ai
llm
truth-maintenance

README

llm-mysteries

Benchmarks

The benchmarks used are:

See also the original site to solve 5-minute mysteries as humans.

Highlights

Attempt 1

Attempt 2

  • graph asks the LLM for exonerating and incriminating evidence for each suspect and symbolically combines the result.

Attempt 3

Inspired by LMs for Rationality,

  • mystery transforms a belief graph into a MaxSAT problem to be optimized for debugging consistency;
  • belief_graph elicits a belief graph for a story.

Attempt 4

Inpsired by DetectBench:

Libraries

Truth-Maintenance System

  • tms is a basic probabilistic Truth-Maintenance System (TMS) with a MaxSAT backend.

Installation

In this repo

  • git submodule init
  • git submodule update

Python env (legacy)

  • pip install git+https://github.com/huggingface/transformers.git
  • pip install "outlines @ git+https://github.com/outlines-dev/outlines.git@main"
  • pip install z3-solver
  • pip install python-sat

Python env (deepseek-r1 using Ollama)

  • pip install datasets
  • pip install ollama
  • pip install openai
  • pip install outlines
  • pip install wandb
  • ollama pull qwen2.5
  • ollama pull deepseek-r1

Contributors

namin

182 commits

datvo06

14 commits

Languages

Python

94.2%

HTML

5.5%