Skip to content

lythk88/STARS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exploring Diverse Generation Paths via Inference-time Stiefel Activation Steering

We introduce STAR (Stiefel-based Activation Steering for Diverse Reasoning), a method to enhance diversity in reasoning processes during inference.


📂 Repository Structure

The repository is organized into two main tasks:

1. TestEval (Test Case Generation)

Located in the testeval/ directory.

  • bestofn.py: Baseline temperature sampling.
  • steering.py: Proposed STAR algorithm.
  • data_utils.py: Data loading and processing utilities.
  • eval_overall.py: Evaluation scripts.
  • prompt_utils.py: Prompt handling functions.
  • load_data.ipynb: Notebook for preparing and exploring datasets.
  • croissant.json: Metadata/configuration file.

2. LiveIdeaBench (Scientific Discovery)

Located in the liveideabench/ directory.

  • bestofn.py: Baseline temperature sampling.
  • steering.py: Proposed STAR algorithm.
  • data/, keywords_data/: Benchmark datasets.

🚀 Installation

Clone the repository and install dependencies:

git clone https://github.com/lythk88/STARS
cd STARS
pip install -r requirements.txt

▶️ Usage

Running Baselines (Best-of-N Sampling)

python testeval/bestofn.py 
python liveideabench/bestofn.py 

Running STAR (Our Proposed Algorithm)

python testeval/steering.py 
python liveideabench/steering.py 

📊 Tasks & Benchmarks

  • TestEval: Test case generation benchmark.
  • LiveIdeaBench: Scientific discovery benchmark.

Each benchmark evaluates the diversity and correctness of reasoning paths under baseline sampling and STAR steering.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published