ABOUT / MOYUAN

墨鵷

在模型、系统与安全之间
做一些真正能跑起来的东西

也写下一些与技术有关
又不完全关于技术的东西

银发猫耳角色,身着浅蓝色衣裙,身旁有雪花与白猫
moyuanprogramming or coffee

01 / NOW

正在做

正在做
大模型推理 · AI 安全 · Agent
最近在想
长上下文到底值不值得那么贵
最近在折腾
这个网站

02 / NAME

名字里的方向

墨落
风起
羽翼向远

鵷yuān
非梧桐不止
非练实不食
非醴泉不饮

取意于鵷雏,择善而栖

03 / METHOD

让现实参与判断

先把问题拆开
再让现实有机会说不

能测量的就测量
能留下证据的就留下证据

模型跑通不是结束
系统真正工作才算

04 / ELSEWHERE

一些旁枝

05 / SELECTED WORK

把想法做出来

所有项目

06 / RESEARCH

一些正在形成的答案

最近在研究一个问题:当任务最终只需要一个决策时,我们真的还需要让大模型生成 Token 吗?

COGNIT-Guard

Hao Chen · arXiv 预印本 ·

Calibrated Standalone Direct-Decision Guardrails with Heterogeneous CPU-NPU Confidence Cascading under Explicit Latency and False-Positive Constraints

面向实时 LLM 安全护栏,探索什么时候需要生成、什么时候可以直接决策。将 CPU 快速门控与 NPU 上的直接决策模型级联,在显式时延与误报约束下研究模型路由、概率校准与安全检测效率。

  • AI Safety
  • Direct Decision
  • CPU-NPU Cascade
  • Ascend 910C

MAD-Guard

Hao Chen · arXiv 预印本 ·

Controlled Study of Autoregressive Generation versus Direct Decision Interfaces for Closed Multimodal Forensic Tasks

研究封闭式多模态取证任务中,自回归生成是否真的有必要。在统一 Qwen3-VL-8B 主干下,对比生成式输出、Logit Slice、Binary Head 与对比式直接决策接口,分析准确率、校准能力与推理时延之间的关系。

  • Multimodal Forensics
  • Deepfake Detection
  • Direct Decision
  • Ascend 910C

07 / JOURNEY

一路走来

北京大学大数据实验室 / Data & AI 安全课题组

AI 安全实习生(远程) 2026.04 - 至今

担任 AI 大模型与 Agent 安全测评平台核心开发,基于 JoySafeter 早期框架进行深度二次开发与核心架构重构,将 Agent 对话与单点工具原型扩展为面向 LLM、Agent、RAG 与 MCP 生态的统一安全测评平台。

  • 独立重构 FastAPI + Next.js 前后端核心功能与 Agent Runtime,设计 Agent Run → Tool Call → Evidence → Report 执行链;通过 WebSocket、Durable Worker 与 PostgreSQL/Redis 支持长任务异步执行、断线恢复、状态追踪和结果持久化。
  • 设计 MCP ToolRegistry 安全工具扩展体系,接入 Garak、PyRIT、Promptfoo、Semgrep、ModelScan 与 LLM Guard,打通工具调用、后台任务及结果回写;完成 12 个 MCP 服务、79 个安全工具加载验收(0 失败)。
  • 关联 Run、Trace、Tool Event、Artifact 与 Report,归档原始输出与检测证据并生成报告;重构 Run 状态迁移与稳定 ID,修复重复消费竞态,实现恢复与重试幂等性,覆盖 53 项后端与 21 项前端测试。
  • 参与生产部署,面向客户内网设计离线交付与国产化适配方案,覆盖模型服务、CPU/GPU/NPU/DCU、国产 OS、网络隔离、证书、数据持久化及分层验收。

深圳市大数据研究院(香港中文大学(深圳))

大模型 AI Infra 实习生 2026.06 - 2026.09

