alphaFeedback

WorksComputer Science

PROSE: Preservation-Constrained Selective Editing for Guilty Bias in Legal Judgment Prediction

AI contributions
Not recorded for this paper
View details

Abstract

Legal judgment prediction models may retain a guilty verdict after a legally decisive condition has been altered such that the specified charge is no longer established. We study this guilty bias via selective repair over matched charge-established and charge-not-established cases, where the unsupported verdict should change while its supported counterpart remains stable. We construct CAIL-MC, a legally reviewed dataset of 11,478 matched pairs covering 261 Chinese criminal charges. Held-out activation interventions show that contrasts learned from correctly resolved pairs transfer to false-guilty cases, but target-reaching interventions can also damage matched supported-guilty decisions. Motivated by this observation, we introduce PROSE, which reconstructs case-specific targets from a training-derived residual geometry, aligns them with a local margin-descent signal, attenuates supported-guilty-sensitive components, and realizes bounded targets through a preservation-regularized low-rank parameter update. Across Qwen3-8B and GLM4-9B, PROSE achieves stronger pairwise safe repair and evidence sensitivity, while preserving standard single-pass inference.

Introduction

Legal judgment prediction (LJP) [7] (Zhong et al. 2018; Zhang and Dou 2023; Zhang et al. 2023; Shi et al. 2025) asks whether case facts establish a criminal charge. Beyond recognizing patterns in prior cases, an LJP system should respond to legally decisive changes in the evidence. In particular, when the available facts do not establish a charge, the principle of in dubio pro reo (Raimondo, 2020) requires doubt to be resolved in favor of the accused.

An LJP method may retain a guilty verdict after the legal basis for that verdict has been altered.

Guilty bias and its correction trade-off

Figure 1. (a) Guilty bias and (b) its correction trade-off.

Figure 1(a) illustrates this behavior with two cases that share the specified charge and surrounding context but differ in one decisive conduct condition. The evaluated systems predict that the charge is established for both. We use guilty bias to denote this false-guilty tendency on legally matched contrasts. The goal is therefore not to suppress guilty predictions globally, but to correct the unsupported member while preserving its supported counterpart.

Recent approaches reduce false-guilty predictions through additional non-guilty supervision (Zhang et al., 2025), defense-oriented interaction [10], self-refinement (Madaan et al., 2023), or debate [1]. Although they have achieved encouraging results, three challenges remain. First, aggregate error reduction does not establish evidence-sensitive correction. A lower false-guilty rate (FGR) may result from a general downward shift in guilty scores, which can simultaneously increase the false-nonguilty rate (FNR). As illustrated in Figure 1(b), reducing one error direction does not necessarily improve the other. Correction should therefore respond to the decisive legal contrast rather than merely favor charge-not-established predictions. Second, repairability does not guarantee selective repair. Even an intervention that moves a false-guilty case across the decision boundary may weaken the supported verdict of its matched charge-established counterpart or alter unrelated correct predictions. A useful correction must therefore preserve both the paired counterpart and broader non-target behavior. Third, existing data-based correction requires multi-step training, whereas inference-time critique and debate repeat deliberation for every case. A practical correction should persist after a one-time update without requiring full retraining or repeated model calls at inference time.

