HackerTrans
TopNewTrendsCommentsPastAskShowJobs

anima-core

no profile record

Submissions

All of you doubted me, and said I was hallucinating on AI

ryanshamim.substack.com
1 points·by anima-core·há 4 meses·1 comments

[untitled]

1 points·by anima-core·há 6 meses·0 comments

[untitled]

1 points·by anima-core·há 7 meses·0 comments

[untitled]

1 points·by anima-core·há 7 meses·0 comments

We keep making transformers faster. What if we don't need them at all?

zenodo.org
1 points·by anima-core·há 7 meses·1 comments

A One-Shot Catastrophe Avoidance Benchmark for RL Agents

zenodo.org
2 points·by anima-core·há 7 meses·1 comments

Semantic Field Execution: Decoupling Transformers from Runtime Inference

zenodo.org
1 points·by anima-core·há 7 meses·1 comments

The Inference Efficiency Paradox

substack.com
2 points·by anima-core·há 7 meses·0 comments

Post-transformer inference: 224× compression of Llama-70B with improved accuracy

zenodo.org
72 points·by anima-core·há 7 meses·56 comments

comments

anima-core
·há 4 meses·discuss
https://www.linkedin.com/posts/ryanshamim_deeptechpioneers-h...
anima-core
·há 7 meses·discuss
We keep spending enormous effort making transformers run faster.

Quantization. Pruning. Speculative decoding. Better kernels. Better hardware.

All of that assumes the same thing: that every request should run the model.

I’ve been working on a systems paper that asks a simpler question first: does this request need a transformer invocation at all?

The paper introduces Meaning-First Execution (MFEE), a control-plane layer that sits upstream of the model and routes each request into one of four actions:

RENDER – run the transformer DIRECT – serve from deterministic logic or cached output NO_OP – do nothing ABSTAIN – refuse safely

On a representative replay workload of 1,000 mixed prompts, this reduced transformer execution by 75.1% while preserving 100% output equivalence when the model was invoked.

The idea isn’t to replace existing optimizations like quantization or kernel fusion. MFEE sits before all of that and reduces how often those optimizations are even needed in the first place.

What surprised me while working on this is how much attention goes toward squeezing marginal gains out of execution, while the much larger question of when execution is necessary at all gets far less focus.

The evaluation harness is public and reproducible if you want to dig into the methodology.

Thoughts?
anima-core
·há 7 meses·discuss
This paper introduces a minimal benchmark for testing whether an RL agent can learn a permanent safety constraint from a single catastrophic event.

The protocol uses standard MiniGrid LavaCrossing environments, fixed seeds, and forbids any training or gradient updates after the first failure. The key metric is whether the agent ever steps into lava again on unseen layouts.

A public benchmark harness is included so others can test their own agents under the same constraints.
anima-core
·há 7 meses·discuss
This is a short position paper that asks a narrow systems question: what changes if large transformers are removed from the runtime inference loop entirely?

The paper introduces Semantic Field Execution (SFE), an inference substrate in which high-capacity transformers are used only offline to extract and compress task-relevant semantic structure. Runtime inference then operates on a compact semantic field via shallow, bounded operations, without executing the transformer itself.

The goal isn't to propose another inference optimization, nor is it to argue that transformers should be replaced. Instead, the paper tries to separate semantic learning from semantic execution and to make explicit which efficiency arguments depend on transformer execution and which don't.

It's intentionally scoped and falsifiable. The paper states where this regime should work, where it shouldn't, and how those boundaries could be tested. It does not present benchmarks or claim universality.

I’m posting this here for technical discussion and criticism, particularly around the execution-model framing and where such a substrate transition would or would not make sense.
anima-core
·há 7 meses·discuss
Haha, fair play, sir. If anything induces altered states around here, it’s probably late-night debugging rather than substances.