参与面向 Agent 长上下文的 TAOctx 相关研发,在昇腾 910C 上开展上下文压缩、长上下文推理与分布式解码性能优化。所在团队成果于 HUAWEI CONNECT 2026(华为全联接大会)开放演讲中展示,项目已开源。

  • 为 Qwen3-235B-A22B W8A8 落地 HSP score-once 在线上下文压缩。
  • LongBench v2 全量 387 条 >32K 样本中,平均 Prompt Token 降低 87.04%,TTFT p50 降低 83.89%,准确率提升 1.03 pp。
  • 基于 vLLM-Ascend 与 CANN/ATB 8.5.1,完成 TP8 + EP8、A3 Flash Decoding 优化,持续解码吞吐由 4.71 提升至 27.99 tok/s(约 5.9 倍)。
  • 优化 TAOmem embedding、KV 缓存与 lazy decode,使 BEAVER prepare p50 降低 31.26%,加入 batch token cap 等 OOM 防护。
TAOctx 开源仓库 · HUAWEI CONNECT 2026 公开演讲

绿盟科技集团股份有限公司广州分公司

安全实习生 2025.03 - 2025.04

参与南方电网及高校的安全设备交付、漏洞扫描与基线核查。

  • 现场部署 WAF、IDS 等安全设备,进行策略调试与高可用验收。
  • 执行客户现场定期漏洞扫描与基线核查,结合业务场景输出风险整改分析报告。

广州立源电子科技有限公司

信创技术助理(产品侧) 2024.06 - 2024.09

参与立源云在统信 UOS、麒麟 Kylin 环境中的兼容测试与部署适配。

  • 负责国产操作系统环境下的兼容性测试与部署适配,沉淀信创技术方案文档。

08 / SKILLS

技能不是收藏

AI Systems

推理

从长上下文压缩到推理性能,关心代价,也关心答案有没有变。

PyTorch · vLLM-Ascend · W8A8 · HSP

67篇文章
7个项目
4段实习
∞还有很多要学

09 / RECOGNITION

一些认可

  • 挑战杯人工智能领域专项赛 · 全国一等奖
  • 长城杯信息安全大赛 · 全国三等奖
  • 全国大学生数学建模竞赛广东省一等奖
全部荣誉与资格

4 项已登记软件著作权

另有 2 项发明专利申请,已受理 / 公开

10 / CONTACT

可以来找我

如果你也在做
LLM Systems · AI Safety · Agent

或者一些奇怪但有意思的东西
可以来找我

MOYUAN记录 · 探索 · 构建

ABOUT / MOYUAN

MOYUAN

I build at the intersection of
AI systems, security, and software.

And every now and then,
I write about the world beyond the code.

A silver-haired character in blue, with snowflakes and a white cat
moyuanprogramming or coffee

01 / NOW

Right now

Working on
LLM inference, AI safety, and agent systems
Thinking about
how much context is actually worth paying for
Tinkering with
this website, as usual

02 / NAME

A name, a direction

Ink leaves a trace.
The rest is a matter
of direction.

鵷yuān
非梧桐不止
非练实不食
非醴泉不饮

Shaped after the Yuanchu, a bird that chooses where it rests.

03 / METHOD

Give reality a say

Break the problem down.
Give reality a chance to prove you wrong.

Measure what can be measured.
Keep the evidence.

A model running is not the finish line.
The system has to work.

04 / ELSEWHERE

Elsewhere

05 / SELECTED WORK

Ideas, made real

All projects

06 / RESEARCH

Answers taking shape

When a task only needs a decision, does a foundation model still need to generate tokens?

COGNIT-Guard

Hao Chen · arXiv preprint ·

Calibrated Standalone Direct-Decision Guardrails with Heterogeneous CPU-NPU Confidence Cascading under Explicit Latency and False-Positive Constraints

Explores when real-time LLM guardrails need to generate tokens and when they can decide directly. Combines a fast CPU gatekeeper with an NPU direct-decision model to study routing, probability calibration, and detection efficiency under explicit latency and false-positive constraints.

  • AI Safety
  • Direct Decision
  • CPU-NPU Cascade
  • Ascend 910C

MAD-Guard

Hao Chen · arXiv preprint ·

Controlled Study of Autoregressive Generation versus Direct Decision Interfaces for Closed Multimodal Forensic Tasks

