---
title: 'KLong: Particle Physics, Detectors & LLM Agent'
url: https://www.emergentmind.com/topics/klong
type: topic
---

# KLong: Particle Physics, Detectors & LLM Agent

KLong refers to multiple distinct but technically advanced entities in scientific research: (1) KLong ($K_L^0$), the long-lived neutral kaon, a key particle in high-energy and nuclear physics; (2) specialized KLong detectors and experimental facilities, such as in the Belle II experiment and at the KLong Facility at Jefferson Lab, which study rare hadronic and hyperon processes; and (3) KLong, an open-source large language model (LLM) agent engineered specifically for solving extremely long-horizon tasks in machine learning research and software engineering. This article covers each of these meanings in their scientific and technical contexts.

## 1. $K_L^0$: The Long-Lived Neutral Kaon

The $K_L^0$ (KLong) is a neutral kaon eigenstate with a long lifetime ($\tau_{K_L^0} \sim 5 \times 10^{-8}$ s), arising from the superposition of $K^0$ and $\overline{K^0}$. It plays a crucial role in studies of CP violation, hadron spectroscopy, and rare decay processes. At modern accelerator facilities, precise production, tagging, and detection of $K_L^0$ beams underpin comprehensive programs in both standard model precision tests and hadronic structure searches [2207.10779].

## 2. $K_L^0$ Detection in High-Energy Experiments

### 2.1 Belle II Scintillator-Based KLong Detector

The Belle II experiment employs a highly segmented, scintillator-based $K_L^0$ and muon ($\mu$) detector in both the endcap and inner barrel regions, designed to accommodate the increased luminosity and background at the SuperKEKB collider [1406.3267].

#### Detector Geometry and Optical Chain

- **Scintillator Strips:** Extruded polystyrene doped with PTP/PPO and POPOP, 40 mm $\times$ 10 mm cross-section, up to 2.8 m long. Each strip features a central groove (1.2 mm) housing a wavelength-shifting (WLS) fiber.
- **WLS Fiber:** Kuraray Y-11(200)MSJ, emission peak $\sim$500 nm, matched to silicon photomultiplier (SiPM) PDE.
- **Segmentation:** Sectors (14 per endcap, 2 endcaps) contain 4 superlayers, each with two orthogonal planes (75 strips/plane), totaling 16,800 strips in the endcap detector.
- **Coupling Optimizations:** Optical glue index-matched to scintillator and fiber cladding, rounded groove profile (+25% light yield), fiber protrusion into SiPM resin (+37% light yield), aggregate $\sim$70% light yield improvement.

#### Photodetector and Signal Processing

- **SiPMs:** Hamamatsu MPPC S10362-13-050 and others, gains $0.6$–$0.8 \times 10^6$, PDE $30$–$40$\% at 500 nm, dark rate $10^6$ Hz for $1.3 \times 1.3$ mm$^2$, optical cross-talk $10$–$20$\%.
- **Radiation Hardness:** After $\sim$40 Sv (10 yr), dark current up to 12 $\mu$A; performance on minimum-ionizing particle (MIP) detection and light yield remains unaffected. Noise rate at 7.5 p.e. threshold stays below neutron backgrounds.
- **Timing and Spatial Resolution:** $\sigma_t \approx 0.7$ ns from TDC differences enables $\sigma_x \sim 12$ cm longitudinal localization ($v \approx 17$ cm/ns). Integration gate: 100 ns; SiPM dark noise suppressed by 7.5 p.e threshold.

#### Performance

- **Muon Efficiency:** $\epsilon_{\mu} \sim 90\%$ for $p > 1$ GeV/c, with $<1.5\%$ pion mis-ID.
- **$K_L^0$ Cluster Finding:** "Tight" (≥2 superlayers): $\epsilon(K_L^0)$ increases from 15% at low $p$ to $\sim$60% at $p > 1$ GeV/c; "loose" (≥1 superlayer): $+30\%$ efficiency at the cost of 0.2 fake clusters/event. Angular resolution $\sigma_\theta \approx 10$ mrad.
- **Background Rejection:** Fake $K_L^0$ rate $<0.01$/event; SiPM noise is negligible at operational threshold.
- **Comparison to Belle RPC KLM:** Scintillator+SiPM maintains full efficiency $>1$ MHz/ch, provides $\sim$0.7 ns timing (vs 10–20 ns for RPC), and matches or exceeds predecessor in efficiency and granularity, drastically reducing fake hits.

#### Calibration and Monitoring

