CAT-Thinking is trained to generate reasoning trace in Japanese by reinforcement learning.
The model is based on
Qwen3-Swallow-v0.2
which is a continual pretraining model based on
Qwen3
to read and write fluently in Japanese.
Usage
CAT-Thinking is designed to reason in Japanese even if the input text is in English.
The model is trained with the maximum output token length of 4096.
We recommend setting max_new_tokens to at least 4096, and larger for difficult problems.
Although the model is trained to respond within 4096 tokens, it tends to generate longer responses, especially for difficult and/or confusing instructions.
It often gets stuck in repetition, especially when the instruction is confusing (e.g., two contradicting instructions are given). To mitigate the probability of repetition, we find repetition_penalty=1.05 or larger to be useful.
The model is compatible with all the libraries Qwen-3-8B is. To run with transformers, run the following command.
pip install transformers
from transformers import pipeline
# Load the model
chat_pipeline = pipeline("text-generation", model="CyberAgent/CAT-Thinking-8B")
prompt = "You have two cats, one male and one female. A female cat gives birth to up to 12 kittens per year.\n" + \
"Assume you don't spay them. In three years, how many cats might you need to take care of at most?"
user_input = [{"role": "user", "content": prompt}]
response = chat_pipeline(user_input, max_new_tokens=8192, temperature=0.8, top_p=0.95)
print(response[0]['generated_text'])
Evaluation
We conducted evaluation on coding and math tasks in Japanese and English.
We compare CAT-Thinking with its counterparts,
Qwen-3-8B
(Qwen-3) and
Qwen3-Swallow-8B-RL-v0.2
(Swallow)
Random sampling (temperature=0.8, top_p=0.95, max_new_tokens=4096) is used for all runs.
For all instances, CAT-Thinking generated its reasoning trace in Japanese while the comparison models generated theirs in English.
The results show that it is feasible to think in Japanese while retaining the model's performance on English tasks.
The benchmarks were published before the models were released, thus they should be interpreted as reference points.
A detailed experimental evaluation will be presented in a technical report.
Generation Examples
The reasoning trace of CAT-Thinking is in Japanese but not a natural one.
In particular, it tends to start with a weird phrase such as:「済みの問題を解くことは許可されていますか?」「済みの数学問題かを確認する必要がありますか?」.
It occurred during the second GRPO training and the model ended up learning to start with this phrase.
Example of Coding
PROMPT: Write a function to check if the given integer is a prime number. Name the function as follows:
def prime_num(num):
Example of Repetition on Solving Math
PROMPT: 海辺の主な港の税関職員は、輸入車の2台分のコンテナをチェックしており、各コンテナには5台の車が中に入っている。次の日、さらに多くのコンテナが運び込まれ、港の車両の数は全部で30となった。すべてのコンテナに5台の車が入っていたとすると、2日目にいくつのコンテナが輸入されたかを計算しなさい。回答は\\boxed{}の中に書いてください。
The model is trained with GRPO with a warm-start.
We first generate a teacher dataset using
gpt-oss-120b
as a reference.
Since the reasoning traces are in English, we translate them into Japanese using
CAT-Translate-7b
.
We train the Swallow model using the generated synthesized dataset with full-parameter SFT.
Then, we run GRPO with a permissive reward model which gives partial rewards for being able to (1) follow the reasoning format, (2) generate reasoning trace and the main text in Japanese, and (3) answer the question in an instructed format.
In this way, the model learns to follow the reasoning format and generate its reasoning trace in Japanese. Since this training phase focuses on learning the superficial format rather than reasoning competence itself, we use LoRA.
Finally, we train the model with GRPO using a strict reward model that gives a reward only if the model follows all format constraints and also generates the correct answer.
The training data consists of synthesized math and coding dataset generated by gpt-oss-120b.
Most of the instructions used for the training are in English.
We speculate this to be the reason why the model underperforms on Japanese benchmarks.
@misc{cat-thinking-2026,
title={CAT-Thinking: How Hard is it to Learn Reasoning in non-English Language? Case Study in Japanese},
author={Yuu Jinnai},
year={2026},
url={https://huggingface.co/collections/cyberagent/cat-thinking-8b}
}
Runs of cyberagent CAT-Thinking-8B on huggingface.co
194
Total runs
0
24-hour runs
31
3-day runs
44
7-day runs
44
30-day runs
More Information About CAT-Thinking-8B huggingface.co Model
CAT-Thinking-8B huggingface.co is an AI model on huggingface.co that provides CAT-Thinking-8B's model effect (), which can be used instantly with this cyberagent CAT-Thinking-8B model. huggingface.co supports a free trial of the CAT-Thinking-8B model, and also provides paid use of the CAT-Thinking-8B. Support call CAT-Thinking-8B model through api, including Node.js, Python, http.
CAT-Thinking-8B huggingface.co is an online trial and call api platform, which integrates CAT-Thinking-8B's modeling effects, including api services, and provides a free online trial of CAT-Thinking-8B, you can try CAT-Thinking-8B online for free by clicking the link below.
cyberagent CAT-Thinking-8B online free url in huggingface.co:
CAT-Thinking-8B is an open source model from GitHub that offers a free installation service, and any user can find CAT-Thinking-8B on GitHub to install. At the same time, huggingface.co provides the effect of CAT-Thinking-8B install, users can directly use CAT-Thinking-8B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.