Studies whether closed multimodal forensic tasks require autoregressive generation. With a matched Qwen3-VL-8B backbone, compares generation, Logit Slice, Binary Head, and contrastive direct-decision interfaces across accuracy, calibration, and inference latency.

  • Multimodal Forensics
  • Deepfake Detection
  • Direct Decision
  • Ascend 910C

07 / JOURNEY

The journey so far

Peking University Big Data Laboratory / Data & AI Security Group

AI Security Intern (remote) April 2026 - present

Core developer of an AI and agent security evaluation platform. Substantially extended and rearchitected the early JoySafeter framework, evolving its agent-chat and individual-tool prototype into a unified platform for evaluating LLM, agent, RAG, and MCP security.

  • Independently reworked core FastAPI and Next.js functionality and the Agent Runtime. Designed the Agent Run → Tool Call → Evidence → Report workflow, using WebSocket, Durable Worker, and PostgreSQL/Redis for asynchronous long-running tasks, reconnection recovery, state tracking, and persistent results.
  • Designed an MCP ToolRegistry extension system integrating Garak, PyRIT, Promptfoo, Semgrep, ModelScan, and LLM Guard, connecting tool calls, background tasks, and result writeback. Validated 12 MCP services and 79 security tools with no loading failures.
  • Linked runs, traces, tool events, artifacts, and reports for evidence archiving and report generation. Reworked run-state transitions and stable IDs to resolve duplicate-consumption races and support idempotent recovery and retries, covering 53 backend and 21 frontend tests.
  • Supported production deployment and designed offline delivery and domestic-platform compatibility plans for customer intranets, covering model services, CPU/GPU/NPU/DCU hardware, domestic operating systems, network isolation, certificates, data persistence, and staged acceptance.

Shenzhen Research Institute of Big Data / CUHK-Shenzhen

LLM AI Infrastructure Intern June - September 2026

Contributed to TAOctx research and development for long-context agents, working on context compression, long-context inference, and distributed decoding performance on Ascend 910C. The team's work was presented in an open talk at HUAWEI CONNECT 2026, and the project is open source.

  • Implemented HSP score-once online compression for Qwen3-235B-A22B W8A8.
  • Across all 387 LongBench v2 samples over 32K, reduced mean prompt tokens by 87.04% and TTFT p50 by 83.89%, improving accuracy by 1.03 percentage points.
  • Optimized TP8 + EP8 and A3 Flash Decoding with vLLM-Ascend and CANN/ATB 8.5.1, increasing sustained decoding from 4.71 to 27.99 tokens/s (about 5.9 times).
  • Optimized TAOmem embeddings, KV caching, and lazy decoding, reducing BEAVER prepare p50 by 31.26%, with batch-token caps to guard against OOM.
TAOctx repository · HUAWEI CONNECT 2026 presentation

NSFOCUS, Guangzhou

Security Intern March - April 2025

Supported security deployments, vulnerability scans, and baseline checks for China Southern Power Grid and universities.

  • Deployed WAF and IDS systems on site, tuned policies, and supported high-availability acceptance.
  • Performed periodic vulnerability scans and baseline checks, producing remediation reports grounded in customer business scenarios.

Guangzhou Liyuan Electronics

Technical Product Assistant June - September 2024

Tested Liyuan Cloud compatibility and deployment on UOS and Kylin.

  • Tested compatibility, adapted deployments, and documented technical solutions for domestic operating systems.

08 / SKILLS

Skills aren't collectibles

AI Systems

Inference

Long-context compression and inference performance, with answer quality kept in view.

PyTorch · vLLM-Ascend · W8A8 · HSP

67articles
7projects
4internships
∞things left to learn

09 / RECOGNITION

A few milestones

  • Challenge CupAI special competition · National first prize
  • Great Wall CupInformation security · National third prize
  • Mathematical ModelingNational competition · Guangdong first prize
All honors and qualifications

4 registered software copyrights

Also 2 invention patent applications, accepted or published

10 / CONTACT

Say hi

If you're building around
AI systems, safety, or agents

or just working on something
weird enough to be interesting.

MOYUANRECORD · EXPLORE · BUILD