Pith. sign in

REVIEW 2 cited by

A Framework for Real-time Safeguarding the Text Generation of Large Language Model

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2404.19048 v3 pith:2HOHDPSP submitted 2024-04-29 cs.CL cs.AI

classification cs.CLcs.AI
keywords llmsafeguardlanguageadditionallycontext-wisecontroldetoxificationframeworkgeneration
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Large Language Models (LLMs) have significantly advanced natural language processing (NLP) tasks but also pose ethical and societal risks due to their propensity to generate harmful content. Existing methods have limitations, including the need for training specific control models and proactive intervention during text generation, that lead to quality degradation and increased computational overhead. To mitigate those limitations, we propose LLMSafeGuard, a lightweight real-time framework that integrates an external validator into decoding, rejecting unsafe outputs while allowing valid ones. We introduce a similarity-based validation approach, simplifying constraint introduction and eliminating the need for control model training. Additionally, LLMSafeGuard employs a context-wise timing selection strategy, intervening LLMs only when necessary. We evaluate LLMSafeGuard on detoxification and copyright safeguarding, demonstrating its superiority over SOTA baselines. In detoxification, LLMSafeGuard reduces toxic output by at least 38.6\% while preserving linguistic quality. Additionally, its context-wise timing selection cuts inference time by at least 24.2\% without compromising effectiveness.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. ViseGPT: Towards Better Alignment of LLM-generated Data Wrangling Scripts and User Prompts

    cs.HC 2025-08 conditional novelty 6.0 of 10

    ViseGPT automatically converts user prompts into test cases and visualizes which steps of an LLM-generated data wrangling script pass or fail.

  2. CARE: Decoding Time Safety Alignment via Rollback and Introspection Intervention

    cs.LG 2025-09 conditional novelty 4.0 of 10

    CARE uses guard-model detection, token-buffer rollback, and self-reflective prompting to reduce harmful responses while preserving response quality.

Pith tools