- **Alignment:** Mechanical registration, cosmic-ray and laser alignment checks.
- **Light-Yield Calibration:** MIP/cosmic-ray scans, truncated-Landau fit for $N_{\mathrm{pe}}$.
- **Bias and Temperature Compensation:** Auto-adjustment for SiPM breakdown voltage drift ($\sim$60 mV/K).
- **Aging/Radiation:** Periodic dark-current monitoring and calibration fibers or $^{90}$Sr sources; $<10\%$ light-yield drop over a decade [1406.3267].

## 3. KLong Facility (KLF) at Jefferson Lab

The KLong Facility at Jefferson Lab represents a major advance for strange-quark hadron spectroscopy via high-flux, high-precision $K_L^0$ beams in Hall D, instrumented with the GlueX spectrometer [2207.10779].

### Beam Production and Properties

- **Production Chain:** CEBAF 12 GeV electron beam $\rightarrow$ copper radiator (10% $X_0$) $\rightarrow$ bremsstrahlung photons $\rightarrow$ beryllium target ($K_L^0$ predominantly via $\phi \to K_L K_S$) $\rightarrow$ dipole sweeps charged secondaries.
- **Flux:** Up to $10^4$ $K_L^0$/s at $p \approx 2$ GeV/$c$; $\mathcal{O}(10^{10})$ kaons on target per channel over $10^7$–$10^8$ events in 100 days.
- **Momentum Spread:** 0.5–5 GeV/$c$; energy resolution $\delta p/p \sim 1\%$, $\delta W \lesssim 30$ MeV.
- **Spot and Divergence:** $\sigma_\theta \sim 2$ mrad, $\sigma_{x,y} \sim 2$ cm, well-matched to GlueX acceptance.

### Experimental Apparatus

- **GlueX Spectrometer:** 2 T solenoid, central straw-tube chamber, forward drift chambers, barrel and forward calorimeters.
- **Particle ID:** TOF walls (up to 4 GeV/$c$ $\pi/K/p$ separation), Barrel DIRC (proposed), high-granularity tracking.

### Physics Program and Methodologies

- **Strange Baryon Production:** Channels such as $K_Lp\to K_Sp$, $\pi^+\Lambda$, $K^+\Xi^0$ allow simultaneous measurement on proton/neutron targets, differential cross sections extracted with normalization to $K_L^0$ flux and target density.
- **Partial-Wave Analysis:** Coupled-channel PWA enables full amplitude extraction and resonance parameter determination with mass uncertainties at the 10–40 MeV level for benchmark states.
- **$\Xi^*$ Spectroscopy:** Associated production with sensitivity to branching fractions of 1–2%.
- **Kaon Spectroscopy and $K\pi$ Scattering:** S/P-wave decompositions; S-wave phase shifts $\delta^{I}_S(s)$ measured to $\pm5^\circ$ across $m_{K\pi}=0.6$–1.6 GeV, surpassing LASS/BNL datasets.

### Systematics and Legacy

- **Backgrounds:** Neutron/photon backgrounds suppressed by sweeping dipole and TOF; accidental backgrounds limited by bunching and detector granularity; $K_L^0$ flux monitored to $<5\%$.
- **Comparative Yield:** KLF $K_L^0$ flux is $\sim10^3$-fold higher than prior SLAC/BNL runs; $\sim5 \times 10^7$ $K\pi$ events expected vs prior $10^6$; hyperon polarization events $\mathcal{O}(10^6)$ (cf. $10^3$ world data).
- **Resolution and Acceptance:** Acceptance 40–80%; statistical precision on $d\sigma/d\Omega$ $<1\%$ per 20 MeV/$\Delta \cos\theta=0.1$; polarization to 0.01–0.02.
- **Significance:** KLF will establish a definitive database for strange-hadron and kaon spectroscopy, supporting unambiguous partial-wave and pole-parameter analyses [2207.10779].

## 4. KLong LLM Agent for Extremely Long-Horizon Tasks

KLong also designates an open-source LLM agent specifically constructed to handle extremely long-horizon tasks characterized by procedures that exceed the model’s context window and involve hundreds to thousands of decision or tool-use turns [2602.17547].

### Objectives and Model Architecture

- **Goal:** Enable an LLM (base: GLM-4.5-Air-Base, $\sim$40K token window, 106B parameters) to replicate research papers (PaperBench) and generalize to other long-horizon benchmarks (SWE-bench Verified, MLE-bench, Terminal-Bench Hard, SEC-bench).
- **Architecture Stages:**
  - Stage 1: Cold-start supervised fine-tuning (SFT) on standard agentic data.
  - Stage 2: Trajectory-splitting SFT on extremely long (>40K token) tool-use demonstrations.
  - Stage 3: Progressive reinforcement learning (RL) curriculum, expanding wall-clock timeouts.

