Downloads · 30 days
0
shakthiabi06/safesignal-blog
safesignal-blog is a reinforcement learning model from shakthiabi06. Use it for the reinforcement learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
There is a 13-year-old girl. Let's call her Priya.
Downloads · 30 days
0
Access
Public
Updated Apr 26, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md9.5 KB · 86%
From the Hugging Face model README
There is a 13-year-old girl. Let's call her Priya.
Priya comes home from school, goes to her room, and spends 4 hours on her phone. Her parents assume she is talking to friends. What they cannot see: three weeks ago a stranger began messaging her on Instagram. Conversations started casual. Slowly the person asked her to keep conversations private. Her messages to her actual friends dropped 60%. She started being active at 1am and 2am.
Her parents noticed she seemed quieter. But they did not want to violate her privacy. So they waited.
This is the gap. Parents are either fully invasive or completely blind. No tool exists that says — something feels different, you might want to have a conversation with your child today.
Meta platforms have seven documented gaps in child online safety. Most systems attack the easy ones — content detection, keyword filtering, post-hoc moderation.
SafeSignal attacks Gap 2 — the hardest gap nobody has solved: intervention policy intelligence.
Even when a system correctly detects risk — what does it do? When? How urgently? What if alerting now destroys the trust that makes future alerts matter?
No existing system models this. They all treat the intervention decision as trivial — detect, then alert. That is not intelligence. That is a smoke alarm that never stops ringing.
SafeSignal is a reinforcement learning training environment that teaches an AI agent to:
POMDP Structure (Partially Observable Markov Decision Process)
The agent never sees the true risk state. It observes only behavioral metadata — the same signals a physically present parent would naturally notice:
The agent must infer the hidden risk state from these behavioral shadows. This is what makes the problem genuinely hard.
The Four Actions
| Action | When Used |
|---|---|
OBSERVE_QUIETLY | Stay silent, preserve trust |
GENTLE_AWARENESS | Soft signal to guardian |
PARENT_CHECK_IN | Clear recommendation for conversation |
URGENT_SUPPORT | Direct high-urgency alert |
The Key Innovation: Silence Has Positive Reward
Most RL systems only reward action. SafeSignal rewards inaction when appropriate. Teaching an LLM that doing nothing is sometimes the optimal choice is the central training challenge.
Guardian Trust as a Degradable Resource
Every action is taxed by how low the guardian trust is. Over-alerting makes every future alert more costly. The agent must think about long-term trust consequences, not just immediate outcomes.
Four Composable Rubrics
Instead of monolithic scoring, SafeSignal uses four independent rubrics:
| Rubric | Weight | What It Measures |
|---|---|---|
| Intervention Timing | 40% | Correct action for true hidden risk |
| Guardian Trust | 30% | Preservation of the relationship |
| Silence Intelligence | 20% | Correct use of silence |
| Long-Term Outcome | 10% | Child safety at episode end |
Gaming any one rubric is penalised by the others. An agent that always alerts maximizes intervention timing but destroys guardian trust — net negative. An agent that always stays silent scores on silence intelligence but fails long-term outcome when the child reaches IN_DANGER.
SafeSignal detects grooming patterns without reading any message content. Seven signal clusters distinguish grooming from normal friendship:
Reciprocity Imbalance — Healthy friendships are balanced. Grooming is asymmetric. The predator always initiates, always pursues, sends longer messages.
Conversation Timing Drift — Grooming conversations deliberately migrate toward late night when parents are asleep.
Platform Migration Pressure — Predators systematically push toward more private platforms. Detectable in volume shifts before the ask even happens.
Secrecy Signal Cluster — Secrecy creates observable metadata patterns. Child responds faster at night than during the day.
Emotional Dependency Formation — Predator positions themselves as the only person who understands the child. The rescue pattern — appearing during emotional low points — is measurable in timing correlations.
Social Graph Compression — Isolation is gradual and measurable. Total active contacts shrinking. One contact receiving an increasing share of communication.
Transaction and Gift Signals — Digital gifts are a documented grooming technique detectable in transaction metadata.
Each cluster is grounded in published research from Thorn, CCRC, and the Internet Watch Foundation.
We train using GRPO (Group Relative Policy Optimization) — the same algorithm that powers DeepSeek-R1's reasoning capabilities.
GRPO generates 8 different responses to the same behavioral state prompt, scores them using our composable rubric system, and updates the model toward better reasoning.
The result: after training the agent explains its decisions out loud:
"Guardian trust is at 34% and two consecutive alerts have been ignored. Even though unknown contact volume is elevated, sending an alert now will almost certainly be ignored and further reduce my ability to reach this guardian when the situation truly escalates. I will observe today."
Action: OBSERVE_QUIETLY
That reasoning chain — knowing when to wait — is what we trained.
| Agent | Avg Reward | Final State |
|---|---|---|
| Random Agent | -133 | AT_RISK |
| Always Silent | +11.0 | VULNERABLE |
| GRPO Trained | +12.0+ | SAFE |
The always-silent agent scores +11.0 but leaves the child VULNERABLE. Our trained agent beats this by learning precisely when silence is wrong — intervening at the right moment with the right urgency, then going silent again as the child recovers.
Five design decisions built in from day one:
| Gap | Existing Systems | SafeSignal |
|---|---|---|
| Predictive trajectory | ✗ Reactive | ✓ POMDP model |
| Intervention intelligence | ✗ Alert always | ✓ Core system |
| Relationship dynamics | ✗ Content-based | ✓ 7 signal clusters |
| No self-reporting needed | ✗ Requires reports | ✓ Passive detection |
| Graded guardian alerts | ✗ Binary | ✓ 4-level action space |
| Cross-platform drift | ✗ Siloed | ~ Phase 2 roadmap |
| Subtle grooming detection | ✗ Keyword-based | ✓ Behavioral anomaly |
Meta's platforms — Instagram, WhatsApp, Messenger — are where a significant portion of online child exploitation begins. Meta has faced Senate hearings, attorney general coalitions, and whistleblower reports specifically about child safety.
SafeSignal is the first RL training environment designed to solve Gap 2 — teaching an AI agent not just when a child is at risk, but when to speak, when to wait, and how to keep the trust that makes every future warning matter.
👉 HuggingFace Space — Live Demo
The live demo has four tabs:
📓 Training Notebook: Colab Training Notebook
💻 GitHub Repository: github.com/Praneeth1506/OpenENV-Environment
"We built a training environment that teaches AI to think like a present, caring parent — knowing not just when something is wrong, but when to speak, when to wait, and how to keep the trust that makes every future warning matter."