To make these requirements measurable, we construct CAIL-MC, an LJP benchmark with two complementary tracks. The Pairwise Repair–Preservation Track, derived from CAIL2018 (Xiao et al., 2018), contains 11,478 charge-established/charge-not-established pairs spanning 261 charges. Guided by three-stage legal reasoning ([2, 4] (Zhang et al. 2025)), each pair changes one legally decisive condition concerning offense elements, unlawfulness, or culpability while keeping the surrounding facts aligned, specifying both a repair target and its matched preservation control. The Evidence-Sufficiency Generalization Track, constructed from LeCaRD (Ma et al., 2021}) and Criminal-S (Hu et al., 2018`), comprises four controlled conditions: full-supported, partial-sufficient, partial-insufficient, and allegation-only. It tests whether models retain supported charges and reject insufficiently supported ones under corpus and construction shift, assessing evidence sensitivity motivated by in dubio pro reo.

We then test whether the base LLM contains an internal signal that can support such a correction. Hidden-state contrasts estimated from correctly resolved training pairs reduce the guilty margins of held-out false-guilty cases. Yet interventions strong enough to reach a charge-not-established target also reduce the margins of their matched supported-guilty cases. This diagnosis exposes the central repair–preservation tension wherein errors are often internally repairable, but the available repair signal is not inherently selective.

Motivated by this finding, we introduce PROSE, a preservation-constrained selective editing method. PROSE addresses the repair–preservation tension in three stages. (1) it reconstructs each training target’s matched residual within the geometry learned from correctly resolved training pairs and defines a family of repair directions by interpolating the reconstruction with the negative gradient of the target verdict margin. The residual component transfers structure from successfully resolved legal contrasts, whereas the gradient provides a target-local signal for reducing the guilty margin. (2) PROSE attenuates components sensitive to supported-guilty behavior and searches within a case-adaptive cap for a small displacement that reaches a conservative negative margin. This reduces overlap with protected behavior and limits unnecessary movement beyond the decision boundary. (3) PROSE realizes the feasible activation targets through preservation-regularized least squares over supported-guilty and non-target examples, followed by low-rank truncation and norm-bounded rescaling. Preservation is thus promoted during both target construction and parameter fitting. After this offline editing phase, the model performs ordinary single-pass inference.

Our contributions are threefold: (1) We formulate guilty-bias mitigation as preservation-constrained selective repair and introduce PROSE, which realizes bounded activation targets through a preservation-regularized parameter update. (2) We construct CAIL-MC with two complementary tracks: the Pairwise Repair–Preservation Track contains 11,478 reviewed matched pairs across 261 charges, while the Evidence-Sufficiency Generalization Track tests four evidence conditions from unseen corpora. (3) Experiments on two backbones demonstrate stronger pairwise safe repair than LJP and editing baselines, greater evidence sensitivity than SFT, and less supported-verdict damage than a repair-matched uniform shift, with lower offline cost than SFT and ordinary single-pass inference.

Related Work

LJP maps case facts to judicial outcomes such as applicable law articles, charges, and sentences. Zhong et al. (2018) model dependencies among these prediction subtasks, while Hu et al. [9] address few-shot charge prediction through discriminative legal attributes. Xu et al. (2020) focus on distinguishing confusing law articles, and Lyu et al. (2022) improve prediction through criminal-element extraction. More recent work incorporates legal precedents (Wu et al., 2023) and studies multi-task or multi-label prediction in more realistic settings (Li et al., 2025).

Recently, non-guilty judgment has received increasing attention. Zhang et al. (2025) introduces charge-not-established outcomes and structures prediction around offense elements, unlawfulness, and culpability. Jeong and Lee [10] characterizes the tendency to over-predict guilt as guilty bias and uses an inference-time lawyer agent to challenge guilty assumptions at each reasoning stage. These approaches expand LJP beyond guilty-centered prediction, but do not explicitly formulate correction as a matched requirement: changing an unsupported verdict while preserving its minimally different supported counterpart.

We address this gap by formulating guilty-bias mitigation as preservation-constrained selective repair. Each matched legal pair jointly specifies a charge-not-established verdict to correct and a supported charge-established verdict to preserve. We realize these pairwise constraints through a persistent parameter update, connecting our approach to model editing (Meng et al., 2022). MEMIT (Meng et al., 2023) performs scalable parameter updates to factual associations, while AlphaEdit (Fang et al., [3]) projects updates into a null space associated with preserved knowledge. Unlike these factual editing methods, we modify an asymmetric behavioral relation within each legal pair: the charge-not-established member should change, while its charge-established counterpart and broader non-target behavior should remain stable.

Task and Benchmark

Problem Formulation

Charge-conditioned LJP. We study charge-conditioned verification. Given a case fact xx and a candidate charge cc, an LLM with parameters θ\theta predicts whether cc is established. Let zθ(1∣x,c)z_\theta(1 \mid x,c) and zθ(0∣x,c)z_\theta(0 \mid x,c) denote the answer-position logits for charge established and charge not established. We define

sθ(x,c)=zθ(1∣x,c)−zθ(0∣x,c),s_\theta(x,c) = z_\theta(1 \mid x,c) - z_\theta(0 \mid x,c),
y^θ(x,c)=1[sθ(x,c)>0].(1)\hat{y}_\theta(x,c) = \mathbb{1}[s_\theta(x,c) > 0]. \tag*{(1)}

We use the continuous margin for internal analysis and the binary prediction for behavioral evaluation. Throughout, θ′\theta' denotes a candidate predictor evaluated relative to the fixed reference model θ0\theta_0.

Matched legal contrasts. An isolated prediction cannot distinguish evidence-sensitive behavior from a general verdict preference. We therefore use a matched contrast

pi=(xiG,xiNG,ci,di), di∈D, (yiG,yiNG)=(1,0),p_i = (x_i^{\mathrm{G}}, x_i^{\mathrm{NG}}, c_i, d_i),\ d_i \in\mathcal{D},\ (y_i^{\mathrm{G}}, y_i^{\mathrm{NG}}) = (1,0),
D={OFFENSE,UNLAWFULNESS,CULPABILITY}.(2)\mathcal{D} = \{\mathrm{OFFENSE},\mathrm{UNLAWFULNESS},\mathrm{CULPABILITY}\}. \tag*{(2)}

Both members concern the same candidate charge cic_i and are derived from a common source case. The charge-not-established member xiNGx_i^{\mathrm{NG}} changes one decisive condition at legal stage did_i while preserving the surrounding facts as closely as possible. Thus, xiNGx_i^{\mathrm{NG}} specifies what should change, whereas xiGx_i^{\mathrm{G}} provides the closest counterpart to preserve. The construction details are described in Sec. 3.2.

Repair and preservation. Let IS\mathcal{I}^{S} denote the pairs in split SS. The two side-level errors are

FGR⁡S(θ)=Pr⁡i∼IS[y^θ(xiNG,ci)=1],\operatorname{FGR}_{S}(\theta) = \Pr_{i \sim\mathcal{I}^{S}}\left[\hat{y}_\theta(x_i^{\mathrm{NG}},c_i)=1\right],
FNR⁡S(θ)=Pr⁡i∼IS[y^θ(xiG,ci)=0].(3)\operatorname{FNR}_{S}(\theta) = \Pr_{i \sim\mathcal{I}^{S}}\left[\hat{y}_\theta(x_i^{\mathrm{G}},c_i)=0\right]. \tag*{(3)}

Reporting both reveals whether reducing false-guilty errors merely shifts the model toward charge-not-established predictions. These rates nevertheless discard the correspondence within each pair. We therefore define the strict false-guilty set under the fixed base model:

EsFGS(θ0)={i∈IS:(y^θ0(xiG,ci),y^θ0(xiNG,ci))=(1,1)}.(4)\mathcal{E}^{S}_{\mathrm{sFG}}(\theta_0) = \left\{i \in\mathcal{I}^{S} : \left(\hat{y}_{\theta_0}(x_i^{\mathrm{G}},c_i),\hat{y}_{\theta_0}(x_i^{\mathrm{NG}},c_i)\right) = (1,1)\right\}. \tag*{(4)}

Its gold state is (1,0)(1,0) in the fixed order (xiG,xiNG)(x_i^{\mathrm{G}},x_i^{\mathrm{NG}}). Repair concerns changing the unsupported xiNGx_i^{\mathrm{NG}} verdict, preservation concerns retaining the matched xiGx_i^{\mathrm{G}} verdict and other correct behavior. For each reference model θ0\theta_0 and split SS, EsFGS(θ0)\mathcal{E}^{S}_{\mathrm{sFG}}(\theta_0) is defined once under θ0\theta_0 and held fixed across subsequent comparisons, keeping the evaluation population unchanged.

CAIL-MC

CAIL-MC comprises two complementary tracks under the same charge-conditioned verification task. The Pairwise Repair–Preservation Track (track 1) evaluates whether a model corrects an unsupported verdict while preserving its closest supported counterpart. The Evidence-Sufficiency Generalization Track (track 2) evaluates whether this behavior transfers when both the source corpus and the construction of evidential support change.

Pairwise Repair–Preservation Track. Based on CAIL2018 (Xiao et al., 2018), we construct 11,478 charge-established/charge-not-established pairs spanning 261 Chinese criminal charges. Following the three-stage legal reasoning perspective (Zhang et al., 2025), each pair changes one decisive condition concerning offense elements, unlawfulness, or culpability while preserving the surrounding facts as closely as possible. The charge-not-established member specifies the verdict that should change, whereas its matched charge-established member provides the closest preservation control. The legal-stage annotation organizes contrast construction and the stage-specific statistics used later; it is not an additional prediction target. Construction includes outcome-expression removal, legal-condition planning, counterfactual generation, automated factual and legal checks, and stratified inspection by criminal-law annotators. Variants derived from the same source case are assigned to the same split, with the stage distribution preserved across splits. The construction details are provided in App. A.1.

Evidence-Sufficiency Generalization Track. To evaluate behavior beyond the matched construction, we derive four evidence conditions from LeCaRD (Ma et al., 2021) and Criminal-S ([9]) cases. The full-supported condition retains the complete facts supporting the candidate charge, while partial-sufficient removes non-essential information but retains sufficient support. In contrast, partial-insufficient preserves some charge-related facts but withholds decisive support, and allegation-only retains the accusation without supporting factual evidence. The first two conditions are labeled charge established, and the latter two charge not established. In particular we adopt partial-sufficient controls for shortcuts rooted in input length or retained information volume because a shorter description need not imply insufficient support. This track therefore tests whether a model retains supported charges but rejects them when the presented evidence is insufficient, operationalizing one measurable consequence of in dubio pro reo under joint corpus and evidence-construction shift. The construction details are provided in App. A.2.

Diagnostic Analysis

We use temporary hidden-state interventions (Li et al., 2023; Zou et al., 2023) to test whether matched legal contrasts provide a transferable repair signal and whether that signal is selective. Contrast statistics are estimated from the training split, while strict false-guilty pairs from the development split are held out for diagnosis; the reference model remains frozen throughout.

Transfer of Hidden-state Contrasts

Let hθ0,tℓ(x,c)h_{\theta_0,t}^{\ell}(x,c) be the hidden state at prompt position tt of layer ℓ\ell, and let T\mathcal{T} denote the three positions

immediately preceding the answer3. For matched pair ii, we define its charge-not-established-minus-charge-established contrast as

qiℓ=1∣T∣∑t∈T[hθ0,tℓ(xiNG,ci)−hθ0,tℓ(xiG,ci)].(5)q_i^{\ell} = \frac{1}{|\mathcal{T}|}\sum_{t\in\mathcal{T}}\left[h_{\theta_0,t}^{\ell}(x_i^{\mathrm{NG}},c_i)-h_{\theta_0,t}^{\ell}(x_i^{\mathrm{G}},c_i)\right]. \tag*{(5)}

At each layer and legal stage, we average and normalize these contrasts over training pairs whose two members are correctly predicted. We add the resulting direction to the charge-not-established member of held-out strict false-guilty pairs and measure NG-margin reduction: the original guilty-minus-charge-not-established margin minus its intervened value. A positive reduction moves the case toward charge not established. Forward directions are compared with their reversals and norm-matched random directions.

Figure 2 (a) shows that the forward direction reduces the NG guilty margin in a localized middle-layer region across all three legal stages, with the clearest response near Layer 22. Reversing the direction generally reverses the effect, whereas random perturbations are smaller and less stable. Contrasts learned from correctly resolved training pairs thus transfer to held-out strict false-guilty cases.

Qwen3-8B diagnosis plots

Figure 2. Qwen3-8B diagnosis. (a) layer-wise NG-margin reduction under forward and control directions, (b) repair feasibility, and (c) paired-G margin damage.

Repair Feasibility and Preservation

Directional transfer does not establish that the target verdict is reachable or that reaching it preserves the matched supported decision. We therefore reconstruct a case-specific direction using either stage-specific or shared affine contrast geometry and vary its strength over a bounded grid. A case is feasible if a tested strength moves its NG margin just below zero by a small buffer, which marks a target beyond the decision boundary rather than a calibrated confidence threshold. Figure 2 (b) shows feasibility of 70.6–83.2% for stage-specific directions and 70.6–76.9% for shared directions. The transferred signal can therefore reach the desired verdict for a substantial fraction of false-guilty cases.

We then apply each target-reaching displacement to its matched charge-established member. Paired-G margin damage is the supported member’s pre-intervention minus post-intervention margin; positive values indicate a weaker supported verdict. To reduce such damage, we remove the direction’s component in a subspace of verdict-margin gradients from correctly predicted charge-established training cases. On pairs feasible both with and without this preservation projection, damage decreases in all six stage/geometry comparisons, from 0.349–0.674 to 0.274–0.584 (Figure 2c).

These results separate repairability from selectivity: matched contrasts provide sufficient movement to repair false-guilty decisions, but that movement can weaken their supported counterparts unless preservation is explicitly controlled. Diagnostic details and GLM4-9B results, which yield consistent qualitative findings, are elaborated in App. § 10.

Our Method: PROSE

Diagnosis above shows that contrasts from correctly resolved pairs can move strict false-guilty cases toward charge not established, but a repair-effective displacement can also weaken the matched supported verdict. PROSE addresses this repair–preservation trade-off in two stages. (1) it constructs a bounded, preservation-aware hidden-state target for each feasible training pair, and (2) realizes these targets through an offline update constrained on supported and non-target behavior. We describe one stage-dd update at layer ℓ\ell under the current model ϑ\vartheta, initialized as θ0\theta_0. Eligibility and preservation labels are fixed under θ0\theta_0, and representations are recomputed before each stage update.

Bounded Preservation-Aware Targets

For i∈EsFGtrain(θ0)i \in E^{\mathrm{train}}_{\mathrm{sFG}}(\theta_0) with di=dd_i = d, we recompute qiℓq_i^\ell under ϑ\vartheta using Eq. (5). Correctly resolved training contrasts at the same stage define a mean qˉdℓ\bar{q}_d^\ell and a rank-rqr_q orthonormal basis UdℓU_d^\ell from centered SVD. We reconstruct the pair contrast in this affine geometry:

q^iℓ=qˉdℓ+Udℓ(Udℓ)⊤(qiℓ−qˉdℓ),(6)\hat{q}_i^\ell= \bar{q}_d^\ell+ U_d^\ell(U_d^\ell)^\top(q_i^\ell- \bar{q}_d^\ell), \tag*{(6)}

where the mean represents the average successful contrast, while the basis retains the leading case-dependent deviations around it. Thus, q^iℓ\hat{q}_i^\ell supplies a structured, case-conditioned candidate.

This reconstruction does not ensure that it lowers the current target’s verdict margin. Let s~ϑ(x,c;δ,ℓ)\widetilde{s}_{\vartheta}(x,c;\delta,\ell) denote the margin after adding δ\delta at layer ℓ\ell to the answer-adjacent positions used in diagnosis, and let unit⁡(a)=a/∥a∥2\operatorname{unit}(a)=a/\lVert a\rVert_2 for a nonzero vector aa. We therefore combine it with the target-local direction of first-order margin descent:

giℓ=−unit⁡(∇δs~ϑ(xiNG,ci;δ,ℓ)∣δ=0),g_i^\ell= -\operatorname{unit}\left(\left.\nabla_{\delta}\widetilde{s}_{\vartheta}(x_i^{\mathrm{NG}},c_i;\delta,\ell)\right|_{\delta=0}\right),
viℓ(λ)=unit⁡[(1−λ)unit⁡(q^iℓ)+λgiℓ].(7)v_i^\ell(\lambda) = \operatorname{unit}\left[(1-\lambda)\operatorname{unit}(\hat{q}_i^\ell)+\lambda g_i^\ell\right]. \tag*{(7)}

Here, 0≤λ≤10 \le\lambda\le1 balances the training-derived contrast and local descent signal, which can improve alignment with the current decision boundary.

Repair directions may also affect supported-guilty behavior. Let PdℓP_d^\ell be a rank-rPr_P orthonormal basis of leading margin-gradient directions from correctly predicted charge-established training cases at stage dd. We attenuate the overlapping component:

uiℓ=unit⁡[viℓ(λ)−γPdℓ(Pdℓ)⊤viℓ(λ)].(8)u_i^\ell= \operatorname{unit}\left[v_i^\ell(\lambda)-\gamma P_d^\ell(P_d^\ell)^\top v_i^\ell(\lambda)\right]. \tag*{(8)}

With γ=1/(1+ρ)\gamma= 1/(1+\rho) and ρ≥0\rho\ge0, ρ=0\rho=0 fully removes this component, whereas ρ>0\rho>0 retains some repair-relevant overlap. This soft attenuation reduces sensitivity to supported verdicts without discarding all overlapping repair information.

The direction specifies where to move a target, not how far. Let β≥0\beta\ge0 be the displacement magnitude. A global cap βmax⁡>0\beta_{\max}>0 and a case-relative scale κ>0\kappa>0 bound the search by

Bi=min⁡{βmax⁡,κ∥q^iℓ∥2}.(9)B_i = \min\left\{\beta_{\max},\kappa\lVert\hat{q}_i^\ell\rVert_2\right\}. \tag*{(9)}

We search for a small strength βi⋆\beta_i^\star reaching a negative margin buffer τ<0\tau<0, and define the activation target tit_i:

s~ϑ(xiNG,ci;βi⋆uiℓ,ℓ)≤τ,(10)\widetilde{s}_{\vartheta}\left(x_i^{\mathrm{NG}},c_i;\beta_i^\star u_i^\ell,\ell\right)\le\tau, \tag*{(10)}

where ti=βi⋆uiℓt_i=\beta_i^\star u_i^\ell, 0≤βi⋆≤Bi0\le\beta_i^\star\le B_i. The bounded, case-specific search seeks only the displacement needed for the chosen direction, thereby limiting avoidable target movement. Let Fd\mathcal{F}_d contain the pairs for which the search finds such a strength and only their displacements tit_i enter parameter fitting.

Preservation-Constrained Update

Since the targets above are temporary, to make their effects persist without paired inputs or per-case search at inference time, we fit an additive update ΔW\Delta W to WW, block notation for the selected projection weights, for stage dd. Let KFK_F and TFT_F collect the module-input keys and target displacements from Fd\mathcal{F}_d, with one column per intervention position and nFn_F columns in total. Each position receives its pair’s tit_i. We retain three base-correct zero-change pools: supported charge-established cases (G), charge-not-established members of correctly resolved same-stage pairs (O), and correct cases from other stages (X). For pool aa, KaK_a, nan_a, and ωa≥0\omega_a \ge0 denote its key matrix, column count, and penalty weight. We minimize

L(ΔW)=∥ΔWKF−TF∥F2nF+μ∥ΔW∥F2+∑a∈{G,O,X}ωana∥ΔWKa∥F2,μ>0.(11)\mathcal{L}(\Delta W) = \frac{\left\|\Delta W K_F - T_F\right\|_F^2}{n_F} + \mu\left\|\Delta W\right\|_F^2 + \sum_{a\in\{G,O,X\}} \frac{\omega_a}{n_a}\left\|\Delta W K_a\right\|_F^2,\qquad\mu> 0. \tag*{(11)}

The first term fits feasible repair targets, the remaining terms penalize changes to supported, same-stage non-target, and cross-stage behavior, while μ\mu regularizes update magnitude. For fixed targets and keys, μ>0\mu> 0 yields a unique closed-form ridge solution, without iterative optimization of model weights. We obtain a rank-rWr_W approximation of this solution and rescale it to satisfy a relative Frobenius-norm budget ε>0\varepsilon> 0 before setting W′=W+ΔWW^\prime= W + \Delta W. These subsequent controls limit update capacity and magnitude; they do not solve the jointly rank- and norm-constrained objective exactly. After the stage updates, θ′\theta^\prime performs ordinary single-pass inference. The derivation, search, and execution details are provided in App. § 11.

Experiments

We conduct experiments to address the following research questions: RQ1: Does PROSE reduce false-guilty verdicts without trading them for false non-guilty ones, on matched pairs and on evidence-graded cases from unseen corpora? RQ2: Does PROSE repair the unsupported member while preserving its supported counterpart, rather than shifting all verdicts? RQ3: Which preservation components make the repair selective? RQ4: What does the correction cost, offline and at inference?

Experimental Setup

Datasets. We use Pairwise Repair–Preservation Track for in-domain training and matched-pair evaluation, Evidence-Sufficiency Generalization Track for evidence-controlled cross-corpus evaluation. Dataset statistics are summarized in Tab. 1, the construction and annotation are provided in App. § 9.

TrackSourceTrainDevTest
PairwiseCAIL20189,1811,1471,150
Stage distribution: O 35.7%, U 17.8%, C 46.5%
EvidenceLeCaRD––280
Criminal-S––800

caption: CAIL-MC statistics. Pairwise counts are matched pairs; evidence counts are variants, four per source case (70 LeCaRD; 200 Criminal-S). O/U/C denote Offense/Unlawfulness/Culpability.

:::

Baselines. We consider three groups of baselines. (1) Base denotes the raw LLM without corrective intervention, and SFT denotes LoRA fine-tuning (Hu et al., [8]) across all layers using verdicts from both members of each pair. (2) LJP methods include: LJPIV (Zhang et al., 2025), Self-Refine (Madaan et al., 2023), Debate-Feedback (Chen et al., [1]), and OBJECT-TION (Jeong and Lee, [10]). (3) Model editing methods include: MEMIT (Meng et al., 2023) and AlphaEdit (Fang et al., [3]). Detailed descriptions are provided in App. § 12.§ 2.

Evaluation and Implementation. We evaluate model behavior at both case and pair levels. At the case level, in addition to accuracy and Macro-F1, we report FGR and FNR. These metrics are interpreted jointly to uncover one-sided verdict shifts, as defined in Eq. (3). At the pair level, we evaluate the strict false-guilty set EFGs(θ0)\mathcal{E}^{s}_{\mathrm{FG}}(\theta_0), fixed by the reference model for each backbone and evaluation set. NG repair (Rep.) measures whether the charge-not-established member is corrected, matched-G retention (G-Ret.) measures whether its supported counterpart remains correct, and pairwise safe repair (PSR) requires both conditions. Formal definitions are provided in App. § 12.§ 1. We employ Qwen3-8B-Base4 and GLM-4-9B-Base5. For these two models, PROSE performs edits at Layer 22 and Layer 20, respectively (§ 3). Hyperparameters are tuned on the development split. Implementation details are provided in App. § 12.§ 3.

Main Results (RQ1)

To evaluate guilty-bias reduction and selective repair, we compare methods on both CAIL-MC tracks. From Table 2, we observe three patterns. (1) PROSE achieves the highest in-corpus PSR among LJP and editing baselines on both backbones, demonstrating stronger joint repair and matched preservation. On CAIL2018 track, PROSE ranks second only to SFT and keeps both FNR and FGR at or below 8.61 (Qwen) and 15.04 (GLM), and its PSR is the highest after SFT. (2) SFT achieves the strongest performance on matched pairs, yet this advantage does not carry over to evidence-sufficiency evaluation (Acc: 49.64–51.00), where false-guilty errors dominate (94.29–97.25). (3) PROSE achieves the best cross-corpus Macro-F1 on GLM and competitive performance on Qwen, avoiding the extreme one-sided error profiles exhibited by several baselines. For example, Self-Refine on Qwen and MEMIT on GLM obtain low FGR at the expense of high FNR. These results distinguish PROSE’s joint repair and preservation from error reduction through a general verdict shift.

MethodCAIL2018 (Pairwise Repair–Preservation) Case level Acc↑F1↑FGR↓FNR↓CAIL2018 (Pairwise Repair–Preservation) Pair level Rep.↑G-Ret.↑PSR↑LeCaRD (Evidence-Sufficiency Generalization) Acc↑F1↑FGR↓FNR↓Criminal-S (Evidence-Sufficiency Generalization) Acc↑F1↑FGR↓FNR↓
Qwen3-8B-Base
Base72.65±1.4370.58±1.7753.91±2.820.78±0.50–––55.71±2.9946.91±5.2285.00±6.593.57±3.6766.88±2.5863.63±3.3663.00±5.053.25±2.00
SFT98.87±0.4498.87±0.442.00±0.830.26±0.3096.27±1.53100.00±0.0096.27±1.5349.64±2.7137.60±3.4594.29±3.796.43±5.2651.00±1.1236.72±1.8396.50±1.781.50±1.58
Self-Refine70.35±1.4968.29±1.794.17±1.1355.13±2.7795.79±1.6339.71±3.6636.79±3.6554.29±4.5647.90±6.3310.71±5.1380.71±7.9854.88±1.7044.86±2.972.50±1.5387.75±3.37
OBJECTION75.61±1.5975.10±1.6810.09±1.8138.70±2.8289.14±2.5661.59±3.8353.81±3.9173.57±4.7573.22±5.0315.00±5.3637.86±9.2373.38±3.0073.27±3.0520.50±4.0332.75±5.14
Debate78.74±1.4578.21±1.5636.87±2.725.65±1.3244.08±3.7996.27±1.4841.49±3.7166.79±4.6065.35±5.1153.57±8.4012.86±6.5167.88±3.0867.40±3.1944.25±4.9120.00±4.07
LJPIV83.96±1.4583.70±1.523.57±1.0928.52±2.6593.52±1.9669.53±3.5764.67±3.8061.79±4.6960.37±5.5419.29±6.4557.14±10.4868.25±2.6266.48±3.248.75±2.6054.75±5.89
MEMIT51.22±1.8349.98±1.9264.52±2.8733.04±2.7434.68±3.9268.72±3.6819.94±3.2937.86±4.4035.98±4.0279.29±5.7445.00±9.4336.38±2.4534.39±2.6046.25±4.7581.00±4.36
AlphaEdit62.78±1.6460.44±1.9361.57±2.9412.87±1.9450.41±3.9787.52±2.5741.98±3.7840.71±4.3436.52±4.0285.00±5.4733.57±9.1437.50±2.7836.01±2.5577.75±3.4647.25±5.75
PROSE91.48±1.0991.48±1.098.43±1.638.61±1.5785.25±2.8490.76±2.1776.34±3.3070.36±4.0769.57±4.2645.71±7.5913.57±7.2968.38±2.6767.33±2.8749.50±4.8013.75±3.99
GLM-4-9B-Base
Base74.74±1.4773.63±1.6745.74±2.904.78±1.25–––57.50±3.5549.91±5.3981.43±6.783.57±4.2757.75±1.9548.70±3.3884.25±3.920.25±0.49
SFT98.78±0.4698.78±0.462.26±0.910.17±0.2294.98±1.9299.61±0.4894.59±2.0350.36±1.7936.98±3.5495.71±3.213.57±3.9350.63±1.0035.94±1.5197.25±1.631.50±1.75
Self-Refine68.35±1.4665.83±1.8058.78±2.784.52±1.226.37±2.0998.07±1.185.98±2.0256.43±3.1147.40±5.1585.00±5.972.14±2.4850.13±0.2433.61±0.530.00±0.0099.75±0.48
OBJECTION68.00±1.5165.98±1.797.65±1.5656.35±2.8488.22±2.8745.75±4.2536.68±4.2459.64±4.8857.19±5.8316.43±5.8464.29±9.0569.38±3.0868.80±3.2817.00±3.4344.25±5.49
Debate73.09±1.6272.80±1.6737.13±2.7516.70±2.8345.82±2.7588.42±2.7535.99±3.5357.86±5.4154.69±6.2868.57±8.3215.71±6.4661.13±2.5957.32±3.2368.75±4.459.00±2.81
LJPIV66.91±2.1866.65±2.2224.22±2.5341.91±2.9037.37±4.0554.44±3.4542.66±4.4150.71±2.6039.16±5.3892.86±8.9357.14±6.4945.25±0.9833.64±0.8999.25±0.802.25±1.95
MEMIT54.57±1.3048.37±1.7410.78±1.7880.09±2.2589.58±2.6617.37±3.1112.36±2.6454.64±3.4748.46±5.4310.71±4.8380.00±7.8955.63±1.7848.53±2.977.25±2.2381.50±4.00
AlphaEdit60.00±1.6257.86±1.8417.48±2.2362.52±2.8290.15±2.5131.47±3.9924.71±3.6432.14±3.8931.72±4.2560.00±4.7975.71±8.1730.88±2.2430.71±2.3364.25±3.1474.00±4.45
PROSE87.17±1.3487.17±1.3515.04±2.0710.61±1.9067.37±4.0694.02±1.9462.16±4.1566.79±5.0066.06±5.4147.86±9.8618.57±8.0471.88±2.3370.63±2.6348.75±4.637.50±3.07

Table 2. Results (%) on both CAIL-MC tracks. Entries are point estimates ± 1.96% bootstrap standard errors (1,000 resamples over pairs for repair–preservation and cases for evidence-sufficiency evaluation). Best and second-best results per backbone, excluding Base, are bold and underlined. Base’s pair-level scores are omitted: Rep. = PSR = 0 and G-Ret. = 100 by construction.

To further probe whether SFT’s transfer gap is consistent with construction-specific shortcut learning [6, 5], we compare verdict margins across four evidence conditions for the same 200 Criminal-S cases. As shown in Figure 3, SFT retains strongly positive margins even without supporting evidence, whereas other baselines exhibit different failures: LJPIV on Qwen remains negative even with sufficient evidence, and MEMIT and AlphaEdit can assign higher margins to allegation-only inputs than to fully supported ones. In contrast, PROSE retains positive margins with sufficient evidence, moves closer to the decision boundary with insufficient evidence, and becomes negative for allegation-only inputs. Although partial-insufficient margins remain slightly positive, this response better reflects the evidence-sensitive behavior motivated by in dubio pro reo, while preserving supported verdicts.

Mean verdict margin as evidence is removed from the 200 Criminal-S cases of Evidence Track, with Qwen3-8B-Base and GLM-4-9B-Base

Figure 3. Mean verdict margin as evidence is removed from the 200 Criminal-S cases of Evidence Track, with (a) Qwen3-8B-Base and (b) GLM-4-9B-Base.

Repair and Preservation Analysis (RQ2)

To investigate whether PROSE repairs false-guilty decisions while preserving supported verdicts, we track the joint predictions of each test pair before and after correction (Figure 4a–Figure 4b). Most false-guilty pairs become jointly correct, and most originally correct pairs remain correct. Nevertheless, false-non-guilty pairs increase, showing that repair still incurs a preservation cost.

Repair and preservation pair states and supported-guilty damage

Figure 4. Repair and preservation. (a–b) Pair states before and after PROSE. (c) Supported-guilty damage at matched repair; lower is better.

We further compare PROSE with a uniform margin offset calibrated to match its repair rate on base-misclassified charge-not-established cases. Damage is measured as the fraction of base-correct charge-established cases that become incorrect. At matched repair, PROSE causes substantially less damage: 8.5% versus 17.5% on Qwen and 7.1% versus 24.3% on GLM (Figure 4c). Thus, PROSE preserves supported verdicts better than a uniform shift toward charge-not-established predictions, demonstrating more selective repair.

Charge-level effects and per-pair margin changes are analyzed in App. G.1 and G.2

Ablation Study (RQ3)

To investigate which preservation components support selective repair, we remove target-level attenuation (Eq. (8)), parameter-level preservation constraints (Eq. (11)), or both, and refit each variant without retuning the remaining hyperparameters. Table 3 shows that removing parameter-level constraints sharply reduces matched-G retention and PSR on both backbones, despite substantial repair. Attenuation has a backbone-dependent effect: removing it substantially reduces Qwen’s repair and PSR while increasing G-Ret., whereas GLM’s PSR remains nearly unchanged. Removing both components also yields poor safe repair. Thus, parameter-level constraints consistently support selectivity, while attenuation improves Qwen’s repair–preservation balance. Three-stage ablations

VariantQwen3-8B-BaseGLM-4-9B-Base
F1↑Rep.↑G-Ret.↑PSR↑F1↑Rep.↑G-Ret.↑PSR↑
PROSE (full)91.4885.2590.7676.3487.1767.3794.0262.16
w/o attenuation (Eq. (8))76.4440.8499.6840.5286.8268.1593.0562.36
w/o constraints (Eq. (11))57.2770.8341.0021.3935.4099.812.902.70
w/o both61.1662.7250.5725.1235.7899.813.673.47

Table 3. Preservation ablation on CAIL-MC.

are reported in App. F.

Training and Inference Efficiency (RQ4)

To investigate the computational cost of correction, we measure offline GPU-hours on one RTX 4080 SUPER and per-query latency relative to PROSE. Figure 5 shows that PROSE requires only 1.1/2.1 GPU-hours for Qwen/GLM, reducing offline cost by 3.1–8.1× relative to SFT and LJPIV, while retaining ordinary single-pass inference; LJPIV additionally pays 2.1–3.0× the latency because it queries the three legal stages separately. MEMIT and AlphaEdit are cheaper offline but damage the unedited model on both tracks (§ 5.2), and inference-time reasoning methods need no training but incur 47–467× the latency at every query. Thus, PROSE is the only method that combines low cost on both axes with gains over the unedited model in every setting.

Offline cost and inference latency

Figure 5. Offline cost on one RTX 4080 SUPER and per-query latency relative to PROSE, both on log scales.

Conclusion

Guilty-bias mitigation requires correcting unsupported verdicts while preserving legally supported ones. We formalize this aim as preservation-constrained selective repair and introduce PROSE, which constrains both activation-target construction and parameter fitting. We also develop CAIL-MC consisting of two complementary tracks, evaluating correction at both the matched-pair and evidential-support levels. Across two backbones, PROSE achieves stronger pairwise safe repair than LJP and editing baselines and less supported-verdict damage than a repair-matched uniform shift. While SFT excels on matched pairs, PROSE better responds to changing evidential support under corpus and construction shift, with lower offline cost and ordinary single-pass inference.

Limitations

Our study covers charge-conditioned verification based LJP in Chinese criminal law using two backbones, rather than complete judicial decision-making. CAIL-MC uses LLM-assisted transformations of adjudicated facts. Independent legal review reduces, but cannot eliminate, generation artifacts and uncertainty in legal interpretation. Its coverage-oriented construction and selection of editable cases do not represent the distribution of criminal cases in practice. The Evidence-Sufficiency Generalization Track measures the sufficiency of factual support available in the supplied text, not evidence credibility or a judicial standard of proof. Its small source-case sample and fixed allegation-only template limit the breadth of the evaluation. Finally, PROSE relies on paired training examples and backbone-specific configuration choices. Its finite strength search may miss feasible interventions, and parameter fitting approximates their activation effects. Preservation is therefore empirical, not guaranteed.

Ethical Considerations

CAIL-MC is derived from CAIL2018, LeCaRD, and Criminal-S, whose source texts have undergone privacy protection. Our legal review additionally screened the source and constructed texts for residual identifying information and newly introduced identifying details. The counterfactual variants are synthetic modifications for benchmark evaluation, not additional claims about individuals in the source cases. Our use of the source data complies with their applicable terms and any release of derived material will follow the corresponding redistribution conditions.

Our labels concern whether the supplied facts establish a specified charge, not a defendant’s factual innocence or overall legal status. The evidence-sufficiency evaluation tests a limited behavioral requirement relevant to the presumption of innocence, rather than compliance with judicial proof standards. PROSE is intended for research, not decisions about criminal responsibility, detention, or sentencing. Improved benchmark performance does not establish legal correctness or fairness, and any prospective application would require independent validation and qualified legal oversight.

CAIL-MC Construction Details

CAIL-MC is a benchmark suite with two complementary tracks. The Pairwise Repair–Preservation Track provides matched charge-established and charge-not-established cases for evaluating selective repair and preservation. The Evidence-Sufficiency Generalization Track provides controlled evidence variants from independent corpora for evaluating evidence sensitivity under corpus and construction shift. The two tracks share the same principles of fact sanitization, legal review, and outcome leakage control, but serve different purposes.

Pairwise Repair–Preservation Track

We construct this track from CAIL2018 (Xiao et al., 2018). We first retain cases with an identifiable target charge and sufficiently complete facts for controlled counterfactual editing, removing duplicate, malformed, or factually incomplete records, which yields 20,055 candidates. These cases then undergo legal-path planning, counterfactual generation, automated factual and legal checks, and expert human verification. Cases for which no legally valid counterpart can be constructed without altering the core source facts are discarded, resulting in 11,478 charge-established/charge-not-established matched pairs spanning 261 Chinese criminal charges. Given a charge-established case xiGx_i^{G} with charge cic_i, we construct xiNGx_i^{NG} such that cic_i is no longer established while preserving the remaining factual context as much as possible, so that each pair differs only in a legally decisive condition.

Because fact descriptions extracted from original judgments may contain expressions that reveal adjudicative outcomes, we first use DeepSeek-V4-Flash to extract and sanitize the case facts, removing conclusion-revealing expressions. The planning prompt PPLANP_{\mathrm{PLAN}} then identifies candidate counterfactual paths for the cleaned case at three levels: elements of the offense, unlawfulness, and culpability.

Real-world guilty cases are naturally easier to modify by negating an element of the offense. Simply selecting the easiest construction would therefore over-concentrate the dataset on offense-level cases and reduce the coverage of unlawfulness and culpability. We thus first attempt eligible unlawfulness and culpability paths, ranking candidates according to the remaining coverage gap of each legal path, feasibility, and conflict risk. Here, a legal path denotes a concrete legal construction mechanism, such as self-defense and necessity under unlawfulness, or mental incapacity and age below criminal responsibility under culpability. Feasibility measures whether a complete counterfactual can be naturally constructed from the current case, whereas conflict risk measures whether the introduced facts are likely to contradict the original case facts or hard constraints. A case proceeds to offense-level construction only when no reasonable U/C path can satisfy the quality requirements.

Counterfactual Generation

Given the selected legal path, the counterfactual generation prompt PGENP_{\mathrm{GEN}} instructs DeepSeek-V4-Flash to construct the corresponding charge-not-established fact description while preserving the original case facts as much as possible and introducing only the information necessary to alter the target legal condition.

Rather than mechanically appending exculpatory descriptions, we require the newly introduced facts to be adapted to the specific case context. For example, a self-defense counterfactual must be constructed around the original actors, course of aggression, and temporal relations, while a culpability-related modification must be consistent with the defendant’s specific identity and condition. This design avoids simply inserting fixed exculpatory keywords and makes the generated cases more consistent with realistic legal scenarios. To further prevent shortcut learning, the generated text is prohibited from directly containing conclusion-revealing expressions such as “not guilty” or “does not constitute a crime.”

Each generated sample is then automatically reviewed by DeepSeek-V4-Flash. Samples that fail the review are regenerated according to reviewer feedback for at most two refinement rounds. If a U/C path still fails after refinement, the case is transferred to offense-level construction, where the same generation and review procedure is applied.

Quality Verification

To ensure the reliability of the constructed data, we adopt a two-stage quality-control mechanism combining LLM review with expert human verification. At the factual level, the automated reviewer defined by PREVP_{\mathrm{REV}} checks whether the modified case preserves the main facts and narrative of the original case while avoiding factual contradictions, excessive modification, and conclusion leakage. At the legal level, it verifies whether the designated legal path is correctly instantiated and whether the added or modified facts are sufficient to make the target charge no longer established.

After LLM-based construction and automatic verification, we conducted a full human review of the remaining 12,564 candidate pairs. The review team consisted of eight junior annotators and one senior adjudicator. The senior adjudicator holds a doctoral degree in law, serves as a law professor at a leading university, and has 13 years of experience in criminal-law research, teaching, and/or judicial practice. The eight junior annotators were master’s students specializing in criminal law at leading universities. All had completed systematic coursework in both the General Part and the Specific Part of Chinese Criminal Law and had received professional training in criminal-case analysis.

Independent dual review. The 12,564 candidate pairs produced after LLM-based construction and automatic verification were randomly divided into four equal review batches, each containing 3,141 pairs. Each batch was assigned to two different junior annotators, and each junior annotator was responsible for one batch. The two annotators independently reviewed every pair in their assigned batch and were not shown each other’s decisions during the independent review stage.

For each pair, the reviewers jointly considered the original charge-established fact, the generated charge-not-established fact, the target charge, the assigned doctrine, and the designated legal path. They examined whether the two texts still described the same underlying case; whether the designated legal path was correctly instantiated; whether the modified or introduced facts were legally sufficient to make the target charge no longer established; whether the counterfactual condition covered all independently charge-establishing acts in cases involving repeated or continuous conduct; whether the temporal, behavioral, and causal relations remained internally consistent; and whether the counterfactual avoided excessive modification, competing doctrines, and direct outcome leakage.

Each annotator independently assigned a retain or discard decision to every candidate and recorded a brief reason whenever a candidate was considered invalid.

Expert adjudication. When the two junior annotators independently reached the same decision, that decision was adopted directly. Any candidate on which the two annotators disagreed was forwarded directly to the senior criminal-law expert for final adjudication, without an intermediate discussion stage.

For each disputed candidate, the senior expert re-examined the target charge, assigned doctrine, designated legal path, original case, counterfactual case, and the reasons recorded by both junior annotators, and then made the final decision. A candidate was discarded when a legally valid charge-not-established counterpart could not be obtained while preserving the core facts of the original case. This included cases in which another independently charge-establishing act remained intact, the counterfactual contradicted material source facts, the intended legal effect required introducing an additional doctrine, or the underlying case had to be substantially rewritten to invalidate the target charge.

Human-review outcomes. Table 4 summarizes the human-review outcomes across the four batches. Every one of the 12,564 candidate pairs was independently examined by two annotators with formal training in criminal law, and every disagreement between the two reviewers was further adjudicated by the senior expert. Human verification ultimately discarded 1,086 candidates and retained 11,478 matched pairs, corresponding to a final retention rate of 91.36%.

TotalAgreeDisagreeDiscardedRetained
Batch 13,1412,7793622672,874
Batch 23,1412,7583832742,867
Batch 33,1412,7913502612,880
Batch 43,1412,7443972842,857
Total12,56411,0721,4921,08611,478

Table 4. Human verification results across the four review batches. “Agree” denotes identical decisions independently made by the two junior annotators. Every “Disagree” case was directly referred to the senior criminal-law expert for final adjudication.

Construction Prompts

Planning/fact-cleaning prompt

Figure A.1.4.

Planning/fact-cleaning prompt PPLANP_{\mathrm{PLAN}}

Please sanitize and analyze the following Chinese criminal case.

Charge: {charge} Raw fact: {raw_fact} Task 1: Generate guilty_fact.

  • Preserve the actor, object, time, location, conduct, means, monetary amount, quantity, result, causal relation, and necessary mental-state facts.

  • Remove evidentiary listings, procedural history, sentencing information, adjudicative conclusions, and outcome leakage.

  • Do not omit repeated offenses, continuous offenses, or multiple acts that would each independently suffice to establish the current charge.

Task 2: Extract:

  • core_facts: the core facts supporting establishment of the current charge;

:::

  • hard_constraints: explicit facts that subsequent counterfactual editing must not directly contradict, such as an explicitly stated age, an explicit assessment of criminal responsibility, the offense timeline, the number of repeated criminal acts, explicit monetary amounts or quantities, an explicit harmful result, and whether the infringement has already ended.

Task 3: Evaluate all major counterfactual paths separately.

Important principles:

  • Judge counterfactual constructibility, not whether an exculpatory circumstance actually already exists in the original case.

  • feasibility evaluates only whether the path can be constructed through a relatively minimal, case-relevant, and temporally coherent change.

  • For unlawfulness, any introduced infringement or danger must occur before or concurrently with the original conduct and must cover all acts sufficient to establish the current charge. A later event cannot negate an already completed offense.

  • For culpability, a mistake about a constitutive fact (e.g., not knowing that an item is stolen property, a drug, a counterfeit medicine, or a protected object) belongs under offense, not culpability. A culpability mistake refers only to an unavoidable mistake of illegality.

  • Independently and fully evaluate unlawfulness and culpability before evaluating offense. Do not lower U/C feasibility merely because an offense path is easier to construct.

  • For every U/C legal_path, evaluate it from the perspective that the minimum necessary counterfactual facts may be introduced. Do not merely check whether the original text already contains the relevant exculpatory facts.

  • For offense, in principle always search for a single offense element that can be modified. If the first element is unsuitable, search for another element rather than assigning offense=0 too readily.

Feasibility scale:

  • 3 = naturally fits the case with a small change;

  • 2 = can be constructed reasonably;

  • 1 = theoretically constructible but somewhat forced;

  • 0 = clearly unreasonable.

Output JSON only:

{
  "guilty_fact": "...",
  "core_facts": ["..."],
  "hard_constraints": ["..."],
  "doctrine_plans": {
    "offense": {
      "candidates": [
        {
          "legal_path": "single_element_negation",
          "feasibility": 0,
          "changed_element": "...",
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        }
      ]
    },
    "unlawfulness": {
      "candidates": [
        {
          "legal_path": "self_defense",
          "feasibility": 0,
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "temporal_fit": true,
          "covers_all_criminal_acts": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        },
        {
          "legal_path": "necessity",
          "feasibility": 0,
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "temporal_fit": true,
          "covers_all_criminal_acts": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        }
      ]
    },
    "culpability": {
      "candidates": [
        {
          "legal_path": "mental_incapacity",
          "feasibility": 0,
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        },
        {
          "legal_path": "age_below_responsibility",
          "feasibility": 0,
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        },
        {
          "legal_path": "unavoidable_illegality_mistake",
          "feasibility": 0,
          "minimal_change": "...",
          "full_exculpation_possible": true,
          "conflict_risk": "low|medium|high",
          "reason": "..."
        }
      ]
    }
  }
}

Counterfactual generation prompt PGENP_{\mathrm{GEN}}

Construct a high-quality guilty–innocent pair according to the fixed doctrine and fixed legal_path.

Charge: {charge} Fixed doctrine: {doctrine} Fixed legal path: {legal_path} Suggested minimal change: {minimal_change} Planner-specified changed element: {planned_changed_element} Complete guilty fact: {guilty_fact} Core facts: {core_facts} Hard constraints: {hard_constraints} Mandatory requirements:

I. Same-case identity and factual fidelity

  1. innocent_fact must still describe the same case.

  1. Do not introduce unrelated persons, locations, another criminal event, or a new harmful result.

  1. Comply with all hard_constraints.

  1. For repeated criminal conduct, the counterfactual must apply to every act sufficient to establish the current charge; it must not explain away only one occurrence.

  1. Output a complete and coherent factual paragraph.

II. offense

  • Change only one element of the offense.

  • You may locally modify facts directly related to that element.

  • If guilty_fact contains a sentence that directly conflicts with the new element, locally replace that sentence rather than retaining both A and not-A.

  • Apart from the designated changed_element, preserve all other material facts as much as possible.

  • Do not use self-defense, necessity, mental disorder, age, or any other doctrine.

III. unlawfulness

self_defense:

  • State the ongoing unlawful infringement, the protected legal interest, and that the original conduct was undertaken to stop that infringement; directly connect the timing and purpose.

  • The infringement must be ongoing at the time of the original conduct. Do not use a later event to justify earlier completed criminal conduct.

necessity:

  • State the specific ongoing danger, the protected legal interest, the absence of an obviously less harmful alternative, and the direct connection between the original conduct and avoidance of the danger.

  • The danger must be present at the time of the original conduct, and the justificatory circumstance must cover all acts sufficient to establish the current charge.

IV. culpability

mental_incapacity:

  • State that a forensic psychiatric evaluation was conducted.

  • Make explicit that, at the time of the conduct, the person was unable to recognize or control the conduct.

  • The condition must match the timing of all relevant criminal acts.

age_below_responsibility:

  • State the person’s specific age at the time of the conduct.

  • Do not directly conflict with an explicitly stated adulthood fact in guilty_fact.

  • The age must be consistent with the age-of-criminal-responsibility rule applicable to the current charge.

unavoidable_illegality_mistake:

  • The actor knows the relevant constitutive facts.

  • The mistake concerns whether the conduct is legally prohibited.

  • Provide a concrete, credible, and unavoidable reason for the mistake, such as an explicit but erroneous response from a competent authority.

  • Do not place mistakes about constitutive facts—such as not knowing that an item is stolen property, a drug, a counterfeit medicine, or a protected object—under this path.

V. No conclusion leakage

Do not include conclusion statements such as “not guilty,” “does not constitute a crime,” “legally bears no criminal responsibility,” “the court finds,” or “criminal responsibility shall be pursued.”

Output JSON only:

{
  "doctrine": "{doctrine}",
  "legal_path": "{legal_path}",
  "innocent_fact": "...",
  "changed_element": "...",
  "added_elements": ["..."],
  "preserved_elements": ["..."],
  "template_family": "..."
}
Reviewer prompt

Figure 1 (PDF p. 14). Reviewer prompt PREVP_{\mathrm{REV}}

You are a quality reviewer for a Chinese criminal-law counterfactual dataset. Conduct a substantive review. Do not merely match keywords, and do not automatically reject a candidate simply because a newly introduced counterfactual fact was not stated in the original text.

Charge: {charge} Fixed doctrine: {doctrine} Fixed legal path: {legal_path} Guilty fact: {guilty_fact} Core facts: {core_facts} Hard constraints: {hard_constraints} Candidate innocent fact: {innocent_fact}

Check the following dimensions:

  1. preservation: apart from the fixed counterfactual change, are the material facts substantially preserved?

  1. path_consistency: does the candidate actually instantiate the designated legal path?

  1. doctrine_sufficiency: are the added facts sufficient to satisfy the designated doctrine?

  1. full_exculpation: does the counterfactual cover every act sufficient to establish the charge, especially in repeated or continuous offending?

  1. temporal_consistency: do the justificatory or exculpatory facts occur before or concurrently with the criminal conduct, rather than using a later event to explain away an already completed offense?

  1. counterfactual_conflict: does the candidate avoid simultaneously retaining contradictory A and not-A facts?

  1. hard_constraint_consistency: does the candidate comply with all explicit hard_constraints?

  1. plausibility: are the added facts directly related to the actors, conduct, and setting of the case, and do they constitute a relatively minimal change rather than a complex new story?

  1. single_doctrine: does the candidate avoid mixing in another doctrine?

  1. no_conclusion_leakage: is the candidate free of conclusion leakage?

  1. non-mechanical: is the counterfactual integrated naturally rather than mechanically appended as a template?

For offense, local replacement of the single changed_element is allowed. Therefore, do not mark preservation as failed solely because a local fact about mental state, object nature, or a similar element has changed.

Output JSON only:

{
  "decision": "pass|rewrite_required|switch_path",
  "preservation": "pass|fail",
  "path_consistency": "pass|fail",
  "doctrine_sufficiency": "pass|fail",
  "full_exculpation": "pass|fail",
  "temporal_consistency": "pass|fail",
  "counterfactual_conflict": "pass|fail",
  "hard_constraint_consistency": "pass|fail",
  "plausibility": "pass|fail",
  "single_doctrine": "pass|fail",
  "no_conclusion_leakage": "pass|fail",
  "non_mechanical": "pass|fail",
  "defects": ["..."],
  "rewrite_instruction": "..."
}

Evidence-Sufficiency Generalization Track

This track is constructed from LeCaRD (Ma et al., 2021) and Criminal-S ([9]). It is an independent evaluation component of CAIL-MC, designed to test whether a model follows the sufficiency of the presented evidence under both corpus shift and construction shift.

For each selected source case and candidate charge, we sanitize the fact description, remove outcome-revealing language, and identify the facts that support the charge. We then construct variants that preserve the underlying allegation and case context while changing the amount of charge-supporting evidence. Each variant is assigned to one of four conditions:

  • Full: the available facts contain the complete charge-supporting evidence and establish the candidate charge;

  • Partial-sufficient: only part of the supporting evidence is retained, but the remaining evidence is still sufficient to establish the charge;

  • Partial-insufficient: some relevant facts remain, but at least one indispensable condition

is unavailable, so the candidate charge is not established under the benchmark annotation;

  • Allegation-only: the charge or alleged conduct is retained without supporting evidence needed to establish the charge.

The first two conditions therefore have label 1 for the specified charge, while the latter two have label 0. These labels concern only whether the specified charge is established from the presented facts; they do not constitute a complete determination of factual innocence or the defendant’s overall legal status.

The construction follows the same quality principles as the Pairwise Repair–Preservation Track. GPT-5.6 Sol first extracts the source facts and charge-relevant conditions, after which a generation step retains or removes evidence according to the assigned condition without introducing unrelated events or explicit verdict cues. Automated review checks narrative consistency, preservation of the core allegation, compliance with the intended evidence condition, and absence of label leakage.

The source case and its variants are then reviewed jointly by two criminal-law-trained annotators. They verify the intended evidence condition, the corresponding charge-established or charge-not-established label, and consistency with the original case. Disagreements are adjudicated by a senior legal reviewer. Variants that cannot satisfy the assigned evidence condition without changing the underlying case are discarded. Human-review outcomes are shown in Table 5.

SourceTotalAgreeDisagreeDiscardedRetained
LeCaRD8065151070
Criminal-S20019460200
Total2802592110270

Table 5. Human verification results for the evidence-sufficiency gradient. “Agree” denotes identical retain/discard decisions independently made by the two criminal-law graduate reviewers. Every “Disagree” case is directly referred to the senior criminal-law expert for final adjudication.

Evidence-Ablation Construction Prompt

Evidence-ablation construction prompt PGRADP_{\mathrm{GRAD}}

Task. You are constructing a guilty-side evidence-ablation gradient for a legal judgment experiment.

Target charge: {charge}

FULL: {full}

FULL is the original guilty_fact and is fixed. You must never rewrite FULL. You only construct Partial-sufficient, Partial-insufficient, and Zero.

Partial-sufficient

Target label: charge established.

Remove only background, repetitive, redundant, or non-essential information from FULL. After deletion, the remaining facts must still sufficiently support the target charge. Do not remove all factual support required for any necessary condition. A necessary condition does not need to appear verbatim: if it can still be reasonably inferred from other retained facts, it remains supported. Do not add, supplement, or fabricate any fact. Preserve the original sentences, order, fluency, and writing style of FULL as much as possible. If deletion creates an ungrammatical sentence, only minimal coherence-preserving rewriting is allowed. Do not add new legal conclusions such as “the crime is established” or “guilty.”

For this level, additionally record: (1) the exact spans removed from FULL and why they can be removed; (2) the necessary supports that remain and their retained factual bases; and (3) why the resulting evidence remains sufficient.

Partial-insufficient

Target label: not established by the provided factual material.

Delete factual support required for at least one necessary condition of the target charge. After deletion, the other retained facts must not substitute for, independently support, or reasonably imply the same necessary condition. Do not mechanically treat a condition as unsupported merely because it is not stated verbatim; consider all retained facts and whether that condition can still be reasonably inferred.

Insufficiency must be created by deleting facts. Only minimal rewriting necessary for grammatical coherence is allowed. Do not add exculpatory, negating, contradictory, or innocence-supporting facts. Do not transform the deletion of supporting evidence into an affirmative statement that the deleted fact did not occur. Do not add new legal conclusions such as “does not constitute the crime” or “not guilty.”

For this level, record: (1) missing_necessary_support, identifying the missing necessary support; (2) deleted_or_rewritten_spans, identifying the exact spans of FULL that were deleted or minimally rewritten; (3) why_remaining_cannot_support, explaining why the remaining facts cannot continue to support the missing condition; and (4) alternative_retained_support_sufficient, which must be false.

Zero

Target label: not established by the provided factual material.

Do not retain any evidentiary support from FULL. Do not retain any case-specific fact concerning conduct, time, location, amount, object, consequence, or mental state. Retain only a neutral accusation naming the target charge.

The output text must exactly follow the fixed template:

The defendant is accused of being involved in {charge}

Control of the two partial conditions

Subject to the sufficient/insufficient distinction above, keep the deletion amounts as similar as possible; keep the resulting text lengths as similar as possible; keep linguistic fluency as similar as possible; and preserve the narrative order and writing style of FULL as much as possible. Legal evidentiary sufficiency takes priority over mechanically matching text length.

Information restriction

Use only the target charge and FULL supplied in this prompt.

Do not use, infer, or introduce information from innocent_fact, doctrine, legal_path, changed_element, added_elements, or preserved_elements from the original matched pair. The doctrine used to construct the original pair does not imply that factual support removed from the guilty side should follow the same doctrine.

Output format

Return exactly one JSON object, with no Markdown and no additional explanation.

The object must contain partial_sufficient, partial_insufficient, and zero. partial_sufficient must contain text, removed_spans, retained_necessary_support, and why_still_sufficient. Each removed span must report the exact original_span from FULL and a brief reason.

partial_insufficient must contain text, missing_necessary_support, deleted_or_rewritten_spans, why_remaining_cannot_support, and alternative_retained_support_sufficient. Each deleted or minimally rewritten span must specify its operation, exact original_span, optional replacement, and reason. When the operation is delete, replacement must be empty. zero contains only the fixed neutral accusation text.

Diagnosis Details

Diagnostic Protocol

All diagnostic interventions use the main verification prompt and verdict readout, with the backbone in bf16, the verdict logits read in fp32, and inputs truncated to 2,048 tokens; model weights stay frozen. Source pairs are training pairs whose two members θ0\theta_0 classifies correctly, and targets are the charge-not-established members of strict false-guilty development pairs (153 / 185 / 286 Offense / Unlawfulness / Culpability pairs with Qwen).

Layer-wise transfer. For each legal stage and each of the 36 layers, the contrasts of Eq. (5) are averaged over the source pairs of that stage and normalized to a unit direction vdℓv_d^\ell. In a single forward pass, αvdℓ\alpha v_d^\ell with α=3\alpha= 3 is added to the block output at the three answer-adjacent positions T\mathcal{T} of a target. Forward adds vdℓv_d^\ell, Reverse adds −vdℓ-v_d^\ell to the same target, and Norm-matched random adds three independent Gaussian directions per target, each rescaled to the norm of the forward displacement. NG-margin reduction is the clean margin minus the intervened margin. Confidence intervals are case-cluster bootstrap intervals (2,000 resamples), with the random repeats clustered by case.

Feasibility and damage. At Layer 22, a case-specific direction is reconstructed in the stage-specific or shared affine geometry (Eq. (6)), and a case is feasible if a strength within the bounded search moves its NG margin below the buffer τ\tau. Paired-G damage applies the same target-reaching displacement to the matched charge-established member.

Full Preservation Projection

Full projection removes the entire component of the repair direction that lies in the supported-guilty gradient subspace PdℓP_d^\ell. Table 6 shows that it lowers feasibility from 70.6–83.2% to 10.1–20.3%: the removed component carries much of the repair signal. The damage comparison in Figure 2c is therefore restricted to the pairs feasible under both settings, whose counts are those in parentheses. This trade-off motivates the soft attenuation of PROSE (ρ>0\rho> 0), which keeps part of the overlapping component.

StageGeometryWithoutWith full projection
OffenseStage-specific70.6 (108)17.6 (27)
OffenseShared70.6 (108)20.3 (31)
UnlawfulnessStage-specific83.2 (154)15.7 (29)
UnlawfulnessShared76.8 (142)19.5 (36)
CulpabilityStage-specific75.9 (217)10.8 (31)
CulpabilityShared76.9 (220)10.1 (29)

Table 6. Repair-target feasibility (%, feasible pairs in parentheses) on Qwen3-8B-Base without and with full projection onto the complement of the supported-guilty gradient subspace (ρ=0\rho= 0 in Eq. (8)).

Cross-Stage Transfer of Hidden-state Contrasts

To test whether the stage-specific contrasts share structure, we add the unit contrast direction of each source stage, scaled by α=0.5\alpha= 0.5, at Layer 22 to the held-out cases of each target stage and measure the mean NG-margin reduction (Figure 6). All nine effects are positive, so every stage direction moves cases of every stage toward charge not established, consistent with the shared geometry that development selection chooses for Offense and Unlawfulness. The Unlawfulness direction transfers most strongly (0.032–0.045), matching the stage ablation, where the Unlawfulness update alone reaches 63.58 PSR on Culpability pairs (Table 10). The Culpability direction is the most stage-selective (0.033 on its own stage vs. 0.017–0.018 elsewhere), consistent with its stage-specific geometry, while Offense has the weakest own-stage effect (0.013), in line with Offense being the hardest stage to repair in isolation.

Cross-stage transfer heatmap at Layer 22

Figure 6. Cross-stage transfer at Layer 22 on Qwen3-8B-Base. Each cell adds the contrast direction of a source stage to cases of a target stage and reports the mean NG-margin reduction; the diagonal (bold) gives each direction’s effect on its own stage.

AccF1FGRFNRRep.G-Ret.Off.Unl.Cul.All
Qwen3-8B-Base
O72.3070.1154.780.617.46100.0026.021.103.837.46
U87.9687.8720.351.7463.5396.7631.7174.0363.5860.29
C85.9185.6926.431.7451.7099.1931.7117.1377.9650.89
OU86.2686.1124.003.4859.0097.0848.7867.9652.4056.24
OC82.3981.9433.481.7440.5299.0344.7216.5750.8059.35
UC91.8791.876.619.6588.1789.4751.2282.3285.9477.96
OUC91.4891.488.438.6185.2590.7656.9177.3583.3976.34
GLM-4-9B-Base
O78.3577.9135.657.6523.9497.1029.4415.3221.0322.59
U76.8776.0641.574.7014.6799.616.6729.8412.1514.48
C82.4882.2129.745.3036.8798.6517.228.0668.2236.10
OU81.4381.2329.048.0937.6496.5335.5642.7431.3135.52
OC85.0084.9620.099.9155.9894.9839.4420.9780.8452.12
UC84.7484.6024.785.7447.1098.0717.2234.6876.6445.95
OUC87.1787.1715.0410.6167.3794.0242.2253.2384.1162.16

Table 10. Stage ablation on CAIL-MC (%). O / U / C denote the Offense, Unlawfulness, and Culpability updates; OUC is PROSE. The right block gives PSR on the strict false-guilty test pairs of each stage and on all of them.

Figure 7 again shows positive transfer in all nine source–target combinations, confirming that the learned contrast directions contain a substantial cross-stage component. On GLM-4-9B-Base, the Offense direction is strongest across all three target stages (0.119–0.129), followed by Unlawfulness (0.074–0.079) and Culpability (0.063–0.071).

Image not extracted

Figure 7. Cross-stage transfer on GLM-4-9B-Base. Each cell reports the mean NG-margin reduction when the hidden-state contrast learned from the source doctrine (row) is applied to held-out cases from the target doctrine (column) at Layer 20. Positive values indicate movement toward charge not established.

Moreover, several cross-stage effects are comparable to or larger than the corresponding within-stage effects. Thus, both backbones exhibit shared cross-stage contrast structure, while the degree and form of stage specialization remain backbone dependent.

Transfer of Hidden-state Contrasts

Figure 8 shows a qualitatively similar directional-transfer pattern to that observed on Qwen3-8B, despite a different layer profile. Around the middle layers, the Forward direction produces positive NG-margin reduction across all three legal stages, whereas Reverse tends to produce the opposite effect and the norm-matched random control is substantially weaker.

Layer-wise hidden-state contrast transfer on GLM-4-9B-Base

Figure 8. Layer-wise hidden-state contrast transfer on GLM-4-9B-Base. Each panel reports NG-margin reduction on held-out strict false-guilty pairs for one legal stage. Forward applies the learned contrast direction, Reverse its negation, and Norm-matched Random a random direction with the same norm. Positive values indicate movement toward charge not established; the dotted line marks Layer 20.

Repair Feasibility and Preservation

As shown in Figure 9(a), GLM-4-9B-Base has lower overall repair feasibility than Qwen3-8B, ranging from 22.7% to 51.6% across legal stages and geometry choices. Nevertheless, the transferred contrast geometry reaches the target for a non-trivial fraction of false-guilty cases.

Repair feasibility and preservation on GLM-4-9B-Base

Figure 9. Repair feasibility and preservation on GLM-4-9B-Base. (a) Repair feasibility under stage-specific and shared contrast geometry for the three legal stages. (b) Paired-G margin damage on matched feasible cases, before and after preservation projection. Lower paired-G damage indicates better preservation of the supported charge-established counterpart.

In Figure 9(b), preservation projection reduces paired-G damage in all six stage/geometry comparisons, with absolute reductions of 0.017–0.041. Thus, the GLM results reproduce the same qualitative repair–preservation tension: repair-effective directions are transferable, but explicit preservation is needed to limit damage to the matched supported decision.

Details of PROSE

This appendix expands the target construction and parameter update in § 4. We retain the following notation: θ0\theta_0 fixes eligibility and preservation labels, whereas ϑ\vartheta denotes the current model during successive stage updates. All contrasts, gradients, and

Contrast Geometry and Preservation Attenuation

module-input keys used for an update are extracted under ϑ\vartheta.

Affine contrast reconstruction. At stage dd and layer ℓ\ell, let NdN_d be the number of training pairs resolved correctly by θ0\theta_0, and let hh be the hidden width. Their contrasts qjℓ∈Rhq_j^\ell\in\mathbb{R}^h are recomputed under ϑ\vartheta using Eq. (5). Define the centered contrast matrix

qˉdℓ=1Nd∑jqjℓ\bar{q}_d^\ell= \frac{1}{N_d}\sum_j q_j^\ell
Qdℓ=[qjℓ−qˉdℓ]j∈Rh×Nd.Q_d^\ell= \left[q_j^\ell-\bar{q}_d^\ell\right]_j \in\mathbb{R}^{h \times N_d}.

The sum and columns range over these correctly resolved stage-dd pairs. The leading rqr_q left singular vectors of QdℓQ_d^\ell form UdℓU_d^\ell; the requested rank is capped by the available SVD dimensions. The affine reconstruction in Eq. (6) is the least-squares projection of the target contrast onto qˉdℓ+span⁡(Udℓ)\bar{q}_d^\ell+ \operatorname{span}(U_d^\ell):

q~iℓ=argmin⁡a∈qˉdℓ+span⁡(Udℓ) ∥qiℓ−a∥22.\tilde{q}_i^\ell= \underset{a\in\bar{q}_d^\ell+\operatorname{span}(U_d^\ell)}{\operatorname{argmin}}\ \lVert q_i^\ell-a\rVert_2^2.

Writing a=qˉdℓ+Udℓwa=\bar{q}_d^\ell+U_d^\ell w, orthonormality gives w∗=(Udℓ)⊤(qiℓ−qˉdℓ)w^*=(U_d^\ell)^\top(q_i^\ell-\bar{q}_d^\ell), recovering the reconstruction in the main text. When the centered matrix is numerically zero, the reconstruction reduces to the mean. A candidate with fewer than two source pairs is not fitted. A pooled geometry, when selected, uses correctly resolved training pairs from all stages in the same construction; target eligibility remains stage-specific.

Intervention and gradient aggregation. The displacement δ\delta is added to the block output at every position in T\mathcal{T}, the three answer-adjacent prompt positions defined in diagnosis. These are tokenizer positions in the Chinese answer cue, rather than tokens of its English translation. For a shared displacement, the derivative is

∇δs~ϑ(x,c;δ,ℓ)∣δ=0=∑t∈THϑ,tℓ(x,c)sϑ(x,c).(12)\nabla_{\delta}\tilde{s}_{\vartheta}(x,c;\delta,\ell)\big|_{\delta=0}=\sum_{t\in\mathcal{T}}H_{\vartheta,t}^{\ell}(x,c)s_{\vartheta}(x,c). \tag*{(12)}

Thus, contrasts average hidden-state differences across positions, whereas the gradient sums their sensitivities to the shared displacement. Gradients are computed with the model weights frozen. For preservation, we stack the unnormalized gradients of base-correct charge-established training cases at stage dd and retain the leading rpr_p left singular vectors as PdℓP_d^{\ell}; this gradient matrix is not centered.

For a nonzero target gradient, giℓg_i^{\ell} minimizes the first-order margin change over unit displacements:

min⁡∥b∥2=1(∇δs~iNG∣δ=0)Tb=−∥∇δs~iNG∣δ=0∥2.(13)\min_{\lVert b\rVert_2=1}\left(\nabla_{\delta}\tilde{s}_{i}^{\mathrm{NG}}\big|_{\delta=0}\right)^{\mathsf{T}}b =-\left\lVert\nabla_{\delta}\tilde{s}_{i}^{\mathrm{NG}}\big|_{\delta=0}\right\rVert_2. \tag*{(13)}

Here, s~iNG\tilde{s}_{i}^{\mathrm{NG}} abbreviates the intervened margin of target ii under ϑ\vartheta. This explains the local descent component; mixing it with a contrast and attenuating it need not retain this optimality.

Soft attenuation. For ρ>0\rho>0, the unnormalized attenuation in (8) admits the following interpretation:

aiℓ=arg⁡min⁡a{∥a−viℓ(λ)∥22+ρ−1∥(Pdℓ)Ta∥22}.(14)a_i^{\ell}=\arg\min_{a}\left\{\lVert a-v_i^{\ell}(\lambda)\rVert_2^2+\rho^{-1}\lVert(P_d^{\ell})^{\mathsf{T}}a\rVert_2^2\right\}. \tag*{(14)}

Setting its derivative to zero and using (Pdℓ)TPdℓ=I(P_d^{\ell})^{\mathsf{T}}P_d^{\ell}=I gives

aiℓ=[I+ρ−1Pdℓ(Pdℓ)T]−1viℓ(λ)=[I−Pdℓ(Pdℓ)T1+ρ]viℓ(λ).(15)a_i^{\ell}=\left[I+\rho^{-1}P_d^{\ell}(P_d^{\ell})^{\mathsf{T}}\right]^{-1}v_i^{\ell}(\lambda) =\left[I-\frac{P_d^{\ell}(P_d^{\ell})^{\mathsf{T}}}{1+\rho}\right]v_i^{\ell}(\lambda). \tag*{(15)}

We then set uiℓ=unit⁡(aiℓ)u_i^{\ell}=\operatorname{unit}(a_i^{\ell}). The limit ρ=0\rho=0 is full orthogonal removal; increasing ρ\rho weakens attenuation. This interpretation applies before normalization and does not guarantee verdict retention.

Bounded Strength Search

For an eligible target, write fi(β)=s~ϑ(xiNG,ci;βuiℓ,ℓ)f_i(\beta)=\tilde{s}_{\vartheta}(x_i^{\mathrm{NG}},c_i;\beta u_i^{\ell},\ell). The cap BiB_i is defined in (9) using the reconstruction norm before direction mixing and attenuation. This keeps the admissible range comparable across preservation settings.

Endpoint test and refinement. For a valid direction and positive cap, we first evaluate fi(Bi)f_i(B_i). The search proceeds only if this value is finite and at most τ\tau. Otherwise, it reports no detected target. Starting from Li,0=0L_{i,0}=0 and Hi,0=BiH_{i,0}=B_i, we perform JJ bisection steps. At step jj, let Mi,j=(Li,j+Hi,j)/2M_{i,j}=(L_{i,j}+H_{i,j})/2 and update

(Li,j+1,Hi,j+1)={(Li,j,Mi,j),fi(Mi,j)≤τ,(Mi,j,Hi,j),otherwise.(16)(L_{i,j+1},H_{i,j+1})= \begin{cases} (L_{i,j},M_{i,j}), & f_i(M_{i,j})\le\tau,\\ (M_{i,j},H_{i,j}), & \text{otherwise}. \end{cases} \tag*{(16)}

A nonfinite midpoint takes the second branch. We re-evaluate the final upper endpoint and retain βi∗=Hi,J\beta_i^{*}=H_{i,J} only when its margin is finite and satisfies the target. The displacement is then ti=βi∗uiℓt_i=\beta_i^{*}u_i^{\ell} as in (10). The implementation uses J=8J=8 refinement steps.

Each accepted refinement halves the interval width, leaving Hi,J−Li,J=Bi/2JH_{i,J}-L_{i,J}=B_i/2^J. If the response has a single monotone crossing with a non-feasible lower endpoint, the returned endpoint approximates that crossing from above. Neural margins need not be monotone: an infeasible capped endpoint can conceal a feasible interior region, and bisection does not establish a global minimum. Consequently, feasibility here means that this finite search detects a target-reaching displacement.

Numerical safeguards. Normalization uses a numerical floor of 10−1210^{-12}. Before searching, we discard nonfinite or near-zero attenuated directions and directions whose retained norm ratio ∥aiℓ∥2/∥viℓ(λ)∥2\lVert a_i^{\ell}\rVert_2/\lVert v_i^{\ell}(\lambda)\rVert_2 falls below a configured threshold (default 0.250.25). When the contrast–gradient mixture nearly cancels, the gradient-assisted implementation falls back to the negative margin-gradient direction. Invalid directions and failed searches remain in the candidate denominator used to report feasibility. Only detected targets with positive strength contribute key–target columns to fitting; a stage with no such targets receives no update.

The batched search checks zero strength using the stored reference margin, not a fresh margin under ϑ\vartheta. For strict false-guilty targets this reference margin is positive, so the zero-strength branch does not remove cases repaired by an earlier stage. Capped and midpoint evaluations use the current model. This implementation should therefore not be interpreted as explicitly skipping every previously repaired target.

Module Keys and Closed-Form Fitting

Joint projection parameterization. For attention output and MLP down projections with input widths mattnm_{\mathrm{attn}} and mmlpm_{\mathrm{mlp}}, respectively, the block notation in the main text is horizontal concatenation:

W=[Wattn,Wmlp],W = [W_{\mathrm{attn}}, W_{\mathrm{mlp}}],
k=[kattnT,kmlpT]T,k = [k_{\mathrm{attn}}^{\mathsf{T}}, k_{\mathrm{mlp}}^{\mathsf{T}}]^{\mathsf{T}},
ΔWk=ΔWattnkattn+ΔWmlpkmlp.(17)\Delta W k = \Delta W_{\mathrm{attn}} k_{\mathrm{attn}} + \Delta W_{\mathrm{mlp}} k_{\mathrm{mlp}}. \tag*{(17)}

Here, W∈Rh×mW \in\mathbb{R}^{h \times m} with m=mattn+mmlpm = m_{\mathrm{attn}} + m_{\mathrm{mlp}}. A single-module update uses the corresponding block alone. Each intervened position contributes one column of KF∈Rm×nFK_{\mathcal{F}} \in\mathbb{R}^{m \times n_{\mathcal{F}}} and repeats its pair’s tit_i in TF∈Rh×nFT_{\mathcal{F}} \in\mathbb{R}^{h \times n_{\mathcal{F}}}. Preservation matrices KaK_a use the same positions and module order, so nFn_{\mathcal{F}} and nan_a count columns rather than cases.

Keys are frozen during fitting. The sum in Eq. (17) is a local fitting surrogate: updating attention also changes the subsequent MLP input. Accordingly, least-squares target fit need not equal the hidden-state or verdict change under a full post-update forward pass.

Weighted ridge solution. To express Eq. (11) as a single ridge problem, define repair blocks AF=KF/nFA_{\mathcal{F}} = K_{\mathcal{F}}/\sqrt{n_{\mathcal{F}}} and YF=TF/nFY_{\mathcal{F}} = T_{\mathcal{F}}/\sqrt{n_{\mathcal{F}}}. For each nonempty preservation pool a∈{G,O,X}a \in\{G, O, X\}, define Aa=ωa/na KaA_a = \sqrt{\omega_a/n_a}\,K_a and a matching zero target block Ya=0Y_a = 0. Concatenate these blocks into AA and YY, omitting empty pools. If NN is their total column count, A∈Rm×NA \in\mathbb{R}^{m \times N} and Y∈Rh×NY \in\mathbb{R}^{h \times N}. Then

L(ΔW)=∥ΔWA−Y∥F2+μ∥ΔW∥F2.(18)\mathcal{L}(\Delta W) = \lVert\Delta W A - Y \rVert_F^2 + \mu\lVert\Delta W \rVert_F^2. \tag*{(18)}

Pool normalization prevents larger pools from receiving greater weight solely because they contain more columns. Differentiating gives

12∇ΔWL=(ΔWA−Y)AT+μΔW,\frac{1}{2}\nabla_{\Delta W}\mathcal{L} = (\Delta W A - Y)A^{\mathsf{T}} + \mu\Delta W,
ΔWLS(AAT+μIm)=YAT.(19)\Delta W_{\mathrm{LS}}(AA^{\mathsf{T}} + \mu I_m) = YA^{\mathsf{T}}. \tag*{(19)}

For fixed activation targets and preservation keys, μ>0\mu> 0 makes the ridge objective strictly convex, yielding a unique closed-form solution:

ΔWLS=YAT(AAT+μIm)−1=Y(ATA+μIN)−1AT.(20)\begin{aligned} \Delta W_{\mathrm{LS}} = YA^{\mathsf{T}}(AA^{\mathsf{T}} + \mu I_m)^{-1} \\ &= Y(A^{\mathsf{T}}A + \mu I_N)^{-1}A^{\mathsf{T}}. \tag*{(20)} \end{aligned}

Here, ImI_m and INI_N are identity matrices of the indicated dimensions. The implementation uses the second, dual form with a Cholesky solve rather than explicitly computing an inverse. It retains factors L=Y(ATA+μIN)−1L = Y(A^{\mathsf{T}}A + \mu I_N)^{-1} and R=ATR = A^{\mathsf{T}}, so ΔWLS=LR\Delta W_{\mathrm{LS}} = LR need not be materialized.

Low-Rank Realization and Update Budget

We retain a numerical approximation to the leading singular components of LRLR. The factorized SVD computation uses a fixed Gaussian sketch determined by the run seed, with oversampling of 16 and one power iteration. Writing the resulting factors as UWU_W, SWS_W, and VWV_W, the rank-rWr_W update is

ΔWrW=UW,:rWSW,:rWVW,:rWT.(21)\Delta W_{r_W} = U_{W,:r_W} S_{W,:r_W} V_{W,:r_W}^{\mathsf{T}}. \tag*{(21)}

The retained rank is capped by the available dimensions. This operation approximates a truncation of the ridge solution; it is not an exact solution to a rank-constrained version of Eq. (11). The captured singular-value energy is measured relative to ∥LR∥F2=tr⁡[(LTL)(RRT)]\lVert LR \rVert_F^2 = \operatorname{tr}[(L^{\mathsf{T}}L)(RR^{\mathsf{T}})].

Let bb index the selected projection modules, and let ΔWrW,b\Delta W_{r_W,b} be the corresponding column block. The budget is enforced separately for each module through a common scaling factor:

cW=max⁡b∥ΔWrW,b∥F∥Wb∥F,c_W = \max_b \frac{\lVert\Delta W_{r_W,b} \rVert_F}{\lVert W_b \rVert_F},
ηW=min⁡{1,ϵ/cW},\eta_W = \min\{1,\epsilon/c_W\},
Wb′=Wb+ηWΔWrW,b.(22)W'_b = W_b + \eta_W \Delta W_{r_W,b}. \tag*{(22)}

For a numerically zero update we set ηW=1\eta_W = 1; weight norms use the same numerical floor as normalization. Every module then satisfies the relative Frobenius-norm budget ϵ\epsilon, and updates already below the budget are not amplified. The applied block update in the main text is ΔW=ηWΔWrW\Delta W = \eta_W\Delta W_{r_W}.

Fitting quality can be checked through ∥ΔWKF−TF∥F/∥TF∥F\lVert\Delta W K_{\mathcal{F}} - T_{\mathcal{F}} \rVert_F/\lVert T_{\mathcal{F}} \rVert_F and preservation drift through ∥ΔWKa∥F/na\lVert\Delta W K_a \rVert_F/\sqrt{n_a}. These are fixed-key diagnostics. Actual verdict repair and retention are measured with the updated model, because truncation, rescaling, and downstream nonlinearities can change the realized effect.

Before application, the implementation checks that the fitting pool is nonempty, the retained singular-value energy meets its configured minimum, and each module satisfies both the selected budget and an emergency norm ceiling, allowing a numerical tolerance of 10−610^{-6}. A failed check skips the update. These are numerical acceptance checks, not tests of behavioral preservation.

Stage Execution and Data Separation

Fixed membership and preservation pools. The reference predictions define EsFGtrain(θ0)\mathcal{E}_{\mathrm{sFG}}^{\mathrm{train}}(\theta_0), the correctly resolved source pairs, and preservation membership once. For a stage-dd update, GG contains base-correct charge-established training cases at that stage; OO contains charge-not-established members of correctly resolved stage-dd pairs. Across other stages, XX includes base-correct charge-established members and the charge-not-established members of correctly resolved pairs. Size-limited training pools are selected once under the fixed run configuration and held fixed during fitting. The gradient bank and the weight-fitting protection pool may have different sizes, but both satisfy these reference-defined eligibility criteria. The eligible GG pool includes target counterparts; a capped fitting pool need not contain every counterpart.

Successive offline updates. Each selected stage configuration specifies its layer, source geometry, direction mixture, preservation strength, search limits, fitting penalties, rank, and update budget. The reported configurations apply updates in the order OFFENSE, UNLAWFULNESS, then CULPABILITY. Starting with ϑ=θ0\vartheta= \theta_0, each update recomputes source and target contrasts, gradients, and keys under the current ϑ\vartheta, constructs search-detected targets, solves the ridge problem, and applies the bounded low-rank update. Cached features are cleared after a weight change. Reference membership remains fixed even when the current model’s predictions change. The final current model is θ′\theta'. The offline phase can therefore contain several stage updates, while deployment requires only one ordinary forward pass and no matched counterpart.

Selection and evaluation. Contrast statistics, gradients, targets, and fitting keys use training data. Development data select configurations; candidate parameter changes are restored before an independent trial. The selected configurations are fixed before final fitting and evaluation. Neither test track supplies fitting examples or selection signals. In particular, the Evidence-Sufficiency Generalization Track is evaluation-only. Numerical defaults reported above describe solver controls; they should not be read as the selected backbone-specific hyperparameters.

Experimental Setup Details

Pair-Level Metric Definitions

Pair-level metrics are reported only for the Pairwise Repair–Preservation Track. For a split SS and backbone, the strict false-guilty cohort EsFGS(θ0)E_{\mathrm{sFG}}^{S}(\theta_0) is selected once using the reference model θ0\theta_0 and then kept fixed for all evaluated models. Let NS=∣EsFGS(θ0)∣N_S = \lvert E_{\mathrm{sFG}}^{S}(\theta_0)\rvert. The evaluated model’s prediction is denoted by y^θ(x,c)\hat{y}_{\theta}(x,c), where 1 indicates that the specified charge is established and 0 that it is not established.

We define NG Repair as

Rep.⁡(θ;S)=1NS∑i∈EsFGS(θ0)1[y^θ(xiNG,ci)=0].(23)\operatorname{Rep.}(\theta;S)=\frac{1}{N_S}\sum_{i\in E_{\mathrm{sFG}}^{S}(\theta_0)}\mathbf{1}\left[\hat{y}_{\theta}(x_i^{\mathrm{NG}},c_i)=0\right]. \tag*{(23)}

Matched-G retention is

G-Ret.⁡(θ;S)=1NS∑i∈EsFGS(θ0)1[y^θ(xiG,ci)=1].(24)\operatorname{G-Ret.}(\theta;S)=\frac{1}{N_S}\sum_{i\in E_{\mathrm{sFG}}^{S}(\theta_0)}\mathbf{1}\left[\hat{y}_{\theta}(x_i^{\mathrm{G}},c_i)=1\right]. \tag*{(24)}

Pairwise safe repair requires both the unsupported member to be corrected and the supported counterpart to remain charge-established:

PSR⁡(θ;S)=1NS∑i∈EsFGS(θ0)1[y^θ(xiNG,ci)=0∧y^θ(xiG,ci)=1].(25)\operatorname{PSR}(\theta;S)=\frac{1}{N_S}\sum_{i\in E_{\mathrm{sFG}}^{S}(\theta_0)}\mathbf{1}\left[\hat{y}_{\theta}(x_i^{\mathrm{NG}},c_i)=0 \mathbin{\wedge} \hat{y}_{\theta}(x_i^{\mathrm{G}},c_i)=1\right]. \tag*{(25)}

Rep. measures the marginal repair ability, whereas G-Ret. measures preservation of the matched charge-established decision. PSR is their intersection and therefore evaluates selective repair directly. Consequently, a high Rep. with low G-Ret. indicates that repair is obtained by damaging supported decisions, while a high G-Ret. with low Rep. indicates that the correction is too conservative. PSR rewards only pairs satisfying both requirements. All three metrics use the same fixed cohort and denominator; pairs that remain unrepaired or cannot produce a feasible target are not removed from evaluation.

These metrics measure within-pair repair and preservation. They do not by themselves establish preservation of unrelated cases or evidence sensitivity; those properties are evaluated separately with case-level and condition-level results.

Evaluation Uncertainty

Confidence intervals. The reported intervals are ±1.96\pm1.96 bootstrap standard errors over 1,000 resamples (seed 42), i.e., normal-approximation 95% intervals. The resampling unit is a matched pair for the Pairwise Repair–Preservation Track and a source case, with all four evidence variants retained together, for the Evidence-Sufficiency Generalization Track. Pair-level metrics are computed on the fixed reference-defined strict false-guilty cohort, restricted to the resampled pairs that belong to it. Models are not refitted during resampling, so these intervals quantify evaluation-sample uncertainty, not variation across fitting seeds.

Paired comparisons. For comparisons with the unedited model, both models are evaluated on the same case-level bootstrap resamples, and we report as a one-sided pp-value the fraction of resamples in which PROSE does not exceed the unedited model [11]. Individual-method intervals are not used as a test of between-method differences.

Baselines

LJPIV. LJPIV (Zhang et al., 2025) extends LJP to non-guilty outcomes and judges the offense elements, unlawfulness, and culpability in sequence. We fine-tune it on the same CAIL-MC training pairs, separately for each backbone, with its original hyperparameters: LoRA (r=16r = 16, α=32\alpha= 32, dropout 0.05) on all seven projections of every layer, learning rate 5×10−55 \times10^{-5}, batch size 16, a cosine schedule, and 3 epochs. At inference, it queries the three stages with its stage-wise prompt and reads each stage verdict from the logits.

Inference-time methods. We follow the implementations of Jeong and Lee [10], with prompts adapted to Chinese charge-conditioned verification.

  • Self-Refine (Madaan et al., 2023) revises an initial verdict with feedback from a neutral critic (3 calls per case).

  • Debate-Feedback [1] aggregates three debaters over one revision round (8 calls).

  • OBJECTION [10] inserts an adversarial lawyer agent into each legal stage and stops once a stage is negated. Facts are truncated to 2,048 tokens within a context of 8,192, and the generation limits are 256 tokens for schema extraction, 192 for the judge, 320 for the lawyer, and 128 for the final answer.

Model editors. MEMIT (Meng et al., 2023) edits factual associations by treating MLP projections as key–value memories: it optimizes a target hidden value for each edit request and writes all requests into the weights at once with a closed-form least-squares update, regularized by the second moment of keys from preserved knowledge. AlphaEdit [3] builds on this formulation but projects the update onto the null space of the preserved keys, so that the outputs for preserved inputs are left unchanged by construction. We adapt both to binary verdict repair. Their defining components are kept, and everything task-specific is matched to PROSE.

  • *Requests, prompt, and readout. The edit requests are all strict false-guilty training pairs of each stage, without subsampling, scored with PROSE’s prompt and readout.

  • *Location. Both editors write to the MLP down-projection of PROSE’s edited layer, their native write location, at the same three prompt positions; the stages are edited in the order Offense, Unlawfulness, Culpability.

  • *Target values. As in the original methods, each request’s target is an additive vector on the down-projection output, optimized by back-propagation (Adam, learning rate 0.1, 25 steps, weight decay 10−310^{-3}) with its norm clamped to 4 times the unedited output norm. The object likelihood is replaced by ReLU⁡(s−τ)2\operatorname{ReLU}(s-\tau)^2 with PROSE’s endpoint τ\tau.

  • *MEMIT preservation. The key second moment is estimated from 128 generic training references, which contain both members of their pairs and exclude the edit requests. The covariance weight is 3×1033 \times10^3 and the ridge 10−210^{-2}; the update is solved exactly in Woodbury form.

  • *AlphaEdit preservation. The null space of the key second moment of all non-request training cases (both members) is computed once on the unedited model, with eigenvalue threshold 10−210^{-2} and ridge 10−210^{-2}. Keys of earlier stage edits are accumulated as protected history for later stages, as in its sequential setting.

Editor hyperparameters are tuned on the development split, and the test sets are loaded only after all edits are fitted. The editors differ from PROSE in how targets are obtained and in what is protected: generic reference keys rather than pools built around the matched pairs; they use neither PROSE’s rank cap nor its update budget.

SFT. SFT follows the Fine-Tuning-Direct variant of LJPIV, which predicts the final verdict without trichotomous reasoning, and receives the same adapter capacity as our LJPIV baseline. Given PROSE’s verification prompt, the model is trained to output the verdict token of both members of all 9,181 training pairs (18,362 cases, 263 tokens on average), with a full-vocabulary cross-entropy loss at the answer position only. LoRA (r=16r = 16, α=32\alpha= 32, dropout 0.05, no bias) is applied to all seven projections (query, key, value, output, gate, up, and down) of all 36 layers of Qwen, giving 43,646,976 trainable parameters (0.53% of the model). Following LJPIV, we train with AdamW without weight decay, learning rate 5×10−55 \times10^{-5}, a cosine schedule without warmup, effective batch size 16 (micro-batch 1 with 16 accumulation steps), gradient clipping at 1.0, and 3 epochs (3,444 steps), keeping the backbone in bf16 and the LoRA parameters in fp32 with gradient checkpointing. Before training, we verified that the training-time margins match the evaluation scorer (maximum absolute difference below 0.1); the adapter is merged before evaluation.

Uniform-shift control. The control of § 5.3 leaves the model unchanged and subtracts one constant ξ\xi from the verdict margin of every test case. ξ\xi is set so that the shift repairs the same fraction of the base-misclassified charge-not-established CAIL-MC test cases as PROSE (85.3% with Qwen and 67.7% with GLM), giving ξ=0.69\xi= 0.69 for Qwen and ξ=0.17\xi= 0.17 for GLM. Supported-guilty damage is the fraction of base-correct charge-established test cases whose verdict flips.

Implementation of PROSE

Configuration. PROSE edits the attention-output and MLP down-projections of Layer 22 (Qwen) and Layer 20 (GLM) at the last three prompt positions. The solver, low-rank realization, and update budget are described in Appendix § 11.

Stage execution. On both backbones, the three stage updates are fit successively in the order Offense, Unlawfulness, Culpability. Each update is fit on the model edited by the preceding stages, with contrasts, gradients, and keys recomputed after every weight change, while eligibility and preservation membership stay fixed under the unedited model (Appendix § 11.§ 4).

Subsampling. Geometry and preservation examples are drawn deterministically from the training split with the run seed: 64 cases for the supported-guilty gradient subspace PdℓP_d^\ell, 96 for PGP_G, 96 for PXP_X, and 64 for POP_O.

Runs. PROSE involves no gradient-based training: given the training split and the selected configuration, each stage update is obtained by a

closed-form ridge solve followed by rank truncation and rescaling. Following MEMIT and AlphaEdit, which are likewise closed-form editors, we report a single fitting run (seed 42).

Model selection. For each backbone and legal stage, the candidates combine an edited layer in the middle-layer region identified by the diagnosis, a contrast geometry (stage-specific or shared across stages), and values from the search space of Table 7, including the contrast–gradient mixture λ\lambda. A candidate is admissible if, on the development split, it fits targets for its stage, retains at least 87% of the base-correct charge-established, same-stage, and cross-stage predictions, keeps at least 90% of the fitted update after rank truncation, and stays within its update budget. Admissible candidates are ranked lexicographically by PSR, Rep., mean absolute margin drift on the preservation examples, and binary KL on the same examples, with ties broken toward smaller κ\kappa, ε\varepsilon, and rWr_W. All hyperparameters are selected by this procedure on the development split, and the test sets play no role in selection.

SymbolDescriptionValue / range
ℓ\ellEdited layer20, 22
—Edited modulesattn-out + MLP down
—Contrast geometrystage-specific or shared
τ\tauTarget margin endpoint[−0.02,−0.005][-0.02, -0.005]
λ\lambdaContrast–gradient mixture[0,1][0, 1]
rq/rpr_q / r_pContrast / preservation rank128 / 64
ρ\rhoAttenuation strength4
βmax⁡\beta_{\max}Global strength cap128
κ\kappaCase-relative strength cap[8,24][8, 24]
ωG\omega_GSupported-guilty pool weight[0.5,4][0.5, 4]
ωX\omega_XCross-stage pool weight[2.5,5][2.5, 5]
ωO\omega_OSame-stage pool weight[5,10][5, 10]
μ\muRidge regularization0.1
rWr_WUpdate rank[64,128][64, 128]
ε\varepsilonRelative update budget[0.15,0.55][0.15, 0.55]

Table 7. Hyperparameters of PROSE across both backbones. Ranges give the development-split search space; single values are fixed. Configurations are selected per backbone and legal stage on the development split.

Evidence Sensitivity on CAIL-MC

Construction. To test evidence sensitivity without corpus shift, we rewrite the 1,150 charge-established CAIL-MC test facts at three evidence levels, following the evidence-ablation construction and annotation procedure of the Evidence-Sufficiency Generalization Track (App. § 9.§ 1.1): Zero states only that the defendant is accused of the charge, Partial keeps part of the objective facts, and Full keeps all of them. All texts are scored with the main protocol. Figure 10 plots the mean margins of the same five methods as Figure 3; Table 8 and Table 9 give the rates and the exact margins.

Mean verdict margins for Qwen3-8B-Base and GLM-4-9B-Base across evidence levels

Figure 10. Mean verdict margin on the 1,150 charge-established CAIL-MC test facts rewritten at three evidence levels, with (a) Qwen3-8B-Base and (b) GLM-4-9B-Base. The vertical axis is linear within [−1,1][-1,1] in (a) and [−0.2,0.2][-0.2,0.2] in (b) (shaded) and logarithmic beyond; error bars are 95% confidence intervals.

MethodZero↓PartialFull↑Δs\Delta_s ↑
Unedited93.894.897.70.58
Uniform shift0.234.869.40.58
SFT100.098.399.0−0.25
PROSE10.376.086.10.74

Table 8. Share of the rewritten CAIL-MC facts judged as establishing the charge with Qwen3-8B-Base, and the mean margin change from Zero to Full (Δs\Delta_s). The uniform shift is the matched-repair control of § 5.3.

LevelUneditedSFTPROSE
Qwen
Zero0.304 [0.293, 0.315]4.835 [4.755, 4.921]−0.266 [−0.281, −0.251]
Partial0.568 [0.546, 0.590]4.130 [4.003, 4.252]0.314 [0.290, 0.339]
Full0.888 [0.863, 0.911]4.589 [4.468, 4.703]0.478 [0.451, 0.504]
GLM
Zero0.059 [0.055, 0.063]4.531 [4.389, 4.674]−0.000 [−0.004, 0.004]
Partial0.179 [0.168, 0.191]6.251 [5.944, 6.564]0.126 [0.117, 0.135]
Full0.272 [0.260, 0.284]6.878 [6.557, 7.205]0.172 [0.163, 0.181]

Table 9. Mean verdict margin [95% bootstrap CI] of the rewritten CAIL-MC facts at each evidence level.

The pattern of Track 2 holds in-domain. PROSE is again the only method that, on both backbones, keeps the accusation-only margin at or below zero and the full-fact margin above it, rising from −0.27 to 0.48 with Qwen and from −0.0001 (95% CI [−0.004, 0.004]) to 0.17 with GLM. SFT stays far above the boundary at every level: with Qwen its margin is highest for the accusation alone (4.84 vs. 4.59 for the full facts), and with GLM it remains above 4.5 even for the accusation alone. With Qwen, AlphaEdit also peaks at Zero, and LJPIV and MEMIT separate Zero from Full; with GLM, however, LJPIV places every level above zero and both editors place every level below it.

PROSE keeps the response to evidence. Given the accusation alone, unedited Qwen establishes the charge for 93.8% of the texts, nearly as often as with the full facts (97.7%). PROSE lowers this

rate to 10.3% while still establishing 86.1% of the fully evidenced texts, and it steepens the margin increase from Zero to Full from 0.58 to 0.74. The uniform shift reaches a lower Zero rate (0.2%) only by also rejecting 30.6% of the fully evidenced texts, and by construction it leaves the margin increase unchanged.

No threshold repairs SFT. SFT establishes the charge for nearly every text at every level, and its mean margin is lower for Partial (4.13) and Full (4.59) than for Zero (4.84), so its margin does not grow with evidence (Δs=−0.25\Delta_s = -0.25). A different threshold cannot fix this: we raise the SFT threshold until its Zero-level rate is closest to that of PROSE, which happens at t=6.25t = 6.25 given tied margins (12.5% vs. 10.3%). The Partial and Full rates then drop to 12.7% and 18.7%, so fully evidenced texts are rejected almost as often as accusation-only ones, and on the CAIL-MC test pairs FNR rises from 0.26 to 52.61 (Acc 73.65, PSR 37.60). SFT’s verdicts therefore do not encode evidence sufficiency at any operating point.

Three-Stage Update Ablation

To examine whether the three legal stages provide complementary repair coverage, we retain only the Offense (O), Unlawfulness (U), or Culpability (C) update, their pairwise combinations (OU, OC, and UC), or all three updates (OUC). All other parts of PROSE remain unchanged. Table 10 reports case-level metrics and pair-level repair and retention, with PSR also broken down by the changed legal stage and reported over all strict false-guilty pairs.

The effects are stage- and backbone-dependent rather than monotonic. Combining stages generally broadens coverage, and OUC gives the strongest pooled PSR on GLM. On Qwen, UC has a slightly higher pooled PSR than OUC, whereas OUC performs better on offense-stage pairs. Thus, no fixed subset dominates across backbones and legal stages and the three-stage decomposition provides complementary, stage-aware coverage.

Additional Analyses

Charge-Level Effects

Figure 11 counts, for the ten most frequent charges in the CAIL-2018 test split, the test predictions that editing flips. On both backbones, flips from incorrect to correct outnumber flips from correct to incorrect for every one of these charges, so the gain is not concentrated in a few charges.

Effect of editing on the ten most frequent charges in the CAIL-MC test split

Figure 11. Effect of editing on the ten most frequent charges in the CAIL-MC test split. Beneficial: test predictions that editing flips from incorrect to correct; harmful: predictions it flips from correct to incorrect.

Pair-Level Margin Changes

Figure 12 plots the margin change of both members of every strict false-guilty test pair under PROSE. A uniform output shift would place all pairs at one point on the diagonal; instead, the displacements spread widely across pairs, and within a pair the charge-not-established member tends to move slightly further than its counterpart. The median changes ΔsNG\Delta s_{NG} and ΔsG\Delta s_G are −0.51-0.51 and −0.47-0.47 with Qwen and −0.19-0.19 and −0.13-0.13 with GLM, and the median within-pair difference is −0.066-0.066 with Qwen (95% CI [−0.106-0.106, −0.031-0.031]) and −0.049-0.049 with GLM (95% CI [−0.062-0.062, −0.041-0.041]). The advantage over a uniform shift therefore comes mainly from displacements that vary across pairs. Figure 13 shows the underlying margins of both members of every test pair before and after editing.

Change in verdict margin of the charge-not-established member and its charge-established counterpart for strict false-guilty CAIL-MC test pairs

Figure 12. Change in verdict margin of the charge-not-established member (ΔsNG\Delta s_{NG}) and of its charge-established counterpart (ΔsG\Delta s_G) for each strict false-guilty CAIL-MC test pair under PROSE, on (a) Qwen3-8B-Base and (b) GLM-4-9B-Base. The diamond marks the medians; a uniform output shift would place every pair at a single point on the dashed diagonal.

Verdict margins for Qwen3-8B-Base and GLM-4-9B-Base

Figure 13. Verdict margins of the charge-established member (sGs_G, horizontal) and the charge-not-established member (sNGs_{NG}, vertical) for every CAIL-MC test pair under the base model and PROSE, on (a) Qwen3-8B-Base and (b) GLM-4-9B-Base. The dashed lines are the decision boundaries, so the four quadrants are the four joint pair states; the marginal panels show the distribution of each margin.

References

  1. [1]Xi Chen, Mao Mao, Shuo Li, and Haotian Shangguan. 2025. Debate-feedback: A multi-agent framework for efficient legal judgment prediction. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 2: Short Papers), pages 462–470. Association for Computational Linguistics.
  2. [2]Markus Dirk Dubber. 2005. Theories of crime and punishment in german criminal law. The American journal of comparative law, 53(3):679–707.
  3. [3]Junfeng Fang, Houcheng Jiang, Kun Wang, Yunshan Ma, Jie Shi, Xiang Wang, Xiangnan He, and Tat-Seng Chua. 2025. AlphEdit: Null-space constrained knowledge editing for language models. In The Thirteenth International Conference on Learning Representations.arxiv.org/abs/2410.02355
  4. [4]George P. Fletcher. 1978. Rethinking Criminal Law. Little, Brown and Company, Boston.
  5. [5]Robert Geirhos, Jörn-Henrik Jacobsen, Claudio Michaelis, Richard Zemel, Wieland Brendel, Matthias Bethge, and Felix A. Wichmann. 2020. Shortcut learning in deep neural networks. Nature Machine Intelligence, 2(11):665–673.DOI
  6. [6]Suchin Gururangan, Swabha Swayamdipta, Omer Levy, Roy Schwartz, Samuel R. Bowman, and Noah A. Smith. 2018. Annotation artifacts in natural language inference data. In Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2 (Short Papers), pages 107–112.arxiv.org/abs/1803.02324
  7. [7]Zhuo Han, Yi Yang, Yi Feng, Wanhong Huang, Ding Xuxing, Chuanyi Li, Jidong Ge, and Vincent Ng. 2025. Lawshift: Benchmarking legal judgment prediction under statute shifts. Advances in Neural Information Processing Systems, 38.DOI
  8. [8]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.arxiv.org/abs/2106.09685
  9. [9]Zikun Hu, Xiang Li, Cunchao Tu, Zhiyuan Liu, and Maosong Sun. 2018. Few-shot charge prediction with discriminative legal attributes. In Proceedings of the 27th International Conference on Computational Linguistics, pages 487–498. Association for Computational Linguistics.
  10. [10]Jaehoon Jeong and Jay-Yoon Lee. 2026. OBJECTION! lawyer agents mitigate guilty bias in legal judgment prediction. arXiv preprint arXiv:2609.02158.arxiv.org/abs/2609.02158
  11. [11]Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, pages 388–395, Barcelona, Spain. Association for Computational Linguistics.

Paper details

vlnc:W_nf2ak5em
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents