Repository navigation
Encoder Free Learning EN
한국어 · Frozen plan · Selection · Results
This is an actually trained small linear query/document relevance scorer in Go. It uses no Laya weights, encoder or teacher outputs and is separate from difficulty routing and the earlier Laya-head QAT. Training and optional local CLI inference work, but general code-search usefulness remains unproven.
The documents “cache keeps active entries and removes inactive entries” and its opposite contain identical words in different order. The model learns associations between query retain/discard and document keeps/removes using word/bigram cross-features. BM25 ties these documents. Train/validation/final use 20/6/6 distinct domains, respectively 80/24/24 queries and 40/12/12 candidate documents. Final documents never enter training negatives. Grammar and verbs are shared deliberately: this is a one-author synthetic domain-noun transfer probe, not unseen grammar/operations, Korean or real-user evaluation. Now-viewed final data must become development data in subsequent tuning.
| Model | File bytes | Top-1 correct /24 (seed1729 /2718) | Mean inspections | Frozen gate |
|---|---|---|---|---|
| BM25 | no weights | 12 /12 | 1.500 /1.500 | control |
| FP32 | 32,792 | 24 /24 | 1.000 /1.000 | pass |
| INT8 PTQ | 8,216 | 24 /24 | 1.000 /1.000 | pass |
| Ternary PTQ | 1,215 | 15 /12 | 1.583 /1.917 | fail |
| Ternary STE | 1,274 /1,272 | 16 /15 | 1.542 /1.625 | fail |
Frozen gates: recall@4 ≥95% and mean inspections ≤80% BM25. INT8 reduces inspections by 33.3% on this probe. Ternary is smaller but increases inspection cost and is not adopted. Under bounded BM25 interleaving, INT8 remains at 1.0; ternary STE yields 1.583/1.625. These are authored-label oracle inspections, not measured LLM calls saved.
A post-evaluation diagnostic control explicitly replaces retain→keeps and discard→removes, then counts word/bigram overlap. It obtains 18/24 and mean 1.25. It was not preregistered or used for model selection. Stronger grammar-specific rules may solve this narrow task without learning; model necessity is not established.
mkdir -p .cache/semantic-learning
go run ./cmd/riido-hinttrain --out .cache/semantic-learning/local-train
go run ./cmd/riido-hinttrain --stage check \
--selection .cache/semantic-learning/local-train/selection.json \
--out .cache/semantic-learning/local-checkOutput directories must be new. check writes research results; its exit status is not a deployment gate. Inspect per-model Pass and scope. Green CI does not establish real-task model quality.
go run ./cmd/riido-hints \
--model .cache/semantic-learning/local-train/int8-1729.hbin \
--sha256 7db5ca98a5fd4426cead07cce2bef897ccf164d3e60ecd731c8ef598f1ed65e8 \
< examples/hints/request-model.jsonThe pinned hash is this revision/data's seed1729 INT8 artifact. Check selection provenance before using another version's hash. The example reuses an already-viewed final request and is not new quality evidence. Without a model, the CLI uses BM25. External hints and a model are mutually exclusive. Output remains unverified and records the model hash. Model input is limited to 256 candidates and 4096 bytes/64 words per query/document. Oversized inputs fall back to BM25 with bm25_model_input_out_of_scope, without truncation. Hash mismatch/corrupt weights fail.
8192 coefficients; signed hashed query/document unigram/bigram cross-features plus overlap ratio. Float shadows, softmax cross-entropy and SGD with weight decay. Two seeds × two rates × FP32/ternary STE = eight candidates, 60 epochs each. Select by validation mean rank, breaking ties with NLL. Ternary forward uses global mean absolute shadow scale, threshold0.7×scale and identity STE with detached scale. Failure applies to this method, not all ternary learning; scale heterogeneity is a follow-up hypothesis.
FP32/INT8 or presence-bitmap/nonzero-sign packed files decode into 8192 float64 coefficients (64KiB) for reference scoring. Serialized size is not decoded RAM or a native ternary-kernel performance claim. No GPU/SIMD claims.
Plan/data hashes were fixed before fitting. Eight selected models were stored before final evaluation. Training replay with the final file absent reproduced all eight hashes. Export/decode coefficient equality is checked.
Apple M4 Pro, Go1.27.1: whole training wall2.34s/userCPU1.18s, maximum RSS26,607,616B (25.4MiB), zero swaps. One INT8 CLI process: maximum RSS5,701,632B (5.44MiB), wall0.37s including startup/loading, zero swaps. This is not warm p95 or total agent memory. No GPU used.
Code and original synthetic data are published under the project's Apache-2.0 terms. No third-party weights/data were copied. Weights stay local and excluded from GitHub; a new HF release awaits a strict publication verifier for this format. Overall usefulness remains an active goal.
riidolaya is experimental. No demonstrated Codex cost savings; repository selection is preview-only.
riidolaya는 실험 단계입니다. Codex 절감은 미입증이며 저장소 선택은 preview입니다.
English README · 한국어 README · Versioned Wiki sources / Wiki 원본
이전 연구 안내 펼치기 / Earlier research
- 실제 이어 학습 V3 · 한국어 · Actual V3 training · English
- 진행·완료 보고·질문100건 결과 KO · 100-case results EN
- 라벨·이모지·상태 힌트 KO · Content/state hints EN
- 개발 진행·완료 보고·질문 pilot KO · Development pilot EN
- 작은 검증 기록 KO · Compact evidence EN
- 현재 개발 자료 35개·다음 학습 조건 · 35-row data and next training gates
- 개발용 학습 자료 2개 · Two qualified training requests
- 첫 두 과제 실제 관측 · First two actual observations
- 전체 사용법 KO · Full usage EN
- 작은 동작 힌트 KO · Small hints EN
- 설명 보강 비교76 · Caption diagnostic76
- Go 압축 가중치78 · Packed Go weights78
- 공개 함수 동작 검증 · Public function verification
- 다음 학습 자료 준비 · Training data preparation
- 동작에서 학습 정답·실제 학습79 · Grounded labels and actual fit79
- 소스 동작 관찰 · Source observations
- 저장 크기와 RAM · Storage and RAM
- 라이선스 · Licensing
- 시점별 기록 원문 / Chronological history
- 전체 연구 링크 / Full research index
- 문서 목록 / Documentation