### Trajectory-Splitting SFT

- **Method:** Long demonstration trajectories $\tau$ are split into overlapping sub-trajectories of length $L \leq L_{\max}$, with prefix $p$ (task/paper context) repeated at every chunk, overlap $O$ ensuring continuity:
  $$
  \tau^{(i)} = [p, s_{t_i}, a_{t_i}, \dots, s_{t_i + L - 1}, a_{t_i + L - 1}]
  $$
  for
  $$
  t_i = 1 + (i-1)(L-O), \quad K = \lceil \frac{N - L}{L-O} \rceil + 1
  $$
- **Loss:** Standard teacher-forcing over all actions in every chunk.
- **Effect:** Allows the model to internalize long-horizon agentic behavior under context window constraints, e.g., raising average assistant turns from $\sim$115 to $\sim$733.

### Research-Factory Data Pipeline

- **Automated Data Generation:** Two-agent pipeline consisting of a search agent (crawling ICML, NeurIPS, ICLR, filtering by impact/novelty, PDF $\to$ Markdown, blacklisting official GitHub for anti-cheating) and evaluation agent (rubric construction from paper plus code).
- **Distillation Source:** Claude 4.5 Sonnet "Thinking" model generates $\sim$K extremely long rollouts.
- **Quality Control:** Acceptance of trajectories only if rubric judge (GPT-OSS-120B) scores $\geq$80%.

### Progressive Reinforcement Learning

- **Curriculum:** RL proceeds in stages with increasing wall-clock timeouts ($T^{(1)} = 2$h, $T^{(2)} = 4$h, $T^{(3)} = 6$h). Rollouts exceeding the context window are split as above.
- **Optimization:** Clipped PPO objective, rewards derived from rubric-judge model evaluations.
- **Splitting Recapitulation:** Even truncated rollouts (at each $T^{(m)}$) require trajectory splitting for efficient RL.

### Empirical Performance

| Model                      | Avg. PaperBench (%) |
|----------------------------|---------------------|
| Claude 4.5 Sonnet (Thinking)| 69.75               |
| GPT-5 Thinking (High)      | 52.31               |
| Kimi K2 (1T)               | 51.31               |
| **KLong (106B)**           | **62.59**           |

- **PaperBench:** KLong (106B) leads open-source models by +11.28% (vs Kimi K2 1T), with largest gains in sustained-reasoning (test-time-model-adaptation: 80.09% vs 65.64%; all-in-one: 70.14% vs 28.10%).
- **Other Benchmarks:** SWE-bench Verified bug-fixing (62.80% vs baseline 60.80%), MLE-bench (higher rates of medals), Terminal-Bench Hard (16.67% vs 14.58%), SEC-bench (7.67% vs 5.00%).
- **Ablations:** Gains follow the addition of splitting SFT (+17.29 pp vs cold-start SFT) and progressive RL (+6.67 pp vs SFT-only).
- **Infrastructure:** Kubernetes sandbox, prompt caching, async rollouts, priority queueing for judge concurrency optimize experimentation throughput [2602.17547].

## 5. Contextual Significance and Cross-Domain Relevance

$K_L^0$/KLong and its associated experimental and computational frameworks highlight the convergence of experimental particle physics, detector technology, and large-scale AI-driven research automation.

- **In particle and hadron physics**, $K_L^0$-based studies continue to drive advances in CP violation, spectroscopy, and rare decay characterization, with new detectors (Belle II) and facilities (KLF) raising both precision and event rates by 1–3 orders of magnitude over past efforts [1406.3267, 2207.10779].
- **In large-scale AI/LLMs**, KLong exemplifies a path to enabling LLMs as agents for research replication, complex experiment automation, and sustained task completion beyond fixed context window limitations, leveraging both advanced data distillation and RL curricula targeting agentic compositional skills over many hours [2602.17547].
- *A plausible implication is* that methods from the KLong LLM agent paradigm (trajectory-splitting, automated curriculum RL, judge-based feedback) may inform automated scientific assistants in other long-horizon, compositional, or tool-rich domains.

KLong thus occupies a distinctive space at the intersection of high-precision experimental science and automated long-horizon reasoning, with each instantiation advancing the state of the art in its respective field.

Source: https://www.emergentmind.com/topics/klong