I'm here to talk experiments, code, and results. Im ready to dive into that whenever you guys are.
anima-core
·há 7 meses·discuss
I appreciate this take. I largely agree with the framing, and I think this is closer to the intended reading than some of the more heated responses in the thread. (I'm understanding this is whats expected in the forum, and now I welcome it.)

You’re on point that the result is believable and not presented as some singular, world-ending breakthrough. Not at all. The point of Table 5 was to show that a surprisingly large amount of task-relevant signal survives under very strict constraints, not to claim that this alone replaces full inference or training. In that sense, calling it “nice but not shocking” is totally fair. Also making a lot of the other takes confounding more than anything.

On the 224× compression language, the claim is specifically about task-specific inference paths, NOT about compressing the entire model or eliminating the teacher. I agree that if someone reads it as end-to-end model compression, that framing invites confusion. That's good feedback and I’m taking it seriously and tightening up going forward.

I also agree that, viewed narrowly, this overlaps with distillation. The distinction I'm trying to surface (the part thats interesting here) is where and how early the structure appears, and how stable it's under freezing and extreme dimensional collapse. The paper deliberately avoids additional tricks, longer training, or normalization schemes precisely so that effect size is not inflated. In other words, this is closer to a lower bound than an optimized ceiling.

What I would add is this: believe it or not, the paper is actually intentionally conservative contrary to what the thread may suggest. It isolates one axis of the problem to make the geometry visible. There's ongoing work that relaxes some of those constraints and explores how these representations compose, persist across tasks, and interact with different extraction points. It's not ready to be released yet (and may never be released) But it does address several of the gaps you’re pointing out.

So basically I don’t disagree with your characterization. This is exactly what it is. A first, deliberately narrow step rather than the full story. Thanks for engaging with it at that level. I appreciate your time.
anima-core
·há 7 meses·discuss
I can see you've put real thought into your critique, and while I definitely disagree with several conclusions, I appreciate the seriousness of the discussion. Hopefully this is a good faith discussion, and we can keep it that way.

Let me start with the Motte-and-Bailey point, since that seems to be the crux of your argument.

For anyone unfamiliar, a motte-and-bailey fallacy is when someone makes a bold or controversial claim, then retreats to a weaker, safer claim under pressure while pretending the two were always the same. That's simply not what's happening here in the slightest.

The confusion begins with a misreading of the title. Which, in hindsight, I agree should have been clearer so that the work was being critiqued rather than semantics. (Although the paper is clear on this distinction.)

“Post-Transformer Inference” does not mean no transformer, nor does it mean replacement of transformers. It refers to where inference is performed in the pipeline. The transformer remains fully intact and unchanged. It's used exactly as intended. To extract representations. The contribution begins after that point.

The paper is explicit about this throughout:

The transformer is fully used and not replaced.

The compressed heads are task-specific and not general LLM substitutes.

The 224× compression applies to task-specific inference paths, NOT to the base model weights.

There's no shift in scope, no retreat, and no weaker fallback claim. The boundary is fixed and stated clearly.

On HellaSwag and the “4 classes” point, this is simply a category error. HellaSwag is a four-choice benchmark by definition. Advertising four classes describes the label space of the task, not the capacity of the model. Compression here refers to internal representations and compute required for inference, not to the number of output labels. Those are different layers of the system.

The same applies to “CUDA-compatible drop-in.” That phrase refers to integration, not equivalence. It means this work can plug into existing CUDA-based pipelines without requiring teams to rewrite or replace their infrastructure. It absolutely does not claim semantic equivalence to CUDA kernels, nor does it claim GPU replacement. The goal is to extract value without forcing anyone to rebuild their stack. That distinction is intentional and explicit.

You also cited the LessWrong essay, which I'm very familiar with and broadly agree with in spirit. It's a valid warning about vague, unfalsifiable, or scope-shifting claims in LLM-assisted research. That critique applies when claims move or evidence is absent. Here, the claims are narrow, fixed, and empirically evaluated, with code and benchmarks available. Disagree with the results if you want, but that essay just isn't describing this situation at all.

As for the flagging. That's easy. There's nothing mysterious about it. Work that challenges familiar abstractions often gets flagged first for language, not for results. Titles that suggest a different inference boundary tend to trigger skepticism before the experiments are actually read. That doesn't mean the work isn't correct, and it would be wrong to assume that.

Flagging isn't peer review. Real critique points to broken assumptions, flawed metrics, or reproducibility failures.

Again, I will freely admit the title was designed to be punchy, and while it's technically accurate, I can see now how it invites semantic confusion. That is totally fair feedback, and I will refine that framing going forward. That doesn't make the results wrong, nor does it make this a motte-and-bailey.

If you want to talk about the data, the methodology, or where this work is heading next, I'm more than happy to do that. I suspect some of the disagreement here is less about intent and more about where you think the boundary of the system is. Once that clicks, the rest tends to fall into place.
anima-core
·há 7 meses·discuss
I appreciate this framing a lot. It is actually close to how I think about the result internally. The paper focuses on the geometric behavior of intermediate representations, and classification is the cleanest setting to study that. Generative decoding is a much harder problem, and the limitations section already makes that distinction explicit.

Recasting the work as a “classification-native distilled model” or “discriminative foundation model” is a good way to signal scope without underselling the contribution. You're right that discriminative understanding requires far fewer parameters than generation, and my experiments reinforce that.

This will help me get better. The goal for the next revision is exactly what you describe: make the setup clearer, emphasize the intended domain, and avoid suggestive wording that implies capabilities the method does not claim. Duly noted. Your suggestions on positioning and title direction are genuinely helpful, and I’ll incorporate some of this thinking when I prepare the academic submission.

Thanks for taking the time to articulate it so clearly. I appreciate your time and your critique.
anima-core
·há 7 meses·discuss
What are you a psychiatrist?
anima-core
·há 7 meses·discuss
Thank you for the thoughtful comments. Really. This is actually the most constructive feedback in the thread so far.

A few clarifications.

1. On the LaTeX citations and figure references That part is definitely on me. I never used LaTeX before this project and moved extremely fast. There's a lot of weird mumbo jumbo going on with formatting and converting it to a pdf. That part isnt interesting to me, and I try to move passed it quickly. I did use AI tools for typesetting help, and I clearly didn’t clean up all the placeholder references. Entirely my mistake, not an attempt to fabricate sources. I’ll fix the citations and figure links in the next revision so they meet normal academic standards.

2. Architecture transparency and reproducibility The open-source repo contains every component used for the scientific claim:

extraction of activation fields

rank reduction

probing

training the student model

running inference with the student alone

The proprietary references in the paper refer only to optimization layers (CUDA kernels, scheduler heuristics, etc.) that aren’t required for the scientific result. They're not hand wavey secret parts of the method. Just production-grade accelerations I’m still packaging separately for licensing.

The core idea—extract, compress, probe, distill—is fully reproduced in the repo.

3. “Secret sauce” concern There actually isn’t any. The paper may read like I’m hinting at hidden architecture, but the method is intentionally simple. The novelty is in how much task-relevant geometry survives after severe rank reduction, not in a complex architecture. The “anchor layers” are just early and mid-layer activations concatenated before compression.

4. Baseline comparisons Good point on comparing to:

1. a standard small transformer of the same size

2. a distillation from a single layer’s activations

I do have partial results for both, and you’re right that including them would sharpen the contribution. I’ll incorporate them into the revised version.

5. Writing clarity and background Fair critique. I wrote this at the same time I was building the entire stack, which means the prose lagged behind the experiments. I can expand failure modes, limitations, and benchmark context to make the narrative clearer.

6. On the term “meaning field” Naming is tricky, and I thought that captured everything im working on pretty effectively. Also, I think it will make more sense when you see everything im releasing in the near future. I used it because I felt as if it captures the intuition behind low-rank activation structure, but I’m not attached to the term. “Compressed activation representation” is probably clearer for a paper audience. I’ll adjust based on reviewer expectations.

7. Correct summary of the method Your restatement is close, but not quite it. The student isn’t trained to reconstruct specific layers, but to match the compressed field extracted from multiple layers. It’s not a smaller transformer trying to imitate concatenated layers, but a model trying to predict a learned low-dimensional latent that carries most of the task-relevant signal.

All of your points are duly noted, and they will help me to adapt, grow, and mature my work and future releases.

Thank you, sincerely. This is the kind of feedback that actually improves me and the work aswell.
anima-core
·há 7 meses·discuss
A few clarifications, since most of the points here come from asking LLMs to summarize the repo rather than running the code directly.

1. The teacher only runs during field extraction. That step is offline. Once the fields are saved, the transformer is no longer needed. The student training and student-only inference scripts do not load the teacher at all. Compression refers to the field representation and the student head, not the extraction pass.

2. The HellaSwag file is a placeholder, not a required part of the method. It's included so the structure mirrors the paper’s tasks, and it points to the description in the text. The core experiments (RTE, SST-2, CIFAR-10 intention probe, etc.) all have complete working code paths.

3. The AN1 head is intentionally simple. Linear probes are the baseline way to test whether compressed intermediate representations preserve structure. The key result is how much task-relevant geometry survives in a low-rank field. The novelty is in the compression behavior, not in inventing a new classifier architecture.

4. The student model exists and is trained independently of the teacher. This is what produces the classification results in the paper. The student doesn't call the teacher during inference, which is exactly the point.

5. DistilBERT’s SST-2 score isn’t the relevant comparison. The experiment isn’t “beat a small transformer.” It’s “how far can a 256-dimensional compressed field distilled from a frozen 70B model get on a downstream task?” The result speaks to representational compression, not leaderboard performance.

6. The 2 tok/s number is for the specific configuration used in the economic section. Different hardware, precision modes, and serving stacks vary by an order of magnitude. The point was to illustrate cost scaling, not claim a universal throughput ceiling.

If there’s a specific part of the implementation you believe contradicts the paper, feel free to point to the line and we can discuss that human to human. The repo is small by design, so everything is easy to check directly without relying on LLM summaries.
anima-core
·há 7 meses·discuss
That's not how the method works... The full transformer is only needed once to extract the activation fields. That step can even be done offline. Then the teacher can be discarded entirely. The compression result refers to the size of the learned field representation and the small student head that operates directly on it. Simple. No fake claim there. Inference with the student does not involve the transformer at all.

If you look at the student-only scripts in the repo, those runs never load the teacher. That's the novel part.
anima-core
·há 7 meses·discuss
When someone shifts from engaging with the actual results to attacking the person, it usually tells you more about their internal state than about the work itself. I'm glad I have a new fan though.
anima-core
·há 7 meses·discuss
Oh, so you didnt run the repo and remembered something that you read once that looked like it matched. This contribution is meaningless.

The simplest way to resolve any doubt is to run the code. Every result in the paper comes from reproducible scripts in the repo, not from speculative reasoning or LLM-assisted invention.
anima-core
·há 7 meses·discuss
The substack isnt what was supposed to be evaluated, it was the repo. That's creative writing and the repo is sciencetific. Two different things. One has nothing to do with the other. The technical direction here is straightforward, almost boring in a sense: freeze the teacher, extract intermediate activations, compress, then train a student to match the compressed fields. Sometimes when people aren't able to evaluate the work, they dig for something else online that they can comment on or bring down. The only thing I can offer in response is the simplest one: look at the code and the experiments themselves, not the narrative around them. Everything in the paper is fully reproducible from the reference implementation, and every number in the results section came from running those scripts, not from a model filling in blanks. The surprise is not in the prose, but in how much structure those early-layer fields ended up carrying.

If you think something in the repo looks wrong or inflated, I’m happy to walk through it point by point. I have no problem with hard questions. What matters to me is whether the experiments hold when someone else runs them, not whether the story around them fits a certain aesthetic.
anima-core
·há 7 meses·discuss
That limitation is already accounted for in how the title is meant to be read. The 224× compression result is specifically about the structure of intermediate activations on classification tasks. The paper makes that explicit in multiple places, including the Limitations section, where generation is identified as an entirely separate challenge.

The title reflects the strongest verified result in the domain the method currently supports, not a universal claim across all modalities. In other words, the compression result is real, but it shouldn't be interpreted as applying to generative decoding... yet.
anima-core
·há 7 meses·discuss
I guess my "vibe" is just better than your coding :)... Let me explain a few things, if you will. A few clarifications so the discussion stays aligned with what the experiment is actually measuring.

