2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00
2026-11-07 23:17:54 +08:00

DeepTutor: Towards Agentic Personalized Tutoring

Bingxi Zhao1,2*, Jiahao Zhang1*, Xubin Ren1, Zirui Guo1, Tianzhe Chu1, Yi Ma1, Chao Huang1†

1University of Hong Kong   2Beijing Jiaotong University   *Equal contribution   †Corresponding author

DeepTutor is an intelligent tutoring system that has been evolving through multiple iterations and continues to be actively developed.

  • v0.6.0 was the first stable release — a full-stack AI tutoring system featuring multi-agent problem solving with RAG, question generation, interactive learning visualization, and a Next.js web interface. This evaluation branch is built on top of the v0.6.0 architecture.
  • v1.0.0-beta.1 is the second major release — a ground-up rewrite into an agent-native platform with a two-layer plugin model (Tools + Capabilities), three unified entry points (CLI / WebSocket / SDK), a rebuilt web application, and multi-channel TutorBot integration.

Our technical report consolidates the core design ideas across these versions. DeepTutor will continue to iterate and evolve in the future.


This branch (eval) contains the full evaluation stack for DeepTutor’s foundational layer — the shared personalization substrate and core tutoring pipelines (question generation, solving, RAG, and memory) that the report analyzes. It is the codebase referenced for experiments in the report.

Personalized Agentic Tutoring (Foundational Layer)

The foundational layer couples static knowledge grounding (RAG over multimodal KBs), dynamic personal memory (Trace Forest and learner profile), and closed-loop personalized problem solving and question generation, with a shared learner record feeding both sides.

DeepTutor foundational layer

Overview of the foundational layer: mixed retrieval over the knowledge base, trace-based personalization, multi-stage solve (left) and dual-loop question generation (right).

Area Path Role
Solve src/agents/solve/ Plan → ReAct → Write with tools and citations
Question src/agents/question/ Idea loop + generation loop; topic and exam-mimic modes
RAG src/services/rag/ LlamaIndex, LightRAG, RAG-Anything backends
Memory src/personalization/ Trace Forest, reflection / summary / weakness agents
Installation (Python 3.10+)
git clone <repo-url>
cd DeepTutor
git checkout eval

# Option A: venv
python -m venv venv
source venv/bin/activate  # Linux/macOS
# venv\Scripts\activate   # Windows

# Option B: conda
conda create -n deeptutor python=3.10 -y
conda activate deeptutor

pip install -r requirements.txt
cp .env.example .env

Environment variables:

Key Description
LLM_BINDING Provider: openai, anthropic, deepseek, etc.
LLM_MODEL Model name, e.g. gpt-4o
LLM_API_KEY API key
LLM_HOST API endpoint
EMBEDDING_BINDING Embedding provider
EMBEDDING_MODEL Embedding model name
EMBEDDING_API_KEY Embedding API key
EMBEDDING_HOST Embedding endpoint
EMBEDDING_DIMENSION Vector dimension

Optional: SEARCH_PROVIDER, SEARCH_API_KEY (see .env.example).

CLI Usage

Interactive launcher

python start.py

Solve CLI

python -m src.agents.solve.cli "What is linear convolution?" --kb Calculus
python -m src.agents.solve.cli "What is linear convolution?" --detailed
python -m src.agents.solve.cli -i --language zh

Question CLI

python src/agents/question/cli.py

Topic mode and exam-mimic mode. Memory hooks run when launched via start.py.


Evaluation

Evaluation follows two public axes: first-person interactive tutoring evaluation and general problem-solving transfer, plus component ablations.

First-person interactive evaluation

A student simulator is initialized from a benchmark entry; the tutor and simulator exchange multi-turn dialogue; transcripts are scored by an independent LLM judge on solve-side and practice-side rubrics.

First-person interactive evaluation protocol

First-person protocol: simulator ↔ tutor dialogue; traces → personalized rubrics.

Table 1 — Main results on TutorBench (interactive evaluation)

Table 1: Main results on TutorBench

Standalone transcript evaluation & simulator tools
python -m benchmark.evaluation.run --transcript path/to/transcript.json
python -m benchmark.evaluation.run --transcript-dir path/to/transcripts/

Simulator workspace tools: solve_question(), generate_questions(), submit_answers() — see benchmark/simulation/USE_TOOL.md.

Table 2 — General problem-solving (pass@1)

Table 2: General problem-solving pass@1 scores

Reproduce isolated solve benchmarks (this branch):

python benchmark/iso_solve/run_benchmark.py --benchmark math --mode pipeline --limit 50
python benchmark/iso_solve/run_benchmark.py --benchmark gpqa --mode direct --limit 100
run_benchmark.py flags
Flag Description
--benchmark math, gpqa, aime25, hle, gaia, livebench, aalcr, super_gpqa
--mode direct or pipeline
--limit Number of problems
--dry-run Preview only

See benchmark/iso_solve/README.md for dataset-specific options.

Ablation study

RAG and Memory are ablated in the lower block of Table 1; the radar chart summarizes per-metric drops. Removing RAG hits grounding and source faithfulness hardest (−24.7% on GND); removing Memory hits personalization and fitness most (−8.1% on PER).

Ablation radar — w/o RAG and w/o Memory

Ablation: full DeepTutor (black) vs. w/o RAG (left) and w/o Memory (right). Labels mark the largest drops.


Repository structure

DeepTutor/
├── DeepTutor_arxiv-7/         # Technical report (LaTeX)
├── assets/figs/               # Figures used in README / paper
├── benchmark/
│   ├── config/
│   ├── data_generation/
│   ├── evaluation/
│   ├── iso_solve/
│   ├── prompts/
│   ├── simulation/
│   └── tools/
├── config/
├── src/
├── tests/
├── start.py
├── .env.example
├── pyproject.toml
└── requirements.txt

License

Apache-2.0

Description
DeepTutor: Lifelong Personalized Tutoring(港大 HKUDS 个性化 AI 辅导)
Readme Apache-2.0 439 MiB
Languages
Python 66%
TypeScript 32.5%
CSS 0.8%
JavaScript 0.6%