Downloads · 30 days
36
18% of all-time downloads
joykirat/DeepSeek-R1-Distill-Qwen-7B-TRAAC
DeepSeek-R1-Distill-Qwen-7B-TRAAC is a text generation model from joykirat. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This repository contains the TRAAC (Think Right with Adaptive, Attentive Compression) Qwen3-4B model. TRAAC is an online post-training Reinforcement Learning (RL) method presented in the paper Think Right: Learning to…
Downloads · 30 days
36
18% of all-time downloads
All-time downloads
195
Public
Parameters
7.6B
30.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors30.5 GB · 100%
From the Hugging Face model README
This repository contains the TRAAC (Think Right with Adaptive, Attentive Compression) Qwen3-4B model. TRAAC is an online post-training Reinforcement Learning (RL) method presented in the paper Think Right: Learning to Mitigate Under-Over Thinking via Adaptive, Attentive Compression.
TRAAC addresses the challenge of "under-adaptivity" in reasoning models by learning to mitigate both under-thinking (short reasoning on hard problems) and over-thinking (excessively long reasoning on easy problems). It achieves this by dynamically adjusting the reasoning length based on estimated task difficulty, leveraging the model’s self-attention to prune redundant steps.
<div align="center"> <img src="https://github.com/joykirat18/TRAAC/raw/main/Asset/image.png" alt="Overview of TRAAC" width="75%"> </div> <br/>This model, joykirat/Qwen3-4B-TRAAC, is a 🤗 Transformers model based on the Qwen3-4B architecture. It is fine-tuned using the TRAAC methodology, which is an online post-training Reinforcement Learning (RL) method. TRAAC leverages the model's self-attention over a long reasoning trajectory to identify important steps and prune redundant ones. It also estimates task difficulty and incorporates it into training rewards, thereby learning to allocate reasoning budget commensurate with example difficulty.
This approach significantly improves accuracy, reduces reasoning steps, and enables adaptive thinking compared to base models and other RL baselines across a variety of tasks.
The model is intended for direct use in complex reasoning tasks where efficient and adaptive allocation of computational resources (i.e., reasoning steps) is crucial. It can generate responses that are appropriately detailed for the problem's difficulty without unnecessary verbosity.
TRAAC can serve as a foundation for developing more robust and efficient AI agents and reasoning systems. Its ability to adapt reasoning length can be particularly beneficial in resource-constrained environments or applications requiring quick, yet accurate, decision-making.
The model is not intended for generating harmful, unethical, or biased content. While trained on diverse datasets, potential biases from the underlying base model or training data may still exist. Misuse for generating misinformation or engaging in inappropriate conversations is strictly out of scope.
To run the model and its associated framework, first install the necessary packages. The codebase is built on top of verl.
python -m venv traac_venv
source traac_venv/bin/activate
pip install -e .[vllm]
pip install -r requirements.txt
You can download the trained Adaptive reasoning models directly from Hugging Face:
For detailed instructions on running evaluations, training TRAAC models, and further usage examples, please refer to the official GitHub repository's Overview, Run Evaluations, and Train Models sections.
Training data generation scripts, such as dapo-17k.py, are located in the scripts/data folder of the GitHub repository.
TRAAC is an online post-training RL method. Training was conducted on 3 GPUs:
The file vllm_rollout_spmd.py contains the implementation for adaptive, attentive summarization, which is used during training.
TRAAC was evaluated across a variety of tasks including AIME, AMC, GPQA-D, BBEH, and OptimalThinkingBench. Evaluation scripts are available in the scripts/data and scripts/eval folders on the GitHub repository.
If you find this work useful, please consider citing us:
@misc{singh2025thinkrightlearningmitigate,
title={Think Right: Learning to Mitigate Under-Over Thinking via Adaptive, Attentive Compression},
author={Joykirat Singh and Justin Chih-Yao Chen and Archiki Prasad and Elias Stengel-Eskin and Akshay Nambi and Mohit Bansal},
year={2025},
eprint={2510.01581},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2510.01581},
}