1. The HellaSwag “binary collapse” is intentional and not a leaderboard claim. This work doesn’t attempt to benchmark HellaSwag in the standard four-choice setting. The goal is to probe whether a single frozen layer carries enough information for a small head to distinguish correct versus incorrect continuations. That's a representational geometry test, not a SOTA claim. Binary framing raises the baseline, but that's expected and documented. It's not meant to compare against full LLM HellaSwag results.

2. No adversarial filtering was done. I am using HuggingFace’s standard split directly. Nothing was removed or curated. The experiment doesn't claim robustness or benchmark competitiveness, so the “easier eval” framing doesn’t really apply.

3. EOS extraction isn't cheating, it's the whole point of the probe. The extraction logic takes the final token’s hidden state, which is basic and standard for classification heads and probing studies. If the EOS token captures a high-level sequence summary, that's exactly the structural feature being examined. The result is meant to show how much task-relevant signal is already present in that early representation, not to present a new generative mechanism.

4. The purpose of the work is clearly narrow by design. This is not proposed as a drop-in replacement for full-transformer inference. The paper states that directly. The contribution is about how much structure a single early layer encodes and how far a tiny head can go under strict frozen-teacher constraints. So several of the criticisms make assumptions about goals the work never even claimed.

Thaank you for the feedback and for taking the time.
anima-core
·há 7 meses·discuss
As a follow up just to refresh your memory:

