Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Towards Understanding the Cognitive Habits of Large Reasoning Models

This repository includes codes for prompting LLMs for task construction and evaluating cognitive habits of Large Reasoning Models.

Preparations

  1. Before running the scripts, you should first configue your API keys in the .env file.

  2. You are advised to install the suitable libraries according to

conda env create -f environment.yaml

Codebase Structure

- assets
    - instructions: the final version of tasks used in the paper
- src
    - llm.py: unified interfaces for querying LRMs through API
    - tools.py: mainly the code for habit extraction
- .env: configuration file
- main.ipynb: codes for eliciting CoTs and extracting cognitive habits
- task-construction.ipynb: principles and codes for generating tasks for the 10 non-reasoning habits

Get Started

For replication of cognitive habit evaluation, you can just rush to the main.ipynb.

If you are interested in supporting more models, please kindly add necessary implementations for querying the corresponding LLM APIs (e.g., OpenAI or vLLM) and parsing CoTs.

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages