arXiv Science⌕ Search

arXiv subjects

Deepanshu Mody

Publications and source records attributed to Deepanshu Mody.

4 recordsLinked to original sources

Minimizing Targeted Activations: What Changes When a Prompt Suppresses an Evaluation Readout?

If a prompt lowers an internal score associated with test-taking, does a language model also judge the same passage less likely to be a test? We study this question by holding six evaluation passages fixed and optimizing a prefix separately for each on Llama-3.2-3B-Instruct. Search uses gradients and activations offline. The resulting text can then be submitted through an ordinary text interface. Across two search seeds and two fluency weights, every optimized prefix lowered the targeted projection relative to the passage alone. Yet the model's average log-odds of answering yes to evaluation questions rose from 1.40 to 1.81. The six passage-level changes ranged from +0.17 to +1.02. In a follow-up on the same passages, direct intervention on either of two directions, a two-dimensional subspace, or one neuron changed self-classification by at most 0.012 log-odds at the tested position and dose. In a separate search that could replace the whole input, one sparse feature in Llama-3.1-8B-Instruct reached zero at all four fluency weights. The model's answers varied in both directions. On transfer to a smaller Llama model, strings optimized against a random direction also lowered self-classification. These results establish that selected coordinates can be suppressed by changing the input. What the model does on an evaluation remains a separate empirical question.

cs.LG↗

Does Representation Matching Make Refusal Harder to Ablate? A Controlled Study of Iterated Linear Attacks

Projecting a direction from the residual stream can suppress refusal in instruction-tuned language models. We ask whether representation matching during fine-tuning delays suppression while keeping refusal on harmless prompts low. We vary mean matching, covariance matching, distillation, and token pooling, and compare with Refusal Feature Adversarial Training (ReFAT). Under an iterated protocol excluding the final 20% of source layers, the first observed rank at which the pointwise 95% Wilson upper bound for harmful-prompt refusal fell below 30% was $K=4$ for the untouched Llama checkpoint and $K=11$ for mean matching with knowledge distillation (KD), selected on development data. These crossings describe one checkpoint per condition. Clean MMLU, GSM8K, and HellaSwag scores were similar or higher for Mean + KD. With all source layers, Mean + KD first crossed at $K=3$ and the untouched checkpoint had no observed crossing through $K=20$. Under an adaptive rank-4 projection, the interval for Mean + KD lay below 30% and the untouched checkpoint's interval included 30%. Covariance matching was unnecessary for the restricted-protocol result, and some conditions without KD frequently refused harmless prompts. In an aligned factorial comparison of refusal-feature ablation training (RFA) and KD, no cell met all behavioral and capability criteria under either GSM8K scoring rule. RFA alone met the capability criterion only with flexible answer extraction. RFA+KD met the behavioral criteria and lost 3.68 MMLU points relative to the source checkpoint, with an observed interaction of $-3.59$ points. On the tested Qwen2.5-1.5B checkpoint, Mean + KD first crossed at $K=1$ versus $K=2$ for untouched Qwen. The observed effect of representation matching on refusal depends on the model and extraction protocol.

cs.AI↗

The Attribution-Compression Frontier in Retrieval-Augmented Generation

Context compression reduces generator input in retrieval-augmented generation, but answer quality alone does not characterize citation attribution. We measure citation attribution across compression methods and budgets, comparing reranking, extractive selection, abstractive summarization, token pruning, and an extract-cluster-rewrite construction on ASQA and QASPER under a fixed generator and primary entailment evaluator. On ASQA at a nominal 0.25 budget (achieved compression 0.08), a RECOMP-style compressor's citations score 0.86 precision against its summaries but 0.12 against source spans under our re-attributability protocol. These estimates depend on a shared NLI model for span recovery and citation scoring and lack independent human calibration. Extractive selection's observed grounded precision ranges from 0.43 to 0.49 across nominal budgets from one-half to one-tenth of the ASQA context, while answer quality declines. For the same RECOMP setting, claim verification after source recovery yields an unsupported rate of 0.88 versus 0.17 when checking summaries. This gap persists beyond structural rejection of missing provenance, but remains evaluator-dependent. A 200-question TRUE T5-XXL audit also finds emitted--grounded gaps under both fixed and recomputed source mappings, without establishing human-calibrated support rates.

cs.CL↗

Joint Optimization for Greedy Longest-match Tokenization

Recent work has shown that subword vocabularies can be trained to optimize compression for a specific inference rule rather than relying on greedy heuristics such as Byte Pair Encoding (BPE). We extend this approach to greedy left-to-right longest-match decoding, the fast and widely used inference rule underlying WordPiece. We introduce Joint Optimization for Greedy Longest-Match Tokenization (JOLT), which formulates vocabulary learning as an integer program over vocabulary-selection and segmentation-choice variables. Greedy-consistency constraints ensure that each optimized segmentation exactly matches the segmentation produced by longest-match decoding under the selected vocabulary, aligning the training objective with deployment-time tokenization. To scale the optimization, we solve a linear programming relaxation and selectively introduce higher-order segmentations only for unresolved pretokens. The resulting relaxation is nearly integral: rounded solutions fall within 0.008 - 0.176 % of the LP lower bound on the training scope. The bound also shows that BPE is already within 1 - 2 % of the best achievable compression under greedy longest-match decoding, while JOLT closes 89.6 - 99.4 % of the remaining gap. On held-out validation data across four training scopes and vocabulary sizes of 32,000 and 64,000, JOLT produces up to 0.78 % fewer tokens than BPE, with improvements generally increasing as the training scope grows. These results demonstrate that inference-aligned vocabulary optimization can recover most of the limited compression headroom left by BPE while providing a certificate of near-optimality.

cs.CL↗