“Attention Is All You Need” (Vaswani et al., 2017)

Length: 11 pages of main content, 5 pages of references and appendix

2. The first GPT paper (Radford et al., 2018)

Length: 12 pages

3. BERT (Devlin et al., 2018)

Length: 14 pages

Big ideas don't require big papers. I don't know where you got that idea from.
anima-core
·há 7 meses·discuss
The memory story is actually much simpler than it looks.

The teacher still has to be loaded at training time, so the footprint is whatever the original model uses. Again, the compression doesn't shrink the teacher. It produces a small student head. After training, the teacher is no longer needed and the student runs by itself. That's why the inference footprint drops to a few MB.

It doesn't increase inference time at all. It removes transformers entirely from the inference path. The student computes directly on the layer-1 field, which is why it's so small and so fast.

On the request for a distilled “few MB” head for Llama 70B,that part is already reproducible right from the repo. The head is always task specific, not a general LLM, so uploading a single checkpoint wouldn't tell the whole story. The better path is to run the extraction script and train the head for any task you want. The pipeline is fully open, end to end. I'm looking for people to validate it independently.

If you need anything else cleared up, just let me know.
anima-core
·há 7 meses·discuss
No, the compression result doesn't mean the original 64 GB model can run on a 292 MB card. The teacher model isn’t the thing thats compressed. It still needs to be loaded during training.

What gets small is the student. The tiny head trained on the teacher’s first layer fields. That head ends up a few MB because it's not a transformer at all. It's basically a lightweight function approximator that reproduces the teacher’s behavior on the specific task it was trained for.

So training still requires the usual multi-GB footprint. (Which can be done offline) After training, inference with the student requires only the head. That's why inference is cheap but you can't load the full teacher into 292 MB of VRAM.