Explore the research collection
11 entries · Follow this search
- Paper
Gender bias across LLMs is common and highly heterogeneous
Studies gender bias across ten LLMs released between April 2025 and June 2026 (nine vendors) with two paradigms: gender attribution to stereotyped phrases (Study 1) and moral judgments about abusing or sacrificing a woman or a man to prevent a catastrophic outcome (Study 2). In Study 1, two of ten models attributed masculine-stereotyped phrases to female writers more often than the reverse, while three showed the opposite pattern. In Study 2, several models converged on a male-disadvantaging asymmetry directionally consistent with a documented human tendency to protect female targets from harm, though the conditions under which it emerged varied by model; three other models showed no variation across conditions. Gender-related biases are common, but their direction and magnitude are highly heterogeneous — some models behave in diametrically opposite ways — so bias auditing should be an ongoing, multi-vendor process rather than a one-time assessment. The authors suspect the heterogeneity reflects heterogeneous post-training fine-tuning rather than pretraining.
- Paper
LoRA-XS: Low-Rank Adaptation with Extremely Small Number of Parameters
Freezes truncated-SVD factors of W and trains only R∈R^{r×r} between them, so parameter count is independent of hidden size (≈2n/r fewer than LoRA). GPT-3 rank-16 personalization: 96GB vs LoRA 144TB for 1M adapters. RoBERTa-large GLUE: rank 25 / 60K params avg 88.69 vs LoRA 800K 87.82 and VeRA 61K 87.83. LLaMA2-7B commonsense 80.5 vs LoRA 77.6 at 3.67M vs 56M params; LLaMA3-8B 85.3 vs 80.8. Mistral-7B GSM8K 70.35 / MATH 20.96 at 3.67M vs LoRA 168M 67.70 / 19.68. Accepted at ECAI 2025. Code https://github.com/MohammadrezaBanaei/LoRA-XS.
- Paper
Targeted Neuron Modulation via Contrastive Pair Search
Contrastive neuron attribution (CNA) ranks MLP neurons by harmful-vs-benign last-token activation difference using only forward passes; top 0.1% form the circuit. Ablating it cuts JBB-Behaviors refusal >50% on Llama/Qwen instruct 1B–72B while n-gram quality stays >0.96 and MMLU is preserved; CAA matches the refusal drop but collapses quality at high α. Matched base models have similar late-layer discrimination structure but steering only shifts content, not refusal — alignment crystallizes a sparse gate. Code https://github.com/NousResearch/neural-steering.
- Paper
Self-Policy Distillation via Capability-Selective Subspace Projection
SPD SVD-extracts a low-rank K/V subspace from gradients on correctness-defining tokens (answer span / assertions), hooks those projections during self-generation, then LoRA-SFT on the raw hooked completions. No teacher, reward, or filter. Up to 13% over SSD/PSR and 16% over base across code/math/QA on five instruct backbones; QA-calibrated SPD also lifts math/code OOD. Correctness-aligned loss beats full-sequence loss (MBPP 11.9→25.5). Calibration works with ~50 examples. No official code on abs.
- Paper
Emergent Analogical Reasoning in Transformers
Synthetic two-category task with atomic, compositional, and analogical facts. Emergence is sensitive to entity/relation counts, OOD ratio, optimization, and scale. Mechanism: (1) geometric alignment of relational structure in the embedding space (Dirichlet energy) and (2) functor application inside the Transformer. Same qualitative signatures in pretrained Gemma-2-2B/9B and Llama-3.1-8B. ICML 2026 spotlight. Code https://github.com/gouki510/Analogy_in_Transformer.
- Paper
One LR Doesn't Fit All: Heavy-Tail Guided Layerwise Learning Rates for LLMs
Uniform LR ignores Transformer heterogeneity. LLR fits a power-law to each layer's weight-correlation ESD (PL_Alpha_Hill) and maps weaker heavy tails (embeddings/FFN) to larger LRs and stronger tails (attention) to smaller ones, with embedding pinned at the upper bound, a soft LR switch, and updates only in the first 20% of tokens. Transfers the uniform baseline's near-optimal global LR. LLaMa-1B FineWeb: zero-shot avg 47.09→49.02; 3B 48.58→50.61; up to 1.5x token speedup. Beats LARS/LAMB/Sharpness/TempBalance/AlphaDecay; also helps Muon and GPT-nano. Code https://github.com/hed-ucas/Layer-wise-Learning-Rate.
- Paper
Your Transformer Can Hold Two Thoughts at Once: Evidence of Linear Superposition in LLMs
arXiv 2609.29845 (cs.CL/cs.AI; submitted 2026-09-24; CC BY-NC-ND 4.0). Averaging embeddings of two unrelated streams makes standard decoder-only LLMs (Pythia, Qwen2.5, Llama, OLMo, Gemma) put both streams' next tokens in the mixed distribution (often top-10 ~30–40% without FT). Superposition is strongest at init and degrades over Pythia pretraining; lightweight FineWeb KL self-distillation (<0.025% of pretrain size) restores it (e.g. Pythia-2.8B KL 1.86→0.27; top-5 recovery ≈30%→>60%; content-token median rank 284→5) at a single-stream quality cost. Geometric-mean obstruction makes naive sampling mix streams; Joint Contrastive guided decoding (large mixed + small-model contrastive logits) raises mixed LAMBADA mean accuracy (e.g. Llama-3.2-3B 0.182→0.430) and Separate mode claims ~2× throughput vs sequential with ~½ KV per stream. No public code on abs/HF at catalog time. Distinct from Token Superposition (id 543) and Superposed Decoding (2405.18400).
- Other
Shard: getting to 10x KV cache compression
Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.
- Code
n8loom
Python library (mlx_lm + Transformers) that stores per-node KV-cache fragments and concatenates the ancestor path when generating, so many ToT branches can share prefix cache without duplicating the full prompt cache at each node. Core types are Heddle (a reasoning node) and Loom (chat-root Heddle); ramify/crown helpers batch- or stream-expand children. Llama-architecture only. pip install n8loom; optional FastAPI example server. CC0.
- Paper
Introspection Fine-Tuning (IFT): Training Small LLMs to Introspect
Shows binary yes/no injection detection is confounded in small models (r=0.999 with a factual-no control on Llama-3.1-8B). Replaces it with sentence localization (N=10, chance 10%) and strength comparison (chance 50%). Across Llama-3.2 1B/3B/8B and Gemma-4 2B/4B/26B-A4B, introspection emerges at 2–3B and generally rises with scale; Llama-1B is at or below chance. IFT (LoRA r=16 on the model’s own steered forward passes) lifts Llama-1B average localization 9.6%→60.6% (semantic, random layer) and strength comparison 30.2%→52.2% zero-shot; Llama-3B loc 14.4%→34.7%; Llama-8B 16.8%→28.3%. MMLU/Winogrande mostly preserved (Llama-1B MMLU 49.1→46.7 under Random·Semantic).
- Paper
Cross-Model KV Cache Transfer in LLM Families: A Closed-Form Linear Mapping for Prefill Reuse
Shows within-family matched-KV pairs (shared KV head count and head dim) have substantial linear structure: on Qwen3 14B->32B one source layer explains 56%/32% of target key/value variance, 79%/65% with multiple layers. A closed-form per-head ridge mapper with top-k cross-layer source selection and RoPE-stripped content-space keys retains 73-98% of standalone-prefill accuracy on four of six pairs (Qwen3, Llama 3.1, Ministral 3) and is 2.7-25x faster than re-prefill; two Ministral pairs collapse and a nonlinear MLP recovers up to +37 pp HellaSwag. Attention-output cosine predicts retention better than reconstruction R^2.